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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:f7984806-928c-4319-9d3e-e2a20b3c12d2,g:1fdde3eb-9cb5-442b-9f14-b120d51f42d9-->
<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-20230930.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_Liabilities_2922ee90-fde1-481b-a900-fb129c9fea90" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_AccruedRestorationPlanLiability_bc53dcc4-0696-431e-9b0f-70b9d5642fd5" xlink:href="cswc-20230930.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_2922ee90-fde1-481b-a900-fb129c9fea90" xlink:to="loc_cswc_AccruedRestorationPlanLiability_bc53dcc4-0696-431e-9b0f-70b9d5642fd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxes_42a4b3e1-03a4-44df-8f2f-3ec10756dd1b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_2922ee90-fde1-481b-a900-fb129c9fea90" xlink:to="loc_us-gaap_AccruedIncomeTaxes_42a4b3e1-03a4-44df-8f2f-3ec10756dd1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_d7501287-1850-43fd-affa-e0a68e802b86" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_2922ee90-fde1-481b-a900-fb129c9fea90" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_d7501287-1850-43fd-affa-e0a68e802b86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_572c38c8-e174-477f-bf87-f3e5cecc83f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_2922ee90-fde1-481b-a900-fb129c9fea90" xlink:to="loc_us-gaap_LineOfCredit_572c38c8-e174-477f-bf87-f3e5cecc83f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebt_97e1e18f-cacb-4103-95bf-f778b4a41add" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_2922ee90-fde1-481b-a900-fb129c9fea90" xlink:to="loc_us-gaap_UnsecuredDebt_97e1e18f-cacb-4103-95bf-f778b4a41add" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MediumTermNotes_d9ed82d2-20a0-47ee-a7fa-020736589f0d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_2922ee90-fde1-481b-a900-fb129c9fea90" xlink:to="loc_us-gaap_MediumTermNotes_d9ed82d2-20a0-47ee-a7fa-020736589f0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_eda10196-5cd9-4544-87f5-1c97cdf9a246" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_2922ee90-fde1-481b-a900-fb129c9fea90" xlink:to="loc_us-gaap_OtherLiabilities_eda10196-5cd9-4544-87f5-1c97cdf9a246" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_6b79546e-f97f-41e5-af0a-8a861f81d416" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_ae794cae-2a1b-4d00-ac6c-495883487986" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6b79546e-f97f-41e5-af0a-8a861f81d416" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_ae794cae-2a1b-4d00-ac6c-495883487986" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_ad422801-e686-4346-9ad8-21b7136f5338" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6b79546e-f97f-41e5-af0a-8a861f81d416" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_ad422801-e686-4346-9ad8-21b7136f5338" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EscrowDeposit_9dca872a-5130-4d3e-90f4-9ef1bbe3d5a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6b79546e-f97f-41e5-af0a-8a861f81d416" xlink:to="loc_us-gaap_EscrowDeposit_9dca872a-5130-4d3e-90f4-9ef1bbe3d5a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_f2c84360-beaf-4309-af64-7416964d5dfd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6b79546e-f97f-41e5-af0a-8a861f81d416" xlink:to="loc_us-gaap_OtherAssets_f2c84360-beaf-4309-af64-7416964d5dfd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendAndInterestReceivable_95091f77-ae80-4b3a-ac20-0e2550a6e589" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6b79546e-f97f-41e5-af0a-8a861f81d416" xlink:to="loc_us-gaap_DividendAndInterestReceivable_95091f77-ae80-4b3a-ac20-0e2550a6e589" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_9079cba0-ca4f-4e7a-b93b-6160e6bdccfd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6b79546e-f97f-41e5-af0a-8a861f81d416" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_9079cba0-ca4f-4e7a-b93b-6160e6bdccfd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_c5d64773-f38c-4189-b3c0-8c8005bd6d5e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherReceivables"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b79546e-f97f-41e5-af0a-8a861f81d416" xlink:to="loc_us-gaap_OtherReceivables_c5d64773-f38c-4189-b3c0-8c8005bd6d5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReceivable_e0f54068-2327-4157-8d63-211c5e7d5b93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxReceivable"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b79546e-f97f-41e5-af0a-8a861f81d416" xlink:to="loc_us-gaap_IncomeTaxReceivable_e0f54068-2327-4157-8d63-211c5e7d5b93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_f0184c09-4a32-45c5-b27d-1b47b7053f0c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_6eff56c2-7767-49b7-ac85-0ac55d1605fe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f0184c09-4a32-45c5-b27d-1b47b7053f0c" xlink:to="loc_us-gaap_Liabilities_6eff56c2-7767-49b7-ac85-0ac55d1605fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_4e344a23-b18f-4812-9fd7-b28b4091809c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f0184c09-4a32-45c5-b27d-1b47b7053f0c" xlink:to="loc_us-gaap_StockholdersEquity_4e344a23-b18f-4812-9fd7-b28b4091809c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_9b35c09e-719d-4775-b370-d99e8bbcc5a6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f0184c09-4a32-45c5-b27d-1b47b7053f0c" xlink:to="loc_us-gaap_CommitmentsAndContingencies_9b35c09e-719d-4775-b370-d99e8bbcc5a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_ff2be7e4-5648-4327-b590-349891fb8eab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_06d080f2-daff-4a81-866c-c3f496212c03" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ff2be7e4-5648-4327-b590-349891fb8eab" xlink:to="loc_us-gaap_CommonStockValue_06d080f2-daff-4a81-866c-c3f496212c03" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonValue_08d6ab75-d2a3-4024-b39e-7be2e6399afb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockCommonValue"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ff2be7e4-5648-4327-b590-349891fb8eab" xlink:to="loc_us-gaap_TreasuryStockCommonValue_08d6ab75-d2a3-4024-b39e-7be2e6399afb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_0abc6eca-f69a-4a4d-8c9b-3b29ba4d3ea4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ff2be7e4-5648-4327-b590-349891fb8eab" xlink:to="loc_us-gaap_AdditionalPaidInCapital_0abc6eca-f69a-4a4d-8c9b-3b29ba4d3ea4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5dde9460-8621-48fb-989f-7f337c73d211" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ff2be7e4-5648-4327-b590-349891fb8eab" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5dde9460-8621-48fb-989f-7f337c73d211" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="cswc-20230930.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_842f3d54-4d41-48fe-b2ac-494b7ccca1cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_40b96343-4b2d-4565-b160-5eb4f8530be7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_842f3d54-4d41-48fe-b2ac-494b7ccca1cb" xlink:to="loc_us-gaap_NetInvestmentIncome_40b96343-4b2d-4565-b160-5eb4f8530be7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit_326fc7cb-fd82-4b38-b204-086952e32f26" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_842f3d54-4d41-48fe-b2ac-494b7ccca1cb" xlink:to="loc_us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit_326fc7cb-fd82-4b38-b204-086952e32f26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_4e58deba-2a80-44f7-99b6-5f9722ad07b8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncome_86c03dac-9cde-4c22-b452-9a1232760d7f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4e58deba-2a80-44f7-99b6-5f9722ad07b8" xlink:to="loc_us-gaap_OtherIncome_86c03dac-9cde-4c22-b452-9a1232760d7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeeIncome_96660f69-adf2-47e0-b87b-d914837dc920" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4e58deba-2a80-44f7-99b6-5f9722ad07b8" xlink:to="loc_us-gaap_FeeIncome_96660f69-adf2-47e0-b87b-d914837dc920" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInKind_26d4366f-8aae-4a2f-98af-422728e1f87c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4e58deba-2a80-44f7-99b6-5f9722ad07b8" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInKind_26d4366f-8aae-4a2f-98af-422728e1f87c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInCash_d71b1d5e-b193-4935-9428-05aa813117ef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4e58deba-2a80-44f7-99b6-5f9722ad07b8" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInCash_d71b1d5e-b193-4935-9428-05aa813117ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendIncomeOperatingPaidInCash_78eae294-c652-45c4-bd12-569b0b43b798" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4e58deba-2a80-44f7-99b6-5f9722ad07b8" xlink:to="loc_us-gaap_DividendIncomeOperatingPaidInCash_78eae294-c652-45c4-bd12-569b0b43b798" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_5d9d3adf-91eb-41c8-a580-0389b7b8e570" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_c3beab8e-347a-40cf-8270-fe0b118297b8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_5d9d3adf-91eb-41c8-a580-0389b7b8e570" xlink:to="loc_us-gaap_InterestExpense_c3beab8e-347a-40cf-8270-fe0b118297b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_c043ead3-5620-4c59-ae24-7c6570e89dad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_5d9d3adf-91eb-41c8-a580-0389b7b8e570" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_c043ead3-5620-4c59-ae24-7c6570e89dad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_b678e6e7-4540-4c8a-b19f-8d496aaf0fdd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_5d9d3adf-91eb-41c8-a580-0389b7b8e570" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_b678e6e7-4540-4c8a-b19f-8d496aaf0fdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_d38d4def-0554-46cd-bb0d-5209eacc9f4b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_5d9d3adf-91eb-41c8-a580-0389b7b8e570" xlink:to="loc_us-gaap_ProfessionalFees_d38d4def-0554-46cd-bb0d-5209eacc9f4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CompensationExpenseExcludingCostOfGoodAndServiceSold_97a7d0b7-2863-41f5-9a0c-de90b141a3bf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_5d9d3adf-91eb-41c8-a580-0389b7b8e570" xlink:to="loc_us-gaap_CompensationExpenseExcludingCostOfGoodAndServiceSold_97a7d0b7-2863-41f5-9a0c-de90b141a3bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_52c02d9b-ef62-4eda-ac76-bd8dfe1145b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetInvestmentIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_818e9bf0-3828-496b-a778-8e6783851e5f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_52c02d9b-ef62-4eda-ac76-bd8dfe1145b2" xlink:to="loc_us-gaap_GrossInvestmentIncomeOperating_818e9bf0-3828-496b-a778-8e6783851e5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_15f333b8-ce13-40f7-b1b6-dce94055b9cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_52c02d9b-ef62-4eda-ac76-bd8dfe1145b2" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_15f333b8-ce13-40f7-b1b6-dce94055b9cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_58e53635-02d1-4fad-80d1-495554514304" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_3760a7ea-d541-4f3b-8067-e7de0a2a579a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_58e53635-02d1-4fad-80d1-495554514304" xlink:to="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_3760a7ea-d541-4f3b-8067-e7de0a2a579a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_7a78a321-d4f1-44a4-a0d1-7c55e035429a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_58e53635-02d1-4fad-80d1-495554514304" xlink:to="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_7a78a321-d4f1-44a4-a0d1-7c55e035429a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_a9c4d3c0-4b38-4342-9918-3e9661e9fe26" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_58e53635-02d1-4fad-80d1-495554514304" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_a9c4d3c0-4b38-4342-9918-3e9661e9fe26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_4f89d5b8-b46f-410e-921e-1fec9a9a987f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RealizedAndUnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_4688ba9a-0533-416c-8813-ab62eb574b0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4f89d5b8-b46f-410e-921e-1fec9a9a987f" xlink:to="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_4688ba9a-0533-416c-8813-ab62eb574b0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_ee38335e-96d2-4cdc-8a5c-f8ae336da8d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4f89d5b8-b46f-410e-921e-1fec9a9a987f" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_ee38335e-96d2-4cdc-8a5c-f8ae336da8d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit_e04ef81b-70dc-4446-8b42-c625f2929919" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentIncomeOperatingFederalIncomeExciseAndOtherTaxes_769ef7bf-b7f0-4d71-95b3-2fc6e63d8cfa" xlink:href="cswc-20230930.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_e04ef81b-70dc-4446-8b42-c625f2929919" xlink:to="loc_cswc_InvestmentIncomeOperatingFederalIncomeExciseAndOtherTaxes_769ef7bf-b7f0-4d71-95b3-2fc6e63d8cfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentIncomeOperatingDeferredTaxes_4cd47e5f-0ff7-41e1-a28e-8b5c439a0ac8" xlink:href="cswc-20230930.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_e04ef81b-70dc-4446-8b42-c625f2929919" xlink:to="loc_cswc_InvestmentIncomeOperatingDeferredTaxes_4cd47e5f-0ff7-41e1-a28e-8b5c439a0ac8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax_e788774a-9da3-4b0e-9ff9-fbff32e30f1d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_7624f429-161d-4a3c-ae3d-1533023eca07" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e788774a-9da3-4b0e-9ff9-fbff32e30f1d" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_7624f429-161d-4a3c-ae3d-1533023eca07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_02e26e0c-81fe-4732-9897-6608f156afe6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e788774a-9da3-4b0e-9ff9-fbff32e30f1d" xlink:to="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_02e26e0c-81fe-4732-9897-6608f156afe6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingAfterTax_193bad3b-da24-4bf0-a745-1b4bbbbf1699" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_70ea8fa4-5925-4159-8a5e-8932b2b16786" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_193bad3b-da24-4bf0-a745-1b4bbbbf1699" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_70ea8fa4-5925-4159-8a5e-8932b2b16786" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_f9d7721a-d2e7-443b-8eb2-8c591ce7b27b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_193bad3b-da24-4bf0-a745-1b4bbbbf1699" xlink:to="loc_us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_f9d7721a-d2e7-443b-8eb2-8c591ce7b27b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="cswc-20230930.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_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_45ce6cc2-ea2d-406f-a816-f3fd69bd33da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4590b1d4-8bd3-46d9-93be-d00c078eb4f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_45ce6cc2-ea2d-406f-a816-f3fd69bd33da" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4590b1d4-8bd3-46d9-93be-d00c078eb4f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7b14bffe-1b9b-424c-8730-386c576cc987" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_45ce6cc2-ea2d-406f-a816-f3fd69bd33da" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7b14bffe-1b9b-424c-8730-386c576cc987" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a772113e-72b4-406b-9420-1ed369da2fdb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_45ce6cc2-ea2d-406f-a816-f3fd69bd33da" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a772113e-72b4-406b-9420-1ed369da2fdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_2f9fc36a-773d-4a62-a63b-5251efa1004a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_ShareBasedCompensation_2f9fc36a-773d-4a62-a63b-5251efa1004a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_AccretionOfOriginalIssueDiscounts_ff23be64-653c-4eb3-aea7-fd3c28357a18" xlink:href="cswc-20230930.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_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_cswc_AccretionOfOriginalIssueDiscounts_ff23be64-653c-4eb3-aea7-fd3c28357a18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_8ecb1bc7-e3a8-4b4a-a0a6-5f22c625b2c8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_8ecb1bc7-e3a8-4b4a-a0a6-5f22c625b2c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_PaymentInKindInterestAccrued_cfd4482e-f57b-41f9-b026-629af888d53a" xlink:href="cswc-20230930.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_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_cswc_PaymentInKindInterestAccrued_cfd4482e-f57b-41f9-b026-629af888d53a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_8b366e83-05a3-469d-b074-6ddc13e0fc58" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_8b366e83-05a3-469d-b074-6ddc13e0fc58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_e72b1e08-b314-43d5-8d13-4cad01a72737" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_e72b1e08-b314-43d5-8d13-4cad01a72737" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherReceivables_102724d3-995e-482d-9cfb-5f3e364edef5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherReceivables_102724d3-995e-482d-9cfb-5f3e364edef5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnInvestments_9cff3d21-d92c-4f1c-ac8a-95f89eea72b4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_UnrealizedGainLossOnInvestments_9cff3d21-d92c-4f1c-ac8a-95f89eea72b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_1ef0dfd1-24e9-44e7-bbf4-52ce206b0fc7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_1ef0dfd1-24e9-44e7-bbf4-52ce206b0fc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_2ca62fe9-5e02-4ff8-9a57-98e7d0dd97d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_2ca62fe9-5e02-4ff8-9a57-98e7d0dd97d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_b38bc526-ed33-4f03-9db3-3525f46ba121" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_b38bc526-ed33-4f03-9db3-3525f46ba121" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDepositOtherAssets_ac927afa-993e-4da5-a806-413cc2a0fda1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInDepositOtherAssets"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_IncreaseDecreaseInDepositOtherAssets_ac927afa-993e-4da5-a806-413cc2a0fda1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_ProceedsFromDispositionOfInvestmentDebtSecuritiesOperatingActivity_d67996e2-632c-4268-9a8c-2265fd87eeae" xlink:href="cswc-20230930.xsd#cswc_ProceedsFromDispositionOfInvestmentDebtSecuritiesOperatingActivity"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_cswc_ProceedsFromDispositionOfInvestmentDebtSecuritiesOperatingActivity_d67996e2-632c-4268-9a8c-2265fd87eeae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_12836417-e1dd-4915-91d4-acb565913084" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_NetIncomeLoss_12836417-e1dd-4915-91d4-acb565913084" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_5271c092-b0c2-4c16-a08e-7b07c7bf28d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_5271c092-b0c2-4c16-a08e-7b07c7bf28d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_8c185437-1dfb-42f9-b46a-baf3e46a1462" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesReceivable"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_8c185437-1dfb-42f9-b46a-baf3e46a1462" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_ProceedsFromDispositionOfInvestmentEquitySecuritiesOperatingActivity_bd26bb90-1d0a-45c7-b3d4-2a403c331d3e" xlink:href="cswc-20230930.xsd#cswc_ProceedsFromDispositionOfInvestmentEquitySecuritiesOperatingActivity"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_cswc_ProceedsFromDispositionOfInvestmentEquitySecuritiesOperatingActivity_bd26bb90-1d0a-45c7-b3d4-2a403c331d3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_fe9d15d2-4377-4edb-a53a-b7c97f2a075b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="18" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_fe9d15d2-4377-4edb-a53a-b7c97f2a075b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionExpenseReversalOfExpenseNoncash_caab1ecf-51e1-4025-8942-2b7069f3ca63" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionExpenseReversalOfExpenseNoncash"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_PensionExpenseReversalOfExpenseNoncash_caab1ecf-51e1-4025-8942-2b7069f3ca63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaidInKindInterest_e1fe3ac1-74b5-4c8e-981a-2257b2e50a45" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaidInKindInterest"/>
    <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_PaidInKindInterest_e1fe3ac1-74b5-4c8e-981a-2257b2e50a45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedInvestmentGainsLosses_5a0c04ca-ceaa-475d-aaf4-93a8d76d3881" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RealizedInvestmentGainsLosses"/>
    <link:calculationArc order="21" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_RealizedInvestmentGainsLosses_5a0c04ca-ceaa-475d-aaf4-93a8d76d3881" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestAndDividendsReceivable_ad961609-ea13-48b4-a14d-1603e13f6162" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInInterestAndDividendsReceivable"/>
    <link:calculationArc order="22" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3d893a0d-1bdb-4e29-8926-714a96b7cc4b" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestAndDividendsReceivable_ad961609-ea13-48b4-a14d-1603e13f6162" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_51494daf-931a-405c-8e19-7c1dd06334e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_a40023c5-94af-434a-b497-939ad67597c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_51494daf-931a-405c-8e19-7c1dd06334e3" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_a40023c5-94af-434a-b497-939ad67597c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_995943ee-c87a-494c-a933-abc1495d0dac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_51494daf-931a-405c-8e19-7c1dd06334e3" xlink:to="loc_us-gaap_PaymentsOfDividends_995943ee-c87a-494c-a933-abc1495d0dac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_aaf63452-12ef-4163-a87c-d9aba30ba1bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_51494daf-931a-405c-8e19-7c1dd06334e3" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_aaf63452-12ef-4163-a87c-d9aba30ba1bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfUnsecuredDebt_deafd9e0-1fc9-4754-bbce-19f0fc08c2a3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfUnsecuredDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_51494daf-931a-405c-8e19-7c1dd06334e3" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfUnsecuredDebt_deafd9e0-1fc9-4754-bbce-19f0fc08c2a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_dd1c20b0-2952-46d6-b7aa-84945a087a91" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_51494daf-931a-405c-8e19-7c1dd06334e3" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_dd1c20b0-2952-46d6-b7aa-84945a087a91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_a29c9d4a-6b19-4ca9-b221-2638b75df9fe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfLongTermLinesOfCredit"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_51494daf-931a-405c-8e19-7c1dd06334e3" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_a29c9d4a-6b19-4ca9-b221-2638b75df9fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfMediumTermNotes_135940ab-a27f-4f35-b422-d92010f9f3c0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfMediumTermNotes"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_51494daf-931a-405c-8e19-7c1dd06334e3" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfMediumTermNotes_135940ab-a27f-4f35-b422-d92010f9f3c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_17a124a3-634d-446b-830a-b70a5b752c91" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_51494daf-931a-405c-8e19-7c1dd06334e3" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_17a124a3-634d-446b-830a-b70a5b752c91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_00320298-8baa-4536-80be-7c8968b8b73c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_4aadf309-e2c8-4f45-bc0c-4b90678046fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_00320298-8baa-4536-80be-7c8968b8b73c" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_4aadf309-e2c8-4f45-bc0c-4b90678046fd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSScheduleInvestmentPortfoliobyLevelDetails" xlink:type="simple" xlink:href="cswc-20230930.xsd#FAIRVALUEMEASUREMENTSScheduleInvestmentPortfoliobyLevelDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/FAIRVALUEMEASUREMENTSScheduleInvestmentPortfoliobyLevelDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_5eb75b5f-3d71-442c-94f0-39608a7cb02a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AlternativeInvestment_ee182b06-a660-4a32-8483-088e81a4c441" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AlternativeInvestment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentsFairValueDisclosure_5eb75b5f-3d71-442c-94f0-39608a7cb02a" xlink:to="loc_us-gaap_AlternativeInvestment_ee182b06-a660-4a32-8483-088e81a4c441" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_a041aae7-e092-42b9-a424-7e2eb285ba55" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_InvestmentsFairValueDisclosure_5eb75b5f-3d71-442c-94f0-39608a7cb02a" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_a041aae7-e092-42b9-a424-7e2eb285ba55" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/BORROWINGSScheduleofBorrowingsOutstandingDetails" xlink:type="simple" xlink:href="cswc-20230930.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_bba82a8e-c9a8-4ad6-ad18-ee8d7c771149" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_9e90e01a-c727-42c6-8def-56981dce63c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_bba82a8e-c9a8-4ad6-ad18-ee8d7c771149" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_9e90e01a-c727-42c6-8def-56981dce63c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_7292e171-f35c-4e13-a516-549477578392" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_bba82a8e-c9a8-4ad6-ad18-ee8d7c771149" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_7292e171-f35c-4e13-a516-549477578392" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESNetAssetsResultingFromOperationsToEstimatedRICTaxableIncomeDetails" xlink:type="simple" xlink:href="cswc-20230930.xsd#INCOMETAXESNetAssetsResultingFromOperationsToEstimatedRICTaxableIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/INCOMETAXESNetAssetsResultingFromOperationsToEstimatedRICTaxableIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationOtherReconcilingItemsIncreaseDecreaseInTaxableIncome_661dc65e-9db9-4a8f-9517-c2a91d2e1cd5" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationOtherReconcilingItemsIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationOtherReconcilingItemsIncreaseDecreaseInTaxableIncome_661dc65e-9db9-4a8f-9517-c2a91d2e1cd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleCompensationIncreaseDecreaseInTaxableIncome_6502d484-00b0-4aef-a14b-7c5d77dfe963" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleCompensationIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleCompensationIncreaseDecreaseInTaxableIncome_6502d484-00b0-4aef-a14b-7c5d77dfe963" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationLossOnExtinguishmentOfDebtIncreaseDecreaseInTaxableIncome_31544b6a-8b34-4763-becc-421071b65dda" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationLossOnExtinguishmentOfDebtIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationLossOnExtinguishmentOfDebtIncreaseDecreaseInTaxableIncome_31544b6a-8b34-4763-becc-421071b65dda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationCompensationRelatedDifferencesIncreaseDecreaseInTaxableIncome_c074c2b0-1a5d-4f43-b902-9f6529633781" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationCompensationRelatedDifferencesIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationCompensationRelatedDifferencesIncreaseDecreaseInTaxableIncome_c074c2b0-1a5d-4f43-b902-9f6529633781" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleTaxExpenseIncreaseDecreaseInTaxableIncome_9a0cbe84-52ee-4dec-a3f2-536b374978c0" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleTaxExpenseIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationNonDeductibleTaxExpenseIncreaseDecreaseInTaxableIncome_9a0cbe84-52ee-4dec-a3f2-536b374978c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationIncomeExpenseRecognizedForPassThroughEntitiesIncreaseDecreaseInTaxableIncome_1d88f3a9-be50-4fc6-8e34-d30ac3980743" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationIncomeExpenseRecognizedForPassThroughEntitiesIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationIncomeExpenseRecognizedForPassThroughEntitiesIncreaseDecreaseInTaxableIncome_1d88f3a9-be50-4fc6-8e34-d30ac3980743" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationNetUnrealizedDepreciationAppreciationOnInvestmentsIncreaseDecreaseInTaxableIncome_c73633ce-9ba4-4d8b-bd36-d0ba2b3de2ad" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationNetUnrealizedDepreciationAppreciationOnInvestmentsIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationNetUnrealizedDepreciationAppreciationOnInvestmentsIncreaseDecreaseInTaxableIncome_c73633ce-9ba4-4d8b-bd36-d0ba2b3de2ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationCapitalLossCarryoverIncreaseDecreaseInTaxableIncome_6af74bea-8222-41c5-8a81-5494a4bbae1b" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationCapitalLossCarryoverIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationCapitalLossCarryoverIncreaseDecreaseInTaxableIncome_6af74bea-8222-41c5-8a81-5494a4bbae1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9bf7dec5-3daa-4341-bde6-af62d531c559" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_us-gaap_NetIncomeLoss_9bf7dec5-3daa-4341-bde6-af62d531c559" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationDividendIncomeSubsidiaryIncreaseDecreaseInTaxableIncome_657f036d-a8df-4ddf-9a5d-47d73605fe13" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationDividendIncomeSubsidiaryIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationDividendIncomeSubsidiaryIncreaseDecreaseInTaxableIncome_657f036d-a8df-4ddf-9a5d-47d73605fe13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationNetOperatingIncomeSubsidiaryIncreaseDecreaseInTaxableIncome_98d9efeb-53be-4872-9246-133c02c2e21d" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationNetOperatingIncomeSubsidiaryIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationNetOperatingIncomeSubsidiaryIncreaseDecreaseInTaxableIncome_98d9efeb-53be-4872-9246-133c02c2e21d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationGainLossRecognizedOnDispositionsIncreaseDecreaseInTaxableIncome_60d834e7-8adb-414f-8f72-cbbde0407032" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationGainLossRecognizedOnDispositionsIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationGainLossRecognizedOnDispositionsIncreaseDecreaseInTaxableIncome_60d834e7-8adb-414f-8f72-cbbde0407032" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyTaxBasisReconciliationInterestOnNonAccrualLoansIncreaseDecreaseInTaxableIncome_31cc6b79-09c7-45cd-b9d6-68c87419c2db" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyTaxBasisReconciliationInterestOnNonAccrualLoansIncreaseDecreaseInTaxableIncome"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cswc_InvestmentCompanyDistributableEarningsLossBeforeDeductions_b73a4931-17c6-4e6f-8bca-9753db776fb5" xlink:to="loc_cswc_InvestmentCompanyTaxBasisReconciliationInterestOnNonAccrualLoansIncreaseDecreaseInTaxableIncome_31cc6b79-09c7-45cd-b9d6-68c87419c2db" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/INCOMETAXESDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="simple" xlink:href="cswc-20230930.xsd#INCOMETAXESDeferredTaxAssetsAndLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/INCOMETAXESDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_e2f1f820-2cfd-47d6-9ae5-d807d319d90f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_8a52c1ad-5496-4647-812f-da73dfa0d72c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e2f1f820-2cfd-47d6-9ae5-d807d319d90f" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_8a52c1ad-5496-4647-812f-da73dfa0d72c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_d210a902-1f0c-4461-80fb-8809afdd9df7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_e2f1f820-2cfd-47d6-9ae5-d807d319d90f" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_d210a902-1f0c-4461-80fb-8809afdd9df7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_eb12b504-e5d1-4dca-af00-96987030218c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_48ade153-b45e-4ae0-8ef7-cd789d4c6846" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_eb12b504-e5d1-4dca-af00-96987030218c" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_48ade153-b45e-4ae0-8ef7-cd789d4c6846" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetInterestCarryforward_6249c956-c191-49a4-8038-9305a57ff10a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_eb12b504-e5d1-4dca-af00-96987030218c" xlink:to="loc_us-gaap_DeferredTaxAssetInterestCarryforward_6249c956-c191-49a4-8038-9305a57ff10a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_8c99df49-b6dc-476e-be32-c1b02e9875bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesInvestments_ee368413-dba0-407e-8f31-6e888e0c0a51" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8c99df49-b6dc-476e-be32-c1b02e9875bc" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesInvestments_ee368413-dba0-407e-8f31-6e888e0c0a51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_DeferredTaxLiabilitiesBasisDifferencesInPortfolioInvestmentsNet_9f2e16a5-0df3-4145-803e-e0208892ccd9" xlink:href="cswc-20230930.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_8c99df49-b6dc-476e-be32-c1b02e9875bc" xlink:to="loc_cswc_DeferredTaxLiabilitiesBasisDifferencesInPortfolioInvestmentsNet_9f2e16a5-0df3-4145-803e-e0208892ccd9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESFutureMinimumPaymentsDetails" xlink:type="simple" xlink:href="cswc-20230930.xsd#COMMITMENTSANDCONTINGENCIESFutureMinimumPaymentsDetails"/>
  <link:calculationLink xlink:role="http://www.capitalsouthwest.com/role/COMMITMENTSANDCONTINGENCIESFutureMinimumPaymentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf497b27-6a6d-4037-9d2a-ec3edbfe7e52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_f8979a96-37e6-44d6-8d7e-62254a8a27b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_cf497b27-6a6d-4037-9d2a-ec3edbfe7e52" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_f8979a96-37e6-44d6-8d7e-62254a8a27b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_e92b8295-6055-4ec4-981d-3535c13d2dfd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf497b27-6a6d-4037-9d2a-ec3edbfe7e52" xlink:to="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_e92b8295-6055-4ec4-981d-3535c13d2dfd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_57637551-982c-4da6-ad02-e3613f3b97e7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_cf497b27-6a6d-4037-9d2a-ec3edbfe7e52" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_57637551-982c-4da6-ad02-e3613f3b97e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_7e5e8942-f8b5-46ee-b17c-f0c7437d8a2c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf497b27-6a6d-4037-9d2a-ec3edbfe7e52" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_7e5e8942-f8b5-46ee-b17c-f0c7437d8a2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_d70dd314-cafb-4257-ac5a-b651b00564a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf497b27-6a6d-4037-9d2a-ec3edbfe7e52" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_d70dd314-cafb-4257-ac5a-b651b00564a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_e1ddb935-ef17-4925-8b42-0f2bc56bdb03" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cf497b27-6a6d-4037-9d2a-ec3edbfe7e52" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_e1ddb935-ef17-4925-8b42-0f2bc56bdb03" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.capitalsouthwest.com/role/SUMMARYOFPERSHAREINFORMATIONDetails" xlink:type="simple" xlink:href="cswc-20230930.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_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_e5918bdb-a087-4662-8cf4-fcd2cf8848e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyNetUnrealizedDepreciationAppreciationOnInvestmentsNetOfTaxPerShare_d07ab979-108c-407c-a69d-ce62c5313601" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyNetUnrealizedDepreciationAppreciationOnInvestmentsNetOfTaxPerShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_e5918bdb-a087-4662-8cf4-fcd2cf8848e5" xlink:to="loc_cswc_InvestmentCompanyNetUnrealizedDepreciationAppreciationOnInvestmentsNetOfTaxPerShare_d07ab979-108c-407c-a69d-ce62c5313601" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_e0ced7a4-7a3f-41f9-a279-4e6f51efcaa3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_e5918bdb-a087-4662-8cf4-fcd2cf8848e5" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_e0ced7a4-7a3f-41f9-a279-4e6f51efcaa3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyRealizedGainLossOnInvestmentPerShare_ecc6416f-c562-4750-ae0c-e997f23d519c" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyRealizedGainLossOnInvestmentPerShare"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_e5918bdb-a087-4662-8cf4-fcd2cf8848e5" xlink:to="loc_cswc_InvestmentCompanyRealizedGainLossOnInvestmentPerShare_ecc6416f-c562-4750-ae0c-e997f23d519c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyExtinguishmentOfDebtGainLossPerShareNetOfTax_cf760d1c-deee-472e-aae8-787fd736cebf" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyExtinguishmentOfDebtGainLossPerShareNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_e5918bdb-a087-4662-8cf4-fcd2cf8848e5" xlink:to="loc_cswc_InvestmentCompanyExtinguishmentOfDebtGainLossPerShareNetOfTax_cf760d1c-deee-472e-aae8-787fd736cebf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_6d3ff6d2-3b3f-464b-85fb-73bd71c2c918" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyAccretiveEffectOfShareIssuancesAndRepurchasesPerShare_ec5c9a4f-2a3f-48cf-bf4e-7bb99c483003" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyAccretiveEffectOfShareIssuancesAndRepurchasesPerShare"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_6d3ff6d2-3b3f-464b-85fb-73bd71c2c918" xlink:to="loc_cswc_InvestmentCompanyAccretiveEffectOfShareIssuancesAndRepurchasesPerShare_ec5c9a4f-2a3f-48cf-bf4e-7bb99c483003" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyShareBasedCompensationExpensePerShare_48f1166e-a9d1-4ae3-b700-cc8279e2877d" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyShareBasedCompensationExpensePerShare"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_6d3ff6d2-3b3f-464b-85fb-73bd71c2c918" xlink:to="loc_cswc_InvestmentCompanyShareBasedCompensationExpensePerShare_48f1166e-a9d1-4ae3-b700-cc8279e2877d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_9634e52b-1d1c-4e1e-82fa-d64c9aaa7d39" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_6d3ff6d2-3b3f-464b-85fb-73bd71c2c918" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_9634e52b-1d1c-4e1e-82fa-d64c9aaa7d39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyCommonStockWithheldForPayrollTaxesUponVestingOfRestrictedStockPerShare_16f8da93-7b68-481e-8811-7fbfc7d81784" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyCommonStockWithheldForPayrollTaxesUponVestingOfRestrictedStockPerShare"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_6d3ff6d2-3b3f-464b-85fb-73bd71c2c918" xlink:to="loc_cswc_InvestmentCompanyCommonStockWithheldForPayrollTaxesUponVestingOfRestrictedStockPerShare_16f8da93-7b68-481e-8811-7fbfc7d81784" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributionToShareholdersPerShare_7e73641d-edbf-4e2b-ac5e-07b7c4fa7916" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentCompanyDistributionToShareholdersPerShare"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_6d3ff6d2-3b3f-464b-85fb-73bd71c2c918" xlink:to="loc_us-gaap_InvestmentCompanyDistributionToShareholdersPerShare_7e73641d-edbf-4e2b-ac5e-07b7c4fa7916" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyIssuanceOfSharesPerShare_4ef89752-fcd3-4ce6-a47f-f8e9fcbf97fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentCompanyIssuanceOfSharesPerShare"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_6d3ff6d2-3b3f-464b-85fb-73bd71c2c918" xlink:to="loc_us-gaap_InvestmentCompanyIssuanceOfSharesPerShare_4ef89752-fcd3-4ce6-a47f-f8e9fcbf97fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyOtherAdjustmentsPerShare_32ac0087-7547-4896-9d31-8a4e0d89efbb" xlink:href="cswc-20230930.xsd#cswc_InvestmentCompanyOtherAdjustmentsPerShare"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyNetAssetValuePerSharePeriodIncreaseDecrease_6d3ff6d2-3b3f-464b-85fb-73bd71c2c918" xlink:to="loc_cswc_InvestmentCompanyOtherAdjustmentsPerShare_32ac0087-7547-4896-9d31-8a4e0d89efbb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_206bad62-6212-4f8a-a825-39542df9e605" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyInvestmentIncomeLossTaxesPerShare_0932e897-e0a9-4006-a96c-6db718fb7e28" xlink:href="cswc-20230930.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_206bad62-6212-4f8a-a825-39542df9e605" xlink:to="loc_cswc_InvestmentCompanyInvestmentIncomeLossTaxesPerShare_0932e897-e0a9-4006-a96c-6db718fb7e28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyInvestmentIncomeLossOperatingExpensesPerShare_896eb5e9-b60c-4041-bf81-9e3006b06add" xlink:href="cswc-20230930.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_206bad62-6212-4f8a-a825-39542df9e605" xlink:to="loc_cswc_InvestmentCompanyInvestmentIncomeLossOperatingExpensesPerShare_896eb5e9-b60c-4041-bf81-9e3006b06add" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cswc_InvestmentCompanyInvestmentIncomeLossGrossPerShare_12f64b40-c75e-45f7-bb7c-41360118fc88" xlink:href="cswc-20230930.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_206bad62-6212-4f8a-a825-39542df9e605" xlink:to="loc_cswc_InvestmentCompanyInvestmentIncomeLossGrossPerShare_12f64b40-c75e-45f7-bb7c-41360118fc88" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
