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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019c5321-6e63-7ca3-84ef-b68fa3b4e75c,g:41981f4f-41b7-4344-b935-b26b550343ce-->
<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:roleRef roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES" xlink:type="simple" xlink:href="cswc-20260331.xsd#CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019c5321-7de6-7775-80f3-18a550d45eb1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019c5321-7de6-7ce5-87c4-2b84c4cbc692" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c5321-7de6-7775-80f3-18a550d45eb1" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019c5321-7de6-7ce5-87c4-2b84c4cbc692" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_019c5321-7de6-7413-be67-19ca766e3e63" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c5321-7de6-7775-80f3-18a550d45eb1" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_019c5321-7de6-7413-be67-19ca766e3e63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EscrowDeposit_019c5321-7de6-7146-9c52-9472316fb136" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EscrowDeposit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c5321-7de6-7775-80f3-18a550d45eb1" xlink:to="loc_us-gaap_EscrowDeposit_019c5321-7de6-7146-9c52-9472316fb136" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019c5321-7de6-759b-81fe-32d8335ab614" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c5321-7de6-7775-80f3-18a550d45eb1" xlink:to="loc_us-gaap_OtherAssets_019c5321-7de6-759b-81fe-32d8335ab614" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendAndInterestReceivable_019c5321-7de6-7389-8905-118ac236f25b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DividendAndInterestReceivable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c5321-7de6-7775-80f3-18a550d45eb1" xlink:to="loc_us-gaap_DividendAndInterestReceivable_019c5321-7de6-7389-8905-118ac236f25b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_019c5321-7de6-7a33-b78d-63b2e4d144d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c5321-7de6-7775-80f3-18a550d45eb1" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_019c5321-7de6-7a33-b78d-63b2e4d144d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_019c5321-7de6-7d95-8e6e-8737cdffce66" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c5321-7de6-7775-80f3-18a550d45eb1" xlink:to="loc_us-gaap_RestrictedCash_019c5321-7de6-7d95-8e6e-8737cdffce66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_019c5321-7de6-7ce8-b337-07feb50e05bc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherReceivables"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c5321-7de6-7775-80f3-18a550d45eb1" xlink:to="loc_us-gaap_OtherReceivables_019c5321-7de6-7ce8-b337-07feb50e05bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReceivable_019c5321-7de6-7fcc-9919-61f0f477b782" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReceivable"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019c5321-7de6-7775-80f3-18a550d45eb1" xlink:to="loc_us-gaap_IncomeTaxReceivable_019c5321-7de6-7fcc-9919-61f0f477b782" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019c5321-7de6-757a-a010-1e7a9a596500" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019c5321-7de6-7985-80a6-4b99540017a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019c5321-7de6-757a-a010-1e7a9a596500" xlink:to="loc_us-gaap_CommonStockValue_019c5321-7de6-7985-80a6-4b99540017a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019c5321-7de6-7244-b104-78b2e3292bad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019c5321-7de6-757a-a010-1e7a9a596500" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019c5321-7de6-7244-b104-78b2e3292bad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019c5321-7de6-7876-ae7d-00f57b21746d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019c5321-7de6-757a-a010-1e7a9a596500" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019c5321-7de6-7876-ae7d-00f57b21746d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019c5321-7de6-7820-ba45-f1c26c195f0b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_AccruedRestorationPlanLiability_019c5321-7de6-7f07-8c51-74df8eafeaf9" xlink:href="cswc-20260331.xsd#cswc_AccruedRestorationPlanLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019c5321-7de6-7820-ba45-f1c26c195f0b" xlink:to="loc_cswc_AccruedRestorationPlanLiability_019c5321-7de6-7f07-8c51-74df8eafeaf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxes_019c5321-7de6-7587-bf76-1020939adc53" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019c5321-7de6-7820-ba45-f1c26c195f0b" xlink:to="loc_us-gaap_AccruedIncomeTaxes_019c5321-7de6-7587-bf76-1020939adc53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_019c5321-7de6-787c-8a98-4029403b9a1d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019c5321-7de6-7820-ba45-f1c26c195f0b" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_019c5321-7de6-787c-8a98-4029403b9a1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_019c5321-7de6-7ae0-811d-1f1ea6cd7704" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCredit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019c5321-7de6-7820-ba45-f1c26c195f0b" xlink:to="loc_us-gaap_LineOfCredit_019c5321-7de6-7ae0-811d-1f1ea6cd7704" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebt_019c5321-7de6-7f34-9706-70b271fc116c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnsecuredDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019c5321-7de6-7820-ba45-f1c26c195f0b" xlink:to="loc_us-gaap_UnsecuredDebt_019c5321-7de6-7f34-9706-70b271fc116c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MediumTermNotes_019c5321-7de6-7401-b6ae-fd7e8c60f414" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MediumTermNotes"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019c5321-7de6-7820-ba45-f1c26c195f0b" xlink:to="loc_us-gaap_MediumTermNotes_019c5321-7de6-7401-b6ae-fd7e8c60f414" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_019c5321-7de6-778c-af41-b4c8f0d3c4ec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019c5321-7de6-7820-ba45-f1c26c195f0b" xlink:to="loc_us-gaap_OtherLiabilities_019c5321-7de6-778c-af41-b4c8f0d3c4ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019c5321-7de6-714d-a663-028e21a8bc2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019c5321-7de6-76d8-87e6-9ac8303851b4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019c5321-7de6-714d-a663-028e21a8bc2c" xlink:to="loc_us-gaap_Liabilities_019c5321-7de6-76d8-87e6-9ac8303851b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019c5321-7de6-7b1d-9c70-34cac2e08848" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019c5321-7de6-714d-a663-028e21a8bc2c" xlink:to="loc_us-gaap_StockholdersEquity_019c5321-7de6-7b1d-9c70-34cac2e08848" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019c5321-7de6-7513-8fd7-f13bff9c1925" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019c5321-7de6-714d-a663-028e21a8bc2c" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019c5321-7de6-7513-8fd7-f13bff9c1925" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="cswc-20260331.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019c5321-7de6-761a-8e25-7251cd4c29ce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_019c5321-7de6-7f92-b3c9-7f28eebe4418" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetInvestmentIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019c5321-7de6-761a-8e25-7251cd4c29ce" xlink:to="loc_us-gaap_NetInvestmentIncome_019c5321-7de6-7f92-b3c9-7f28eebe4418" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit_019c5321-7de6-7716-a7b5-eca4f6d64495" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019c5321-7de6-761a-8e25-7251cd4c29ce" xlink:to="loc_us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit_019c5321-7de6-7716-a7b5-eca4f6d64495" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_019c5321-7de7-77d4-87a0-64f7bd05e344" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetInvestmentIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_019c5321-7de7-7b04-ad0f-d9479e931b55" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_019c5321-7de7-77d4-87a0-64f7bd05e344" xlink:to="loc_us-gaap_GrossInvestmentIncomeOperating_019c5321-7de7-7b04-ad0f-d9479e931b55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_019c5321-7de7-73e8-a3a2-67e1b5e5a3dc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_019c5321-7de7-77d4-87a0-64f7bd05e344" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_019c5321-7de7-73e8-a3a2-67e1b5e5a3dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_019c5321-7de7-7424-a93a-0096cdb1da31" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncome_019c5321-7de7-7f96-aacf-2e6f3a11a785" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019c5321-7de7-7424-a93a-0096cdb1da31" xlink:to="loc_us-gaap_OtherIncome_019c5321-7de7-7f96-aacf-2e6f3a11a785" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeeIncome_019c5321-7de7-7289-a27d-fb4ee368170d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FeeIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019c5321-7de7-7424-a93a-0096cdb1da31" xlink:to="loc_us-gaap_FeeIncome_019c5321-7de7-7289-a27d-fb4ee368170d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInKind_019c5321-7de7-764e-b4b7-d3ae8c56ca57" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeOperatingPaidInKind"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019c5321-7de7-7424-a93a-0096cdb1da31" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInKind_019c5321-7de7-764e-b4b7-d3ae8c56ca57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInCash_019c5321-7de7-717a-9283-b51818e9af47" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeOperatingPaidInCash"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019c5321-7de7-7424-a93a-0096cdb1da31" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInCash_019c5321-7de7-717a-9283-b51818e9af47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendIncomeOperatingPaidInCash_019c5321-7de7-7cfe-94ea-42da0b820aba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DividendIncomeOperatingPaidInCash"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019c5321-7de7-7424-a93a-0096cdb1da31" xlink:to="loc_us-gaap_DividendIncomeOperatingPaidInCash_019c5321-7de7-7cfe-94ea-42da0b820aba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de6-75e7-b728-38ed9bb7bab4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_019c5321-7de6-7781-bf30-683b27f10f73" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de6-75e7-b728-38ed9bb7bab4" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_019c5321-7de6-7781-bf30-683b27f10f73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_019c5321-7de6-7ca8-ab5a-975ff22d5129" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de6-75e7-b728-38ed9bb7bab4" xlink:to="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_019c5321-7de6-7ca8-ab5a-975ff22d5129" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de7-7045-bd1f-eef13291a249" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_019c5321-7de7-729f-a416-49414514ad46" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtAndEquitySecuritiesRealizedGainLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de7-7045-bd1f-eef13291a249" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_019c5321-7de7-729f-a416-49414514ad46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_019c5321-7de7-7e99-bb6f-79b4475b8e3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de7-7045-bd1f-eef13291a249" xlink:to="loc_us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_019c5321-7de7-7e99-bb6f-79b4475b8e3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de7-78c2-b722-96edca0d42c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de7-7d44-b081-e4b26ea70c5a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de7-78c2-b722-96edca0d42c7" xlink:to="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de7-7d44-b081-e4b26ea70c5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_019c5321-7de7-7ab2-b72e-1da891ea1c94" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtAndEquitySecuritiesRealizedGainLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de7-78c2-b722-96edca0d42c7" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_019c5321-7de7-7ab2-b72e-1da891ea1c94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit_019c5321-7de7-7365-abdc-341ec08cdfbe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentIncomeOperatingFederalIncomeExciseAndOtherTaxes_019c5321-7de7-7014-9cb1-2a412dee45bf" xlink:href="cswc-20260331.xsd#cswc_InvestmentIncomeOperatingFederalIncomeExciseAndOtherTaxes"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit_019c5321-7de7-7365-abdc-341ec08cdfbe" xlink:to="loc_cswc_InvestmentIncomeOperatingFederalIncomeExciseAndOtherTaxes_019c5321-7de7-7014-9cb1-2a412dee45bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentIncomeOperatingDeferredTaxes_019c5321-7de7-7613-9d72-13ced042e53a" xlink:href="cswc-20260331.xsd#cswc_InvestmentIncomeOperatingDeferredTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit_019c5321-7de7-7365-abdc-341ec08cdfbe" xlink:to="loc_cswc_InvestmentIncomeOperatingDeferredTaxes_019c5321-7de7-7613-9d72-13ced042e53a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_019c5321-7de6-7e2e-8090-5c2d135eafcf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_019c5321-7de6-7139-91dd-c00f0ed78db2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019c5321-7de6-7e2e-8090-5c2d135eafcf" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_019c5321-7de6-7139-91dd-c00f0ed78db2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019c5321-7de6-72ac-9698-10de78dc49b4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019c5321-7de6-7e2e-8090-5c2d135eafcf" xlink:to="loc_us-gaap_InterestExpenseOperating_019c5321-7de6-72ac-9698-10de78dc49b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019c5321-7de6-7ecb-bffc-76e7126f3e5f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019c5321-7de6-7e2e-8090-5c2d135eafcf" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019c5321-7de6-7ecb-bffc-76e7126f3e5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_019c5321-7de7-75e7-8742-ca546ef955ed" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProfessionalFees"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019c5321-7de6-7e2e-8090-5c2d135eafcf" xlink:to="loc_us-gaap_ProfessionalFees_019c5321-7de7-75e7-8742-ca546ef955ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CompensationExpenseExcludingCostOfGoodAndServiceSold_019c5321-7de7-798c-af63-6ff9094ea85e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CompensationExpenseExcludingCostOfGoodAndServiceSold"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019c5321-7de6-7e2e-8090-5c2d135eafcf" xlink:to="loc_us-gaap_CompensationExpenseExcludingCostOfGoodAndServiceSold_019c5321-7de7-798c-af63-6ff9094ea85e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019c5321-7de7-7eb7-b687-09548f9d5b82" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de7-70ba-9212-5cd07cfda62a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019c5321-7de7-7eb7-b687-09548f9d5b82" xlink:to="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_019c5321-7de7-70ba-9212-5cd07cfda62a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019c5321-7de7-742f-b443-5354d3abda98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019c5321-7de7-7eb7-b687-09548f9d5b82" xlink:to="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019c5321-7de7-742f-b443-5354d3abda98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_019c5321-7de7-752f-8522-9430eb2217b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019c5321-7de7-7eb7-b687-09548f9d5b82" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_019c5321-7de7-752f-8522-9430eb2217b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_019c5321-7de7-7da5-8f16-1882d1feac9c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019c5321-7de7-7eb7-b687-09548f9d5b82" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_019c5321-7de7-7da5-8f16-1882d1feac9c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="cswc-20260331.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019c5321-7de7-7910-ba9b-62d040f59700" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019c5321-7de7-7910-ba9b-62d040f59700" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_019c5321-7de7-73c3-b71a-a91714e4323f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_019c5321-7de7-73c3-b71a-a91714e4323f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_019c5321-7de7-774b-a961-76659cf9693c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfLongTermLinesOfCredit"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_019c5321-7de7-774b-a961-76659cf9693c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019c5321-7de7-743b-83fd-40e93e6fc858" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019c5321-7de7-743b-83fd-40e93e6fc858" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfUnsecuredDebt_019c5321-7de7-7335-8e3a-680386efa4f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfUnsecuredDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfUnsecuredDebt_019c5321-7de7-7335-8e3a-680386efa4f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromNotesPayable_019c5321-7de7-7254-890e-b540098c1a42" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromNotesPayable"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_ProceedsFromNotesPayable_019c5321-7de7-7254-890e-b540098c1a42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_019c5321-7de7-773e-811f-1b38caff4e8e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_019c5321-7de7-773e-811f-1b38caff4e8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfMediumTermNotes_019c5321-7de7-7e10-a8a4-2e27c429d0d0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfMediumTermNotes"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_RepaymentsOfMediumTermNotes_019c5321-7de7-7e10-a8a4-2e27c429d0d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_019c5321-7de7-7093-9e0d-49cbd0cb460e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_PaymentsOfDividends_019c5321-7de7-7093-9e0d-49cbd0cb460e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019c5321-7de7-7086-8daa-dca109bc6f30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019c5321-7de7-7086-8daa-dca109bc6f30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfMediumTermNotes_019daa9d-c81a-75ab-8ab2-2e8c797abc9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfMediumTermNotes"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-766a-b90f-1e193bc6671d" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfMediumTermNotes_019daa9d-c81a-75ab-8ab2-2e8c797abc9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019c5321-7de7-74e5-9816-ad29d4e9f882" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019c5321-7de7-746f-852b-978e49a209a8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019c5321-7de7-74e5-9816-ad29d4e9f882" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019c5321-7de7-746f-852b-978e49a209a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019c5321-7de7-7d91-a61f-d4823627825c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019c5321-7de7-70da-beb4-828601b22455" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019c5321-7de7-7d91-a61f-d4823627825c" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019c5321-7de7-70da-beb4-828601b22455" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_019c5321-7de7-7a15-995f-2fade1fbd182" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019c5321-7de7-7d91-a61f-d4823627825c" xlink:to="loc_us-gaap_RestrictedCash_019c5321-7de7-7a15-995f-2fade1fbd182" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019c5321-7de7-70d2-ae7e-d92cc8a31fe4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_ShareBasedCompensation_019c5321-7de7-70d2-ae7e-d92cc8a31fe4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_AccretionOfOriginalIssueDiscounts_019c5321-7de7-7ba3-8f40-c4c187ff39c3" xlink:href="cswc-20260331.xsd#cswc_AccretionOfOriginalIssueDiscounts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_cswc_AccretionOfOriginalIssueDiscounts_019c5321-7de7-7ba3-8f40-c4c187ff39c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_019c5321-7de7-786c-945a-bcb91be03421" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_019c5321-7de7-786c-945a-bcb91be03421" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_PaymentInKindInterestAccrued_019c5321-7de7-7564-8027-ac6d51d8a829" xlink:href="cswc-20260331.xsd#cswc_PaymentInKindInterestAccrued"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_cswc_PaymentInKindInterestAccrued_019c5321-7de7-7564-8027-ac6d51d8a829" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019c5321-7de7-7a7a-86b6-ab28b5140eee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019c5321-7de7-7a7a-86b6-ab28b5140eee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019c5321-7de7-7dd6-88ad-393a0f1ce046" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019c5321-7de7-7dd6-88ad-393a0f1ce046" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherReceivables_019c5321-7de7-7711-8b76-45bff73ed1db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherReceivables"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherReceivables_019c5321-7de7-7711-8b76-45bff73ed1db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnInvestments_019c5321-7de7-7739-9c1e-6814ac8e3271" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrealizedGainLossOnInvestments"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_UnrealizedGainLossOnInvestments_019c5321-7de7-7739-9c1e-6814ac8e3271" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_019c5321-7de7-7f04-adb3-3509b9382e72" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_019c5321-7de7-7f04-adb3-3509b9382e72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019c5321-7de7-7c31-9f34-fc8019f23a85" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019c5321-7de7-7c31-9f34-fc8019f23a85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDepositOtherAssets_019c5321-7de7-73c4-8d24-8f072a563439" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDepositOtherAssets"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_IncreaseDecreaseInDepositOtherAssets_019c5321-7de7-73c4-8d24-8f072a563439" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_ProceedsFromDispositionOfInvestmentDebtSecuritiesOperatingActivity_019c5321-7de7-730f-96e1-9fe4b583efbb" xlink:href="cswc-20260331.xsd#cswc_ProceedsFromDispositionOfInvestmentDebtSecuritiesOperatingActivity"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_cswc_ProceedsFromDispositionOfInvestmentDebtSecuritiesOperatingActivity_019c5321-7de7-730f-96e1-9fe4b583efbb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019c5321-7de7-7211-b098-41350f78bbdc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_NetIncomeLoss_019c5321-7de7-7211-b098-41350f78bbdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_019c5321-7de7-7378-8208-fa4e9e36a9a0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_019c5321-7de7-7378-8208-fa4e9e36a9a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_019c5321-7de7-7421-ba1e-64bb46ea4d63" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesReceivable"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_019c5321-7de7-7421-ba1e-64bb46ea4d63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_ProceedsFromDispositionOfInvestmentEquitySecuritiesOperatingActivity_019c5321-7de7-7fa2-8442-60f8b6249ec1" xlink:href="cswc-20260331.xsd#cswc_ProceedsFromDispositionOfInvestmentEquitySecuritiesOperatingActivity"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_cswc_ProceedsFromDispositionOfInvestmentEquitySecuritiesOperatingActivity_019c5321-7de7-7fa2-8442-60f8b6249ec1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019c5321-7de7-7ed3-9be3-f320e857cd0f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019c5321-7de7-7ed3-9be3-f320e857cd0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedInvestmentGainsLosses_019c5321-7de7-754e-90f6-2f801380463c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealizedInvestmentGainsLosses"/>
    <link:calculationArc order="18" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_RealizedInvestmentGainsLosses_019c5321-7de7-754e-90f6-2f801380463c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestAndDividendsReceivable_019c5321-7de7-7a46-b321-5320c62f4bd5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInInterestAndDividendsReceivable"/>
    <link:calculationArc order="19" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestAndDividendsReceivable_019c5321-7de7-7a46-b321-5320c62f4bd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionExpenseReversalOfExpenseNoncash_019c5321-7de7-72ca-bb39-19508ce85a8a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PensionExpenseReversalOfExpenseNoncash"/>
    <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_PensionExpenseReversalOfExpenseNoncash_019c5321-7de7-72ca-bb39-19508ce85a8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaidInKindInterest_019c5321-7de7-73fd-8b09-de5e9846600f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaidInKindInterest"/>
    <link:calculationArc order="21" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_PaidInKindInterest_019c5321-7de7-73fd-8b09-de5e9846600f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_019c5321-7de7-73e0-8f97-35e7111ce3cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="22" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_019c5321-7de7-73e0-8f97-35e7111ce3cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_RealizedGainLossOnExtinguishmentOfDebt_019c5321-7de7-746b-941c-7bd5bb939c43" xlink:href="cswc-20260331.xsd#cswc_RealizedGainLossOnExtinguishmentOfDebt"/>
    <link:calculationArc order="23" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_cswc_RealizedGainLossOnExtinguishmentOfDebt_019c5321-7de7-746b-941c-7bd5bb939c43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_ProceedsFromReturnOfCapitalOperatingActivity_019daa9a-6b3c-7b6e-b8c6-5fe3cff09db7" xlink:href="cswc-20260331.xsd#cswc_ProceedsFromReturnOfCapitalOperatingActivity"/>
    <link:calculationArc order="24" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7f4b-a8ef-b012aebae594" xlink:to="loc_cswc_ProceedsFromReturnOfCapitalOperatingActivity_019daa9a-6b3c-7b6e-b8c6-5fe3cff09db7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019c5321-7de7-7b8f-8d4f-ebcb05e57b4f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7c25-874f-9bc5b9f6c525" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019c5321-7de7-7b8f-8d4f-ebcb05e57b4f" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019c5321-7de7-7c25-874f-9bc5b9f6c525" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019c5321-7de7-7f31-bd4a-cfec6fb6987a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019c5321-7de7-7b8f-8d4f-ebcb05e57b4f" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019c5321-7de7-7f31-bd4a-cfec6fb6987a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-7eb8-bbb3-36a07146f11a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019c5321-7de7-7b8f-8d4f-ebcb05e57b4f" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019c5321-7de7-7eb8-bbb3-36a07146f11a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSScheduleofInvestmentPortfoliobyLevelDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#FAIRVALUEMEASUREMENTSScheduleofInvestmentPortfoliobyLevelDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSScheduleofInvestmentPortfoliobyLevelDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_019c5321-7ea4-76e1-91fb-1bc654086f4a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_019c5321-7ea4-7c4f-8242-21a333f1a307" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentsFairValueDisclosure_019c5321-7ea4-76e1-91fb-1bc654086f4a" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_019c5321-7ea4-7c4f-8242-21a333f1a307" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/BORROWINGSScheduleofBorrowingsOutstandingDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#BORROWINGSScheduleofBorrowingsOutstandingDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/BORROWINGSScheduleofBorrowingsOutstandingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019c5321-7ea4-7001-8877-40a71ffbdfb9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019c5321-7ea4-75a4-819f-6c26615fb095" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019c5321-7ea4-7001-8877-40a71ffbdfb9" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_019c5321-7ea4-75a4-819f-6c26615fb095" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019c5321-7ea4-7187-98f6-e4c667f35aef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019c5321-7ea4-7001-8877-40a71ffbdfb9" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019c5321-7ea4-7187-98f6-e4c667f35aef" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/BORROWINGSSBADebenturesDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#BORROWINGSSBADebenturesDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/BORROWINGSSBADebenturesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_019c5321-7ea4-77a3-a6e8-7e6c14c6ddb1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InterestExpenseAndUnusedCommitmentFees_019c5321-7ea4-731e-be3e-d34061c5e97c" xlink:href="cswc-20260331.xsd#cswc_InterestExpenseAndUnusedCommitmentFees"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_019c5321-7ea4-77a3-a6e8-7e6c14c6ddb1" xlink:to="loc_cswc_InterestExpenseAndUnusedCommitmentFees_019c5321-7ea4-731e-be3e-d34061c5e97c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_019c5321-7ea4-7894-baa4-b1b829b26a6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_019c5321-7ea4-77a3-a6e8-7e6c14c6ddb1" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_019c5321-7ea4-7894-baa4-b1b829b26a6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_019c5321-7ea4-7c72-bcba-c6f1a493bf48" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseDebtExcludingAmortization"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_019c5321-7ea4-77a3-a6e8-7e6c14c6ddb1" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_019c5321-7ea4-7c72-bcba-c6f1a493bf48" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/BORROWINGSScheduleofContractualPaymentObligationsDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#BORROWINGSScheduleofContractualPaymentObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/BORROWINGSScheduleofContractualPaymentObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019c5321-7ea4-782e-9b2d-3ced41d17e0f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_019c5321-7ea4-7c71-9580-5b5addab181b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019c5321-7ea4-782e-9b2d-3ced41d17e0f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_019c5321-7ea4-7c71-9580-5b5addab181b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019c5321-7ea4-716b-8a36-2ed9c14a42ed" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019c5321-7ea4-782e-9b2d-3ced41d17e0f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019c5321-7ea4-716b-8a36-2ed9c14a42ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019c5321-7ea4-7cf9-8da7-94659bc0f3a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019c5321-7ea4-782e-9b2d-3ced41d17e0f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019c5321-7ea4-7cf9-8da7-94659bc0f3a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_019c5321-7ea4-7ca1-8a1c-c519d2273344" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019c5321-7ea4-782e-9b2d-3ced41d17e0f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_019c5321-7ea4-7ca1-8a1c-c519d2273344" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_019c5321-7ea4-7840-b5db-83275603af1e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019c5321-7ea4-782e-9b2d-3ced41d17e0f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_019c5321-7ea4-7840-b5db-83275603af1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_019c5321-7ea4-76dd-8c9f-56b87cad6ba3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019c5321-7ea4-782e-9b2d-3ced41d17e0f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_019c5321-7ea4-76dd-8c9f-56b87cad6ba3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofDistributionsDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#INCOMETAXESScheduleofDistributionsDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofDistributionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxDividendDistribution_019c5321-7ea5-7cea-a903-9553dc768e95" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyTaxDividendDistribution"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributionOrdinaryIncome_019c5321-7ea5-7c4d-815c-7dbbf88d42ba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyDistributionOrdinaryIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyTaxDividendDistribution_019c5321-7ea5-7cea-a903-9553dc768e95" xlink:to="loc_us-gaap_InvestmentCompanyDistributionOrdinaryIncome_019c5321-7ea5-7c4d-815c-7dbbf88d42ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributionLongTermCapitalGain_019c5321-7ea5-7df1-a0c9-edf7ff85d7bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyDistributionLongTermCapitalGain"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyTaxDividendDistribution_019c5321-7ea5-7cea-a903-9553dc768e95" xlink:to="loc_us-gaap_InvestmentCompanyDistributionLongTermCapitalGain_019c5321-7ea5-7df1-a0c9-edf7ff85d7bb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofNetAssetsResultingfromOperationstoEstimatedRICTaxableIncomeDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#INCOMETAXESScheduleofNetAssetsResultingfromOperationstoEstimatedRICTaxableIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofNetAssetsResultingfromOperationstoEstimatedRICTaxableIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationLossOnExtinguishmentOfDebtIncreaseDecreaseInTaxableIncome_019c5321-7ea5-72bb-bba5-9b9e8b768c2a" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyTaxBasisReconciliationLossOnExtinguishmentOfDebtIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationLossOnExtinguishmentOfDebtIncreaseDecreaseInTaxableIncome_019c5321-7ea5-72bb-bba5-9b9e8b768c2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyTaxBasisUnrealizedGainLossNotCurrentlyTaxableDeductible_019c5321-7ea5-75d2-b8fa-882e1417d533" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyTaxBasisUnrealizedGainLossNotCurrentlyTaxableDeductible"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_us-gaap_InvestmentCompanyTaxBasisUnrealizedGainLossNotCurrentlyTaxableDeductible_019c5321-7ea5-75d2-b8fa-882e1417d533" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationNetOperatingIncomeSubsidiaryIncreaseDecreaseInTaxableIncome_019c5321-7ea5-7575-b457-9b562e576494" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyTaxBasisReconciliationNetOperatingIncomeSubsidiaryIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationNetOperatingIncomeSubsidiaryIncreaseDecreaseInTaxableIncome_019c5321-7ea5-7575-b457-9b562e576494" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationLossGainRecognizedOnDispositionsIncreaseDecreaseInTaxableIncome_019c5321-7ea5-75b9-8f41-2b735bec6d59" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyTaxBasisReconciliationLossGainRecognizedOnDispositionsIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationLossGainRecognizedOnDispositionsIncreaseDecreaseInTaxableIncome_019c5321-7ea5-75b9-8f41-2b735bec6d59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationCompensationRelatedDifferencesIncreaseDecreaseInTaxableIncome_019c5321-7ea5-7d16-9b4e-765419dbe06d" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyTaxBasisReconciliationCompensationRelatedDifferencesIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationCompensationRelatedDifferencesIncreaseDecreaseInTaxableIncome_019c5321-7ea5-7d16-9b4e-765419dbe06d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyTaxBasisExpenseNotDeductible_019c5321-7ea5-7d7e-ad2e-24b5e05b884d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyTaxBasisExpenseNotDeductible"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_us-gaap_InvestmentCompanyTaxBasisExpenseNotDeductible_019c5321-7ea5-7d7e-ad2e-24b5e05b884d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019c5321-7ea5-78e2-ab12-8b48309e9a56" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_us-gaap_NetIncomeLoss_019c5321-7ea5-78e2-ab12-8b48309e9a56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleCompensationIncreaseDecreaseInTaxableIncome_019c5321-7ea5-75a8-95f4-07f31fd3d36d" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleCompensationIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleCompensationIncreaseDecreaseInTaxableIncome_019c5321-7ea5-75a8-95f4-07f31fd3d36d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyTaxBasisOtherIncreaseDecrease_019c5321-7ea5-71aa-ad35-3d51f61be60d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyTaxBasisOtherIncreaseDecrease"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_us-gaap_InvestmentCompanyTaxBasisOtherIncreaseDecrease_019c5321-7ea5-71aa-ad35-3d51f61be60d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationIncomeExpenseRecognizedForPassThroughEntitiesIncreaseDecreaseInTaxableIncome_019c5321-7ea5-733e-802f-a2e03b8faa00" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyTaxBasisReconciliationIncomeExpenseRecognizedForPassThroughEntitiesIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationIncomeExpenseRecognizedForPassThroughEntitiesIncreaseDecreaseInTaxableIncome_019c5321-7ea5-733e-802f-a2e03b8faa00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyTaxBasisCapitalLossCarryforwardUtilization_019c5321-7ea5-7616-9f48-72b567311356" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyTaxBasisCapitalLossCarryforwardUtilization"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_us-gaap_InvestmentCompanyTaxBasisCapitalLossCarryforwardUtilization_019c5321-7ea5-7616-9f48-72b567311356" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationInterestOnNonAccrualLoansIncreaseDecreaseInTaxableIncome_019c5321-7ea5-76f4-869c-0d95face297c" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyTaxBasisReconciliationInterestOnNonAccrualLoansIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationInterestOnNonAccrualLoansIncreaseDecreaseInTaxableIncome_019c5321-7ea5-76f4-869c-0d95face297c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationDividendIncomeSubsidiaryIncreaseDecreaseInTaxableIncome_019c5321-7ea5-77f7-9137-7aa9e3aebe13" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyTaxBasisReconciliationDividendIncomeSubsidiaryIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019c5321-7ea5-712f-9cd6-87ad0ed28bb1" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationDividendIncomeSubsidiaryIncreaseDecreaseInTaxableIncome_019c5321-7ea5-77f7-9137-7aa9e3aebe13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyUndistributedTaxableIncome_019d4f01-4a80-71ef-8478-7711a70011b4" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyUndistributedTaxableIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019d4f01-4a80-7a58-a4a1-d34d06d2c112" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyUndistributedTaxableIncome_019d4f01-4a80-71ef-8478-7711a70011b4" xlink:to="loc_us-gaap_InvestmentCompanyTaxBasisTaxableIncomeLossBeforeDeductionForDistribution_019d4f01-4a80-7a58-a4a1-d34d06d2c112" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxDistributionOrdinaryIncome_019d4f01-4a80-76f2-974b-b64315ddef1c" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyTaxDistributionOrdinaryIncome"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyUndistributedTaxableIncome_019d4f01-4a80-71ef-8478-7711a70011b4" xlink:to="loc_cswc_InvestmentCompanyTaxDistributionOrdinaryIncome_019d4f01-4a80-76f2-974b-b64315ddef1c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofComponentsofEstimatedTaxBasisRICAccumulatedEarningsDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#INCOMETAXESScheduleofComponentsofEstimatedTaxBasisRICAccumulatedEarningsDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofComponentsofEstimatedTaxBasisRICAccumulatedEarningsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_cswc_DistributableEarningsTaxBasis_019c5321-7f56-709e-a554-15c93ca0fd84" xlink:href="cswc-20260331.xsd#cswc_DistributableEarningsTaxBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedOrdinaryIncomeLoss_019c5321-7f56-7c8c-9e8d-bfe59ac0336a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedOrdinaryIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_DistributableEarningsTaxBasis_019c5321-7f56-709e-a554-15c93ca0fd84" xlink:to="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedOrdinaryIncomeLoss_019c5321-7f56-7c8c-9e8d-bfe59ac0336a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedLongTermCapitalGainLoss_019c5321-7f56-75ad-a74b-9e73efa1391b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedLongTermCapitalGainLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_DistributableEarningsTaxBasis_019c5321-7f56-709e-a554-15c93ca0fd84" xlink:to="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedLongTermCapitalGainLoss_019c5321-7f56-75ad-a74b-9e73efa1391b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedAppreciationDepreciation_019c5321-7f56-79ba-a433-6511078ce370" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedAppreciationDepreciation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_DistributableEarningsTaxBasis_019c5321-7f56-709e-a554-15c93ca0fd84" xlink:to="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedAppreciationDepreciation_019c5321-7f56-79ba-a433-6511078ce370" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedTemporaryDifferenceOther_019c5321-7f56-7871-a88d-9fbaa1c2cfb9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedTemporaryDifferenceOther"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_DistributableEarningsTaxBasis_019c5321-7f56-709e-a554-15c93ca0fd84" xlink:to="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedTemporaryDifferenceOther_019c5321-7f56-7871-a88d-9fbaa1c2cfb9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#INCOMETAXESScheduleofDeferredTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_019c5321-7f56-70b8-8746-64488a193318" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_019c5321-7f56-7488-af3d-0e2838f73fe9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019c5321-7f56-70b8-8746-64488a193318" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_019c5321-7f56-7488-af3d-0e2838f73fe9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetInterestCarryforward_019c5321-7f56-71b0-89bf-081c2ee12701" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetInterestCarryforward"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019c5321-7f56-70b8-8746-64488a193318" xlink:to="loc_us-gaap_DeferredTaxAssetInterestCarryforward_019c5321-7f56-71b0-89bf-081c2ee12701" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_019c5321-7f56-7a5f-ba52-e5a6f3a17c8d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesInvestments_019c5321-7f56-71cb-9c87-d691dfc79d52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019c5321-7f56-7a5f-ba52-e5a6f3a17c8d" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesInvestments_019c5321-7f56-71cb-9c87-d691dfc79d52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_DeferredTaxLiabilitiesBasisDifferencesInPortfolioInvestmentsNet_019c5321-7f56-720e-853e-3b84d9acdd56" xlink:href="cswc-20260331.xsd#cswc_DeferredTaxLiabilitiesBasisDifferencesInPortfolioInvestmentsNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019c5321-7f56-7a5f-ba52-e5a6f3a17c8d" xlink:to="loc_cswc_DeferredTaxLiabilitiesBasisDifferencesInPortfolioInvestmentsNet_019c5321-7f56-720e-853e-3b84d9acdd56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_019c5321-7f56-7df4-a27b-d8baabf815b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_019c5321-7f56-7d6e-9c61-0713617ff532" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_019c5321-7f56-7df4-a27b-d8baabf815b1" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_019c5321-7f56-7d6e-9c61-0713617ff532" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_019c5321-7f56-7db9-909e-c8ec5b582a94" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_019c5321-7f56-7df4-a27b-d8baabf815b1" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_019c5321-7f56-7db9-909e-c8ec5b582a94" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESSignificantComponentsofIncomeTaxProvisionDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#INCOMETAXESSignificantComponentsofIncomeTaxProvisionDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/INCOMETAXESSignificantComponentsofIncomeTaxProvisionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019c5321-7f56-7026-9c98-d317af84b7ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherTaxExpenseBenefit_019c5321-7f56-7d2b-b87f-10d91e2f7dd6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c5321-7f56-7026-9c98-d317af84b7ca" xlink:to="loc_us-gaap_OtherTaxExpenseBenefit_019c5321-7f56-7d2b-b87f-10d91e2f7dd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_IncomeTaxExpenseBenefitFromSubsidiaries_019c5321-7f56-7090-b493-1bd364e6a392" xlink:href="cswc-20260331.xsd#cswc_IncomeTaxExpenseBenefitFromSubsidiaries"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c5321-7f56-7026-9c98-d317af84b7ca" xlink:to="loc_cswc_IncomeTaxExpenseBenefitFromSubsidiaries_019c5321-7f56-7090-b493-1bd364e6a392" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExciseAndSalesTaxes_019c5321-7f56-7883-a994-428694746f15" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ExciseAndSalesTaxes"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c5321-7f56-7026-9c98-d317af84b7ca" xlink:to="loc_us-gaap_ExciseAndSalesTaxes_019c5321-7f56-7883-a994-428694746f15" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofFederalandStateIncomeTaxesPaidDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#INCOMETAXESScheduleofFederalandStateIncomeTaxesPaidDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/INCOMETAXESScheduleofFederalandStateIncomeTaxesPaidDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_019d9f42-4fb3-77f7-b836-492b0152a1c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxesPaidNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019d9f42-4fb3-7327-aab0-2cdbd99273a1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidFederalAfterRefundReceived"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019d9f42-4fb3-77f7-b836-492b0152a1c8" xlink:to="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019d9f42-4fb3-7327-aab0-2cdbd99273a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019d9f42-4fb3-7af4-aa51-20465d4fe78e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019d9f42-4fb3-77f7-b836-492b0152a1c8" xlink:to="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019d9f42-4fb3-7af4-aa51-20465d4fe78e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/EARNINGSPERSHAREDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#EARNINGSPERSHAREDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/EARNINGSPERSHAREDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToParentDiluted_019c5321-7f56-7779-a72a-5c39b2fa90de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAttributableToParentDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther_019c5321-7f56-7d4f-839c-7bfbda8d0c4e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAttributableToParentDiluted_019c5321-7f56-7779-a72a-5c39b2fa90de" xlink:to="loc_us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther_019c5321-7f56-7d4f-839c-7bfbda8d0c4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019c5321-7f56-7440-9f73-cc2d76e4e769" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAttributableToParentDiluted_019c5321-7f56-7779-a72a-5c39b2fa90de" xlink:to="loc_us-gaap_NetIncomeLoss_019c5321-7f56-7440-9f73-cc2d76e4e769" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019c5321-7f56-7ec3-93df-2f6bb1c1cc0d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019c5321-7f56-7179-9c96-cb22f3647d3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019c5321-7f56-7ec3-93df-2f6bb1c1cc0d" xlink:to="loc_us-gaap_NetIncomeLoss_019c5321-7f56-7179-9c96-cb22f3647d3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_019c5321-7f56-71ba-bafc-8268b726b8e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019c5321-7f56-7ec3-93df-2f6bb1c1cc0d" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_019c5321-7f56-71ba-bafc-8268b726b8e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019c5321-7f56-7b94-8314-a8f20a2bf4ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_019c5321-7f56-79a6-9304-6750036ae1ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019c5321-7f56-7b94-8314-a8f20a2bf4ef" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_019c5321-7f56-79a6-9304-6750036ae1ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019c5321-7f56-78a0-a51c-74207e4d3659" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019c5321-7f56-7b94-8314-a8f20a2bf4ef" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019c5321-7f56-78a0-a51c-74207e4d3659" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/RETIREMENTPLANSScheduleofChangesinProjectedBenefitObligationsDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#RETIREMENTPLANSScheduleofChangesinProjectedBenefitObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/RETIREMENTPLANSScheduleofChangesinProjectedBenefitObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_019c5321-7f56-76bc-ad0c-ae114be46963" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_019c5321-7f56-7420-9dc5-0c184b391b65" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_019c5321-7f56-76bc-ad0c-ae114be46963" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_019c5321-7f56-7420-9dc5-0c184b391b65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax_019c5321-7f56-7623-9fa4-86e96eddd2a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_019c5321-7f56-76bc-ad0c-ae114be46963" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax_019c5321-7f56-7623-9fa4-86e96eddd2a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019c5321-7f56-7e8c-bbdd-b36d8904abbd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_019c5321-7f56-7b3b-9d5d-51ad3cc22eb3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019c5321-7f56-7e8c-bbdd-b36d8904abbd" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_019c5321-7f56-7b3b-9d5d-51ad3cc22eb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_019c5321-7f56-7545-a841-e82647d82e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019c5321-7f56-7e8c-bbdd-b36d8904abbd" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_019c5321-7f56-7545-a841-e82647d82e4d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESScheduleofFutureMinimumPaymentsDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#COMMITMENTSANDCONTINGENCIESScheduleofFutureMinimumPaymentsDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESScheduleofFutureMinimumPaymentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019c5321-7f56-7dd8-80b7-c93113fc5522" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_019c5321-7f56-7903-ad81-59ec54e79b56" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019c5321-7f56-7dd8-80b7-c93113fc5522" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_019c5321-7f56-7903-ad81-59ec54e79b56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_019c5321-7f56-7174-8ece-616284edd2dd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019c5321-7f56-7dd8-80b7-c93113fc5522" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_019c5321-7f56-7174-8ece-616284edd2dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_019c5321-7f56-7405-acc4-5a98dff964dc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019c5321-7f56-7dd8-80b7-c93113fc5522" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_019c5321-7f56-7405-acc4-5a98dff964dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_019c5321-7f56-7afc-a6ac-eb62422a75fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019c5321-7f56-7dd8-80b7-c93113fc5522" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_019c5321-7f56-7afc-a6ac-eb62422a75fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_019c5321-7f56-7f3b-9161-10355ebcf6c1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019c5321-7f56-7dd8-80b7-c93113fc5522" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_019c5321-7f56-7f3b-9161-10355ebcf6c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_019d5322-d67a-7350-921f-e0d7fd102318" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019c5321-7f56-7dd8-80b7-c93113fc5522" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_019d5322-d67a-7350-921f-e0d7fd102318" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/SUMMARYOFPERSHAREINFORMATIONDetails" xlink:type="simple" xlink:href="cswc-20260331.xsd#SUMMARYOFPERSHAREINFORMATIONDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/SUMMARYOFPERSHAREINFORMATIONDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_019c5321-7f56-749f-9774-86a7d43acca6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_019c5321-7f56-749f-9774-86a7d43acca6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyAccretiveEffectOfShareIssuancesAndRepurchasesPerShare_019c5321-7f56-7d3d-b595-0cce6a6d283b" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyAccretiveEffectOfShareIssuancesAndRepurchasesPerShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_cswc_InvestmentCompanyAccretiveEffectOfShareIssuancesAndRepurchasesPerShare_019c5321-7f56-7d3d-b595-0cce6a6d283b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributionToShareholdersPerShare_019c5321-7f56-7158-aa6c-b554ebf8c4de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyDistributionToShareholdersPerShare"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_us-gaap_InvestmentCompanyDistributionToShareholdersPerShare_019c5321-7f56-7158-aa6c-b554ebf8c4de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanySpinOffCompensationPlanDistributionNetOfTaxPerShare_019c5321-7f56-743d-be33-ab59e96cb106" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanySpinOffCompensationPlanDistributionNetOfTaxPerShare"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_cswc_InvestmentCompanySpinOffCompensationPlanDistributionNetOfTaxPerShare_019c5321-7f56-743d-be33-ab59e96cb106" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyIssuanceOfSharesPerShare_019c5321-7f56-72b1-a7fb-c9ba7b9d3d72" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyIssuanceOfSharesPerShare"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_us-gaap_InvestmentCompanyIssuanceOfSharesPerShare_019c5321-7f56-72b1-a7fb-c9ba7b9d3d72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyCommonStockWithheldForPayrollTaxesUponVestingOfRestrictedStockPerShare_019c5321-7f56-7263-b253-28bbd6f3036c" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyCommonStockWithheldForPayrollTaxesUponVestingOfRestrictedStockPerShare"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_cswc_InvestmentCompanyCommonStockWithheldForPayrollTaxesUponVestingOfRestrictedStockPerShare_019c5321-7f56-7263-b253-28bbd6f3036c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyExerciseOfEmployeeStockOptionsPerShare_019c5321-7f56-722e-a91a-19f3d10832c7" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyExerciseOfEmployeeStockOptionsPerShare"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_cswc_InvestmentCompanyExerciseOfEmployeeStockOptionsPerShare_019c5321-7f56-722e-a91a-19f3d10832c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyShareBasedCompensationExpensePerShare_019e1959-2689-7c63-b2c8-03690b7e20a4" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyShareBasedCompensationExpensePerShare"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_cswc_InvestmentCompanyShareBasedCompensationExpensePerShare_019e1959-2689-7c63-b2c8-03690b7e20a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyChangeInRestorationPlanPerShare_019e1959-2689-7544-8198-124a360edd8e" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyChangeInRestorationPlanPerShare"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_cswc_InvestmentCompanyChangeInRestorationPlanPerShare_019e1959-2689-7544-8198-124a360edd8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyRepurchaseOfSharesPerShare_019e1959-2689-772e-b200-5b854041dd9a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyRepurchaseOfSharesPerShare"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_us-gaap_InvestmentCompanyRepurchaseOfSharesPerShare_019e1959-2689-772e-b200-5b854041dd9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyOtherAdjustmentsPerShare_019e1959-2689-7d5a-ad76-ef28ff974397" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyOtherAdjustmentsPerShare"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_019c5321-7f56-788e-911a-e51fc2f798ad" xlink:to="loc_cswc_InvestmentCompanyOtherAdjustmentsPerShare_019e1959-2689-7d5a-ad76-ef28ff974397" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_019c5321-7f56-7d8b-a44b-4f6dd180c07f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_019c5321-7f56-7d93-964d-f08264d0315a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_019c5321-7f56-7d8b-a44b-4f6dd180c07f" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_019c5321-7f56-7d93-964d-f08264d0315a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyRealizedGainLossOnInvestmentPerShare_019c5321-7f56-7087-b00d-c4b48328d2d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyRealizedGainLossOnInvestmentPerShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_019c5321-7f56-7d8b-a44b-4f6dd180c07f" xlink:to="loc_us-gaap_InvestmentCompanyRealizedGainLossOnInvestmentPerShare_019c5321-7f56-7087-b00d-c4b48328d2d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyExtinguishmentOfDebtGainLossPerShareNetOfTax_019c5321-7f56-7d4f-a0ed-17482113ae85" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyExtinguishmentOfDebtGainLossPerShareNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_019c5321-7f56-7d8b-a44b-4f6dd180c07f" xlink:to="loc_cswc_InvestmentCompanyExtinguishmentOfDebtGainLossPerShareNetOfTax_019c5321-7f56-7d4f-a0ed-17482113ae85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyNetUnrealizedDepreciationAppreciationOnInvestmentsNetOfTaxPerShare_019e195e-b53d-7ad4-aef3-621f1b138650" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyNetUnrealizedDepreciationAppreciationOnInvestmentsNetOfTaxPerShare"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_019c5321-7f56-7d8b-a44b-4f6dd180c07f" xlink:to="loc_cswc_InvestmentCompanyNetUnrealizedDepreciationAppreciationOnInvestmentsNetOfTaxPerShare_019e195e-b53d-7ad4-aef3-621f1b138650" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_019c5321-7f56-7093-9741-a2cf02fde50d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyInvestmentIncomeLossTaxesPerShare_019c5321-7f56-74c7-b4b2-3e42b800a95e" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyInvestmentIncomeLossTaxesPerShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_019c5321-7f56-7093-9741-a2cf02fde50d" xlink:to="loc_cswc_InvestmentCompanyInvestmentIncomeLossTaxesPerShare_019c5321-7f56-74c7-b4b2-3e42b800a95e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyInvestmentIncomeLossOperatingExpensesPerShare_019c5321-7f56-751a-a8bc-fdbeb414ec01" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyInvestmentIncomeLossOperatingExpensesPerShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_019c5321-7f56-7093-9741-a2cf02fde50d" xlink:to="loc_cswc_InvestmentCompanyInvestmentIncomeLossOperatingExpensesPerShare_019c5321-7f56-751a-a8bc-fdbeb414ec01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyInvestmentIncomeLossGrossPerShare_019c5321-7f56-709c-a987-a401eace95d3" xlink:href="cswc-20260331.xsd#cswc_InvestmentCompanyInvestmentIncomeLossGrossPerShare"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_019c5321-7f56-7093-9741-a2cf02fde50d" xlink:to="loc_cswc_InvestmentCompanyInvestmentIncomeLossGrossPerShare_019c5321-7f56-709c-a987-a401eace95d3" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
