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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:a832ca70-a797-4ff7-b0c6-6e750f29a28a,g:90e7a192-a03a-4af0-abce-727d79ece42e-->
<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/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="cbnk-20220630.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_d801a09c-37cd-4aa6-b336-fd56526518f5" 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_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_be56582a-1863-4731-914d-6ef636293737" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_d801a09c-37cd-4aa6-b336-fd56526518f5" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_be56582a-1863-4731-914d-6ef636293737" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableBeforeAllowanceForCreditLossNetOfDeferredCommitmentFee_ace8b84c-8b0c-478b-af00-bc9e43ac6114" xlink:href="cbnk-20220630.xsd#cbnk_FinancingReceivableBeforeAllowanceForCreditLossNetOfDeferredCommitmentFee"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_d801a09c-37cd-4aa6-b336-fd56526518f5" xlink:to="loc_cbnk_FinancingReceivableBeforeAllowanceForCreditLossNetOfDeferredCommitmentFee_ace8b84c-8b0c-478b-af00-bc9e43ac6114" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_edf5a5ef-ef27-427e-80bd-0ae93994280e" 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_7bb189c2-e74b-4d26-8e7f-6d45419e04c3" 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_edf5a5ef-ef27-427e-80bd-0ae93994280e" xlink:to="loc_us-gaap_CommonStockValue_7bb189c2-e74b-4d26-8e7f-6d45419e04c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_d0465810-df1e-4f9e-9335-0086fee2b4f6" 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_edf5a5ef-ef27-427e-80bd-0ae93994280e" xlink:to="loc_us-gaap_AdditionalPaidInCapital_d0465810-df1e-4f9e-9335-0086fee2b4f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_850c89c1-a637-4264-a206-b598c8ff3c6b" 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_edf5a5ef-ef27-427e-80bd-0ae93994280e" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_850c89c1-a637-4264-a206-b598c8ff3c6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_c6adc2ce-2e10-446d-bec5-ebe590008f70" 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_edf5a5ef-ef27-427e-80bd-0ae93994280e" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_c6adc2ce-2e10-446d-bec5-ebe590008f70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_7ffc5fc8-1034-419c-9468-237489c312b5" 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_CashAndDueFromBanks_98907c1f-6025-48f3-83e7-c880872f66b8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndDueFromBanks"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_7ffc5fc8-1034-419c-9468-237489c312b5" xlink:to="loc_us-gaap_CashAndDueFromBanks_98907c1f-6025-48f3-83e7-c880872f66b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_61b9af82-27f5-463a-a604-dc16b2d45b48" 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_7ffc5fc8-1034-419c-9468-237489c312b5" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_61b9af82-27f5-463a-a604-dc16b2d45b48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalFundsSold_72e4b930-1e00-4c68-88b3-7c62fac7f8e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FederalFundsSold"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_7ffc5fc8-1034-419c-9468-237489c312b5" xlink:to="loc_us-gaap_FederalFundsSold_72e4b930-1e00-4c68-88b3-7c62fac7f8e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" 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_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_a499bb03-8f81-4d76-8dc0-00047be288d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_a499bb03-8f81-4d76-8dc0-00047be288d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateAcquiredThroughForeclosure_ab07e3aa-4079-40af-8798-a4cf98306a73" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateAcquiredThroughForeclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_RealEstateAcquiredThroughForeclosure_ab07e3aa-4079-40af-8798-a4cf98306a73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedInvestments_77961376-ee2b-44ce-a07d-92ecb85a3b27" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_RestrictedInvestments_77961376-ee2b-44ce-a07d-92ecb85a3b27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsurance_9a11a6c6-9a2e-441e-8133-8c7b0adfd386" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BankOwnedLifeInsurance"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_BankOwnedLifeInsurance_9a11a6c6-9a2e-441e-8133-8c7b0adfd386" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_ac735ea7-fb0a-4d82-b80a-1c1448566a05" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsAndFederalFundsSold"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_ac735ea7-fb0a-4d82-b80a-1c1448566a05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_8d9b9ee1-5bc5-485f-8766-1ead9d1d0455" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_8d9b9ee1-5bc5-485f-8766-1ead9d1d0455" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_FinancingReceivableSmallBusinessAdministrationPaycheckProtectionProgramNetOfFees_15e7559f-d7f7-4c39-814d-4f5a9ee00e01" xlink:href="cbnk-20220630.xsd#cbnk_FinancingReceivableSmallBusinessAdministrationPaycheckProtectionProgramNetOfFees"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_cbnk_FinancingReceivableSmallBusinessAdministrationPaycheckProtectionProgramNetOfFees_15e7559f-d7f7-4c39-814d-4f5a9ee00e01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_0d5feef8-d43e-4b36-89f4-b6c21f2440b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_0d5feef8-d43e-4b36-89f4-b6c21f2440b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecurities_8fd92c89-0973-4882-93bb-2c3b4c0fea16" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MarketableSecurities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_MarketableSecurities_8fd92c89-0973-4882-93bb-2c3b4c0fea16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_e2752c4c-c743-471c-9d1f-d7c938b683b1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_e2752c4c-c743-471c-9d1f-d7c938b683b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_3a8e7d7a-32cb-4f53-884e-9d05920fb405" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_OtherAssets_3a8e7d7a-32cb-4f53-884e-9d05920fb405" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_7f174ccd-b13a-40f6-a726-05a2dd0383c1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_7f174ccd-b13a-40f6-a726-05a2dd0383c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_845e57b8-4485-4f6d-a493-3105f2e77a2d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6b6df84e-c923-43e5-a27b-4b2b1cf04788" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_845e57b8-4485-4f6d-a493-3105f2e77a2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_f3943dee-ec75-4e23-8182-e4d297746b78" 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_c73c0ed6-d67f-4d1a-8774-26b85992ecd4" 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_f3943dee-ec75-4e23-8182-e4d297746b78" xlink:to="loc_us-gaap_StockholdersEquity_c73c0ed6-d67f-4d1a-8774-26b85992ecd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_5419f0ae-8e8a-4aee-acb9-3b926b96fd7c" 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_f3943dee-ec75-4e23-8182-e4d297746b78" xlink:to="loc_us-gaap_Liabilities_5419f0ae-8e8a-4aee-acb9-3b926b96fd7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_b39dbc0e-5e4a-401e-98a3-0e5b90f0884d" 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_89a3ee1a-1390-4067-8fb6-7d3f4697453d" 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_b39dbc0e-5e4a-401e-98a3-0e5b90f0884d" xlink:to="loc_us-gaap_NoninterestBearingDepositLiabilities_89a3ee1a-1390-4067-8fb6-7d3f4697453d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositLiabilities_dc7c5213-9896-451c-80bf-33fbeb6b9adf" 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_b39dbc0e-5e4a-401e-98a3-0e5b90f0884d" xlink:to="loc_us-gaap_InterestBearingDepositLiabilities_dc7c5213-9896-451c-80bf-33fbeb6b9adf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_7c5d977d-2443-49b8-ba7c-e6b723886d59" 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_4c720002-adf2-4e42-ab99-167e4612bb13" 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_7c5d977d-2443-49b8-ba7c-e6b723886d59" xlink:to="loc_us-gaap_Deposits_4c720002-adf2-4e42-ab99-167e4612bb13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesLongTerm_2a5ab6e6-190e-41e9-91b8-6a7c8322c7ac" 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_7c5d977d-2443-49b8-ba7c-e6b723886d59" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesLongTerm_2a5ab6e6-190e-41e9-91b8-6a7c8322c7ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherBorrowings_048c2c0f-7b1f-41e7-9af5-14802fc17306" 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_7c5d977d-2443-49b8-ba7c-e6b723886d59" xlink:to="loc_us-gaap_OtherBorrowings_048c2c0f-7b1f-41e7-9af5-14802fc17306" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_0e371578-8d72-46d5-b075-4b139c5a06ca" 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_7c5d977d-2443-49b8-ba7c-e6b723886d59" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_0e371578-8d72-46d5-b075-4b139c5a06ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_d1bfc5a3-a254-46a0-873c-03031676481d" 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_7c5d977d-2443-49b8-ba7c-e6b723886d59" xlink:to="loc_us-gaap_OtherLiabilities_d1bfc5a3-a254-46a0-873c-03031676481d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsofIncome" xlink:type="simple" xlink:href="cbnk-20220630.xsd#ConsolidatedStatementsofIncome"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/ConsolidatedStatementsofIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_f0def014-55f4-468c-9f39-1de237d1eedb" 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_1c69cc52-ef37-425d-a222-c176cbc03c81" 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_f0def014-55f4-468c-9f39-1de237d1eedb" xlink:to="loc_us-gaap_InterestExpense_1c69cc52-ef37-425d-a222-c176cbc03c81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_472eda47-44a2-4d03-98ac-e3eb6475d072" 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_f0def014-55f4-468c-9f39-1de237d1eedb" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_472eda47-44a2-4d03-98ac-e3eb6475d072" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_70d4eadb-8f05-4a9d-aa02-5e8f150ce640" 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_022245aa-30cc-42a7-9f61-58b3ce1ad0f8" 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_70d4eadb-8f05-4a9d-aa02-5e8f150ce640" xlink:to="loc_us-gaap_NoninterestExpense_022245aa-30cc-42a7-9f61-58b3ce1ad0f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_294d9496-3a1c-4da1-8d16-0f8cb7efc711" 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_70d4eadb-8f05-4a9d-aa02-5e8f150ce640" xlink:to="loc_us-gaap_NoninterestIncome_294d9496-3a1c-4da1-8d16-0f8cb7efc711" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_027e56fd-b4be-4526-8fdc-61e33209e62d" 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_70d4eadb-8f05-4a9d-aa02-5e8f150ce640" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_027e56fd-b4be-4526-8fdc-61e33209e62d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_800fbfd9-9f84-4f58-9f67-e16601b1d66f" 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_c8b7f8ce-1c62-4797-a613-001ce7e025db" 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_800fbfd9-9f84-4f58-9f67-e16601b1d66f" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_c8b7f8ce-1c62-4797-a613-001ce7e025db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating_a4b3717f-4ab0-4d28-a307-ecd856930fce" 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_800fbfd9-9f84-4f58-9f67-e16601b1d66f" xlink:to="loc_us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating_a4b3717f-4ab0-4d28-a307-ecd856930fce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeFederalFundsSold_5519e344-511d-4984-8387-673e0d32faf8" 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_800fbfd9-9f84-4f58-9f67-e16601b1d66f" xlink:to="loc_us-gaap_InterestIncomeFederalFundsSold_5519e344-511d-4984-8387-673e0d32faf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_eeaba4d5-37b7-45a3-b13f-133fafe4a489" 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_LaborAndRelatedExpense_cdb615f3-bbff-497e-a34f-398ea7ef5ff8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_eeaba4d5-37b7-45a3-b13f-133fafe4a489" xlink:to="loc_us-gaap_LaborAndRelatedExpense_cdb615f3-bbff-497e-a34f-398ea7ef5ff8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OccupancyAndEquipmentExpense_8627cff4-8847-4d71-b1cf-11e52b87f049" xlink:href="cbnk-20220630.xsd#cbnk_OccupancyAndEquipmentExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_eeaba4d5-37b7-45a3-b13f-133fafe4a489" xlink:to="loc_cbnk_OccupancyAndEquipmentExpense_8627cff4-8847-4d71-b1cf-11e52b87f049" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_683905b8-fff9-42b5-b386-59a8d8b02738" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfessionalFees"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_eeaba4d5-37b7-45a3-b13f-133fafe4a489" xlink:to="loc_us-gaap_ProfessionalFees_683905b8-fff9-42b5-b386-59a8d8b02738" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InformationTechnologyAndDataProcessing_4bd78ad3-9f4e-4141-a251-9da189d252d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InformationTechnologyAndDataProcessing"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_eeaba4d5-37b7-45a3-b13f-133fafe4a489" xlink:to="loc_us-gaap_InformationTechnologyAndDataProcessing_4bd78ad3-9f4e-4141-a251-9da189d252d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdvertisingExpense_d3f5e88a-3863-4cd8-ae6e-a2dafcfb1653" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdvertisingExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_eeaba4d5-37b7-45a3-b13f-133fafe4a489" xlink:to="loc_us-gaap_AdvertisingExpense_d3f5e88a-3863-4cd8-ae6e-a2dafcfb1653" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanProcessingFee_5fb89e30-56ee-4f80-b813-05ceee8c249c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LoanProcessingFee"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_eeaba4d5-37b7-45a3-b13f-133fafe4a489" xlink:to="loc_us-gaap_LoanProcessingFee_5fb89e30-56ee-4f80-b813-05ceee8c249c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoninterestExpense_ff78f0f2-3255-4f39-9129-909f6c8f9f36" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNoninterestExpense"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_eeaba4d5-37b7-45a3-b13f-133fafe4a489" xlink:to="loc_us-gaap_OtherNoninterestExpense_ff78f0f2-3255-4f39-9129-909f6c8f9f36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_393bb487-88b3-4c56-b653-fcd5385ef8f6" 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_NoninterestIncomeOtherOperatingIncome_ba49c736-2189-4afa-a950-1d5f4d45b9ea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_393bb487-88b3-4c56-b653-fcd5385ef8f6" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_ba49c736-2189-4afa-a950-1d5f4d45b9ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_9cf4112b-fb13-403c-a6c7-f866fa9bdd24" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_393bb487-88b3-4c56-b653-fcd5385ef8f6" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_9cf4112b-fb13-403c-a6c7-f866fa9bdd24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_32b57a32-8410-45f3-a767-e03f6653ee52" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_393bb487-88b3-4c56-b653-fcd5385ef8f6" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_32b57a32-8410-45f3-a767-e03f6653ee52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_34670c9e-97bd-4efd-a728-7e4658bea08b" 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_812a7351-94e7-4b43-8632-cd7628b38bc7" 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_34670c9e-97bd-4efd-a728-7e4658bea08b" xlink:to="loc_us-gaap_InterestExpenseDeposits_812a7351-94e7-4b43-8632-cd7628b38bc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseBorrowings_8a6a7a93-a978-4607-877c-69e6203f8211" 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_34670c9e-97bd-4efd-a728-7e4658bea08b" xlink:to="loc_us-gaap_InterestExpenseBorrowings_8a6a7a93-a978-4607-877c-69e6203f8211" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_3fbdf1c9-8fc2-476b-a3a8-978e09d0b588" 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_747be12e-0771-425c-8591-9db0c1fef732" 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_3fbdf1c9-8fc2-476b-a3a8-978e09d0b588" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_747be12e-0771-425c-8591-9db0c1fef732" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_5ef6f195-803e-41b5-8b0b-64d36533040b" 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_3fbdf1c9-8fc2-476b-a3a8-978e09d0b588" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_5ef6f195-803e-41b5-8b0b-64d36533040b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_d36245ad-37df-46f7-b23d-7862a8ed354d" 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_9ac3c54f-fb63-4168-8e9b-aebfe523ec4d" 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_d36245ad-37df-46f7-b23d-7862a8ed354d" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_9ac3c54f-fb63-4168-8e9b-aebfe523ec4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_2aa24ef1-aa51-4620-9371-3ccc43021bdd" 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_d36245ad-37df-46f7-b23d-7862a8ed354d" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_2aa24ef1-aa51-4620-9371-3ccc43021bdd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="cbnk-20220630.xsd#ConsolidatedStatementsofComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_680fb68a-6f61-429c-a19c-eec581842d27" 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_82a130a0-87c6-42a6-b01f-b36b4cff5cb7" 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_680fb68a-6f61-429c-a19c-eec581842d27" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_82a130a0-87c6-42a6-b01f-b36b4cff5cb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_be584424-e14d-47a3-b0be-6597b80d260d" 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_680fb68a-6f61-429c-a19c-eec581842d27" xlink:to="loc_us-gaap_NetIncomeLoss_be584424-e14d-47a3-b0be-6597b80d260d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b24efcf7-1065-48ad-8f8c-ffe092e81ce6" 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_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_65c4b0cf-e6d0-4974-8e5d-a9b006ef41ff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b24efcf7-1065-48ad-8f8c-ffe092e81ce6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_65c4b0cf-e6d0-4974-8e5d-a9b006ef41ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_f36203ce-07ae-4b5a-be25-e3ca925ff937" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b24efcf7-1065-48ad-8f8c-ffe092e81ce6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_f36203ce-07ae-4b5a-be25-e3ca925ff937" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_b4b58345-62cb-4152-9a6c-8d92a693912b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_37cb57ca-ce92-45d9-b900-c260dcc3f315" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_b4b58345-62cb-4152-9a6c-8d92a693912b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_37cb57ca-ce92-45d9-b900-c260dcc3f315" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_aecd3f47-a9ba-4a47-89e5-eaf989d9ccf9" 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_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_b4b58345-62cb-4152-9a6c-8d92a693912b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_aecd3f47-a9ba-4a47-89e5-eaf989d9ccf9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="cbnk-20220630.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_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" 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_DepreciationNonproduction_5ca219ed-17f6-453b-8797-b4e5ed4850a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationNonproduction"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_DepreciationNonproduction_5ca219ed-17f6-453b-8797-b4e5ed4850a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_cdf42083-6d26-45a1-ab76-d59e0c8758f8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_ShareBasedCompensation_cdf42083-6d26-45a1-ab76-d59e0c8758f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_698feb52-7036-49df-aa48-5be482aee1c6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_698feb52-7036-49df-aa48-5be482aee1c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_f3520a67-4fc6-4ff1-9e8f-ab297c37b7bf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_f3520a67-4fc6-4ff1-9e8f-ab297c37b7bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_69472c42-4856-4ba0-98a4-babdece57c33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_69472c42-4856-4ba0-98a4-babdece57c33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_5f1dbc2d-0131-4c33-ab70-2d00b8a1883f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_5f1dbc2d-0131-4c33-ab70-2d00b8a1883f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_f59493bc-ce21-4a0d-8dad-6aa536310e62" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_NetIncomeLoss_f59493bc-ce21-4a0d-8dad-6aa536310e62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_7be3f7de-a5df-4448-b3c3-f7eaf8a324b8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_7be3f7de-a5df-4448-b3c3-f7eaf8a324b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForOtherLosses_d06df327-dc9e-45ca-9067-774c6072b9a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForOtherLosses"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_ProvisionForOtherLosses_d06df327-dc9e-45ca-9067-774c6072b9a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_ShareBasedPaymentArrangementDirectorAndEmployeeCompensationPaidInStock_067a31a7-f80f-428d-be84-affee70889b1" xlink:href="cbnk-20220630.xsd#cbnk_ShareBasedPaymentArrangementDirectorAndEmployeeCompensationPaidInStock"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_cbnk_ShareBasedPaymentArrangementDirectorAndEmployeeCompensationPaidInStock_067a31a7-f80f-428d-be84-affee70889b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_fc73a89a-b63f-4e9c-83c2-baba219ab241" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_fc73a89a-b63f-4e9c-83c2-baba219ab241" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_892aeb0c-8595-4225-a141-028cfb7a110c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_892aeb0c-8595-4225-a141-028cfb7a110c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForOtherCreditLosses_fbd20f29-450a-419d-ba91-005ae9f54d81" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForOtherCreditLosses"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_ProvisionForOtherCreditLosses_fbd20f29-450a-419d-ba91-005ae9f54d81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LifeInsuranceCorporateOrBankOwnedChangeInValue_3eb90ba4-2a5f-4cca-85bd-8658632f2a99" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LifeInsuranceCorporateOrBankOwnedChangeInValue"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_LifeInsuranceCorporateOrBankOwnedChangeInValue_3eb90ba4-2a5f-4cca-85bd-8658632f2a99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_a2124758-701a-470f-8180-a3533bf48feb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_a2124758-701a-470f-8180-a3533bf48feb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_ValuationAllowanceOnDerivatives_74e276a4-e58d-4206-aa46-50468e1e02e9" xlink:href="cbnk-20220630.xsd#cbnk_ValuationAllowanceOnDerivatives"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_cbnk_ValuationAllowanceOnDerivatives_74e276a4-e58d-4206-aa46-50468e1e02e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_MortgageBankingAndServicingGainLoss_63809298-45c2-4e3d-be55-0bdeef0a15d7" xlink:href="cbnk-20220630.xsd#cbnk_MortgageBankingAndServicingGainLoss"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_cbnk_MortgageBankingAndServicingGainLoss_63809298-45c2-4e3d-be55-0bdeef0a15d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_d65658fb-cd13-4960-bbd4-806f17e2f765" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_d65658fb-cd13-4960-bbd4-806f17e2f765" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_268921de-9dd5-4de9-bc47-9134f598cb69" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_268921de-9dd5-4de9-bc47-9134f598cb69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_f2fc6680-5222-4e41-880e-37a352f42437" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss"/>
    <link:calculationArc order="20" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3ebdaeb8-774a-41a9-a717-dd7b2d27fe72" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_f2fc6680-5222-4e41-880e-37a352f42437" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_da0d1d14-81f0-418e-9546-b6958701402a" 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_NetChangeNoninterestBearingDepositsDomestic_5785b37f-f488-4f11-906b-438f21bb9af6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetChangeNoninterestBearingDepositsDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_da0d1d14-81f0-418e-9546-b6958701402a" xlink:to="loc_us-gaap_NetChangeNoninterestBearingDepositsDomestic_5785b37f-f488-4f11-906b-438f21bb9af6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetChangeInterestBearingDepositsDomestic_a04c3bdb-8eaa-414f-ba08-2a59cae3df0d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetChangeInterestBearingDepositsDomestic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_da0d1d14-81f0-418e-9546-b6958701402a" xlink:to="loc_us-gaap_NetChangeInterestBearingDepositsDomestic_a04c3bdb-8eaa-414f-ba08-2a59cae3df0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_ProceedsFromRepurchaseOfStockOptions_7fcc8a30-ba8f-438e-832c-05e8840c2960" xlink:href="cbnk-20220630.xsd#cbnk_ProceedsFromRepurchaseOfStockOptions"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_da0d1d14-81f0-418e-9546-b6958701402a" xlink:to="loc_cbnk_ProceedsFromRepurchaseOfStockOptions_7fcc8a30-ba8f-438e-832c-05e8840c2960" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfOtherDebt_75495ab7-4855-4807-b3df-3e4d53b36e87" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromRepaymentsOfOtherDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_da0d1d14-81f0-418e-9546-b6958701402a" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfOtherDebt_75495ab7-4855-4807-b3df-3e4d53b36e87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_b01144c6-a467-4012-8e5b-36875ee3af6f" 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_da0d1d14-81f0-418e-9546-b6958701402a" xlink:to="loc_us-gaap_PaymentsOfDividends_b01144c6-a467-4012-8e5b-36875ee3af6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7ff8180b-67c4-4ade-b1b3-d944f75e5670" 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_cbnk_PaymentsForProceedsFromRestrictedInvestments_2d24670e-6f97-4142-93d5-018298f8b5f7" xlink:href="cbnk-20220630.xsd#cbnk_PaymentsForProceedsFromRestrictedInvestments"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7ff8180b-67c4-4ade-b1b3-d944f75e5670" xlink:to="loc_cbnk_PaymentsForProceedsFromRestrictedInvestments_2d24670e-6f97-4142-93d5-018298f8b5f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_fe922eba-d9c1-493b-bd70-02d03a7e63c1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForProceedsFromProductiveAssets"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7ff8180b-67c4-4ade-b1b3-d944f75e5670" xlink:to="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_fe922eba-d9c1-493b-bd70-02d03a7e63c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_774f5abe-3c08-4855-81c3-e2caefcedc3e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7ff8180b-67c4-4ade-b1b3-d944f75e5670" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_774f5abe-3c08-4855-81c3-e2caefcedc3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromLoansReceivable_4a2ad675-da11-401a-b3ce-c0b7a2970451" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForProceedsFromLoansReceivable"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7ff8180b-67c4-4ade-b1b3-d944f75e5670" xlink:to="loc_us-gaap_PaymentsForProceedsFromLoansReceivable_4a2ad675-da11-401a-b3ce-c0b7a2970451" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_PaymentsForProceedsFromLoansReceivableSmallBusinessAdministrationPaycheckProtectionProgram_b028ed2e-c6d5-4db1-98cc-94c88588f153" xlink:href="cbnk-20220630.xsd#cbnk_PaymentsForProceedsFromLoansReceivableSmallBusinessAdministrationPaycheckProtectionProgram"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7ff8180b-67c4-4ade-b1b3-d944f75e5670" xlink:to="loc_cbnk_PaymentsForProceedsFromLoansReceivableSmallBusinessAdministrationPaycheckProtectionProgram_b028ed2e-c6d5-4db1-98cc-94c88588f153" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_06f16545-7e25-406c-b9c1-7043ccd088d2" 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_7ff8180b-67c4-4ade-b1b3-d944f75e5670" xlink:to="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_06f16545-7e25-406c-b9c1-7043ccd088d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_538668b2-287b-4781-97b0-f11c4d76c4a6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7ff8180b-67c4-4ade-b1b3-d944f75e5670" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_538668b2-287b-4781-97b0-f11c4d76c4a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_50f97548-f717-4d23-88a6-9abeecdea6b6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7ff8180b-67c4-4ade-b1b3-d944f75e5670" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_50f97548-f717-4d23-88a6-9abeecdea6b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireLifeInsurancePolicies_4fc3e0f8-072a-4a54-bf2d-da3dffed95ed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireLifeInsurancePolicies"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7ff8180b-67c4-4ade-b1b3-d944f75e5670" xlink:to="loc_us-gaap_PaymentsToAcquireLifeInsurancePolicies_4fc3e0f8-072a-4a54-bf2d-da3dffed95ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_02a260cc-02e8-4454-b077-82c776d1c780" 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_NetCashProvidedByUsedInFinancingActivities_bad12f49-abb3-404e-8477-82b6d1734876" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_02a260cc-02e8-4454-b077-82c776d1c780" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_bad12f49-abb3-404e-8477-82b6d1734876" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bd66feaa-5b08-4421-a199-8e084bf86493" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_02a260cc-02e8-4454-b077-82c776d1c780" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bd66feaa-5b08-4421-a199-8e084bf86493" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_6b5a98e6-833f-44c1-ae05-8dbfb1554d67" 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_02a260cc-02e8-4454-b077-82c776d1c780" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_6b5a98e6-833f-44c1-ae05-8dbfb1554d67" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureofBusinessandBasisofPresentationComprehensiveLossDetails" xlink:type="simple" xlink:href="cbnk-20220630.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_d90a1d51-bd74-490e-8c98-f9c1fc53b747" 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_b49a9cae-9c1b-4895-91b2-852a3a7bfe0b" 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_d90a1d51-bd74-490e-8c98-f9c1fc53b747" xlink:to="loc_us-gaap_AociBeforeTaxAttributableToParent_b49a9cae-9c1b-4895-91b2-852a3a7bfe0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociTaxAttributableToParent_781bdcde-422d-40bc-a331-dba48e60ae0a" 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_d90a1d51-bd74-490e-8c98-f9c1fc53b747" xlink:to="loc_us-gaap_AociTaxAttributableToParent_781bdcde-422d-40bc-a331-dba48e60ae0a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/InvestmentSecuritiesAmortizedcosttoEstimatedFairValueDetails" xlink:type="simple" xlink:href="cbnk-20220630.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_12e9ac17-d54f-435f-bb0b-492a4d95cc34" 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_fcdac556-31c9-472e-bdde-4581ddb82de4" 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_12e9ac17-d54f-435f-bb0b-492a4d95cc34" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_fcdac556-31c9-472e-bdde-4581ddb82de4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a73f16a2-9b45-4e56-8d52-5eb2c31fbf81" 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_12e9ac17-d54f-435f-bb0b-492a4d95cc34" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a73f16a2-9b45-4e56-8d52-5eb2c31fbf81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_11995af0-6a0a-4509-8c28-8837f8c71bfa" 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_12e9ac17-d54f-435f-bb0b-492a4d95cc34" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_11995af0-6a0a-4509-8c28-8837f8c71bfa" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/InvestmentSecuritiesUnrealizedLossesDetails" xlink:type="simple" xlink:href="cbnk-20220630.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_71445d2c-79de-46bb-a1b3-84ed75ed9bf3" 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_8908338c-06d0-4239-8501-04a2ebb46da9" 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_71445d2c-79de-46bb-a1b3-84ed75ed9bf3" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_8908338c-06d0-4239-8501-04a2ebb46da9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_f3b33b84-1e27-459d-a616-4ea2491cf01b" 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_71445d2c-79de-46bb-a1b3-84ed75ed9bf3" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_f3b33b84-1e27-459d-a616-4ea2491cf01b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_f1faf7b7-1bc7-4550-8cef-f41a74fc69fd" 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_f8306c58-2f78-432a-80b4-dedf8d008296" 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_f1faf7b7-1bc7-4550-8cef-f41a74fc69fd" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_f8306c58-2f78-432a-80b4-dedf8d008296" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_9937bd56-5a97-4096-bff9-e6c154502b54" 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_f1faf7b7-1bc7-4550-8cef-f41a74fc69fd" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_9937bd56-5a97-4096-bff9-e6c154502b54" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableClassificationofLoansDetails" xlink:type="simple" xlink:href="cbnk-20220630.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_94fb7818-1199-4a86-93ba-0237630c5237" 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_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_c58ca01c-adb3-4cab-ae33-bbb49aa9410c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_94fb7818-1199-4a86-93ba-0237630c5237" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_c58ca01c-adb3-4cab-ae33-bbb49aa9410c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_79d855c7-f324-45c8-86f8-fe21b93a41c9" 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_94fb7818-1199-4a86-93ba-0237630c5237" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_79d855c7-f324-45c8-86f8-fe21b93a41c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableDeferredIncome_50889f7d-981f-4363-a3b8-1c938cf1cce7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableDeferredIncome"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_94fb7818-1199-4a86-93ba-0237630c5237" xlink:to="loc_us-gaap_FinancingReceivableDeferredIncome_50889f7d-981f-4363-a3b8-1c938cf1cce7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/LeasesAssetsandLiabilitiesandLeasePaymentObligationsDetails" xlink:type="simple" xlink:href="cbnk-20220630.xsd#LeasesAssetsandLiabilitiesandLeasePaymentObligationsDetails"/>
  <link:calculationLink xlink:role="http://capitalbankmd.com/role/LeasesAssetsandLiabilitiesandLeasePaymentObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OperatingLeaseRightOfUseAssetNet_5c05255d-b351-4a77-aa36-43a597425675" xlink:href="cbnk-20220630.xsd#cbnk_OperatingLeaseRightOfUseAssetNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OperatingLeaseRightOfUseAssetAccumulatedAmortization_880b9b60-48bb-40ff-a0d4-5e82bfd22c5d" xlink:href="cbnk-20220630.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_5c05255d-b351-4a77-aa36-43a597425675" xlink:to="loc_cbnk_OperatingLeaseRightOfUseAssetAccumulatedAmortization_880b9b60-48bb-40ff-a0d4-5e82bfd22c5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OperatingLeaseRightOfUseAssetBeforeAccumulatedAmortization_73e1f110-c2ea-4cab-9579-15ed3f1129f8" xlink:href="cbnk-20220630.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_5c05255d-b351-4a77-aa36-43a597425675" xlink:to="loc_cbnk_OperatingLeaseRightOfUseAssetBeforeAccumulatedAmortization_73e1f110-c2ea-4cab-9579-15ed3f1129f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_20748725-297f-427b-8698-b3e2f6ac9a38" 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_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_7dabd307-f039-4f68-a2fa-39717fa51726" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_20748725-297f-427b-8698-b3e2f6ac9a38" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_7dabd307-f039-4f68-a2fa-39717fa51726" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_52e52f57-36cf-4022-af95-a3a67edca693" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_20748725-297f-427b-8698-b3e2f6ac9a38" xlink:to="loc_us-gaap_OperatingLeaseLiability_52e52f57-36cf-4022-af95-a3a67edca693" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_358f5efe-f5d9-4c06-bcd4-caafabe85951" 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_4f0432d9-e3e6-40c0-abe8-28b6f70a9c5d" xlink:href="cbnk-20220630.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_358f5efe-f5d9-4c06-bcd4-caafabe85951" xlink:to="loc_cbnk_OperatingLeaseLiabilityIncludingAccumulatedAmortization_4f0432d9-e3e6-40c0-abe8-28b6f70a9c5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_OperatingLeaseLiabilityAccumulatedAmortization_92238b70-0b8c-461a-a93f-8c82477df853" xlink:href="cbnk-20220630.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_358f5efe-f5d9-4c06-bcd4-caafabe85951" xlink:to="loc_cbnk_OperatingLeaseLiabilityAccumulatedAmortization_92238b70-0b8c-461a-a93f-8c82477df853" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://capitalbankmd.com/role/LeasesAssetsandLiabilitiesandLeasePaymentObligationsDetails_1" xlink:type="simple" xlink:href="cbnk-20220630.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_b46a3b49-86a4-4380-bf86-49ad64cbf61b" 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_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_14d920e2-de41-4ae6-8763-a645c898db05" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b46a3b49-86a4-4380-bf86-49ad64cbf61b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_14d920e2-de41-4ae6-8763-a645c898db05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_944fedf1-b955-4602-ad98-8725294591fa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b46a3b49-86a4-4380-bf86-49ad64cbf61b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_944fedf1-b955-4602-ad98-8725294591fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_d8b48e04-b084-41f2-bd95-2d107287c6a3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b46a3b49-86a4-4380-bf86-49ad64cbf61b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_d8b48e04-b084-41f2-bd95-2d107287c6a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cbnk_LesseeOperatingLeaseLiabilityToBePaidYearFourAndThereafter_1a484cef-040f-4549-a041-58db281c9c1b" xlink:href="cbnk-20220630.xsd#cbnk_LesseeOperatingLeaseLiabilityToBePaidYearFourAndThereafter"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b46a3b49-86a4-4380-bf86-49ad64cbf61b" xlink:to="loc_cbnk_LesseeOperatingLeaseLiabilityToBePaidYearFourAndThereafter_1a484cef-040f-4549-a041-58db281c9c1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_3e848af6-cfd6-461b-bff6-f24ec423574a" 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_b46a3b49-86a4-4380-bf86-49ad64cbf61b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_3e848af6-cfd6-461b-bff6-f24ec423574a" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
