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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:cd4b57dd-c4fa-4a9a-9324-9f5028e1b1a1,g:e10149b7-ba9c-43a8-b579-5cf23efdee9f-->
<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://capitalbankmd.com/role/ConsolidatedBalanceSheetsunaudited" xlink:type="simple" xlink:href="cbnk-20230331.xsd#ConsolidatedBalanceSheetsunaudited"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/ConsolidatedBalanceSheetsunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_29e27ca8-1621-4d83-99f6-70453028741c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_f2905287-8b65-43d3-80df-fa401cc92c8b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Deposits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_29e27ca8-1621-4d83-99f6-70453028741c" xlink:to="loc_us-gaap_Deposits_f2905287-8b65-43d3-80df-fa401cc92c8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesLongTerm_570b2e97-4023-4e50-aca3-687630444936" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FederalHomeLoanBankAdvancesLongTerm"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_29e27ca8-1621-4d83-99f6-70453028741c" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesLongTerm_570b2e97-4023-4e50-aca3-687630444936" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherBorrowings_b24aac5c-8877-4c98-b2cf-543ce6ca82ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherBorrowings"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_29e27ca8-1621-4d83-99f6-70453028741c" xlink:to="loc_us-gaap_OtherBorrowings_b24aac5c-8877-4c98-b2cf-543ce6ca82ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_e6918c43-a07a-471e-b5d9-0c64e7c7667b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_29e27ca8-1621-4d83-99f6-70453028741c" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_e6918c43-a07a-471e-b5d9-0c64e7c7667b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_55823f7c-dfbe-4754-bc6d-fef32d76e15b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_29e27ca8-1621-4d83-99f6-70453028741c" xlink:to="loc_us-gaap_OtherLiabilities_55823f7c-dfbe-4754-bc6d-fef32d76e15b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_9e822519-5c2b-4e6b-bb92-b7d6856db4e9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_a5cc1d03-7609-4295-b0d5-d0da275e4880" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_9e822519-5c2b-4e6b-bb92-b7d6856db4e9" xlink:to="loc_us-gaap_StockholdersEquity_a5cc1d03-7609-4295-b0d5-d0da275e4880" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_1e4f8349-a295-46d9-8f80-2a46687bd460" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_9e822519-5c2b-4e6b-bb92-b7d6856db4e9" xlink:to="loc_us-gaap_Liabilities_1e4f8349-a295-46d9-8f80-2a46687bd460" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_c68f92fa-b71b-403f-ad33-b72a2356c022" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsAndFederalFundsSold"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalFundsSold_018e2231-add6-44d1-8c1b-ee59f31eda1e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FederalFundsSold"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_c68f92fa-b71b-403f-ad33-b72a2356c022" xlink:to="loc_us-gaap_FederalFundsSold_018e2231-add6-44d1-8c1b-ee59f31eda1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_b4e1c2b5-750b-4e5f-9e4c-20ed8a0864ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestBearingDepositsInBanks"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_c68f92fa-b71b-403f-ad33-b72a2356c022" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_b4e1c2b5-750b-4e5f-9e4c-20ed8a0864ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndDueFromBanks_dad8dc57-2934-418e-a52f-18ddc187a868" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndDueFromBanks"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_c68f92fa-b71b-403f-ad33-b72a2356c022" xlink:to="loc_us-gaap_CashAndDueFromBanks_dad8dc57-2934-418e-a52f-18ddc187a868" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_2dcbf1e7-9898-49ba-80b7-c115334f6a81" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_0c067564-de77-47d7-a945-95cd3fb49109" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_2dcbf1e7-9898-49ba-80b7-c115334f6a81" xlink:to="loc_us-gaap_CommonStockValue_0c067564-de77-47d7-a945-95cd3fb49109" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_838d48a9-76e1-451c-9dd3-5a45ec44f34c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_2dcbf1e7-9898-49ba-80b7-c115334f6a81" xlink:to="loc_us-gaap_AdditionalPaidInCapital_838d48a9-76e1-451c-9dd3-5a45ec44f34c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_7c54596d-2597-45d4-afdb-ed71500b9fb9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_2dcbf1e7-9898-49ba-80b7-c115334f6a81" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_7c54596d-2597-45d4-afdb-ed71500b9fb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f6c99407-3345-494e-b7fb-65868a64b565" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_2dcbf1e7-9898-49ba-80b7-c115334f6a81" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f6c99407-3345-494e-b7fb-65868a64b565" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_ef9b2f41-b5bf-4356-9d8c-564cf8d5a7f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableBeforeAllowanceForCreditLossNetOfDeferredCommitmentFee_7ded7d9c-4459-426d-a158-4ebc13b0d44a" xlink:href="cbnk-20230331.xsd#cbnk_FinancingReceivableBeforeAllowanceForCreditLossNetOfDeferredCommitmentFee"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_ef9b2f41-b5bf-4356-9d8c-564cf8d5a7f0" xlink:to="loc_cbnk_FinancingReceivableBeforeAllowanceForCreditLossNetOfDeferredCommitmentFee_7ded7d9c-4459-426d-a158-4ebc13b0d44a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_64440b66-1449-4675-bc2e-d2102c25f88b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_ef9b2f41-b5bf-4356-9d8c-564cf8d5a7f0" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_64440b66-1449-4675-bc2e-d2102c25f88b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableSmallBusinessAdministrationPaycheckProtectionProgramNetOfFees_0f6b4f9e-f239-4d65-8622-c9678a5bdf32" xlink:href="cbnk-20230331.xsd#cbnk_FinancingReceivableSmallBusinessAdministrationPaycheckProtectionProgramNetOfFees"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_cbnk_FinancingReceivableSmallBusinessAdministrationPaycheckProtectionProgramNetOfFees_0f6b4f9e-f239-4d65-8622-c9678a5bdf32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_2cde592c-4a80-466d-a8cb-af7abe2c9262" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_2cde592c-4a80-466d-a8cb-af7abe2c9262" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsurance_cc2b4003-ae5e-4247-99b2-779f301fd1cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BankOwnedLifeInsurance"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_us-gaap_BankOwnedLifeInsurance_cc2b4003-ae5e-4247-99b2-779f301fd1cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_94c4231d-6ec1-4143-a0b5-7aef3447a715" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_94c4231d-6ec1-4143-a0b5-7aef3447a715" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_d0580e6a-6122-408d-991d-ce260f8cb28d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_d0580e6a-6122-408d-991d-ce260f8cb28d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedInvestments_1b58fde4-cd1e-4769-a5f4-bca970d05338" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedInvestments"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_us-gaap_RestrictedInvestments_1b58fde4-cd1e-4769-a5f4-bca970d05338" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_655d09e3-4742-4a7b-aa6b-6ec0d9312cc9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_us-gaap_OtherAssets_655d09e3-4742-4a7b-aa6b-6ec0d9312cc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_dd5434f0-59e4-4e95-aadd-101bb1b51f0e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_dd5434f0-59e4-4e95-aadd-101bb1b51f0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_9c06749d-6f8f-441b-881f-cd4c47e496d8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_9c06749d-6f8f-441b-881f-cd4c47e496d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_82071725-1251-4f6c-87e1-9dd1fcc6ca10" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsAndFederalFundsSold"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_82071725-1251-4f6c-87e1-9dd1fcc6ca10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_9f6d155c-d607-4293-99fc-15b848821a96" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_66bdd71b-3f35-4bd2-a324-04681d763edb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_9f6d155c-d607-4293-99fc-15b848821a96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_11819178-9824-4eb8-ba2d-9a6a7cc9f5c9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Deposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestBearingDepositLiabilities_4b7aca50-83bc-4696-be37-b410ae3a5940" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NoninterestBearingDepositLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_11819178-9824-4eb8-ba2d-9a6a7cc9f5c9" xlink:to="loc_us-gaap_NoninterestBearingDepositLiabilities_4b7aca50-83bc-4696-be37-b410ae3a5940" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositLiabilities_cf08991b-ea51-4de9-9e2c-1ef0f820cd7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestBearingDepositLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_11819178-9824-4eb8-ba2d-9a6a7cc9f5c9" xlink:to="loc_us-gaap_InterestBearingDepositLiabilities_cf08991b-ea51-4de9-9e2c-1ef0f820cd7b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsofIncome" xlink:type="simple" xlink:href="cbnk-20230331.xsd#ConsolidatedStatementsofIncome"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/ConsolidatedStatementsofIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_91501f9c-bd7a-4a28-8b86-de1cdce3dca4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_90050fbf-a021-45f9-ab3c-fe925bd29829" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_91501f9c-bd7a-4a28-8b86-de1cdce3dca4" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_90050fbf-a021-45f9-ab3c-fe925bd29829" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating_240c09b3-b0a5-4aff-a877-1bf7ff8e0d1d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_91501f9c-bd7a-4a28-8b86-de1cdce3dca4" xlink:to="loc_us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating_240c09b3-b0a5-4aff-a877-1bf7ff8e0d1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeFederalFundsSold_eb77242d-4ffa-4fcf-a49a-bad6f0882de6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeFederalFundsSold"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_91501f9c-bd7a-4a28-8b86-de1cdce3dca4" xlink:to="loc_us-gaap_InterestIncomeFederalFundsSold_eb77242d-4ffa-4fcf-a49a-bad6f0882de6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a784d70f-8910-40b9-b3f5-4e73de8b117c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_6e3ad78e-1a35-4e35-a435-58d3f7da0f9a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a784d70f-8910-40b9-b3f5-4e73de8b117c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_6e3ad78e-1a35-4e35-a435-58d3f7da0f9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_99c0cf1f-4d60-4700-888e-db4b0b6b971c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a784d70f-8910-40b9-b3f5-4e73de8b117c" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_99c0cf1f-4d60-4700-888e-db4b0b6b971c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_9a6e7a2c-ed26-4d22-b049-be47b2fe39f5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_39911d9d-93fc-4119-8eb7-36b616bafde7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_InterestIncomeExpenseNet_9a6e7a2c-ed26-4d22-b049-be47b2fe39f5" xlink:to="loc_us-gaap_InterestExpense_39911d9d-93fc-4119-8eb7-36b616bafde7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_f5eb2148-2035-4b0d-83d2-a96aaa7089d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_9a6e7a2c-ed26-4d22-b049-be47b2fe39f5" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_f5eb2148-2035-4b0d-83d2-a96aaa7089d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_0eb3b489-0bc7-49b3-a8e1-7c0f9965ac5d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_4025624e-6038-45e0-aed7-27e0057579fd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_0eb3b489-0bc7-49b3-a8e1-7c0f9965ac5d" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_4025624e-6038-45e0-aed7-27e0057579fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_751a6ceb-a380-4e27-b34a-031d85c1bf7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_0eb3b489-0bc7-49b3-a8e1-7c0f9965ac5d" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_751a6ceb-a380-4e27-b34a-031d85c1bf7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_4b08621c-c5b6-461f-b38a-ae1ccfab2437" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanProcessingFee_97f1e82b-0990-48c6-92bc-eebe3224dcec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LoanProcessingFee"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_4b08621c-c5b6-461f-b38a-ae1ccfab2437" xlink:to="loc_us-gaap_LoanProcessingFee_97f1e82b-0990-48c6-92bc-eebe3224dcec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdvertisingExpense_9ba309be-60df-4899-b135-ba1fc23c2726" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdvertisingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_4b08621c-c5b6-461f-b38a-ae1ccfab2437" xlink:to="loc_us-gaap_AdvertisingExpense_9ba309be-60df-4899-b135-ba1fc23c2726" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoninterestExpense_8c8dcd82-c0f3-4467-8a49-5d2b8cb3e588" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNoninterestExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_4b08621c-c5b6-461f-b38a-ae1ccfab2437" xlink:to="loc_us-gaap_OtherNoninterestExpense_8c8dcd82-c0f3-4467-8a49-5d2b8cb3e588" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OtherRealEstateExpensesNet_d5622900-e728-4185-a4fa-dc1c5fdf5e02" xlink:href="cbnk-20230331.xsd#cbnk_OtherRealEstateExpensesNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_4b08621c-c5b6-461f-b38a-ae1ccfab2437" xlink:to="loc_cbnk_OtherRealEstateExpensesNet_d5622900-e728-4185-a4fa-dc1c5fdf5e02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_707d0fe8-7a0d-44e7-b552-205bb2fed893" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfessionalFees"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_4b08621c-c5b6-461f-b38a-ae1ccfab2437" xlink:to="loc_us-gaap_ProfessionalFees_707d0fe8-7a0d-44e7-b552-205bb2fed893" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InformationTechnologyAndDataProcessing_1cd571f9-a70c-4bd3-bbdb-90b301de1f93" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InformationTechnologyAndDataProcessing"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_4b08621c-c5b6-461f-b38a-ae1ccfab2437" xlink:to="loc_us-gaap_InformationTechnologyAndDataProcessing_1cd571f9-a70c-4bd3-bbdb-90b301de1f93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OccupancyAndEquipmentExpense_db961a41-53fc-4ffd-b11f-32cf6c82c07f" xlink:href="cbnk-20230331.xsd#cbnk_OccupancyAndEquipmentExpense"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_4b08621c-c5b6-461f-b38a-ae1ccfab2437" xlink:to="loc_cbnk_OccupancyAndEquipmentExpense_db961a41-53fc-4ffd-b11f-32cf6c82c07f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_863b25d5-f5f5-44d9-954a-187058de0b5b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_4b08621c-c5b6-461f-b38a-ae1ccfab2437" xlink:to="loc_us-gaap_LaborAndRelatedExpense_863b25d5-f5f5-44d9-954a-187058de0b5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_98852ca7-38a5-48b8-865e-86aa9fd68b36" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_7e71dfce-7930-4dac-ad31-b3a011424683" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_98852ca7-38a5-48b8-865e-86aa9fd68b36" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_7e71dfce-7930-4dac-ad31-b3a011424683" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_68401812-0a97-4fc6-b3b5-729a7a5e4db3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_98852ca7-38a5-48b8-865e-86aa9fd68b36" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_68401812-0a97-4fc6-b3b5-729a7a5e4db3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7497fa0b-4e25-41f7-bcc1-e9bd47b72e24" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_ea0677f9-bbf5-4cc9-8afd-ae08faa36fc6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NoninterestExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7497fa0b-4e25-41f7-bcc1-e9bd47b72e24" xlink:to="loc_us-gaap_NoninterestExpense_ea0677f9-bbf5-4cc9-8afd-ae08faa36fc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_c15d1307-dfd7-4747-a905-6d3b36c5d3af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NoninterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7497fa0b-4e25-41f7-bcc1-e9bd47b72e24" xlink:to="loc_us-gaap_NoninterestIncome_c15d1307-dfd7-4747-a905-6d3b36c5d3af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_e49252ef-7b15-4630-a7dc-218f4dec5422" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7497fa0b-4e25-41f7-bcc1-e9bd47b72e24" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_e49252ef-7b15-4630-a7dc-218f4dec5422" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_10d38d13-28b2-4837-a9b4-c243a7df27d0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDeposits_ba9946fd-dbd9-4d27-b0fa-23d8759526d9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpenseDeposits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_10d38d13-28b2-4837-a9b4-c243a7df27d0" xlink:to="loc_us-gaap_InterestExpenseDeposits_ba9946fd-dbd9-4d27-b0fa-23d8759526d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseBorrowings_aab065ea-2c00-4fac-a18d-a65da6e0dee9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpenseBorrowings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_10d38d13-28b2-4837-a9b4-c243a7df27d0" xlink:to="loc_us-gaap_InterestExpenseBorrowings_aab065ea-2c00-4fac-a18d-a65da6e0dee9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsofComprehensiveIncomeunaudited" xlink:type="simple" xlink:href="cbnk-20230331.xsd#ConsolidatedStatementsofComprehensiveIncomeunaudited"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/ConsolidatedStatementsofComprehensiveIncomeunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_4e098420-f67a-4fae-83da-4a03c0ceafe1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_be3db1c9-d8de-4267-b5e4-ee01944a4c70" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_4e098420-f67a-4fae-83da-4a03c0ceafe1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_be3db1c9-d8de-4267-b5e4-ee01944a4c70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9c46074e-9f35-4ad6-aed6-ee1349a707de" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ComprehensiveIncomeNetOfTax_4e098420-f67a-4fae-83da-4a03c0ceafe1" xlink:to="loc_us-gaap_NetIncomeLoss_9c46074e-9f35-4ad6-aed6-ee1349a707de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_29c1f02a-0bef-42f8-8f2e-6ad2015d9431" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_ac658584-5746-42a1-addc-e2ffe9d5dd14" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_29c1f02a-0bef-42f8-8f2e-6ad2015d9431" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_ac658584-5746-42a1-addc-e2ffe9d5dd14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_81f81ae6-35ec-44e1-9625-3776d07f9508" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_29c1f02a-0bef-42f8-8f2e-6ad2015d9431" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_81f81ae6-35ec-44e1-9625-3776d07f9508" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="cbnk-20230331.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_88f2f507-6561-48ad-afa8-604e55eddb6d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_88f2f507-6561-48ad-afa8-604e55eddb6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_0bb8e9b3-70aa-464a-933d-fd6016d7a14b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_0bb8e9b3-70aa-464a-933d-fd6016d7a14b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_b1402bb3-77b7-48fd-8c29-38ea812198aa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_b1402bb3-77b7-48fd-8c29-38ea812198aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_52ed97bd-72f6-4560-b5df-341b1812b326" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_52ed97bd-72f6-4560-b5df-341b1812b326" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfInvestments_9ade8aea-dafa-4d37-aa35-500a55c507d9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfInvestments"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_GainLossOnSaleOfInvestments_9ade8aea-dafa-4d37-aa35-500a55c507d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForOtherCreditLosses_5cd892a6-9597-4990-a4e1-ebed4076d918" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForOtherCreditLosses"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_ProvisionForOtherCreditLosses_5cd892a6-9597-4990-a4e1-ebed4076d918" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredCompensation_615753e3-94d3-453b-a8c3-ac6e25245186" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInDeferredCompensation"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredCompensation_615753e3-94d3-453b-a8c3-ac6e25245186" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_MortgageBankingAndServicingGainLoss_3b6426a3-b291-4327-b8a3-88f1212ed9df" xlink:href="cbnk-20230331.xsd#cbnk_MortgageBankingAndServicingGainLoss"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_cbnk_MortgageBankingAndServicingGainLoss_3b6426a3-b291-4327-b8a3-88f1212ed9df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a5ee65fb-a9df-4354-b3b4-a921a48e073d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_NetIncomeLoss_a5ee65fb-a9df-4354-b3b4-a921a48e073d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_a22063d1-a429-4e6b-bf37-875d1b2c9f12" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_a22063d1-a429-4e6b-bf37-875d1b2c9f12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_b6a69a3b-20c5-43de-a6a4-ca617fc6e26c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_b6a69a3b-20c5-43de-a6a4-ca617fc6e26c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_d477234e-5d52-46ab-905a-cc4876064e17" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_d477234e-5d52-46ab-905a-cc4876064e17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_712b71be-2f10-47a7-86df-9554c0047cd0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_712b71be-2f10-47a7-86df-9554c0047cd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_16b2d349-3487-4afe-962e-4035ca0735a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_16b2d349-3487-4afe-962e-4035ca0735a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForOtherLosses_0b9248cb-76fe-4223-a7a7-924c634d1940" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForOtherLosses"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_ProvisionForOtherLosses_0b9248cb-76fe-4223-a7a7-924c634d1940" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LifeInsuranceCorporateOrBankOwnedChangeInValue_7dfc34ea-c575-468c-9b78-aaaf1781aa18" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LifeInsuranceCorporateOrBankOwnedChangeInValue"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_LifeInsuranceCorporateOrBankOwnedChangeInValue_7dfc34ea-c575-468c-9b78-aaaf1781aa18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_b310541a-b5a9-4a52-b0ab-cfb2e1ebf7c1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_ShareBasedCompensation_b310541a-b5a9-4a52-b0ab-cfb2e1ebf7c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_024d3006-211e-4b27-a3e6-e09cbe383e16" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_024d3006-211e-4b27-a3e6-e09cbe383e16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_IncreaseDecreaseDerivativesValuationOnAllowance_4071e20b-c78c-44dd-b298-22579195f0c4" xlink:href="cbnk-20230331.xsd#cbnk_IncreaseDecreaseDerivativesValuationOnAllowance"/>
    <link:calculationArc order="19" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_cbnk_IncreaseDecreaseDerivativesValuationOnAllowance_4071e20b-c78c-44dd-b298-22579195f0c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_ShareBasedPaymentArrangementDirectorAndEmployeeCompensationPaidInStock_3eeb11b2-3cac-443a-b001-d1705353b11a" xlink:href="cbnk-20230331.xsd#cbnk_ShareBasedPaymentArrangementDirectorAndEmployeeCompensationPaidInStock"/>
    <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_cbnk_ShareBasedPaymentArrangementDirectorAndEmployeeCompensationPaidInStock_3eeb11b2-3cac-443a-b001-d1705353b11a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_67984245-af8a-4850-b2de-ecb1ef6a0676" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale"/>
    <link:calculationArc order="21" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_67984245-af8a-4850-b2de-ecb1ef6a0676" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationNonproduction_ec5e1307-a875-4edc-85f8-bc095c01654a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationNonproduction"/>
    <link:calculationArc order="22" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_DepreciationNonproduction_ec5e1307-a875-4edc-85f8-bc095c01654a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_388410c0-ab9f-41c1-9440-a492a43b2b10" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="23" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d8f77a28-dec3-45d4-a94b-065436f6faa5" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_388410c0-ab9f-41c1-9440-a492a43b2b10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8525230f-eb89-4a92-8522-d89e80dc5e90" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetChangeInterestBearingDepositsDomestic_d457d8e7-e747-4980-808d-b3008f788d33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetChangeInterestBearingDepositsDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8525230f-eb89-4a92-8522-d89e80dc5e90" xlink:to="loc_us-gaap_NetChangeInterestBearingDepositsDomestic_d457d8e7-e747-4980-808d-b3008f788d33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetChangeNoninterestBearingDepositsDomestic_c8972149-c1a1-42d1-8897-08d7fe68301b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetChangeNoninterestBearingDepositsDomestic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8525230f-eb89-4a92-8522-d89e80dc5e90" xlink:to="loc_us-gaap_NetChangeNoninterestBearingDepositsDomestic_c8972149-c1a1-42d1-8897-08d7fe68301b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_adf021ae-7434-40a9-ba44-c78c93f7f330" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8525230f-eb89-4a92-8522-d89e80dc5e90" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_adf021ae-7434-40a9-ba44-c78c93f7f330" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_63ef08d5-5cf7-4741-a304-df8b7648907f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8525230f-eb89-4a92-8522-d89e80dc5e90" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_63ef08d5-5cf7-4741-a304-df8b7648907f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_fbeb802f-6c29-4238-9f05-6fdc805a44cb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8525230f-eb89-4a92-8522-d89e80dc5e90" xlink:to="loc_us-gaap_PaymentsOfDividends_fbeb802f-6c29-4238-9f05-6fdc805a44cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInLoansFromOtherFederalHomeLoanBanks_cccd6a92-c6ce-4891-920e-35c91357b6a7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInLoansFromOtherFederalHomeLoanBanks"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_8525230f-eb89-4a92-8522-d89e80dc5e90" xlink:to="loc_us-gaap_IncreaseDecreaseInLoansFromOtherFederalHomeLoanBanks_cccd6a92-c6ce-4891-920e-35c91357b6a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_64490dd0-3fd6-4543-807c-4ab2ad3942ed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_d88daceb-ee3d-423b-a497-144763c20771" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForProceedsFromProductiveAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_64490dd0-3fd6-4543-807c-4ab2ad3942ed" xlink:to="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_d88daceb-ee3d-423b-a497-144763c20771" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_81bec38d-4dfe-40fc-a8e7-56374a91e29c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_64490dd0-3fd6-4543-807c-4ab2ad3942ed" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_81bec38d-4dfe-40fc-a8e7-56374a91e29c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_PaymentsForProceedsFromLoansReceivableSmallBusinessAdministrationPaycheckProtectionProgram_596c6f1b-58e5-485d-9eff-93555965fbdf" xlink:href="cbnk-20230331.xsd#cbnk_PaymentsForProceedsFromLoansReceivableSmallBusinessAdministrationPaycheckProtectionProgram"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_64490dd0-3fd6-4543-807c-4ab2ad3942ed" xlink:to="loc_cbnk_PaymentsForProceedsFromLoansReceivableSmallBusinessAdministrationPaycheckProtectionProgram_596c6f1b-58e5-485d-9eff-93555965fbdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_PaymentsForProceedsFromRestrictedInvestments_ba8e7c4a-cd3a-44bf-a223-dc7df2962449" xlink:href="cbnk-20230331.xsd#cbnk_PaymentsForProceedsFromRestrictedInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_64490dd0-3fd6-4543-807c-4ab2ad3942ed" xlink:to="loc_cbnk_PaymentsForProceedsFromRestrictedInvestments_ba8e7c4a-cd3a-44bf-a223-dc7df2962449" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromLoansReceivable_3123d6ae-6571-4af4-a714-007637d46cfd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForProceedsFromLoansReceivable"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_64490dd0-3fd6-4543-807c-4ab2ad3942ed" xlink:to="loc_us-gaap_PaymentsForProceedsFromLoansReceivable_3123d6ae-6571-4af4-a714-007637d46cfd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_1dde2bc3-083d-460c-9e5e-a69dc1f422ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfForeclosedAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_64490dd0-3fd6-4543-807c-4ab2ad3942ed" xlink:to="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_1dde2bc3-083d-460c-9e5e-a69dc1f422ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_155a59c2-71d5-4ae2-87b4-9a46161972f4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a241b299-ff64-4344-b4a6-6bcc1e7529b0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_155a59c2-71d5-4ae2-87b4-9a46161972f4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a241b299-ff64-4344-b4a6-6bcc1e7529b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_bd5fdb97-552d-4746-b945-f6c3f54a5216" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_155a59c2-71d5-4ae2-87b4-9a46161972f4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_bd5fdb97-552d-4746-b945-f6c3f54a5216" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_ff1e2b71-c3a6-4ab0-8cab-7bdae47f3ac5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_155a59c2-71d5-4ae2-87b4-9a46161972f4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_ff1e2b71-c3a6-4ab0-8cab-7bdae47f3ac5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureofBusinessandBasisofPresentationComprehensiveLossDetails" xlink:type="simple" xlink:href="cbnk-20230331.xsd#NatureofBusinessandBasisofPresentationComprehensiveLossDetails"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/NatureofBusinessandBasisofPresentationComprehensiveLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ce683fda-5c01-4725-bcf2-c783bf92443b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociBeforeTaxAttributableToParent_cdf0bfe3-a92c-4bc2-acd9-b363a48fd5ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AociBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ce683fda-5c01-4725-bcf2-c783bf92443b" xlink:to="loc_us-gaap_AociBeforeTaxAttributableToParent_cdf0bfe3-a92c-4bc2-acd9-b363a48fd5ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociTaxAttributableToParent_bbc707fe-b2fd-48b6-b6ee-b53859aeb50e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AociTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ce683fda-5c01-4725-bcf2-c783bf92443b" xlink:to="loc_us-gaap_AociTaxAttributableToParent_bbc707fe-b2fd-48b6-b6ee-b53859aeb50e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/InvestmentSecuritiesAmortizedcosttoEstimatedFairValueDetails" xlink:type="simple" xlink:href="cbnk-20230331.xsd#InvestmentSecuritiesAmortizedcosttoEstimatedFairValueDetails"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/InvestmentSecuritiesAmortizedcosttoEstimatedFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_4d6b54d9-54dd-469a-bd3b-b1d0ab5c78a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_439170f5-6d15-442e-b5bf-3a679afcdefa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_4d6b54d9-54dd-469a-bd3b-b1d0ab5c78a5" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_439170f5-6d15-442e-b5bf-3a679afcdefa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_b9266ffb-ac8b-4e0b-8367-71de5f354722" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_4d6b54d9-54dd-469a-bd3b-b1d0ab5c78a5" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_b9266ffb-ac8b-4e0b-8367-71de5f354722" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_b713b7e6-da85-48a6-8894-a3dcec27bd44" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_4d6b54d9-54dd-469a-bd3b-b1d0ab5c78a5" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_b713b7e6-da85-48a6-8894-a3dcec27bd44" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/InvestmentSecuritiesUnrealizedLossesDetails" xlink:type="simple" xlink:href="cbnk-20230331.xsd#InvestmentSecuritiesUnrealizedLossesDetails"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/InvestmentSecuritiesUnrealizedLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_72ed90c6-d53d-46e2-9015-08dea3cabefb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_3f7fe2dd-9390-401c-a8a4-b0cf096a8ca8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_72ed90c6-d53d-46e2-9015-08dea3cabefb" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_3f7fe2dd-9390-401c-a8a4-b0cf096a8ca8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_7355dc8c-35e5-494a-b20c-f1dca1c230a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_72ed90c6-d53d-46e2-9015-08dea3cabefb" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_7355dc8c-35e5-494a-b20c-f1dca1c230a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_22e555dd-94d8-4393-8a7c-55a1115821d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_246eb783-bc41-436d-a024-649b7b206f1e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_22e555dd-94d8-4393-8a7c-55a1115821d6" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_246eb783-bc41-436d-a024-649b7b206f1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_afea0b80-6d04-4a14-91f4-6f59f4a5a6c9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_22e555dd-94d8-4393-8a7c-55a1115821d6" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_afea0b80-6d04-4a14-91f4-6f59f4a5a6c9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableClassificationofLoansDetails" xlink:type="simple" xlink:href="cbnk-20230331.xsd#PortfolioLoansReceivableClassificationofLoansDetails"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableClassificationofLoansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_8fb03442-14f7-462d-a1fe-009d98ddbf2e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableDeferredIncome_6af0f36f-f930-4296-8100-cc84584a3f3c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableDeferredIncome"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_8fb03442-14f7-462d-a1fe-009d98ddbf2e" xlink:to="loc_us-gaap_FinancingReceivableDeferredIncome_6af0f36f-f930-4296-8100-cc84584a3f3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_3eb6ef2e-73d2-425b-baa9-3ffa69afcec4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_8fb03442-14f7-462d-a1fe-009d98ddbf2e" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_3eb6ef2e-73d2-425b-baa9-3ffa69afcec4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_4901fabe-d021-449a-81da-89f2a238582e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_8fb03442-14f7-462d-a1fe-009d98ddbf2e" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_4901fabe-d021-449a-81da-89f2a238582e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableCreditQualityIndicatorsandChargeoffsDetails" xlink:type="simple" xlink:href="cbnk-20230331.xsd#PortfolioLoansReceivableCreditQualityIndicatorsandChargeoffsDetails"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableCreditQualityIndicatorsandChargeoffsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_829fd8fc-9e9f-4d10-9876-ce87cd2fbfdb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_b7a7c60c-2325-4265-8ae7-a010c0fcbf36" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_829fd8fc-9e9f-4d10-9876-ce87cd2fbfdb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_b7a7c60c-2325-4265-8ae7-a010c0fcbf36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_d2acfcde-f4c0-4a29-9186-3aaca28a9fba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_829fd8fc-9e9f-4d10-9876-ce87cd2fbfdb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_d2acfcde-f4c0-4a29-9186-3aaca28a9fba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_8d2c2229-e7b9-4127-b4e8-d19357f6f009" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_829fd8fc-9e9f-4d10-9876-ce87cd2fbfdb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_8d2c2229-e7b9-4127-b4e8-d19357f6f009" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_07c2d99c-23f9-4262-8741-91aebac05d07" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_829fd8fc-9e9f-4d10-9876-ce87cd2fbfdb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_07c2d99c-23f9-4262-8741-91aebac05d07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_4bce076c-5b86-4b15-9e33-9d31fd482d3e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_829fd8fc-9e9f-4d10-9876-ce87cd2fbfdb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_4bce076c-5b86-4b15-9e33-9d31fd482d3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_48f0e1b4-a92c-4345-94f7-72b7ab7609be" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolving"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_829fd8fc-9e9f-4d10-9876-ce87cd2fbfdb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_48f0e1b4-a92c-4345-94f7-72b7ab7609be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_7c4b6916-13ee-45dc-a37b-174d5b0c3f0a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_829fd8fc-9e9f-4d10-9876-ce87cd2fbfdb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_7c4b6916-13ee-45dc-a37b-174d5b0c3f0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_7005868f-93ec-4145-9c28-55b76c2ac19e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_1de7576c-e9ea-493e-9008-f1364469a527" xlink:href="cbnk-20230331.xsd#cbnk_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_7005868f-93ec-4145-9c28-55b76c2ac19e" xlink:to="loc_cbnk_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_1de7576c-e9ea-493e-9008-f1364469a527" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_9d381584-ef44-4ecc-ba4a-8d9dbd757e0f" xlink:href="cbnk-20230331.xsd#cbnk_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_7005868f-93ec-4145-9c28-55b76c2ac19e" xlink:to="loc_cbnk_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_9d381584-ef44-4ecc-ba4a-8d9dbd757e0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_d91963d6-a404-45cc-9263-0428de4e887d" xlink:href="cbnk-20230331.xsd#cbnk_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_7005868f-93ec-4145-9c28-55b76c2ac19e" xlink:to="loc_cbnk_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_d91963d6-a404-45cc-9263-0428de4e887d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_4bbbe87d-cb12-4b8b-b387-ec607f14c6d8" xlink:href="cbnk-20230331.xsd#cbnk_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_7005868f-93ec-4145-9c28-55b76c2ac19e" xlink:to="loc_cbnk_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_4bbbe87d-cb12-4b8b-b387-ec607f14c6d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_7a0e0972-ffcb-44b7-8aa5-4fbac1bb2d0d" xlink:href="cbnk-20230331.xsd#cbnk_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_7005868f-93ec-4145-9c28-55b76c2ac19e" xlink:to="loc_cbnk_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_7a0e0972-ffcb-44b7-8aa5-4fbac1bb2d0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_fda7cf34-a120-41ab-80dd-9f83fe9243ce" xlink:href="cbnk-20230331.xsd#cbnk_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_7005868f-93ec-4145-9c28-55b76c2ac19e" xlink:to="loc_cbnk_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_fda7cf34-a120-41ab-80dd-9f83fe9243ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_555eb226-6850-44db-9eda-4e3d11a5792a" xlink:href="cbnk-20230331.xsd#cbnk_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_7005868f-93ec-4145-9c28-55b76c2ac19e" xlink:to="loc_cbnk_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_555eb226-6850-44db-9eda-4e3d11a5792a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/LeasesAssetsandLiabilitiesandLeasePaymentObligationsDetails" xlink:type="simple" xlink:href="cbnk-20230331.xsd#LeasesAssetsandLiabilitiesandLeasePaymentObligationsDetails"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/LeasesAssetsandLiabilitiesandLeasePaymentObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d30355c7-9340-4fd1-96cb-75183b4f9b71" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_LesseeOperatingLeaseLiabilityToBePaidYearThreeAndThereafter_c0c2a259-9418-4715-9aed-69298681a2a5" xlink:href="cbnk-20230331.xsd#cbnk_LesseeOperatingLeaseLiabilityToBePaidYearThreeAndThereafter"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d30355c7-9340-4fd1-96cb-75183b4f9b71" xlink:to="loc_cbnk_LesseeOperatingLeaseLiabilityToBePaidYearThreeAndThereafter_c0c2a259-9418-4715-9aed-69298681a2a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_b9c547e6-3f62-407a-9d75-711d86e8298e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d30355c7-9340-4fd1-96cb-75183b4f9b71" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_b9c547e6-3f62-407a-9d75-711d86e8298e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_94c72c49-c244-4c70-a7fb-341bb1c7d9f2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d30355c7-9340-4fd1-96cb-75183b4f9b71" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_94c72c49-c244-4c70-a7fb-341bb1c7d9f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_9e366c90-f9d9-4a2f-8480-cfdcc52f4681" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d30355c7-9340-4fd1-96cb-75183b4f9b71" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_9e366c90-f9d9-4a2f-8480-cfdcc52f4681" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_415bb8af-5c37-43ed-ac7b-b5b9e36c450d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d30355c7-9340-4fd1-96cb-75183b4f9b71" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_415bb8af-5c37-43ed-ac7b-b5b9e36c450d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_86779771-09bc-4d97-96f9-cf99d74622fa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OperatingLeaseLiabilityIncludingAccumulatedAmortization_d412c2b2-6b6c-46d3-94a9-daf0c2955b2c" xlink:href="cbnk-20230331.xsd#cbnk_OperatingLeaseLiabilityIncludingAccumulatedAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_86779771-09bc-4d97-96f9-cf99d74622fa" xlink:to="loc_cbnk_OperatingLeaseLiabilityIncludingAccumulatedAmortization_d412c2b2-6b6c-46d3-94a9-daf0c2955b2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OperatingLeaseLiabilityAccumulatedAmortization_db712c92-40ac-4c17-a6d7-05fdfa287f38" xlink:href="cbnk-20230331.xsd#cbnk_OperatingLeaseLiabilityAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_86779771-09bc-4d97-96f9-cf99d74622fa" xlink:to="loc_cbnk_OperatingLeaseLiabilityAccumulatedAmortization_db712c92-40ac-4c17-a6d7-05fdfa287f38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OperatingLeaseRightOfUseAssetNet_9d01a395-10da-431e-a837-551f44f2ca0a" xlink:href="cbnk-20230331.xsd#cbnk_OperatingLeaseRightOfUseAssetNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OperatingLeaseRightOfUseAssetAccumulatedAmortization_46999f68-6960-4d11-bd58-749bb4c689f0" xlink:href="cbnk-20230331.xsd#cbnk_OperatingLeaseRightOfUseAssetAccumulatedAmortization"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cbnk_OperatingLeaseRightOfUseAssetNet_9d01a395-10da-431e-a837-551f44f2ca0a" xlink:to="loc_cbnk_OperatingLeaseRightOfUseAssetAccumulatedAmortization_46999f68-6960-4d11-bd58-749bb4c689f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OperatingLeaseRightOfUseAssetBeforeAccumulatedAmortization_0a52c4ba-fa56-498b-8e9f-cbe6accc15a4" xlink:href="cbnk-20230331.xsd#cbnk_OperatingLeaseRightOfUseAssetBeforeAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cbnk_OperatingLeaseRightOfUseAssetNet_9d01a395-10da-431e-a837-551f44f2ca0a" xlink:to="loc_cbnk_OperatingLeaseRightOfUseAssetBeforeAccumulatedAmortization_0a52c4ba-fa56-498b-8e9f-cbe6accc15a4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/LeasesAssetsandLiabilitiesandLeasePaymentObligationsDetails_1" xlink:type="simple" xlink:href="cbnk-20230331.xsd#LeasesAssetsandLiabilitiesandLeasePaymentObligationsDetails_1"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/LeasesAssetsandLiabilitiesandLeasePaymentObligationsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_29ab4d2b-3f01-42e0-a37f-00e627125451" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_9aa64861-46c5-4432-9390-bf07d2059479" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_29ab4d2b-3f01-42e0-a37f-00e627125451" xlink:to="loc_us-gaap_OperatingLeaseLiability_9aa64861-46c5-4432-9390-bf07d2059479" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_c1302380-571b-4ad6-817e-729d9a503e52" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_29ab4d2b-3f01-42e0-a37f-00e627125451" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_c1302380-571b-4ad6-817e-729d9a503e52" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
