<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://capitalbankmd.com/role/CashAndCashEquivalents" xlink:href="cbnk-20200630.xsd#CashAndCashEquivalents" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedBalanceSheets" xlink:href="cbnk-20200630.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="cbnk-20200630.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsOfCashFlowsUnaudited" xlink:href="cbnk-20200630.xsd#ConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited" xlink:href="cbnk-20200630.xsd#ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsOfComprehensiveIncomeUnaudited" xlink:href="cbnk-20200630.xsd#ConsolidatedStatementsOfComprehensiveIncomeUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsOfIncomeUnaudited" xlink:href="cbnk-20200630.xsd#ConsolidatedStatementsOfIncomeUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/ConsolidatedStatementsOfIncomeUnauditedParenthetical" xlink:href="cbnk-20200630.xsd#ConsolidatedStatementsOfIncomeUnauditedParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/CoverPage" xlink:href="cbnk-20200630.xsd#CoverPage" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/DerivativeFinancialInstruments" xlink:href="cbnk-20200630.xsd#DerivativeFinancialInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/DerivativeFinancialInstrumentsDetails" xlink:href="cbnk-20200630.xsd#DerivativeFinancialInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/DerivativeFinancialInstrumentsTables" xlink:href="cbnk-20200630.xsd#DerivativeFinancialInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/FairValue" xlink:href="cbnk-20200630.xsd#FairValue" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/FairValueFinancialInstrumentsCarryingAmountFvAndPlacementDetails" xlink:href="cbnk-20200630.xsd#FairValueFinancialInstrumentsCarryingAmountFvAndPlacementDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/FairValueFinancialInstrumentsMeasuredAtFvOnRecurringBasisDetails" xlink:href="cbnk-20200630.xsd#FairValueFinancialInstrumentsMeasuredAtFvOnRecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/FairValueImpairedLoansAndForeclosedRealEstateDetails" xlink:href="cbnk-20200630.xsd#FairValueImpairedLoansAndForeclosedRealEstateDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/FairValueLoansHeldForSaleDetails" xlink:href="cbnk-20200630.xsd#FairValueLoansHeldForSaleDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/FairValueTables" xlink:href="cbnk-20200630.xsd#FairValueTables" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/InvestmentSecurities" xlink:href="cbnk-20200630.xsd#InvestmentSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/InvestmentSecuritiesAmortizedCostToEstimatedFairValueDetails" xlink:href="cbnk-20200630.xsd#InvestmentSecuritiesAmortizedCostToEstimatedFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/InvestmentSecuritiesByMaturityDatesDetails" xlink:href="cbnk-20200630.xsd#InvestmentSecuritiesByMaturityDatesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/InvestmentSecuritiesPledgedSecuritiesDetails" xlink:href="cbnk-20200630.xsd#InvestmentSecuritiesPledgedSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/InvestmentSecuritiesTables" xlink:href="cbnk-20200630.xsd#InvestmentSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/InvestmentSecuritiesUnrealizedLossesDetails" xlink:href="cbnk-20200630.xsd#InvestmentSecuritiesUnrealizedLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/Leases" xlink:href="cbnk-20200630.xsd#Leases" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/LeasesAdditionalInformationDetails" xlink:href="cbnk-20200630.xsd#LeasesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/LeasesAssetsAndLiabilitiesAndLeasePaymentObligationsDetails" xlink:href="cbnk-20200630.xsd#LeasesAssetsAndLiabilitiesAndLeasePaymentObligationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/LeasesTables" xlink:href="cbnk-20200630.xsd#LeasesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentation" xlink:href="cbnk-20200630.xsd#NatureOfBusinessAndBasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationBasisOfPresentationDetails" xlink:href="cbnk-20200630.xsd#NatureOfBusinessAndBasisOfPresentationBasisOfPresentationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationComprehensiveIncomeDetails" xlink:href="cbnk-20200630.xsd#NatureOfBusinessAndBasisOfPresentationComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationEarningsPerShareDetails" xlink:href="cbnk-20200630.xsd#NatureOfBusinessAndBasisOfPresentationEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationLeasesDetails" xlink:href="cbnk-20200630.xsd#NatureOfBusinessAndBasisOfPresentationLeasesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationPolicies" xlink:href="cbnk-20200630.xsd#NatureOfBusinessAndBasisOfPresentationPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationPremisesAndEquipmentDetails" xlink:href="cbnk-20200630.xsd#NatureOfBusinessAndBasisOfPresentationPremisesAndEquipmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationSbaPaycheckProtectionProgramDetails" xlink:href="cbnk-20200630.xsd#NatureOfBusinessAndBasisOfPresentationSbaPaycheckProtectionProgramDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationTables" xlink:href="cbnk-20200630.xsd#NatureOfBusinessAndBasisOfPresentationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivable" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivable" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableAccretableDiscountDetails" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivableAccretableDiscountDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableActivityInAllowanceForLoanLossesDetails" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivableActivityInAllowanceForLoanLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableAllowanceForLoanLossesDetails" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivableAllowanceForLoanLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableClassificationOfLoansDetails" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivableClassificationOfLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableCreditQualityIndicatorsDetails" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivableCreditQualityIndicatorsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableImpairedLoansDetails" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivableImpairedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableOutstandingLoanCommitmentsDetails" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivableOutstandingLoanCommitmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivablePastDueFinancingReceivableDetails" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivablePastDueFinancingReceivableDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableTables" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivableTables" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/PortfolioLoansReceivableTroubleDebtRestructuringDetails" xlink:href="cbnk-20200630.xsd#PortfolioLoansReceivableTroubleDebtRestructuringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/SbaPppLoansReceivable" xlink:href="cbnk-20200630.xsd#SbaPppLoansReceivable" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/SbaPppLoansReceivableDetails" xlink:href="cbnk-20200630.xsd#SbaPppLoansReceivableDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/Segments" xlink:href="cbnk-20200630.xsd#Segments" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/SegmentsDetails" xlink:href="cbnk-20200630.xsd#SegmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/SegmentsTables" xlink:href="cbnk-20200630.xsd#SegmentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://capitalbankmd.com/role/SubsequentEvents" xlink:href="cbnk-20200630.xsd#SubsequentEvents" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/CashAndCashEquivalents" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/ConsolidatedBalanceSheets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/ConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_C806F39A59C22D0FB09DBF58C640A9FC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_BAEF6386C060C167B3B0BF58C63E9767" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_C806F39A59C22D0FB09DBF58C640A9FC" xlink:to="loc_us-gaap_StatementTable_BAEF6386C060C167B3B0BF58C63E9767" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_A2779884744DF46CE271BF58C63E456F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_BAEF6386C060C167B3B0BF58C63E9767" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_A2779884744DF46CE271BF58C63E456F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_6FE6C0CF97CC727A255CBF58C63E4A17_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_A2779884744DF46CE271BF58C63E456F" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_6FE6C0CF97CC727A255CBF58C63E4A17_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_6FE6C0CF97CC727A255CBF58C63E4A17" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_A2779884744DF46CE271BF58C63E456F" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_6FE6C0CF97CC727A255CBF58C63E4A17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_291263C6EF502C2E098DBF58C63EAC5B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_6FE6C0CF97CC727A255CBF58C63E4A17" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_291263C6EF502C2E098DBF58C63EAC5B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_BC67C486966A0DDC1E3DBF58C63FD4F5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_BAEF6386C060C167B3B0BF58C63E9767" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_BC67C486966A0DDC1E3DBF58C63FD4F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_2FAF57FE316AAF927E15BF58C63FFC15_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_BC67C486966A0DDC1E3DBF58C63FD4F5" xlink:to="loc_us-gaap_EquityComponentDomain_2FAF57FE316AAF927E15BF58C63FFC15_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_2FAF57FE316AAF927E15BF58C63FFC15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_BC67C486966A0DDC1E3DBF58C63FD4F5" xlink:to="loc_us-gaap_EquityComponentDomain_2FAF57FE316AAF927E15BF58C63FFC15" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_8862FE2BDE483161B842BF58C63FE5DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_2FAF57FE316AAF927E15BF58C63FFC15" xlink:to="loc_us-gaap_CommonStockMember_8862FE2BDE483161B842BF58C63FE5DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_85795EA312D109381F60BF58C63FA7B3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_2FAF57FE316AAF927E15BF58C63FFC15" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_85795EA312D109381F60BF58C63FA7B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_4562930BE544B269FCF8BF58C6405340" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_2FAF57FE316AAF927E15BF58C63FFC15" xlink:to="loc_us-gaap_RetainedEarningsMember_4562930BE544B269FCF8BF58C6405340" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_D779D8479F40F023D616BF58C640131B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_2FAF57FE316AAF927E15BF58C63FFC15" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_D779D8479F40F023D616BF58C640131B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_C806F39A59C22D0FB09DBF58C640A9FC" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_B10DDBD4EFFAF7446FB9BF58C6408017" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_B10DDBD4EFFAF7446FB9BF58C6408017" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_517F78B1331C43C0057CBF58C641A3D2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_StockholdersEquity_517F78B1331C43C0057CBF58C641A3D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountingStandardsUpdateExtensibleList" xlink:label="loc_us-gaap_AccountingStandardsUpdateExtensibleList_A694C7C4B292C2764950BF58C6411B7C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_AccountingStandardsUpdateExtensibleList_A694C7C4B292C2764950BF58C6411B7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_149D747D23CF85334D35BF58C6463233" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_NetIncomeLoss_149D747D23CF85334D35BF58C6463233" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_BDDA883535F8316D038ABF58C64624A3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_BDDA883535F8316D038ABF58C64624A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_5E90313FDA7D0F341447BF58C6461146" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_5E90313FDA7D0F341447BF58C6461146" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_11FF2BC0C992096FAD33BF58C647BC03" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_11FF2BC0C992096FAD33BF58C647BC03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_FD6756F9A3E2584D095CBF58C64797AA" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_FD6756F9A3E2584D095CBF58C64797AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_70A6DD7DEAD30384C56CBF58C6470B55" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_70A6DD7DEAD30384C56CBF58C6470B55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_18DB431BEB45D087C6D5BF58C647E85C" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_18DB431BEB45D087C6D5BF58C647E85C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_98F600F257D1029DD575BF58C6479F78" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_98F600F257D1029DD575BF58C6479F78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_5873FC5B9D71155A6343BF58C64709A6" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_5873FC5B9D71155A6343BF58C64709A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_E58B0A1A415152556662BF58C6479255" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_0393602CF7BCC5C11CB8BF58C6406661" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_E58B0A1A415152556662BF58C6479255" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/ConsolidatedStatementsOfComprehensiveIncomeUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/ConsolidatedStatementsOfIncomeUnaudited" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_B916B0AFA1A9E09375F0C18CF4A76EFA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_StatementTable_B916B0AFA1A9E09375F0C18CF4A76EFA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_1E11AB495BF6B57FD5D7C18CF4A8C4D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_B916B0AFA1A9E09375F0C18CF4A76EFA" xlink:to="loc_srt_ProductOrServiceAxis_1E11AB495BF6B57FD5D7C18CF4A8C4D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_B0DDD0A491C2AA81ECE6C18CF4A8040A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_1E11AB495BF6B57FD5D7C18CF4A8C4D4" xlink:to="loc_srt_ProductsAndServicesDomain_B0DDD0A491C2AA81ECE6C18CF4A8040A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_B0DDD0A491C2AA81ECE6C18CF4A8040A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_1E11AB495BF6B57FD5D7C18CF4A8C4D4" xlink:to="loc_srt_ProductsAndServicesDomain_B0DDD0A491C2AA81ECE6C18CF4A8040A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BankServicingMember" xlink:label="loc_us-gaap_BankServicingMember_5376E333E5421047B75FC18CF4A8C71C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_B0DDD0A491C2AA81ECE6C18CF4A8040A" xlink:to="loc_us-gaap_BankServicingMember_5376E333E5421047B75FC18CF4A8C71C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditCardMember" xlink:label="loc_us-gaap_CreditCardMember_2B5ABBE7262745AD2847C18CF4A8F504" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_B0DDD0A491C2AA81ECE6C18CF4A8040A" xlink:to="loc_us-gaap_CreditCardMember_2B5ABBE7262745AD2847C18CF4A8F504" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MortgageBankingMember" xlink:label="loc_us-gaap_MortgageBankingMember_86D92C604E5C23F96F88C18CF4A98CAC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_B0DDD0A491C2AA81ECE6C18CF4A8040A" xlink:to="loc_us-gaap_MortgageBankingMember_86D92C604E5C23F96F88C18CF4A98CAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndDividendIncomeOperatingAbstract" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_D7C0585C7DE72E54EACCC18CF4A9B962" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_D7C0585C7DE72E54EACCC18CF4A9B962" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_EBD0CE675E39E0C482EEC18CF4A9E9CC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_D7C0585C7DE72E54EACCC18CF4A9B962" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_EBD0CE675E39E0C482EEC18CF4A9E9CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating" xlink:label="loc_us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating_3C7FDAF26DBDDD3433DBC18CF4A97497" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_D7C0585C7DE72E54EACCC18CF4A9B962" xlink:to="loc_us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating_3C7FDAF26DBDDD3433DBC18CF4A97497" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeFederalFundsSold" xlink:label="loc_us-gaap_InterestIncomeFederalFundsSold_FE04C2F234C986F6F2D8C18CF4AAD002" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_D7C0585C7DE72E54EACCC18CF4A9B962" xlink:to="loc_us-gaap_InterestIncomeFederalFundsSold_FE04C2F234C986F6F2D8C18CF4AAD002" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_4B5CA252E681A3A4ACE2C18CF4AA71FB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperatingAbstract_D7C0585C7DE72E54EACCC18CF4A9B962" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_4B5CA252E681A3A4ACE2C18CF4AA71FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseAbstract" xlink:label="loc_us-gaap_InterestExpenseAbstract_F59E32EA17D7CE5229C3C18CF4AA41F2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_InterestExpenseAbstract_F59E32EA17D7CE5229C3C18CF4AA41F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseDeposits" xlink:label="loc_us-gaap_InterestExpenseDeposits_09A0372FE687FA7585A7C18CF4AA5485" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestExpenseAbstract_F59E32EA17D7CE5229C3C18CF4AA41F2" xlink:to="loc_us-gaap_InterestExpenseDeposits_09A0372FE687FA7585A7C18CF4AA5485" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseBorrowings" xlink:label="loc_us-gaap_InterestExpenseBorrowings_668A83C24A645BE4B95EC18CF4AA0300" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestExpenseAbstract_F59E32EA17D7CE5229C3C18CF4AA41F2" xlink:to="loc_us-gaap_InterestExpenseBorrowings_668A83C24A645BE4B95EC18CF4AA0300" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_E3C57E0D70CFFAAE5B1CC18CF4AB5E5A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestExpenseAbstract_F59E32EA17D7CE5229C3C18CF4AA41F2" xlink:to="loc_us-gaap_InterestExpense_E3C57E0D70CFFAAE5B1CC18CF4AB5E5A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_A57E5FDDC25513F100B3C18CF4AB5BDB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_A57E5FDDC25513F100B3C18CF4AB5BDB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_6DE6F9C464304C8C5449C18CF4ABD5DF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_6DE6F9C464304C8C5449C18CF4ABD5DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_AF162149E84816F4C4B2C18CF4ABC5D3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_AF162149E84816F4C4B2C18CF4ABC5D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoninterestIncomeAbstract" xlink:label="loc_us-gaap_NoninterestIncomeAbstract_15583AABCF2C062508F3C18CF4AB0788" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_NoninterestIncomeAbstract_15583AABCF2C062508F3C18CF4AB0788" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_2985A375C42F1695118EC18CF4AB1C59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_15583AABCF2C062508F3C18CF4AB0788" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_2985A375C42F1695118EC18CF4AB1C59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_2FE7C452A2447EF6B620C18CF4AC9ED4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_15583AABCF2C062508F3C18CF4AB0788" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_2FE7C452A2447EF6B620C18CF4AC9ED4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_28C242652385D7872873C18CF4AC66CE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_15583AABCF2C062508F3C18CF4AB0788" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_28C242652385D7872873C18CF4AC66CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_EEE1D8FE4BF64175F794C18CF4AC00B8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestIncomeAbstract_15583AABCF2C062508F3C18CF4AB0788" xlink:to="loc_us-gaap_NoninterestIncome_EEE1D8FE4BF64175F794C18CF4AC00B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoninterestExpenseAbstract" xlink:label="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_AE1C46F03CD544D011CDC18CF4AC2BF7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:to="loc_us-gaap_LaborAndRelatedExpense_AE1C46F03CD544D011CDC18CF4AC2BF7" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OccupancyAndEquipmentExpense" xlink:label="loc_cbnk_OccupancyAndEquipmentExpense_AF78BA56F0C06893062EC18CF4AD42B0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:to="loc_cbnk_OccupancyAndEquipmentExpense_AF78BA56F0C06893062EC18CF4AD42B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfessionalFees" xlink:label="loc_us-gaap_ProfessionalFees_27242AE151F12E409DF2C18CF4ADF9DB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:to="loc_us-gaap_ProfessionalFees_27242AE151F12E409DF2C18CF4ADF9DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InformationTechnologyAndDataProcessing" xlink:label="loc_us-gaap_InformationTechnologyAndDataProcessing_7ED3DDC716AC698ADB24C18CF4AD80BF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:to="loc_us-gaap_InformationTechnologyAndDataProcessing_7ED3DDC716AC698ADB24C18CF4AD80BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdvertisingExpense" xlink:label="loc_us-gaap_AdvertisingExpense_B9D1852C4FC5673D1B8EC18CF4AD6907" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:to="loc_us-gaap_AdvertisingExpense_B9D1852C4FC5673D1B8EC18CF4AD6907" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoanProcessingFee" xlink:label="loc_us-gaap_LoanProcessingFee_8E68EC4F5DDBEC0097BEC18CF4ADE245" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:to="loc_us-gaap_LoanProcessingFee_8E68EC4F5DDBEC0097BEC18CF4ADE245" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OtherRealEstateExpensesNet" xlink:label="loc_cbnk_OtherRealEstateExpensesNet_78D968BBB7E1D261C1A3C18CF4AE2112" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:to="loc_cbnk_OtherRealEstateExpensesNet_78D968BBB7E1D261C1A3C18CF4AE2112" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_9EF6BE59E6E6185B40E6C18CF4AE5C9B" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:to="loc_us-gaap_OtherNoninterestExpense_9EF6BE59E6E6185B40E6C18CF4AE5C9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_743B1F4A6BE9B7E15511C18CF4AE7683" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoninterestExpenseAbstract_A8D5BE04D914CDFE21DFC18CF4AC7588" xlink:to="loc_us-gaap_NoninterestExpense_743B1F4A6BE9B7E15511C18CF4AE7683" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_30BF96AC2D2C04F3EC79C18CF4AE85BB" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_30BF96AC2D2C04F3EC79C18CF4AE85BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_0067478695C9DAF63F15C18CF4AE5746" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_0067478695C9DAF63F15C18CF4AE5746" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_75DEA12D0A14CB9E385CC18CF4AE1F08" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_NetIncomeLoss_75DEA12D0A14CB9E385CC18CF4AE1F08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_ECB5FFFD6C60A98AACE1C18CF4AF9A4F" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_EarningsPerShareBasic_ECB5FFFD6C60A98AACE1C18CF4AF9A4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_00E177561C23ABC0559AC18CF4AF505A" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_EarningsPerShareDiluted_00E177561C23ABC0559AC18CF4AF505A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_F0355A19C6596832CD45C18CF4B4F1DA" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6AB59BA2B3CED9BE6162C18CF4A9BD85" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_F0355A19C6596832CD45C18CF4B4F1DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_F9B3F4414BBE8D961FFBC18CF4B480CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_F0355A19C6596832CD45C18CF4B4F1DA" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_F9B3F4414BBE8D961FFBC18CF4B480CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_82F3B06F42520DACF00FC18CF4B562B3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_F0355A19C6596832CD45C18CF4B4F1DA" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_82F3B06F42520DACF00FC18CF4B562B3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/ConsolidatedStatementsOfIncomeUnauditedParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/CoverPage" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/DerivativeFinancialInstruments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/DerivativeFinancialInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativesFairValueLineItems" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_C0EE6418814F2A38916FBF58C4B5CE12" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_C7DE0FA052CBB9DA506DBF58C4B2FD7A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_C0EE6418814F2A38916FBF58C4B5CE12" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_C7DE0FA052CBB9DA506DBF58C4B2FD7A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_FC26409A1A1B4F2E86E8BF58C4B377B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_C7DE0FA052CBB9DA506DBF58C4B2FD7A" xlink:to="loc_us-gaap_HedgingDesignationAxis_FC26409A1A1B4F2E86E8BF58C4B377B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_C145B367C73BE15741ABBF58C4B3D954_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_FC26409A1A1B4F2E86E8BF58C4B377B9" xlink:to="loc_us-gaap_HedgingDesignationDomain_C145B367C73BE15741ABBF58C4B3D954_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_C145B367C73BE15741ABBF58C4B3D954" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_FC26409A1A1B4F2E86E8BF58C4B377B9" xlink:to="loc_us-gaap_HedgingDesignationDomain_C145B367C73BE15741ABBF58C4B3D954" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_9B0DDE0D6A0CF60E88DEBF58C4B34AD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_C145B367C73BE15741ABBF58C4B3D954" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_9B0DDE0D6A0CF60E88DEBF58C4B34AD9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_9B4E88040EA007EC48DEBF58C4B47277" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_C7DE0FA052CBB9DA506DBF58C4B2FD7A" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_9B4E88040EA007EC48DEBF58C4B47277" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_12A94CA4D5103775BB60BF58C4B401C7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_9B4E88040EA007EC48DEBF58C4B47277" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_12A94CA4D5103775BB60BF58C4B401C7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_12A94CA4D5103775BB60BF58C4B401C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_9B4E88040EA007EC48DEBF58C4B47277" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_12A94CA4D5103775BB60BF58C4B401C7" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OpenForwardDeliverySalesAgreementMember" xlink:label="loc_cbnk_OpenForwardDeliverySalesAgreementMember_8E6832043BA92BA255DFBF58C4B4A70D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_12A94CA4D5103775BB60BF58C4B401C7" xlink:to="loc_cbnk_OpenForwardDeliverySalesAgreementMember_8E6832043BA92BA255DFBF58C4B4A70D" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OpenMandatoryDeliveryCommitmentsMember" xlink:label="loc_cbnk_OpenMandatoryDeliveryCommitmentsMember_F8913862F5DE54126BAEBF58C4B4B610" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_12A94CA4D5103775BB60BF58C4B401C7" xlink:to="loc_cbnk_OpenMandatoryDeliveryCommitmentsMember_F8913862F5DE54126BAEBF58C4B4B610" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestRateLockCommitmentsMember" xlink:label="loc_us-gaap_InterestRateLockCommitmentsMember_BDCBB4D8C84AB26F307DBF58C4B460EC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_12A94CA4D5103775BB60BF58C4B401C7" xlink:to="loc_us-gaap_InterestRateLockCommitmentsMember_BDCBB4D8C84AB26F307DBF58C4B460EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeNotionalAmount" xlink:label="loc_us-gaap_DerivativeNotionalAmount_A67FB5584C74B53F15FFBF58C4B55F74" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_C0EE6418814F2A38916FBF58C4B5CE12" xlink:to="loc_us-gaap_DerivativeNotionalAmount_A67FB5584C74B53F15FFBF58C4B55F74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_CE33EC811C72E3205CDDBF58C4B58314" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_C0EE6418814F2A38916FBF58C4B5CE12" xlink:to="loc_us-gaap_DerivativeLiabilities_CE33EC811C72E3205CDDBF58C4B58314" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_3B3624CCCA328156A9B7BF58C4B5070E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_C0EE6418814F2A38916FBF58C4B5CE12" xlink:to="loc_us-gaap_DerivativeAssets_3B3624CCCA328156A9B7BF58C4B5070E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/DerivativeFinancialInstrumentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/FairValue" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/FairValueFinancialInstrumentsCarryingAmountFvAndPlacementDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_87DD14A756E906B822A6C9F68FCC8C3F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_2ACA22186D00B225B326C9F68FC401F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_87DD14A756E906B822A6C9F68FCC8C3F" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_2ACA22186D00B225B326C9F68FC401F2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_F7DC2ED79B6ADF685BACC9F68FC4D664" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_2ACA22186D00B225B326C9F68FC401F2" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_F7DC2ED79B6ADF685BACC9F68FC4D664" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_AC13FFC8164FC4E38255C9F68FC59BA8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_F7DC2ED79B6ADF685BACC9F68FC4D664" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_AC13FFC8164FC4E38255C9F68FC59BA8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_DC509E3C565DD3D85984C9F68FC5D82D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_F7DC2ED79B6ADF685BACC9F68FC4D664" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_DC509E3C565DD3D85984C9F68FC5D82D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_AC13FFC8164FC4E38255C9F68FC59BA8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_DC509E3C565DD3D85984C9F68FC5D82D" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_AC13FFC8164FC4E38255C9F68FC59BA8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_D04327D61AFD4C76F611C9F68FC51135" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_DC509E3C565DD3D85984C9F68FC5D82D" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_D04327D61AFD4C76F611C9F68FC51135" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_8A17E25706FFCF41A146C9F68FC5B281" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_DC509E3C565DD3D85984C9F68FC5D82D" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_8A17E25706FFCF41A146C9F68FC5B281" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C7DD39F889455AEFA00C9F68FC6BA1C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_2ACA22186D00B225B326C9F68FC401F2" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C7DD39F889455AEFA00C9F68FC6BA1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ADC383C658B08CEADB4CC9F68FC65E7B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C7DD39F889455AEFA00C9F68FC6BA1C" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ADC383C658B08CEADB4CC9F68FC65E7B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ADC383C658B08CEADB4CC9F68FC65E7B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C7DD39F889455AEFA00C9F68FC6BA1C" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ADC383C658B08CEADB4CC9F68FC65E7B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_7FA7AAFE4E76B6BBE6EEC9F68FC62143" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ADC383C658B08CEADB4CC9F68FC65E7B" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_7FA7AAFE4E76B6BBE6EEC9F68FC62143" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_AC675FDC9FB6ED2A535FC9F68FC6144B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ADC383C658B08CEADB4CC9F68FC65E7B" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_AC675FDC9FB6ED2A535FC9F68FC6144B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract" xlink:label="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_538E79BEE26458CFF594C9F68FCC9AF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_87DD14A756E906B822A6C9F68FCC8C3F" xlink:to="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_538E79BEE26458CFF594C9F68FCC9AF0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndDueFromBanks" xlink:label="loc_us-gaap_CashAndDueFromBanks_56CC970CC70B01DA3C48C9F68FCC38B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_538E79BEE26458CFF594C9F68FCC9AF0" xlink:to="loc_us-gaap_CashAndDueFromBanks_56CC970CC70B01DA3C48C9F68FCC38B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestBearingDepositsInBanks" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_B00D54038241E49089A4C9F68FCDFADF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_538E79BEE26458CFF594C9F68FCC9AF0" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_B00D54038241E49089A4C9F68FCDFADF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FederalFundsSold" xlink:label="loc_us-gaap_FederalFundsSold_F388B6BC8F5E9AAC42ACC9F68FCD0FB9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_538E79BEE26458CFF594C9F68FCC9AF0" xlink:to="loc_us-gaap_FederalFundsSold_F388B6BC8F5E9AAC42ACC9F68FCD0FB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_3022FA78E3B093A5AD32C9F68FCDE9A9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_538E79BEE26458CFF594C9F68FCC9AF0" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_3022FA78E3B093A5AD32C9F68FCDE9A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedInvestmentsAtFairValue" xlink:label="loc_us-gaap_RestrictedInvestmentsAtFairValue_8D180DF9E7FA5AA64022C9F68FCD0E05" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_538E79BEE26458CFF594C9F68FCC9AF0" xlink:to="loc_us-gaap_RestrictedInvestmentsAtFairValue_8D180DF9E7FA5AA64022C9F68FCD0E05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract" xlink:label="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_1A2DDDBD706A738B2DFCC9F68FCD42E5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_87DD14A756E906B822A6C9F68FCC8C3F" xlink:to="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_1A2DDDBD706A738B2DFCC9F68FCD42E5" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_NoninterestBearingDepositLiabilitiesFairValueDisclosure" xlink:label="loc_cbnk_NoninterestBearingDepositLiabilitiesFairValueDisclosure_C78C61737A578C3E401CC9F68FCE6396" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_1A2DDDBD706A738B2DFCC9F68FCD42E5" xlink:to="loc_cbnk_NoninterestBearingDepositLiabilitiesFairValueDisclosure_C78C61737A578C3E401CC9F68FCE6396" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_InterestBearingDepositLiabilitiesFairValueDisclosure" xlink:label="loc_cbnk_InterestBearingDepositLiabilitiesFairValueDisclosure_B8D9AC2C745DA09CB441C9F68FCEB83E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_1A2DDDBD706A738B2DFCC9F68FCD42E5" xlink:to="loc_cbnk_InterestBearingDepositLiabilitiesFairValueDisclosure_B8D9AC2C745DA09CB441C9F68FCEB83E" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LongTermFederalHomeLoanBankAdvancesAndOtherBorrowingsFairValueDisclosure" xlink:label="loc_cbnk_LongTermFederalHomeLoanBankAdvancesAndOtherBorrowingsFairValueDisclosure_E5A28B3BFE0434F147C9C9F68FCE7371" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_1A2DDDBD706A738B2DFCC9F68FCD42E5" xlink:to="loc_cbnk_LongTermFederalHomeLoanBankAdvancesAndOtherBorrowingsFairValueDisclosure_E5A28B3BFE0434F147C9C9F68FCE7371" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/FairValueFinancialInstrumentsMeasuredAtFvOnRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_F9B77B26293EC1F2411FBF58C479D199" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FCACAB742BA723B3E2F0BF58C475A4B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_F9B77B26293EC1F2411FBF58C479D199" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FCACAB742BA723B3E2F0BF58C475A4B5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_FE0CDA491803848215C5BF58C47622C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FCACAB742BA723B3E2F0BF58C475A4B5" xlink:to="loc_us-gaap_FinancialInstrumentAxis_FE0CDA491803848215C5BF58C47622C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_D4881CCF8954B178CCB1BF58C4769FC9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_FE0CDA491803848215C5BF58C47622C4" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_D4881CCF8954B178CCB1BF58C4769FC9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_D4881CCF8954B178CCB1BF58C4769FC9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_FE0CDA491803848215C5BF58C47622C4" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_D4881CCF8954B178CCB1BF58C4769FC9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_2CEFAF307E88B0D1C887BF58C476CEE5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_D4881CCF8954B178CCB1BF58C4769FC9" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_2CEFAF307E88B0D1C887BF58C476CEE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MunicipalBondsMember" xlink:label="loc_us-gaap_MunicipalBondsMember_C3EEE7447D1730756430BF58C4770C18" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_D4881CCF8954B178CCB1BF58C4769FC9" xlink:to="loc_us-gaap_MunicipalBondsMember_C3EEE7447D1730756430BF58C4770C18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_87B30974F6F230965AAEBF58C477B90C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_D4881CCF8954B178CCB1BF58C4769FC9" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_87B30974F6F230965AAEBF58C477B90C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_C615A8068D0C0AB3CBDEBF58C4778C5F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_D4881CCF8954B178CCB1BF58C4769FC9" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_C615A8068D0C0AB3CBDEBF58C4778C5F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_DD7E968DE61EE78E765BBF58C47710AA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FCACAB742BA723B3E2F0BF58C475A4B5" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_DD7E968DE61EE78E765BBF58C47710AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_B1A7A45B0970943A13B3BF58C477E981_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_DD7E968DE61EE78E765BBF58C47710AA" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_B1A7A45B0970943A13B3BF58C477E981_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_B1A7A45B0970943A13B3BF58C477E981" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_DD7E968DE61EE78E765BBF58C47710AA" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_B1A7A45B0970943A13B3BF58C477E981" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_29BF506B76ADF5766260BF58C477CEDA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_B1A7A45B0970943A13B3BF58C477E981" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_29BF506B76ADF5766260BF58C477CEDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7DFB6382098271081073BF58C4784E48" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_FCACAB742BA723B3E2F0BF58C475A4B5" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7DFB6382098271081073BF58C4784E48" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_237715134220D0C7C83DBF58C478EFFF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7DFB6382098271081073BF58C4784E48" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_237715134220D0C7C83DBF58C478EFFF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_237715134220D0C7C83DBF58C478EFFF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7DFB6382098271081073BF58C4784E48" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_237715134220D0C7C83DBF58C478EFFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_C2A410637540985BC1C2BF58C4786B3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_237715134220D0C7C83DBF58C478EFFF" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_C2A410637540985BC1C2BF58C4786B3E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_6D167445557AA08A7ACCBF58C478DF2D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_237715134220D0C7C83DBF58C478EFFF" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_6D167445557AA08A7ACCBF58C478DF2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_5B84905CDC57119BF404BF58C47895E4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_237715134220D0C7C83DBF58C478EFFF" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_5B84905CDC57119BF404BF58C47895E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_93947A7333CCEA167A89BF58C479E989" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_F9B77B26293EC1F2411FBF58C479D199" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_93947A7333CCEA167A89BF58C479E989" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure" xlink:label="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_18CE6BE45BEF7C100C2CBF58C4796A2F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_F9B77B26293EC1F2411FBF58C479D199" xlink:to="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_18CE6BE45BEF7C100C2CBF58C4796A2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_C9EF27A78FBBCB3CAB67BF58C4791545" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_F9B77B26293EC1F2411FBF58C479D199" xlink:to="loc_us-gaap_DerivativeAssets_C9EF27A78FBBCB3CAB67BF58C4791545" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_D87B1B2D935E775B9A79BF58C479A293" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_F9B77B26293EC1F2411FBF58C479D199" xlink:to="loc_us-gaap_DerivativeLiabilities_D87B1B2D935E775B9A79BF58C479A293" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/FairValueImpairedLoansAndForeclosedRealEstateDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_197EA97ECCC5608B3ADBBF58C45F679E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_1C9FBDB475A972564534BF58C45AFAAA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_197EA97ECCC5608B3ADBBF58C45F679E" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_1C9FBDB475A972564534BF58C45AFAAA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_4B2F07D8CC1DB3A6037BBF58C45A4044" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_1C9FBDB475A972564534BF58C45AFAAA" xlink:to="loc_srt_RangeAxis_4B2F07D8CC1DB3A6037BBF58C45A4044" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_C0A870D083EB3216BE31BF58C45BF4AF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_4B2F07D8CC1DB3A6037BBF58C45A4044" xlink:to="loc_srt_RangeMember_C0A870D083EB3216BE31BF58C45BF4AF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_C0A870D083EB3216BE31BF58C45BF4AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_4B2F07D8CC1DB3A6037BBF58C45A4044" xlink:to="loc_srt_RangeMember_C0A870D083EB3216BE31BF58C45BF4AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_BF018A996BA7C8C27472BF58C45BF7DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_C0A870D083EB3216BE31BF58C45BF4AF" xlink:to="loc_srt_MinimumMember_BF018A996BA7C8C27472BF58C45BF7DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_CB14B8B1EA7E7CCD5C44BF58C45B157F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_C0A870D083EB3216BE31BF58C45BF4AF" xlink:to="loc_srt_MaximumMember_CB14B8B1EA7E7CCD5C44BF58C45B157F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_2803C5B2F3EB82792371BF58C45B7E5C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_1C9FBDB475A972564534BF58C45AFAAA" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_2803C5B2F3EB82792371BF58C45B7E5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_96DBA7312C5AA26E6C0EBF58C45C0525_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_2803C5B2F3EB82792371BF58C45B7E5C" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_96DBA7312C5AA26E6C0EBF58C45C0525_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_96DBA7312C5AA26E6C0EBF58C45C0525" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_2803C5B2F3EB82792371BF58C45B7E5C" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_96DBA7312C5AA26E6C0EBF58C45C0525" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsNonrecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsNonrecurringMember_4310CD4F16CC396F6243BF58C45CFD36" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_96DBA7312C5AA26E6C0EBF58C45C0525" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_4310CD4F16CC396F6243BF58C45CFD36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_20DED696AE4BEDAC9E4CBF58C45C8BAC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_1C9FBDB475A972564534BF58C45AFAAA" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_20DED696AE4BEDAC9E4CBF58C45C8BAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_960107125BEE6C53C509BF58C45C9DB2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_20DED696AE4BEDAC9E4CBF58C45C8BAC" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_960107125BEE6C53C509BF58C45C9DB2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_960107125BEE6C53C509BF58C45C9DB2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_20DED696AE4BEDAC9E4CBF58C45C8BAC" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_960107125BEE6C53C509BF58C45C9DB2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_5E80E80DF02CC5AA097DBF58C45C50D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_960107125BEE6C53C509BF58C45C9DB2" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_5E80E80DF02CC5AA097DBF58C45C50D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_B8B9086B5AE9643E7E1FBF58C45D2E90" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_960107125BEE6C53C509BF58C45C9DB2" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_B8B9086B5AE9643E7E1FBF58C45D2E90" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_D43DC6379DD8E0111B69BF58C45D1FB6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_960107125BEE6C53C509BF58C45C9DB2" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_D43DC6379DD8E0111B69BF58C45D1FB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputTypeAxis" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_8377F6A37423D41D9419BF58C45D11EA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_1C9FBDB475A972564534BF58C45AFAAA" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_8377F6A37423D41D9419BF58C45D11EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_23FBFE5E953C129BB0C1BF58C45D2DED_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_8377F6A37423D41D9419BF58C45D11EA" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_23FBFE5E953C129BB0C1BF58C45D2DED_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_23FBFE5E953C129BB0C1BF58C45D2DED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_8377F6A37423D41D9419BF58C45D11EA" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_23FBFE5E953C129BB0C1BF58C45D2DED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputCostToSellMember" xlink:label="loc_us-gaap_MeasurementInputCostToSellMember_6B2EE0D9D1178437FA47BF58C45E44D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_23FBFE5E953C129BB0C1BF58C45D2DED" xlink:to="loc_us-gaap_MeasurementInputCostToSellMember_6B2EE0D9D1178437FA47BF58C45E44D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ValuationTechniqueAxis" xlink:label="loc_us-gaap_ValuationTechniqueAxis_90E2BD9621EEDEE194FBBF58C45EB357" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_1C9FBDB475A972564534BF58C45AFAAA" xlink:to="loc_us-gaap_ValuationTechniqueAxis_90E2BD9621EEDEE194FBBF58C45EB357" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ValuationTechniqueDomain" xlink:label="loc_us-gaap_ValuationTechniqueDomain_5B7F90D8E91440942EB3BF58C45E50ED_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationTechniqueAxis_90E2BD9621EEDEE194FBBF58C45EB357" xlink:to="loc_us-gaap_ValuationTechniqueDomain_5B7F90D8E91440942EB3BF58C45E50ED_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ValuationTechniqueDomain" xlink:label="loc_us-gaap_ValuationTechniqueDomain_5B7F90D8E91440942EB3BF58C45E50ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationTechniqueAxis_90E2BD9621EEDEE194FBBF58C45EB357" xlink:to="loc_us-gaap_ValuationTechniqueDomain_5B7F90D8E91440942EB3BF58C45E50ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ValuationTechniqueDiscountedCashFlowMember" xlink:label="loc_us-gaap_ValuationTechniqueDiscountedCashFlowMember_6DCE440EEF57EFF001DCBF58C45E9C08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_5B7F90D8E91440942EB3BF58C45E50ED" xlink:to="loc_us-gaap_ValuationTechniqueDiscountedCashFlowMember_6DCE440EEF57EFF001DCBF58C45E9C08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ValuationTechniqueConsensusPricingModelMember" xlink:label="loc_us-gaap_ValuationTechniqueConsensusPricingModelMember_62A431392088EB408DAFBF58C45EA877" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_5B7F90D8E91440942EB3BF58C45E50ED" xlink:to="loc_us-gaap_ValuationTechniqueConsensusPricingModelMember_62A431392088EB408DAFBF58C45EA877" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_DE4829EDDBC4BADD4B34BF58C45F9643" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_197EA97ECCC5608B3ADBBF58C45F679E" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_DE4829EDDBC4BADD4B34BF58C45F9643" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableRelatedAllowance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRelatedAllowance_849FD630348B96C7C866BF58C45FE8C8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_197EA97ECCC5608B3ADBBF58C45F679E" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRelatedAllowance_849FD630348B96C7C866BF58C45FE8C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_56411D311DFAF266B731BF58C45F3A39" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_197EA97ECCC5608B3ADBBF58C45F679E" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_56411D311DFAF266B731BF58C45F3A39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RealEstateAcquiredThroughForeclosure" xlink:label="loc_us-gaap_RealEstateAcquiredThroughForeclosure_868D42451204A7DAD9CBBF58C45FC736" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_197EA97ECCC5608B3ADBBF58C45F679E" xlink:to="loc_us-gaap_RealEstateAcquiredThroughForeclosure_868D42451204A7DAD9CBBF58C45FC736" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_ImpairedFinancingReceivableMeasurementInput" xlink:label="loc_cbnk_ImpairedFinancingReceivableMeasurementInput_6ACE7097D9C8CE3DABC7BF58C460CE62" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_197EA97ECCC5608B3ADBBF58C45F679E" xlink:to="loc_cbnk_ImpairedFinancingReceivableMeasurementInput_6ACE7097D9C8CE3DABC7BF58C460CE62" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_RealEstateAcquiredThroughForeclosureMeasurementInput" xlink:label="loc_cbnk_RealEstateAcquiredThroughForeclosureMeasurementInput_774E15FC535BBA75D33CBF58C4602130" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_197EA97ECCC5608B3ADBBF58C45F679E" xlink:to="loc_cbnk_RealEstateAcquiredThroughForeclosureMeasurementInput_774E15FC535BBA75D33CBF58C4602130" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/FairValueLoansHeldForSaleDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_2BA4414826347EA1C4ACBF58C46B5029" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_F71A3846AEEF05211249BF58C46AE40A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_2BA4414826347EA1C4ACBF58C46B5029" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_F71A3846AEEF05211249BF58C46AE40A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_61C37F7D77596F63DF71BF58C46AA857" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_F71A3846AEEF05211249BF58C46AE40A" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_61C37F7D77596F63DF71BF58C46AA857" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_DF5D4C29C434AA8DD661BF58C46AB6A7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_61C37F7D77596F63DF71BF58C46AA857" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_DF5D4C29C434AA8DD661BF58C46AB6A7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_463B107D3D8015D6D2F1BF58C46A0DD6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_61C37F7D77596F63DF71BF58C46AA857" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_463B107D3D8015D6D2F1BF58C46A0DD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_DF5D4C29C434AA8DD661BF58C46AB6A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_463B107D3D8015D6D2F1BF58C46A0DD6" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_DF5D4C29C434AA8DD661BF58C46AB6A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_27B22C008AF92648EE2BBF58C46B53A1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_463B107D3D8015D6D2F1BF58C46A0DD6" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_27B22C008AF92648EE2BBF58C46B53A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_55F468C5038EF5E78153BF58C46B6A76" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_463B107D3D8015D6D2F1BF58C46A0DD6" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_55F468C5038EF5E78153BF58C46B6A76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ChangeDuringPeriodFairValueDisclosureMember" xlink:label="loc_us-gaap_ChangeDuringPeriodFairValueDisclosureMember_2812EA851FA48BA18E56BF58C46BCA08" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_463B107D3D8015D6D2F1BF58C46A0DD6" xlink:to="loc_us-gaap_ChangeDuringPeriodFairValueDisclosureMember_2812EA851FA48BA18E56BF58C46BCA08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure" xlink:label="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_8C35BE7F06D44A18981EBF58C46C1DDE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_2BA4414826347EA1C4ACBF58C46B5029" xlink:to="loc_us-gaap_LoansHeldForSaleFairValueDisclosure_8C35BE7F06D44A18981EBF58C46C1DDE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/FairValueTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/InvestmentSecurities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/InvestmentSecuritiesAmortizedCostToEstimatedFairValueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_221CC4098455208B0B31BF58C59D9B28" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_BBA6756F9196FB4C9C71BF58C59C0E81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_221CC4098455208B0B31BF58C59D9B28" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_BBA6756F9196FB4C9C71BF58C59C0E81" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_EB83B10B6F1A59381FABBF58C59C1F45" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_BBA6756F9196FB4C9C71BF58C59C0E81" xlink:to="loc_us-gaap_FinancialInstrumentAxis_EB83B10B6F1A59381FABBF58C59C1F45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1D2F4BB199846FA3E336BF58C59C3B2A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_EB83B10B6F1A59381FABBF58C59C1F45" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1D2F4BB199846FA3E336BF58C59C3B2A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1D2F4BB199846FA3E336BF58C59C3B2A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_EB83B10B6F1A59381FABBF58C59C1F45" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1D2F4BB199846FA3E336BF58C59C3B2A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_5AFE495645A15F0F81CCBF58C59CF742" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1D2F4BB199846FA3E336BF58C59C3B2A" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_5AFE495645A15F0F81CCBF58C59CF742" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MunicipalBondsMember" xlink:label="loc_us-gaap_MunicipalBondsMember_3EDD3A8DCFF4952C42C1BF58C59D19CB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1D2F4BB199846FA3E336BF58C59C3B2A" xlink:to="loc_us-gaap_MunicipalBondsMember_3EDD3A8DCFF4952C42C1BF58C59D19CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_2800EF8B6F59C74177DCBF58C59D04FC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1D2F4BB199846FA3E336BF58C59C3B2A" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_2800EF8B6F59C74177DCBF58C59D04FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_EB9E7AF864271B1244B1BF58C59DA3C1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1D2F4BB199846FA3E336BF58C59C3B2A" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_EB9E7AF864271B1244B1BF58C59DA3C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_86BE176E833C1FB8E001BF58C59D550D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_221CC4098455208B0B31BF58C59D9B28" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_86BE176E833C1FB8E001BF58C59D550D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_FE40BED27F3172F1C47BBF58C59EA091" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_221CC4098455208B0B31BF58C59D9B28" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_FE40BED27F3172F1C47BBF58C59EA091" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_0208168243E53586D959BF58C59E1A9A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_221CC4098455208B0B31BF58C59D9B28" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_0208168243E53586D959BF58C59E1A9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_74615B13C2D55A4DC39EBF58C59E59B9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_221CC4098455208B0B31BF58C59D9B28" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_74615B13C2D55A4DC39EBF58C59E59B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_478A59EFF14244FE148DBF58C59E0FE6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_221CC4098455208B0B31BF58C59D9B28" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_478A59EFF14244FE148DBF58C59E0FE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_F0E3F1E77BEF5BD068D6BF58C59E28D7" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_221CC4098455208B0B31BF58C59D9B28" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_F0E3F1E77BEF5BD068D6BF58C59E28D7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/InvestmentSecuritiesByMaturityDatesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_E35D083F7B4AE105FB8FBF58C57055AF" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_FF84D7F11EF6CD787C8FBF58C56F45F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_E35D083F7B4AE105FB8FBF58C57055AF" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_FF84D7F11EF6CD787C8FBF58C56F45F8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_2499F29D1BAB6A9FB4E8BF58C56F7475" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_FF84D7F11EF6CD787C8FBF58C56F45F8" xlink:to="loc_us-gaap_FinancialInstrumentAxis_2499F29D1BAB6A9FB4E8BF58C56F7475" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_435B295175B3DAB6B7E7BF58C56F12A4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_2499F29D1BAB6A9FB4E8BF58C56F7475" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_435B295175B3DAB6B7E7BF58C56F12A4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_435B295175B3DAB6B7E7BF58C56F12A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_2499F29D1BAB6A9FB4E8BF58C56F7475" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_435B295175B3DAB6B7E7BF58C56F12A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_A5317FF4EC673087BA1FBF58C56F124E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_435B295175B3DAB6B7E7BF58C56F12A4" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_A5317FF4EC673087BA1FBF58C56F124E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_14A8451FC5EC4485F77BBF58C570B815" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_E35D083F7B4AE105FB8FBF58C57055AF" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_14A8451FC5EC4485F77BBF58C570B815" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_65ADF6092D5D311B3A2BBF58C5707F05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_14A8451FC5EC4485F77BBF58C570B815" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_65ADF6092D5D311B3A2BBF58C5707F05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_A2C178092577061D3E67BF58C570A8AD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_14A8451FC5EC4485F77BBF58C570B815" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_A2C178092577061D3E67BF58C570A8AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_8EC2B0252D16EBE07BC0BF58C571F9F1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_14A8451FC5EC4485F77BBF58C570B815" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_8EC2B0252D16EBE07BC0BF58C571F9F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_36A832F93F7715631923BF58C5711E0D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_14A8451FC5EC4485F77BBF58C570B815" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_36A832F93F7715631923BF58C5711E0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_9C5E5543C19EE71510B0BF58C57133BD" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_14A8451FC5EC4485F77BBF58C570B815" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_9C5E5543C19EE71510B0BF58C57133BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_2A377C0B15D51E11ADB8BF58C5710F4D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_E35D083F7B4AE105FB8FBF58C57055AF" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_2A377C0B15D51E11ADB8BF58C5710F4D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_8F32E602DC9C828FB661BF58C5718834" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_2A377C0B15D51E11ADB8BF58C5710F4D" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_8F32E602DC9C828FB661BF58C5718834" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_71D8898AECEA25247EABBF58C5725F32" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_2A377C0B15D51E11ADB8BF58C5710F4D" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_71D8898AECEA25247EABBF58C5725F32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_16058AC105EEE4455760BF58C5720C47" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_2A377C0B15D51E11ADB8BF58C5710F4D" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_16058AC105EEE4455760BF58C5720C47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_56A93F5A0E5FB1ED0D74BF58C572419E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_2A377C0B15D51E11ADB8BF58C5710F4D" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_56A93F5A0E5FB1ED0D74BF58C572419E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_8788E4E4243A22120189BF58C5720A70" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_2A377C0B15D51E11ADB8BF58C5710F4D" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_8788E4E4243A22120189BF58C5720A70" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/InvestmentSecuritiesPledgedSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems" xlink:label="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems_598393095F5630415F92BF58C57E8321" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable" xlink:label="loc_us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable_2D4E17617DAC11FE7EE7BF58C57C2337" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems_598393095F5630415F92BF58C57E8321" xlink:to="loc_us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable_2D4E17617DAC11FE7EE7BF58C57C2337" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_00E1B3BE2BA83222C3C7BF58C57C1F32" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable_2D4E17617DAC11FE7EE7BF58C57C2337" xlink:to="loc_us-gaap_FinancialInstrumentAxis_00E1B3BE2BA83222C3C7BF58C57C1F32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_600107F72419DCF342CCBF58C57C7F72_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_00E1B3BE2BA83222C3C7BF58C57C1F32" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_600107F72419DCF342CCBF58C57C7F72_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_600107F72419DCF342CCBF58C57C7F72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_00E1B3BE2BA83222C3C7BF58C57C1F32" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_600107F72419DCF342CCBF58C57C7F72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesMember" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMember_BA6C4E225C7C16CFFB6DBF58C57CEFD1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_600107F72419DCF342CCBF58C57C7F72" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMember_BA6C4E225C7C16CFFB6DBF58C57CEFD1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_3302281059960B93E1D9BF58C57DB7F3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable_2D4E17617DAC11FE7EE7BF58C57C2337" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_3302281059960B93E1D9BF58C57DB7F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_3B757D1922507D090385BF58C57D99F9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_3302281059960B93E1D9BF58C57DB7F3" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_3B757D1922507D090385BF58C57D99F9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7B63AB974B41C0B2367EBF58C57D5A1E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_3302281059960B93E1D9BF58C57DB7F3" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7B63AB974B41C0B2367EBF58C57D5A1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_3B757D1922507D090385BF58C57D99F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7B63AB974B41C0B2367EBF58C57D5A1E" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_3B757D1922507D090385BF58C57D99F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_6855EAF9C84172C86095BF58C57DF851" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7B63AB974B41C0B2367EBF58C57D5A1E" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_6855EAF9C84172C86095BF58C57DF851" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_FCDE921E2269CA3AE105BF58C57E8F2E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_7B63AB974B41C0B2367EBF58C57D5A1E" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_FCDE921E2269CA3AE105BF58C57E8F2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecurityOwnedAndPledgedAsCollateralFairValue" xlink:label="loc_us-gaap_SecurityOwnedAndPledgedAsCollateralFairValue_B997C5A8C43990422D2CBF58C57E7AE3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems_598393095F5630415F92BF58C57E8321" xlink:to="loc_us-gaap_SecurityOwnedAndPledgedAsCollateralFairValue_B997C5A8C43990422D2CBF58C57E7AE3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/InvestmentSecuritiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/InvestmentSecuritiesUnrealizedLossesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_7D0C5D21F49AEA4E2535BF58C58A5525" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_E7C9691D7A9C90FF3BA3BF58C5887CE4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_7D0C5D21F49AEA4E2535BF58C58A5525" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_E7C9691D7A9C90FF3BA3BF58C5887CE4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_22D40EFA1D9D45EE6A2FBF58C589557B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_E7C9691D7A9C90FF3BA3BF58C5887CE4" xlink:to="loc_us-gaap_FinancialInstrumentAxis_22D40EFA1D9D45EE6A2FBF58C589557B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5AB4CE814970567868A2BF58C5895DF6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_22D40EFA1D9D45EE6A2FBF58C589557B" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5AB4CE814970567868A2BF58C5895DF6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5AB4CE814970567868A2BF58C5895DF6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_22D40EFA1D9D45EE6A2FBF58C589557B" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5AB4CE814970567868A2BF58C5895DF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_840FB6E783D4138D406FBF58C589D03A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5AB4CE814970567868A2BF58C5895DF6" xlink:to="loc_us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember_840FB6E783D4138D406FBF58C589D03A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MunicipalBondsMember" xlink:label="loc_us-gaap_MunicipalBondsMember_69D4E429104883ED9121BF58C58A8F5E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5AB4CE814970567868A2BF58C5895DF6" xlink:to="loc_us-gaap_MunicipalBondsMember_69D4E429104883ED9121BF58C58A8F5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_95B6CCADBA5D4193F990BF58C58AC6E2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5AB4CE814970567868A2BF58C5895DF6" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_95B6CCADBA5D4193F990BF58C58AC6E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MortgageBackedSecuritiesMember" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_871C14B553082CAC53BFBF58C58AB625" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5AB4CE814970567868A2BF58C5895DF6" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_871C14B553082CAC53BFBF58C58AB625" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_DebtSecuritiesAvailableforsaleUnrealizedLossPositionAbstract" xlink:label="loc_cbnk_DebtSecuritiesAvailableforsaleUnrealizedLossPositionAbstract_F452D7334A7609155C33BF58C58FDA59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_7D0C5D21F49AEA4E2535BF58C58A5525" xlink:to="loc_cbnk_DebtSecuritiesAvailableforsaleUnrealizedLossPositionAbstract_F452D7334A7609155C33BF58C58FDA59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_7E2CCE443A9AA8F5EFE4BF58C5900196" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cbnk_DebtSecuritiesAvailableforsaleUnrealizedLossPositionAbstract_F452D7334A7609155C33BF58C58FDA59" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_7E2CCE443A9AA8F5EFE4BF58C5900196" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_C084B2F917CA1BCF3425BF58C590ABA6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cbnk_DebtSecuritiesAvailableforsaleUnrealizedLossPositionAbstract_F452D7334A7609155C33BF58C58FDA59" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_C084B2F917CA1BCF3425BF58C590ABA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_47FCA773701AECC7F2B8BF58C59088B6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cbnk_DebtSecuritiesAvailableforsaleUnrealizedLossPositionAbstract_F452D7334A7609155C33BF58C58FDA59" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_47FCA773701AECC7F2B8BF58C59088B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_2AD019AF55B43203ED7EBF58C590EFA1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_7D0C5D21F49AEA4E2535BF58C58A5525" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_2AD019AF55B43203ED7EBF58C590EFA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_494D618E2050501FFF93BF58C590A3AD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_2AD019AF55B43203ED7EBF58C590EFA1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_494D618E2050501FFF93BF58C590A3AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_C78970C74F77759E03CDBF58C5913D1A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_2AD019AF55B43203ED7EBF58C590EFA1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_C78970C74F77759E03CDBF58C5913D1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_3D2BD353F8AE9E208119BF58C59198EF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_2AD019AF55B43203ED7EBF58C590EFA1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_3D2BD353F8AE9E208119BF58C59198EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions_A71192E70CB59201B8BBBF58C5913E55" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_7D0C5D21F49AEA4E2535BF58C58A5525" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions_A71192E70CB59201B8BBBF58C5913E55" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/Leases" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/LeasesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_384621236F5E4489AF26BF58C49E9B6C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_E79BC5D923E0581240A7BF58C49DBD53" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_384621236F5E4489AF26BF58C49E9B6C" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_E79BC5D923E0581240A7BF58C49DBD53" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_AAF1A4E8CB2189B95081BF58C49D214D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_E79BC5D923E0581240A7BF58C49DBD53" xlink:to="loc_srt_RangeAxis_AAF1A4E8CB2189B95081BF58C49D214D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_973DA819F405A3DB3632BF58C49E6604_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_AAF1A4E8CB2189B95081BF58C49D214D" xlink:to="loc_srt_RangeMember_973DA819F405A3DB3632BF58C49E6604_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_973DA819F405A3DB3632BF58C49E6604" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_AAF1A4E8CB2189B95081BF58C49D214D" xlink:to="loc_srt_RangeMember_973DA819F405A3DB3632BF58C49E6604" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_6A57226FB5E5D325D9DEBF58C49EECE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_973DA819F405A3DB3632BF58C49E6604" xlink:to="loc_srt_MinimumMember_6A57226FB5E5D325D9DEBF58C49EECE9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_9486E095A799E8C0F58CBF58C49E54D2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_973DA819F405A3DB3632BF58C49E6604" xlink:to="loc_srt_MaximumMember_9486E095A799E8C0F58CBF58C49E54D2" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LesseeOperatingLeaseNumberOfFullServiceBranches" xlink:label="loc_cbnk_LesseeOperatingLeaseNumberOfFullServiceBranches_1790684E35D68D89F340BF58C49FFF3A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_384621236F5E4489AF26BF58C49E9B6C" xlink:to="loc_cbnk_LesseeOperatingLeaseNumberOfFullServiceBranches_1790684E35D68D89F340BF58C49FFF3A" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LesseeOperatingLeaseNumberOfLocations" xlink:label="loc_cbnk_LesseeOperatingLeaseNumberOfLocations_E18887CD56EB88D0C084BF58C49F1D47" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_384621236F5E4489AF26BF58C49E9B6C" xlink:to="loc_cbnk_LesseeOperatingLeaseNumberOfLocations_E18887CD56EB88D0C084BF58C49F1D47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_664772C91A911A6FC8E2BF58C49F1390" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_384621236F5E4489AF26BF58C49E9B6C" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_664772C91A911A6FC8E2BF58C49F1390" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OperatingLeaseRightOfUseAssetNet" xlink:label="loc_cbnk_OperatingLeaseRightOfUseAssetNet_7B6B7B58DC35AA5CBC0ABF58C49F0CD7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_384621236F5E4489AF26BF58C49E9B6C" xlink:to="loc_cbnk_OperatingLeaseRightOfUseAssetNet_7B6B7B58DC35AA5CBC0ABF58C49F0CD7" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OperatingLeaseLiabilityNet" xlink:label="loc_cbnk_OperatingLeaseLiabilityNet_AF997FAA2A7F5C842FF8BF58C49F2FB5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_384621236F5E4489AF26BF58C49E9B6C" xlink:to="loc_cbnk_OperatingLeaseLiabilityNet_AF997FAA2A7F5C842FF8BF58C49F2FB5" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LesseeOperatingLeaseRemainingTermOfContract" xlink:label="loc_cbnk_LesseeOperatingLeaseRemainingTermOfContract_148886674F3061A01ABFBF58C49F583C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_384621236F5E4489AF26BF58C49E9B6C" xlink:to="loc_cbnk_LesseeOperatingLeaseRemainingTermOfContract_148886674F3061A01ABFBF58C49F583C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/LeasesAssetsAndLiabilitiesAndLeasePaymentObligationsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/LeasesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationBasisOfPresentationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0779139D8BB7EEDB5D90BF58C5BCF216" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_E481029D8A437D305BC1BF58C5BAF8B8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0779139D8BB7EEDB5D90BF58C5BCF216" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_E481029D8A437D305BC1BF58C5BAF8B8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_0EFF69D556E6C3C78212BF58C5BB989E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_E481029D8A437D305BC1BF58C5BAF8B8" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_0EFF69D556E6C3C78212BF58C5BB989E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_D3C53DE63352ABAED199BF58C5BB0FE5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_0EFF69D556E6C3C78212BF58C5BB989E" xlink:to="loc_us-gaap_EquityComponentDomain_D3C53DE63352ABAED199BF58C5BB0FE5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_D3C53DE63352ABAED199BF58C5BB0FE5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_0EFF69D556E6C3C78212BF58C5BB989E" xlink:to="loc_us-gaap_EquityComponentDomain_D3C53DE63352ABAED199BF58C5BB0FE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember" xlink:label="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_B54F5FB43F42859B5FBFBF58C5BB26AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_D3C53DE63352ABAED199BF58C5BB0FE5" xlink:to="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_B54F5FB43F42859B5FBFBF58C5BB26AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_4DDE53D537CC7A0DA2A5BF58C5BB19CE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_D3C53DE63352ABAED199BF58C5BB0FE5" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_4DDE53D537CC7A0DA2A5BF58C5BB19CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AociBeforeTaxAttributableToParent" xlink:label="loc_us-gaap_AociBeforeTaxAttributableToParent_8E43EA9C79B60381AA98BF58C5BC8060" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0779139D8BB7EEDB5D90BF58C5BCF216" xlink:to="loc_us-gaap_AociBeforeTaxAttributableToParent_8E43EA9C79B60381AA98BF58C5BC8060" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AociTaxAttributableToParent" xlink:label="loc_us-gaap_AociTaxAttributableToParent_9DC7DD9B9C4FDBFAF4A0BF58C5BC54EC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0779139D8BB7EEDB5D90BF58C5BCF216" xlink:to="loc_us-gaap_AociTaxAttributableToParent_9DC7DD9B9C4FDBFAF4A0BF58C5BC54EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_4B93FBD2A79903476663BF58C5BC252A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_0779139D8BB7EEDB5D90BF58C5BCF216" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_4B93FBD2A79903476663BF58C5BC252A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationEarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_E87AA2844479681B4AE2BF58C5C768D0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_A3EE00D94AA8D77B6AD5BF58C5C64F5F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_E87AA2844479681B4AE2BF58C5C768D0" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_A3EE00D94AA8D77B6AD5BF58C5C64F5F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_A1DBD350791E320515ECBF58C5C6FD49" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_A3EE00D94AA8D77B6AD5BF58C5C64F5F" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_A1DBD350791E320515ECBF58C5C6FD49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_23C96280A35732D5C9C4BF58C5C6BEC4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_A1DBD350791E320515ECBF58C5C6FD49" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_23C96280A35732D5C9C4BF58C5C6BEC4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_23C96280A35732D5C9C4BF58C5C6BEC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_A1DBD350791E320515ECBF58C5C6FD49" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_23C96280A35732D5C9C4BF58C5C6BEC4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_D16208AE28739271C712BF58C5C7FBC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_23C96280A35732D5C9C4BF58C5C6BEC4" xlink:to="loc_us-gaap_EmployeeStockOptionMember_D16208AE28739271C712BF58C5C7FBC4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_4A347CCB8DB2BFC62AE3BF58C5C7C87C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_E87AA2844479681B4AE2BF58C5C768D0" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_4A347CCB8DB2BFC62AE3BF58C5C7C87C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationLeasesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_B45E18FFC69B4D887642BF58C5D48FCD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_AA5583827EEAB5D3ECA7BF58C5D20752" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_B45E18FFC69B4D887642BF58C5D48FCD" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_AA5583827EEAB5D3ECA7BF58C5D20752" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C52D1A179282054FB388BF58C5D39EC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_AA5583827EEAB5D3ECA7BF58C5D20752" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C52D1A179282054FB388BF58C5D39EC4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_EAA992BFB923D93E7B24BF58C5D36312_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C52D1A179282054FB388BF58C5D39EC4" xlink:to="loc_us-gaap_TypeOfAdoptionMember_EAA992BFB923D93E7B24BF58C5D36312_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_EAA992BFB923D93E7B24BF58C5D36312" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C52D1A179282054FB388BF58C5D39EC4" xlink:to="loc_us-gaap_TypeOfAdoptionMember_EAA992BFB923D93E7B24BF58C5D36312" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_B79CA4F7AB1FDF2E3CCDBF58C5D37CAA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_EAA992BFB923D93E7B24BF58C5D36312" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_B79CA4F7AB1FDF2E3CCDBF58C5D37CAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RestatementAxis" xlink:label="loc_srt_RestatementAxis_18592B4B6015EAE7A190BF58C5D31993" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_AA5583827EEAB5D3ECA7BF58C5D20752" xlink:to="loc_srt_RestatementAxis_18592B4B6015EAE7A190BF58C5D31993" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_74F8DD9EA6C21D8544D0BF58C5D4DBE5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_18592B4B6015EAE7A190BF58C5D31993" xlink:to="loc_srt_RestatementDomain_74F8DD9EA6C21D8544D0BF58C5D4DBE5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_74F8DD9EA6C21D8544D0BF58C5D4DBE5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_18592B4B6015EAE7A190BF58C5D31993" xlink:to="loc_srt_RestatementDomain_74F8DD9EA6C21D8544D0BF58C5D4DBE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RevisionOfPriorPeriodAccountingStandardsUpdateAdjustmentMember" xlink:label="loc_srt_RevisionOfPriorPeriodAccountingStandardsUpdateAdjustmentMember_1D1F196340BC2A5556D8BF58C5D4645C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_74F8DD9EA6C21D8544D0BF58C5D4DBE5" xlink:to="loc_srt_RevisionOfPriorPeriodAccountingStandardsUpdateAdjustmentMember_1D1F196340BC2A5556D8BF58C5D4645C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_8AC3CD2A8FF7CDFBE1AABF58C5D48DFF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_B45E18FFC69B4D887642BF58C5D48FCD" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_8AC3CD2A8FF7CDFBE1AABF58C5D48DFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_8686D0D6ADF548F1331ABF58C5D5D56E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_B45E18FFC69B4D887642BF58C5D48FCD" xlink:to="loc_us-gaap_OperatingLeaseLiability_8686D0D6ADF548F1331ABF58C5D5D56E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredRevenueLeasesNet" xlink:label="loc_us-gaap_DeferredRevenueLeasesNet_E1FF79F99C80189472A6BF58C5D5A4A7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_B45E18FFC69B4D887642BF58C5D48FCD" xlink:to="loc_us-gaap_DeferredRevenueLeasesNet_E1FF79F99C80189472A6BF58C5D5A4A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_DF2F25EBFB46A941A727BF58C5D538AF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_B45E18FFC69B4D887642BF58C5D48FCD" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_DF2F25EBFB46A941A727BF58C5D538AF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationPremisesAndEquipmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8E237D9DFEC104E9AFC1BF58C5E0E508" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_1163EECBE03D533ECB6ABF58C5DE8276" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8E237D9DFEC104E9AFC1BF58C5E0E508" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_1163EECBE03D533ECB6ABF58C5DE8276" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_D144E7178B6661FB51E5BF58C5DE71AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_1163EECBE03D533ECB6ABF58C5DE8276" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_D144E7178B6661FB51E5BF58C5DE71AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1CE5D847EC2F81AD9886BF58C5DE8040_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_D144E7178B6661FB51E5BF58C5DE71AA" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1CE5D847EC2F81AD9886BF58C5DE8040_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1CE5D847EC2F81AD9886BF58C5DE8040" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_D144E7178B6661FB51E5BF58C5DE71AA" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1CE5D847EC2F81AD9886BF58C5DE8040" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_PremisesAndEquipmentMember" xlink:label="loc_cbnk_PremisesAndEquipmentMember_6E85DA1FAACC8A0BD0B9BF58C5DF7E66" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1CE5D847EC2F81AD9886BF58C5DE8040" xlink:to="loc_cbnk_PremisesAndEquipmentMember_6E85DA1FAACC8A0BD0B9BF58C5DF7E66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_898C48A26C0B6B45D810BF58C5DF6FF4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1CE5D847EC2F81AD9886BF58C5DE8040" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_898C48A26C0B6B45D810BF58C5DF6FF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_27B1D03B430B39133504BF58C5DF9FAA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_1163EECBE03D533ECB6ABF58C5DE8276" xlink:to="loc_srt_RangeAxis_27B1D03B430B39133504BF58C5DF9FAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_C21C1B1A7F3415AB7A85BF58C5DF7C3B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_27B1D03B430B39133504BF58C5DF9FAA" xlink:to="loc_srt_RangeMember_C21C1B1A7F3415AB7A85BF58C5DF7C3B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_C21C1B1A7F3415AB7A85BF58C5DF7C3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_27B1D03B430B39133504BF58C5DF9FAA" xlink:to="loc_srt_RangeMember_C21C1B1A7F3415AB7A85BF58C5DF7C3B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_1BC843F88D13401F9A92BF58C5E02B15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_C21C1B1A7F3415AB7A85BF58C5DF7C3B" xlink:to="loc_srt_MinimumMember_1BC843F88D13401F9A92BF58C5E02B15" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_9A5E85E1152FC10B3027BF58C5E06D52" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_C21C1B1A7F3415AB7A85BF58C5DF7C3B" xlink:to="loc_srt_MaximumMember_9A5E85E1152FC10B3027BF58C5E06D52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_A18AB928DAF64C51301FBF58C5E0EDFA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8E237D9DFEC104E9AFC1BF58C5E0E508" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_A18AB928DAF64C51301FBF58C5E0EDFA" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationSbaPaycheckProtectionProgramDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureLineItems" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_8C38D108B9B4C6226F15D8B330D92893" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureTable" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_5AFB745CC10745350F1AD8B330D7BAD3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_8C38D108B9B4C6226F15D8B330D92893" xlink:to="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_5AFB745CC10745350F1AD8B330D7BAD3" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_FD28E7CA86CA55A197EBD8B330D82B45" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_5AFB745CC10745350F1AD8B330D7BAD3" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_FD28E7CA86CA55A197EBD8B330D82B45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_57019317BB619CA6384AD8B330D869C5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_FD28E7CA86CA55A197EBD8B330D82B45" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_57019317BB619CA6384AD8B330D869C5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_57019317BB619CA6384AD8B330D869C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_FD28E7CA86CA55A197EBD8B330D82B45" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_57019317BB619CA6384AD8B330D869C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_3A67949B059F57849320D8B330D81287" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_57019317BB619CA6384AD8B330D869C5" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_3A67949B059F57849320D8B330D81287" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_DBD791F1A914EA7F32C7D8B330D967C3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_5AFB745CC10745350F1AD8B330D7BAD3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_DBD791F1A914EA7F32C7D8B330D967C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_85E7748F60B5F3BF49F1D8B330D9CFE9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_DBD791F1A914EA7F32C7D8B330D967C3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_85E7748F60B5F3BF49F1D8B330D9CFE9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_85E7748F60B5F3BF49F1D8B330D9CFE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_DBD791F1A914EA7F32C7D8B330D967C3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_85E7748F60B5F3BF49F1D8B330D9CFE9" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_PaycheckProtectionProgramMember" xlink:label="loc_cbnk_PaycheckProtectionProgramMember_F166C0D24C8831946020D8B330D93297" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_85E7748F60B5F3BF49F1D8B330D9CFE9" xlink:to="loc_cbnk_PaycheckProtectionProgramMember_F166C0D24C8831946020D8B330D93297" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableGross" xlink:label="loc_us-gaap_NotesReceivableGross_71FCD04939ABE4B6E3C7D8B330D99A26" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_8C38D108B9B4C6226F15D8B330D92893" xlink:to="loc_us-gaap_NotesReceivableGross_71FCD04939ABE4B6E3C7D8B330D99A26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerLiability" xlink:label="loc_us-gaap_ContractWithCustomerLiability_6F47F573E1B03BCE2911D8C01E0B6868" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_8C38D108B9B4C6226F15D8B330D92893" xlink:to="loc_us-gaap_ContractWithCustomerLiability_6F47F573E1B03BCE2911D8C01E0B6868" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeOperating" xlink:label="loc_us-gaap_InterestIncomeOperating_9CC9E6506EB1ECCB8C4FD8C19484E5E6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_8C38D108B9B4C6226F15D8B330D92893" xlink:to="loc_us-gaap_InterestIncomeOperating_9CC9E6506EB1ECCB8C4FD8C19484E5E6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/NatureOfBusinessAndBasisOfPresentationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivable" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableAccretableDiscountDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableActivityInAllowanceForLoanLossesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_EBCE487CF8A87DFE1127D8B330310111" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_6DAD23DA003ED80EA5D3D8B3302956E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_EBCE487CF8A87DFE1127D8B330310111" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_6DAD23DA003ED80EA5D3D8B3302956E3" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_82FD1D25D09EFE524963D8B33030E6B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_6DAD23DA003ED80EA5D3D8B3302956E3" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_82FD1D25D09EFE524963D8B33030E6B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E941C29BEDEA611C5F9BD8B33030801C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_82FD1D25D09EFE524963D8B33030E6B4" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E941C29BEDEA611C5F9BD8B33030801C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E941C29BEDEA611C5F9BD8B33030801C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_82FD1D25D09EFE524963D8B33030E6B4" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E941C29BEDEA611C5F9BD8B33030801C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnfundedLoanCommitmentMember" xlink:label="loc_us-gaap_UnfundedLoanCommitmentMember_1A942294F1121CCDE82AD8B33030E68E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E941C29BEDEA611C5F9BD8B33030801C" xlink:to="loc_us-gaap_UnfundedLoanCommitmentMember_1A942294F1121CCDE82AD8B33030E68E" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_MortgageLoansSoldMember" xlink:label="loc_cbnk_MortgageLoansSoldMember_AB3A2CA687CD4E1663B2D8B33031B5D0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E941C29BEDEA611C5F9BD8B33030801C" xlink:to="loc_cbnk_MortgageLoansSoldMember_AB3A2CA687CD4E1663B2D8B33031B5D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_079184C16174BF8D29D4D8B330317C77" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_EBCE487CF8A87DFE1127D8B330310111" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_079184C16174BF8D29D4D8B330317C77" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_3D67ED60E198221106F6D8B330318D8F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_079184C16174BF8D29D4D8B330317C77" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_3D67ED60E198221106F6D8B330318D8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_74D658F06D86CDE08AB1D8B33031D7BE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_079184C16174BF8D29D4D8B330317C77" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_74D658F06D86CDE08AB1D8B33031D7BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNet" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNet_854D1F4FE661B9E24A69D8B330314538" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRollForward_079184C16174BF8D29D4D8B330317C77" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNet_854D1F4FE661B9E24A69D8B330314538" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableAllowanceForLoanLossesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureLineItems" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F82B3E443C1B74B0A96FD8B330639FC5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureTable" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_C4ED5A39AE961E2B448ED8B3305FA525" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F82B3E443C1B74B0A96FD8B330639FC5" xlink:to="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_C4ED5A39AE961E2B448ED8B3305FA525" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_76F09DA1F353F192D6CFD8B3305FF3E6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_C4ED5A39AE961E2B448ED8B3305FA525" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_76F09DA1F353F192D6CFD8B3305FF3E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1DDAF5197B64B486DDDCD8B3305FDD88_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_76F09DA1F353F192D6CFD8B3305FF3E6" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1DDAF5197B64B486DDDCD8B3305FDD88_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1DDAF5197B64B486DDDCD8B3305FDD88" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_76F09DA1F353F192D6CFD8B3305FF3E6" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1DDAF5197B64B486DDDCD8B3305FDD88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_7730C76ACA24F5BDA3C9D8B3305F3349" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1DDAF5197B64B486DDDCD8B3305FDD88" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_7730C76ACA24F5BDA3C9D8B3305F3349" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_B97572A574B8C3F5436FD8B330620C9E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1DDAF5197B64B486DDDCD8B3305FDD88" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_B97572A574B8C3F5436FD8B330620C9E" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_ConstructionPortfolioSegmentMember" xlink:label="loc_cbnk_ConstructionPortfolioSegmentMember_58F7E8C2F4EBCCECE05CD8B330627175" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1DDAF5197B64B486DDDCD8B3305FDD88" xlink:to="loc_cbnk_ConstructionPortfolioSegmentMember_58F7E8C2F4EBCCECE05CD8B330627175" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_9AB64EBC85CCA163ED9FD8B33062F50D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1DDAF5197B64B486DDDCD8B3305FDD88" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_9AB64EBC85CCA163ED9FD8B33062F50D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_6A267C4E1BD754EE110CD8B33062B5BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_C4ED5A39AE961E2B448ED8B3305FA525" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_6A267C4E1BD754EE110CD8B33062B5BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A60EE20A9ADAAE79EEA5D8B330628BD0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_6A267C4E1BD754EE110CD8B33062B5BB" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A60EE20A9ADAAE79EEA5D8B330628BD0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A60EE20A9ADAAE79EEA5D8B330628BD0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_6A267C4E1BD754EE110CD8B33062B5BB" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A60EE20A9ADAAE79EEA5D8B330628BD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RealEstateLoanMember" xlink:label="loc_us-gaap_RealEstateLoanMember_E5A73177E17FD8AA046BD8B330632E0D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A60EE20A9ADAAE79EEA5D8B330628BD0" xlink:to="loc_us-gaap_RealEstateLoanMember_E5A73177E17FD8AA046BD8B330632E0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditCardReceivablesMember" xlink:label="loc_us-gaap_CreditCardReceivablesMember_1F1E979ACB2DD9851380D8B330630407" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A60EE20A9ADAAE79EEA5D8B330628BD0" xlink:to="loc_us-gaap_CreditCardReceivablesMember_1F1E979ACB2DD9851380D8B330630407" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OtherConsumerMember" xlink:label="loc_cbnk_OtherConsumerMember_3DFB9F1A3DFB6C5D78A6D8B330636B4F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A60EE20A9ADAAE79EEA5D8B330628BD0" xlink:to="loc_cbnk_OtherConsumerMember_3DFB9F1A3DFB6C5D78A6D8B330636B4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRollForward" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0BD3FCC6DEA76C82D85AD8B33063FE99" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F82B3E443C1B74B0A96FD8B330639FC5" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0BD3FCC6DEA76C82D85AD8B33063FE99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_E74B4678C4A75A9ECCE1D8B33063DB6B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0BD3FCC6DEA76C82D85AD8B33063FE99" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_E74B4678C4A75A9ECCE1D8B33063DB6B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_CFED8705C9EA5CD79843D8B33063D2C2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0BD3FCC6DEA76C82D85AD8B33063FE99" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_CFED8705C9EA5CD79843D8B33063D2C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs_E4F993C20ED097C0E2C4D8B330637652" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0BD3FCC6DEA76C82D85AD8B33063FE99" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs_E4F993C20ED097C0E2C4D8B330637652" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery_0F5254696CA2EA51DFAAD8B330636C2C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRollForward_0BD3FCC6DEA76C82D85AD8B33063FE99" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery_0F5254696CA2EA51DFAAD8B330636C2C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_9D3898138146AD687865D8B330634608" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F82B3E443C1B74B0A96FD8B330639FC5" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_9D3898138146AD687865D8B330634608" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_99B06B2950FA5B48C416D8B33063B567" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F82B3E443C1B74B0A96FD8B330639FC5" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_99B06B2950FA5B48C416D8B33063B567" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_8F7FB3C96779FA9FE04ED8B33063D370" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F82B3E443C1B74B0A96FD8B330639FC5" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_8F7FB3C96779FA9FE04ED8B33063D370" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_65895E2679E11D651C1BD8B33063E03C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F82B3E443C1B74B0A96FD8B330639FC5" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_65895E2679E11D651C1BD8B33063E03C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableClassificationOfLoansDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureLineItems" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureTable" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_786AF65A4E8DA2898051D8B3306CD7A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_786AF65A4E8DA2898051D8B3306CD7A1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfFinancingReceivableTypeOfBorrowerAxis" xlink:label="loc_us-gaap_ClassOfFinancingReceivableTypeOfBorrowerAxis_EA84455A0E355827A7C4D8B3306CEB77" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_786AF65A4E8DA2898051D8B3306CD7A1" xlink:to="loc_us-gaap_ClassOfFinancingReceivableTypeOfBorrowerAxis_EA84455A0E355827A7C4D8B3306CEB77" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfFinancingReceivableTypeOfBorrowerDomain" xlink:label="loc_us-gaap_ClassOfFinancingReceivableTypeOfBorrowerDomain_CBB93B0D70BA22289ECBD8B3306CBDFA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ClassOfFinancingReceivableTypeOfBorrowerAxis_EA84455A0E355827A7C4D8B3306CEB77" xlink:to="loc_us-gaap_ClassOfFinancingReceivableTypeOfBorrowerDomain_CBB93B0D70BA22289ECBD8B3306CBDFA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfFinancingReceivableTypeOfBorrowerDomain" xlink:label="loc_us-gaap_ClassOfFinancingReceivableTypeOfBorrowerDomain_CBB93B0D70BA22289ECBD8B3306CBDFA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ClassOfFinancingReceivableTypeOfBorrowerAxis_EA84455A0E355827A7C4D8B3306CEB77" xlink:to="loc_us-gaap_ClassOfFinancingReceivableTypeOfBorrowerDomain_CBB93B0D70BA22289ECBD8B3306CBDFA" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OwnerOccupiedRealEstateMember" xlink:label="loc_cbnk_OwnerOccupiedRealEstateMember_B523DA4B47D42825022FD8B3306C7F7C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfFinancingReceivableTypeOfBorrowerDomain_CBB93B0D70BA22289ECBD8B3306CBDFA" xlink:to="loc_cbnk_OwnerOccupiedRealEstateMember_B523DA4B47D42825022FD8B3306C7F7C" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_InvestorRealEstateMember" xlink:label="loc_cbnk_InvestorRealEstateMember_ED51F243F0137C868B9AD8B3306C4248" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfFinancingReceivableTypeOfBorrowerDomain_CBB93B0D70BA22289ECBD8B3306CBDFA" xlink:to="loc_cbnk_InvestorRealEstateMember_ED51F243F0137C868B9AD8B3306C4248" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_3E5336D7616F24E93045D8B3306CD3F6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_786AF65A4E8DA2898051D8B3306CD7A1" xlink:to="loc_srt_RangeAxis_3E5336D7616F24E93045D8B3306CD3F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_594105575E3256A45DEAD8B3306C9861_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_3E5336D7616F24E93045D8B3306CD3F6" xlink:to="loc_srt_RangeMember_594105575E3256A45DEAD8B3306C9861_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_594105575E3256A45DEAD8B3306C9861" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_3E5336D7616F24E93045D8B3306CD3F6" xlink:to="loc_srt_RangeMember_594105575E3256A45DEAD8B3306C9861" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_BB6C75DD50B9C443E4BDD8B3306CC161" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_594105575E3256A45DEAD8B3306C9861" xlink:to="loc_srt_MinimumMember_BB6C75DD50B9C443E4BDD8B3306CC161" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_42F123279D20C94CC356D8B3306C9F10" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_594105575E3256A45DEAD8B3306C9861" xlink:to="loc_srt_MaximumMember_42F123279D20C94CC356D8B3306C9F10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_AF11CC6973381FE37B53D8B3306C814A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_786AF65A4E8DA2898051D8B3306CD7A1" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_AF11CC6973381FE37B53D8B3306C814A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0CEE62DD85732083648FD8B3306C6B64_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_AF11CC6973381FE37B53D8B3306C814A" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0CEE62DD85732083648FD8B3306C6B64_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0CEE62DD85732083648FD8B3306C6B64" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_AF11CC6973381FE37B53D8B3306C814A" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0CEE62DD85732083648FD8B3306C6B64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_CA28AB373F0B7A7C26E3D8B3306C5486" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0CEE62DD85732083648FD8B3306C6B64" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_CA28AB373F0B7A7C26E3D8B3306C5486" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_7FA8AC02D772BA40862AD8B3306CE53A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0CEE62DD85732083648FD8B3306C6B64" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_7FA8AC02D772BA40862AD8B3306CE53A" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_ConstructionPortfolioSegmentMember" xlink:label="loc_cbnk_ConstructionPortfolioSegmentMember_40BACE3C0578FE195245D8B3306CA1BE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0CEE62DD85732083648FD8B3306C6B64" xlink:to="loc_cbnk_ConstructionPortfolioSegmentMember_40BACE3C0578FE195245D8B3306CA1BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_B3C508CE48F8F9A6ACE0D8B3306C27E7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_0CEE62DD85732083648FD8B3306C6B64" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_B3C508CE48F8F9A6ACE0D8B3306C27E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_83EA3D10B98E574E7A4CD8B3307338C5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_786AF65A4E8DA2898051D8B3306CD7A1" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_83EA3D10B98E574E7A4CD8B3307338C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_174450C47BBB6C526161D8B3307348A0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_83EA3D10B98E574E7A4CD8B3307338C5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_174450C47BBB6C526161D8B3307348A0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_174450C47BBB6C526161D8B3307348A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_83EA3D10B98E574E7A4CD8B3307338C5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_174450C47BBB6C526161D8B3307348A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RealEstateLoanMember" xlink:label="loc_us-gaap_RealEstateLoanMember_3CB0CD8D1E64C3206E02D8B33073A517" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_174450C47BBB6C526161D8B3307348A0" xlink:to="loc_us-gaap_RealEstateLoanMember_3CB0CD8D1E64C3206E02D8B33073A517" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_PaycheckProtectionProgramMember" xlink:label="loc_cbnk_PaycheckProtectionProgramMember_5DE6D5707DAF519072CCD8B3307359FB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_174450C47BBB6C526161D8B3307348A0" xlink:to="loc_cbnk_PaycheckProtectionProgramMember_5DE6D5707DAF519072CCD8B3307359FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditCardReceivablesMember" xlink:label="loc_us-gaap_CreditCardReceivablesMember_51DC893E8A311459E934D8B33074FC07" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_174450C47BBB6C526161D8B3307348A0" xlink:to="loc_us-gaap_CreditCardReceivablesMember_51DC893E8A311459E934D8B33074FC07" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OtherConsumerMember" xlink:label="loc_cbnk_OtherConsumerMember_58D1F26BC9826D62DDEED8B33074EF7E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_174450C47BBB6C526161D8B3307348A0" xlink:to="loc_cbnk_OtherConsumerMember_58D1F26BC9826D62DDEED8B33074EF7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollateralAxis" xlink:label="loc_us-gaap_CollateralAxis_060106753C13EBF106C0D8B33074636F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_786AF65A4E8DA2898051D8B3306CD7A1" xlink:to="loc_us-gaap_CollateralAxis_060106753C13EBF106C0D8B33074636F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollateralDomain" xlink:label="loc_us-gaap_CollateralDomain_0F325CF37CEDB1BBC103D8B33074B4BD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CollateralAxis_060106753C13EBF106C0D8B33074636F" xlink:to="loc_us-gaap_CollateralDomain_0F325CF37CEDB1BBC103D8B33074B4BD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollateralDomain" xlink:label="loc_us-gaap_CollateralDomain_0F325CF37CEDB1BBC103D8B33074B4BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CollateralAxis_060106753C13EBF106C0D8B33074636F" xlink:to="loc_us-gaap_CollateralDomain_0F325CF37CEDB1BBC103D8B33074B4BD" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_SavingsDepositsMember" xlink:label="loc_cbnk_SavingsDepositsMember_F3F4D9F701B3BF620447D8B330748CF2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_0F325CF37CEDB1BBC103D8B33074B4BD" xlink:to="loc_cbnk_SavingsDepositsMember_F3F4D9F701B3BF620447D8B330748CF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableGross" xlink:label="loc_us-gaap_NotesReceivableGross_0C5AB23AF535A36ECCE1D8B3307451D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_us-gaap_NotesReceivableGross_0C5AB23AF535A36ECCE1D8B3307451D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDeferredIncome_0C629BAFE5DAD54869C9D8B330740187" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_us-gaap_LoansAndLeasesReceivableDeferredIncome_0C629BAFE5DAD54869C9D8B330740187" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_602367F2754F0E168652D8B33074D989" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_602367F2754F0E168652D8B33074D989" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableNet" xlink:label="loc_us-gaap_NotesReceivableNet_821934922CCFE1952A6ED8B33074FAD6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_us-gaap_NotesReceivableNet_821934922CCFE1952A6ED8B33074FAD6" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LoansAndLeasesReceivableFixedInterestRateTerm" xlink:label="loc_cbnk_LoansAndLeasesReceivableFixedInterestRateTerm_3EC3EF1801EB98BCEAA7D8B33074DFA4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_cbnk_LoansAndLeasesReceivableFixedInterestRateTerm_3EC3EF1801EB98BCEAA7D8B33074DFA4" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LoansAndLeasesReceivableInitialCommitmentTerm" xlink:label="loc_cbnk_LoansAndLeasesReceivableInitialCommitmentTerm_FF3466B474933BE0BED3D8B33074D8DD" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_cbnk_LoansAndLeasesReceivableInitialCommitmentTerm_FF3466B474933BE0BED3D8B33074D8DD" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LoansAndLeasesReceivableBalloonPaymentPeriod" xlink:label="loc_cbnk_LoansAndLeasesReceivableBalloonPaymentPeriod_0F38A5CC1D5D51DFB82CD8B33074D919" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_cbnk_LoansAndLeasesReceivableBalloonPaymentPeriod_0F38A5CC1D5D51DFB82CD8B33074D919" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LoansAndLeasesReceivableCovenantComplianceDebtServiceCoverageRatio" xlink:label="loc_cbnk_LoansAndLeasesReceivableCovenantComplianceDebtServiceCoverageRatio_89149A783FBE2DFA9427D8B33074A4DA" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_cbnk_LoansAndLeasesReceivableCovenantComplianceDebtServiceCoverageRatio_89149A783FBE2DFA9427D8B33074A4DA" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LoansAndLeasesReceivablePercentOfRealEstatePortfolio" xlink:label="loc_cbnk_LoansAndLeasesReceivablePercentOfRealEstatePortfolio_D802BF4D6432A21F1418D8B33074D48B" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_cbnk_LoansAndLeasesReceivablePercentOfRealEstatePortfolio_D802BF4D6432A21F1418D8B33074D48B" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LoansAndLeasesReceivableAmortizationPeriod" xlink:label="loc_cbnk_LoansAndLeasesReceivableAmortizationPeriod_F8608FC7CA586B4C38E6D8B33074B8EA" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_cbnk_LoansAndLeasesReceivableAmortizationPeriod_F8608FC7CA586B4C38E6D8B33074B8EA" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LoansAndLeasesReceivablePrincipalToCollateralValueRatioPercent" xlink:label="loc_cbnk_LoansAndLeasesReceivablePrincipalToCollateralValueRatioPercent_1BAD97FFFCD0474B2EFED8B330744B6E" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_cbnk_LoansAndLeasesReceivablePrincipalToCollateralValueRatioPercent_1BAD97FFFCD0474B2EFED8B330744B6E" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LoansAndLeasesReceivableRepaymentHistoryUsedForScoringModel" xlink:label="loc_cbnk_LoansAndLeasesReceivableRepaymentHistoryUsedForScoringModel_D9D07BA466F8DBDA26AAD8B330744B80" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_80F15943F52E86911D59D8B33074952A" xlink:to="loc_cbnk_LoansAndLeasesReceivableRepaymentHistoryUsedForScoringModel_D9D07BA466F8DBDA26AAD8B330744B80" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableCreditQualityIndicatorsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentLineItems" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_687AFCCC29DBC024AE2FD8B33042A8BA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_A931E8E3B31B474F4714D8B33042C9EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_687AFCCC29DBC024AE2FD8B33042A8BA" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_A931E8E3B31B474F4714D8B33042C9EE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_2668D6D21196B24430A8D8B33042C5F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_A931E8E3B31B474F4714D8B33042C9EE" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_2668D6D21196B24430A8D8B33042C5F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BE62757298095663107BD8B3304201E3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_2668D6D21196B24430A8D8B33042C5F5" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BE62757298095663107BD8B3304201E3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BE62757298095663107BD8B3304201E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_2668D6D21196B24430A8D8B33042C5F5" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BE62757298095663107BD8B3304201E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_697CBBC6FFA782B5AF10D8B330421B43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BE62757298095663107BD8B3304201E3" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_697CBBC6FFA782B5AF10D8B330421B43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_9A09B0132F1CB15F00B1D8B33042A60E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BE62757298095663107BD8B3304201E3" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_9A09B0132F1CB15F00B1D8B33042A60E" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_ConstructionPortfolioSegmentMember" xlink:label="loc_cbnk_ConstructionPortfolioSegmentMember_C38562D654036FA42517D8B33042DBD7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BE62757298095663107BD8B3304201E3" xlink:to="loc_cbnk_ConstructionPortfolioSegmentMember_C38562D654036FA42517D8B33042DBD7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_3056CCB954BAABF10A28D8B330420F52" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BE62757298095663107BD8B3304201E3" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_3056CCB954BAABF10A28D8B330420F52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8795D828004A75A02289D8B330423B97" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_A931E8E3B31B474F4714D8B33042C9EE" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8795D828004A75A02289D8B330423B97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8A396F791183EA5EE5E7D8B330423D0C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8795D828004A75A02289D8B330423B97" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8A396F791183EA5EE5E7D8B330423D0C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8A396F791183EA5EE5E7D8B330423D0C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_8795D828004A75A02289D8B330423B97" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8A396F791183EA5EE5E7D8B330423D0C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RealEstateLoanMember" xlink:label="loc_us-gaap_RealEstateLoanMember_2266DAB4366961CDADA7D8B330423FF7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8A396F791183EA5EE5E7D8B330423D0C" xlink:to="loc_us-gaap_RealEstateLoanMember_2266DAB4366961CDADA7D8B330423FF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditCardReceivablesMember" xlink:label="loc_us-gaap_CreditCardReceivablesMember_4D675E086325CA90E50FD8B330429D02" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8A396F791183EA5EE5E7D8B330423D0C" xlink:to="loc_us-gaap_CreditCardReceivablesMember_4D675E086325CA90E50FD8B330429D02" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OtherConsumerMember" xlink:label="loc_cbnk_OtherConsumerMember_E66271431F4D168D426BD8B33042F040" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_8A396F791183EA5EE5E7D8B330423D0C" xlink:to="loc_cbnk_OtherConsumerMember_E66271431F4D168D426BD8B33042F040" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InternalCreditAssessmentAxis" xlink:label="loc_us-gaap_InternalCreditAssessmentAxis_418ADF4B710AB87B6021D8B33042E9A5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_A931E8E3B31B474F4714D8B33042C9EE" xlink:to="loc_us-gaap_InternalCreditAssessmentAxis_418ADF4B710AB87B6021D8B33042E9A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InternalCreditAssessmentDomain" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_262A58E4CA3CAEB0BC2BD8B33042DC7F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_418ADF4B710AB87B6021D8B33042E9A5" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_262A58E4CA3CAEB0BC2BD8B33042DC7F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InternalCreditAssessmentDomain" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_262A58E4CA3CAEB0BC2BD8B33042DC7F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_418ADF4B710AB87B6021D8B33042E9A5" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_262A58E4CA3CAEB0BC2BD8B33042DC7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PassMember" xlink:label="loc_us-gaap_PassMember_2FE4B22554A6C5078F5AD8B33042ED6D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_262A58E4CA3CAEB0BC2BD8B33042DC7F" xlink:to="loc_us-gaap_PassMember_2FE4B22554A6C5078F5AD8B33042ED6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SpecialMentionMember" xlink:label="loc_us-gaap_SpecialMentionMember_24DDBE02481486810F33D8B330429EAF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_262A58E4CA3CAEB0BC2BD8B33042DC7F" xlink:to="loc_us-gaap_SpecialMentionMember_24DDBE02481486810F33D8B330429EAF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubstandardMember" xlink:label="loc_us-gaap_SubstandardMember_AAC6E7D8D210D7A5BF4BD8B330426E4A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_262A58E4CA3CAEB0BC2BD8B33042DC7F" xlink:to="loc_us-gaap_SubstandardMember_AAC6E7D8D210D7A5BF4BD8B330426E4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DoubtfulMember" xlink:label="loc_us-gaap_DoubtfulMember_960903735191B0CA2D94D8B33042D0EB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_262A58E4CA3CAEB0BC2BD8B33042DC7F" xlink:to="loc_us-gaap_DoubtfulMember_960903735191B0CA2D94D8B33042D0EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableGross" xlink:label="loc_us-gaap_NotesReceivableGross_4F5F99081546AD3230C0D8B33042646C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_687AFCCC29DBC024AE2FD8B33042A8BA" xlink:to="loc_us-gaap_NotesReceivableGross_4F5F99081546AD3230C0D8B33042646C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableImpairedLoansDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableImpairedLineItems" xlink:label="loc_us-gaap_FinancingReceivableImpairedLineItems_1477838E7FFB5857F5D3D8B3304A02B2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfImpairedFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_7538665A222E037B2784D8B3304A8632" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_1477838E7FFB5857F5D3D8B3304A02B2" xlink:to="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_7538665A222E037B2784D8B3304A8632" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_5D8F06B0148F13695A7AD8B3304A6048" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_7538665A222E037B2784D8B3304A8632" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_5D8F06B0148F13695A7AD8B3304A6048" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_71F17F9567F8B7E67251D8B3304A3C2F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_5D8F06B0148F13695A7AD8B3304A6048" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_71F17F9567F8B7E67251D8B3304A3C2F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_71F17F9567F8B7E67251D8B3304A3C2F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_5D8F06B0148F13695A7AD8B3304A6048" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_71F17F9567F8B7E67251D8B3304A3C2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_247FEA26039C4B77AF4ED8B3304A10A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_71F17F9567F8B7E67251D8B3304A3C2F" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_247FEA26039C4B77AF4ED8B3304A10A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_8011A55B4DA8005A05B8D8B3304A0BF5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_71F17F9567F8B7E67251D8B3304A3C2F" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_8011A55B4DA8005A05B8D8B3304A0BF5" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_ConstructionPortfolioSegmentMember" xlink:label="loc_cbnk_ConstructionPortfolioSegmentMember_49CF87D52F3D678DAD68D8B3304AB0E1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_71F17F9567F8B7E67251D8B3304A3C2F" xlink:to="loc_cbnk_ConstructionPortfolioSegmentMember_49CF87D52F3D678DAD68D8B3304AB0E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_61B6E16BBD8B284E0C47D8B3304A7EAE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfImpairedFinancingReceivableTable_7538665A222E037B2784D8B3304A8632" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_61B6E16BBD8B284E0C47D8B3304A7EAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2109A96332AA1D7BCF99D8B3304A25C3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_61B6E16BBD8B284E0C47D8B3304A7EAE" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2109A96332AA1D7BCF99D8B3304A25C3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2109A96332AA1D7BCF99D8B3304A25C3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_61B6E16BBD8B284E0C47D8B3304A7EAE" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2109A96332AA1D7BCF99D8B3304A25C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RealEstateLoanMember" xlink:label="loc_us-gaap_RealEstateLoanMember_498F93C6E60A51B66B95D8B3304A1C28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2109A96332AA1D7BCF99D8B3304A25C3" xlink:to="loc_us-gaap_RealEstateLoanMember_498F93C6E60A51B66B95D8B3304A1C28" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_AcquiredLoansMember" xlink:label="loc_cbnk_AcquiredLoansMember_3C2D63E4191C9116FDD7D8B3304AE548" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2109A96332AA1D7BCF99D8B3304A25C3" xlink:to="loc_cbnk_AcquiredLoansMember_3C2D63E4191C9116FDD7D8B3304AE548" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_F9E7E2C2DE46F9F5126DD8B3304A2EF6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_1477838E7FFB5857F5D3D8B3304A02B2" xlink:to="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_F9E7E2C2DE46F9F5126DD8B3304A2EF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_5E8BE17D980FD27C549CD8B3304A62F8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_1477838E7FFB5857F5D3D8B3304A02B2" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_5E8BE17D980FD27C549CD8B3304A62F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_17508FEFC589C3AF4C7DD8B3304A6FF2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_1477838E7FFB5857F5D3D8B3304A02B2" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_17508FEFC589C3AF4C7DD8B3304A6FF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_428C8A8A363965468251D8B3304A2857" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_1477838E7FFB5857F5D3D8B3304A02B2" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_428C8A8A363965468251D8B3304A2857" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableRelatedAllowance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRelatedAllowance_C50A84A1C464CE59B3D1D8B3304A7083" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_1477838E7FFB5857F5D3D8B3304A02B2" xlink:to="loc_us-gaap_ImpairedFinancingReceivableRelatedAllowance_C50A84A1C464CE59B3D1D8B3304A7083" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_F4FA0F2781F8BABB4DA1D8B33052240A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_1477838E7FFB5857F5D3D8B3304A02B2" xlink:to="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_F4FA0F2781F8BABB4DA1D8B33052240A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod_46B97FCB669A9A79633AD8B33052ED4C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableImpairedLineItems_1477838E7FFB5857F5D3D8B3304A02B2" xlink:to="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod_46B97FCB669A9A79633AD8B33052ED4C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableOutstandingLoanCommitmentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_C91FE9B9BE149647CCF8D8B330398CD5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_08E19E395B2BAB4538F0D8B33031A3AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_C91FE9B9BE149647CCF8D8B330398CD5" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_08E19E395B2BAB4538F0D8B33031A3AC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_CBC09600716131634918D8B330313C5D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_08E19E395B2BAB4538F0D8B33031A3AC" xlink:to="loc_us-gaap_FinancialInstrumentAxis_CBC09600716131634918D8B330313C5D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_83515CF360E4C17B5B54D8B33031F30D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_CBC09600716131634918D8B330313C5D" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_83515CF360E4C17B5B54D8B33031F30D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_83515CF360E4C17B5B54D8B33031F30D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_CBC09600716131634918D8B330313C5D" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_83515CF360E4C17B5B54D8B33031F30D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommitmentsToExtendCreditMember" xlink:label="loc_us-gaap_CommitmentsToExtendCreditMember_B1ABFD58B07D5C819FC2D8B3303141BB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_83515CF360E4C17B5B54D8B33031F30D" xlink:to="loc_us-gaap_CommitmentsToExtendCreditMember_B1ABFD58B07D5C819FC2D8B3303141BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_361FE6BD83327CC2F71ED8B33031354B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_08E19E395B2BAB4538F0D8B33031A3AC" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_361FE6BD83327CC2F71ED8B33031354B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9A62ACBEA6C5E045AF3CD8B33031BFB1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_361FE6BD83327CC2F71ED8B33031354B" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9A62ACBEA6C5E045AF3CD8B33031BFB1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9A62ACBEA6C5E045AF3CD8B33031BFB1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_361FE6BD83327CC2F71ED8B33031354B" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9A62ACBEA6C5E045AF3CD8B33031BFB1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_9A1C09AE1741678E34A9D8B3303124E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9A62ACBEA6C5E045AF3CD8B33031BFB1" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_9A1C09AE1741678E34A9D8B3303124E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialRealEstatePortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_5E171B319D44D37C9613D8B33031720E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9A62ACBEA6C5E045AF3CD8B33031BFB1" xlink:to="loc_us-gaap_CommercialRealEstatePortfolioSegmentMember_5E171B319D44D37C9613D8B33031720E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_C7B6C03F617C03B43A67D8B330312288" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9A62ACBEA6C5E045AF3CD8B33031BFB1" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_C7B6C03F617C03B43A67D8B330312288" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_C3C8CF17B95FDA07C87CD8B33031DDFE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_9A62ACBEA6C5E045AF3CD8B33031BFB1" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_C3C8CF17B95FDA07C87CD8B33031DDFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A50C0D98CEE7100EC2C0D8B330310639" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_08E19E395B2BAB4538F0D8B33031A3AC" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A50C0D98CEE7100EC2C0D8B330310639" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E1A8C3D42AE0BF927385D8B330310BAC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A50C0D98CEE7100EC2C0D8B330310639" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E1A8C3D42AE0BF927385D8B330310BAC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E1A8C3D42AE0BF927385D8B330310BAC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_A50C0D98CEE7100EC2C0D8B330310639" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E1A8C3D42AE0BF927385D8B330310BAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RealEstateLoanMember" xlink:label="loc_us-gaap_RealEstateLoanMember_2FFA78DEBDCE153274BFD8B33031F831" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E1A8C3D42AE0BF927385D8B330310BAC" xlink:to="loc_us-gaap_RealEstateLoanMember_2FFA78DEBDCE153274BFD8B33031F831" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HomeEquityLoanMember" xlink:label="loc_us-gaap_HomeEquityLoanMember_68FD83087BEE4FAAA424D8B330319D0A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E1A8C3D42AE0BF927385D8B330310BAC" xlink:to="loc_us-gaap_HomeEquityLoanMember_68FD83087BEE4FAAA424D8B330319D0A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditCardReceivablesMember" xlink:label="loc_us-gaap_CreditCardReceivablesMember_1EF2758C582301096230D8B33031AD08" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E1A8C3D42AE0BF927385D8B330310BAC" xlink:to="loc_us-gaap_CreditCardReceivablesMember_1EF2758C582301096230D8B33031AD08" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_PersonalLoanMember" xlink:label="loc_cbnk_PersonalLoanMember_04229DF213FD189047A7D8B33039C76F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E1A8C3D42AE0BF927385D8B330310BAC" xlink:to="loc_cbnk_PersonalLoanMember_04229DF213FD189047A7D8B33039C76F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConstructionLoansMember" xlink:label="loc_us-gaap_ConstructionLoansMember_3FC2D03F97BD9C4C8AC6D8B33039CCB7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E1A8C3D42AE0BF927385D8B330310BAC" xlink:to="loc_us-gaap_ConstructionLoansMember_3FC2D03F97BD9C4C8AC6D8B33039CCB7" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_LoansHeldForSaleMember" xlink:label="loc_cbnk_LoansHeldForSaleMember_335EAF3D8338EB05F531D8B33039EA73" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_E1A8C3D42AE0BF927385D8B330310BAC" xlink:to="loc_cbnk_LoansHeldForSaleMember_335EAF3D8338EB05F531D8B33039EA73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnusedCommitmentsToExtendCredit" xlink:label="loc_us-gaap_UnusedCommitmentsToExtendCredit_B3EAD34CCDA6C4F070E8D8B330392703" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_C91FE9B9BE149647CCF8D8B330398CD5" xlink:to="loc_us-gaap_UnusedCommitmentsToExtendCredit_B3EAD34CCDA6C4F070E8D8B330392703" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_15753AD5B137A1971C68D8B33039246A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_C91FE9B9BE149647CCF8D8B330398CD5" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_15753AD5B137A1971C68D8B33039246A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivablePastDueFinancingReceivableDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_8445651FC2401050727FD8B33055990A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfFinancingReceivablesPastDueTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_FEA7AA40566C2CEA0A23D8B33055EF99" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_8445651FC2401050727FD8B33055990A" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_FEA7AA40566C2CEA0A23D8B33055EF99" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_DAF55D46322D0B06FE32D8B33055B343" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_FEA7AA40566C2CEA0A23D8B33055EF99" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_DAF55D46322D0B06FE32D8B33055B343" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_756E3142CB1DB490920FD8B330559E5C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_DAF55D46322D0B06FE32D8B33055B343" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_756E3142CB1DB490920FD8B330559E5C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_756E3142CB1DB490920FD8B330559E5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_DAF55D46322D0B06FE32D8B33055B343" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_756E3142CB1DB490920FD8B330559E5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_36F95C0D5188512383AAD8B33055DF7B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_756E3142CB1DB490920FD8B330559E5C" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_36F95C0D5188512383AAD8B33055DF7B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_1B99166A323D51CA3839D8B33055CF58" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_756E3142CB1DB490920FD8B330559E5C" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_1B99166A323D51CA3839D8B33055CF58" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_ConstructionPortfolioSegmentMember" xlink:label="loc_cbnk_ConstructionPortfolioSegmentMember_D9867811B56E57D960D8D8B33055C057" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_756E3142CB1DB490920FD8B330559E5C" xlink:to="loc_cbnk_ConstructionPortfolioSegmentMember_D9867811B56E57D960D8D8B33055C057" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConsumerPortfolioSegmentMember" xlink:label="loc_us-gaap_ConsumerPortfolioSegmentMember_CDB14783A335A78C5D0AD8B33055F1DD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_756E3142CB1DB490920FD8B330559E5C" xlink:to="loc_us-gaap_ConsumerPortfolioSegmentMember_CDB14783A335A78C5D0AD8B33055F1DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_78AFFDF29998A670B35AD8B330555CDA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_FEA7AA40566C2CEA0A23D8B33055EF99" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_78AFFDF29998A670B35AD8B330555CDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A6305562F4C8CCEE5F6ED8B33055D154_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_78AFFDF29998A670B35AD8B330555CDA" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A6305562F4C8CCEE5F6ED8B33055D154_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A6305562F4C8CCEE5F6ED8B33055D154" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_78AFFDF29998A670B35AD8B330555CDA" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A6305562F4C8CCEE5F6ED8B33055D154" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RealEstateLoanMember" xlink:label="loc_us-gaap_RealEstateLoanMember_7542248FD2944E787B09D8B33055121C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A6305562F4C8CCEE5F6ED8B33055D154" xlink:to="loc_us-gaap_RealEstateLoanMember_7542248FD2944E787B09D8B33055121C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditCardReceivablesMember" xlink:label="loc_us-gaap_CreditCardReceivablesMember_807F397B82E5EEB62334D8B3305577CA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A6305562F4C8CCEE5F6ED8B33055D154" xlink:to="loc_us-gaap_CreditCardReceivablesMember_807F397B82E5EEB62334D8B3305577CA" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OtherConsumerMember" xlink:label="loc_cbnk_OtherConsumerMember_E6B1F0945536DBEC0464D8B33055AC01" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A6305562F4C8CCEE5F6ED8B33055D154" xlink:to="loc_cbnk_OtherConsumerMember_E6B1F0945536DBEC0464D8B33055AC01" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_AcquiredLoansMember" xlink:label="loc_cbnk_AcquiredLoansMember_1DEAFAEFD3FAF6C90AECD8B33055953E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_A6305562F4C8CCEE5F6ED8B33055D154" xlink:to="loc_cbnk_AcquiredLoansMember_1DEAFAEFD3FAF6C90AECD8B33055953E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_2FD38B95EB22504FD140D8B33055FC2F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_FEA7AA40566C2CEA0A23D8B33055EF99" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_2FD38B95EB22504FD140D8B33055FC2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0942F9F793BA7811FBF0D8B33055F8CE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_2FD38B95EB22504FD140D8B33055FC2F" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0942F9F793BA7811FBF0D8B33055F8CE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0942F9F793BA7811FBF0D8B33055F8CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_2FD38B95EB22504FD140D8B33055FC2F" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0942F9F793BA7811FBF0D8B33055F8CE" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_FinancingReceivables30To89DaysPastDueMember" xlink:label="loc_cbnk_FinancingReceivables30To89DaysPastDueMember_3C2E94DDF344E710B59BD8B330553B32" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0942F9F793BA7811FBF0D8B33055F8CE" xlink:to="loc_cbnk_FinancingReceivables30To89DaysPastDueMember_3C2E94DDF344E710B59BD8B330553B32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember" xlink:label="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_85E1973283337A1D800CD8B330553E3A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0942F9F793BA7811FBF0D8B33055F8CE" xlink:to="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_85E1973283337A1D800CD8B330553E3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollateralAxis" xlink:label="loc_us-gaap_CollateralAxis_3FE70084138A37A5B3EBD8B33055BBF1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_FEA7AA40566C2CEA0A23D8B33055EF99" xlink:to="loc_us-gaap_CollateralAxis_3FE70084138A37A5B3EBD8B33055BBF1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollateralDomain" xlink:label="loc_us-gaap_CollateralDomain_02F68FD5CAF4EBA975DFD8B33055B5EE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CollateralAxis_3FE70084138A37A5B3EBD8B33055BBF1" xlink:to="loc_us-gaap_CollateralDomain_02F68FD5CAF4EBA975DFD8B33055B5EE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollateralDomain" xlink:label="loc_us-gaap_CollateralDomain_02F68FD5CAF4EBA975DFD8B33055B5EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CollateralAxis_3FE70084138A37A5B3EBD8B33055BBF1" xlink:to="loc_us-gaap_CollateralDomain_02F68FD5CAF4EBA975DFD8B33055B5EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResidentialRealEstateMember" xlink:label="loc_us-gaap_ResidentialRealEstateMember_5FE4DA1F5C3645BCC0CCD8B330550B5A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_02F68FD5CAF4EBA975DFD8B33055B5EE" xlink:to="loc_us-gaap_ResidentialRealEstateMember_5FE4DA1F5C3645BCC0CCD8B330550B5A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_2414EA696B24FA56D2E8D8B330558D6F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_8445651FC2401050727FD8B33055990A" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_2414EA696B24FA56D2E8D8B330558D6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_68C8C89184EA5E00FCC6D8B330556608" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_8445651FC2401050727FD8B33055990A" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_68C8C89184EA5E00FCC6D8B330556608" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableGross" xlink:label="loc_us-gaap_NotesReceivableGross_86108E4ACEDC324484FCD8B33055C724" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_8445651FC2401050727FD8B33055990A" xlink:to="loc_us-gaap_NotesReceivableGross_86108E4ACEDC324484FCD8B33055C724" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing_7AF3A136F2A48162B714D8B33055D950" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_8445651FC2401050727FD8B33055990A" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing_7AF3A136F2A48162B714D8B33055D950" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_4BCE2F4D531BAE451A77D8B3305520A2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_8445651FC2401050727FD8B33055990A" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_4BCE2F4D531BAE451A77D8B3305520A2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/PortfolioLoansReceivableTroubleDebtRestructuringDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableModificationsLineItems" xlink:label="loc_us-gaap_FinancingReceivableModificationsLineItems_AA0B5F00CDDC9AA92835D8B33041615B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_746527AD55CF1229D4BED8B33039A5E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_AA0B5F00CDDC9AA92835D8B33041615B" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_746527AD55CF1229D4BED8B33039A5E1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusAxis" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_A137A0F78E66F9BFB48BD8B330390611" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_746527AD55CF1229D4BED8B33039A5E1" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_A137A0F78E66F9BFB48BD8B330390611" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_8AB755DB8BC4F9DC15C8D8B330392AF2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_A137A0F78E66F9BFB48BD8B330390611" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_8AB755DB8BC4F9DC15C8D8B330392AF2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentPerformanceStatusDomain" xlink:label="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_8AB755DB8BC4F9DC15C8D8B330392AF2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusAxis_A137A0F78E66F9BFB48BD8B330390611" xlink:to="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_8AB755DB8BC4F9DC15C8D8B330392AF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PerformingFinancingReceivableMember" xlink:label="loc_us-gaap_PerformingFinancingReceivableMember_E4BA249A8D942308E08AD8B330391E87" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_8AB755DB8BC4F9DC15C8D8B330392AF2" xlink:to="loc_us-gaap_PerformingFinancingReceivableMember_E4BA249A8D942308E08AD8B330391E87" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NonperformingFinancingReceivableMember" xlink:label="loc_us-gaap_NonperformingFinancingReceivableMember_31812676DD49399FB737D8B33039227E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentPerformanceStatusDomain_8AB755DB8BC4F9DC15C8D8B330392AF2" xlink:to="loc_us-gaap_NonperformingFinancingReceivableMember_31812676DD49399FB737D8B33039227E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_EE51AD1D942B5D3BB15AD8B33039087C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_746527AD55CF1229D4BED8B33039A5E1" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_EE51AD1D942B5D3BB15AD8B33039087C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1F5B8E772802E1535BAAD8B330394914_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_EE51AD1D942B5D3BB15AD8B33039087C" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1F5B8E772802E1535BAAD8B330394914_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1F5B8E772802E1535BAAD8B330394914" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_EE51AD1D942B5D3BB15AD8B33039087C" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1F5B8E772802E1535BAAD8B330394914" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResidentialPortfolioSegmentMember" xlink:label="loc_us-gaap_ResidentialPortfolioSegmentMember_DFC6904C404B9634AB44D8B3303972FB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1F5B8E772802E1535BAAD8B330394914" xlink:to="loc_us-gaap_ResidentialPortfolioSegmentMember_DFC6904C404B9634AB44D8B3303972FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_BF354CA98897D70A1663D8B330399A13" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_1F5B8E772802E1535BAAD8B330394914" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_BF354CA98897D70A1663D8B330399A13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_465E60A2B4628F0B5D5BD8B33039B574" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable_746527AD55CF1229D4BED8B33039A5E1" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_465E60A2B4628F0B5D5BD8B33039B574" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7B26676E6B866EB03811D8B33039E5AA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_465E60A2B4628F0B5D5BD8B33039B574" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7B26676E6B866EB03811D8B33039E5AA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7B26676E6B866EB03811D8B33039E5AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_465E60A2B4628F0B5D5BD8B33039B574" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7B26676E6B866EB03811D8B33039E5AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RealEstateLoanMember" xlink:label="loc_us-gaap_RealEstateLoanMember_E649AAAF2FB5854369EAD8B330416542" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7B26676E6B866EB03811D8B33039E5AA" xlink:to="loc_us-gaap_RealEstateLoanMember_E649AAAF2FB5854369EAD8B330416542" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_AcquiredLoansMember" xlink:label="loc_cbnk_AcquiredLoansMember_7575FBFBE3A849D24B78D8B330418061" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_7B26676E6B866EB03811D8B33039E5AA" xlink:to="loc_cbnk_AcquiredLoansMember_7575FBFBE3A849D24B78D8B330418061" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableModificationsNumberOfContracts2" xlink:label="loc_us-gaap_FinancingReceivableModificationsNumberOfContracts2_D383B5687BA43DAA1F82D8B33041E2CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_AA0B5F00CDDC9AA92835D8B33041615B" xlink:to="loc_us-gaap_FinancingReceivableModificationsNumberOfContracts2_D383B5687BA43DAA1F82D8B33041E2CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableModificationsRecordedInvestment" xlink:label="loc_us-gaap_FinancingReceivableModificationsRecordedInvestment_B9816D76660A29D935C1D8B33042ADCE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableModificationsLineItems_AA0B5F00CDDC9AA92835D8B33041615B" xlink:to="loc_us-gaap_FinancingReceivableModificationsRecordedInvestment_B9816D76660A29D935C1D8B33042ADCE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/SbaPppLoansReceivable" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureLineItems" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_B46FEDB1ADE5BBFC37E5D8B330859962" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureTable" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_F4BE384CC5C6F9423FCED8B33085909F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_B46FEDB1ADE5BBFC37E5D8B330859962" xlink:to="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_F4BE384CC5C6F9423FCED8B33085909F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_09B7020FE4F2F7786802D8B33085751D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_F4BE384CC5C6F9423FCED8B33085909F" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_09B7020FE4F2F7786802D8B33085751D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_DAC8A4CD331275313789D8B33085D1E2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_09B7020FE4F2F7786802D8B33085751D" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_DAC8A4CD331275313789D8B33085D1E2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_DAC8A4CD331275313789D8B33085D1E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_09B7020FE4F2F7786802D8B33085751D" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_DAC8A4CD331275313789D8B33085D1E2" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_PaycheckProtectionProgramMember" xlink:label="loc_cbnk_PaycheckProtectionProgramMember_5F44AC3AA395A5BBAB26D8B33085058B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_DAC8A4CD331275313789D8B33085D1E2" xlink:to="loc_cbnk_PaycheckProtectionProgramMember_5F44AC3AA395A5BBAB26D8B33085058B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablesTextBlock" xlink:label="loc_us-gaap_FinancingReceivablesTextBlock_8FBE1E0B0820EFEE4ED3D8B33085FFB7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_B46FEDB1ADE5BBFC37E5D8B330859962" xlink:to="loc_us-gaap_FinancingReceivablesTextBlock_8FBE1E0B0820EFEE4ED3D8B33085FFB7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/SbaPppLoansReceivableDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureLineItems" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F9D8FEB3CF728F198CA6D8B3308505B0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableDisclosureTable" xlink:label="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_C140AC67E644467EF31AD8B33084CBA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F9D8FEB3CF728F198CA6D8B3308505B0" xlink:to="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_C140AC67E644467EF31AD8B33084CBA5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentAxis" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7A6429855BC3EC0CBE18D8B330849358" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_C140AC67E644467EF31AD8B33084CBA5" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7A6429855BC3EC0CBE18D8B330849358" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BD5F9F8C41B4407238FAD8B33085A371_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7A6429855BC3EC0CBE18D8B330849358" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BD5F9F8C41B4407238FAD8B33085A371_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivablePortfolioSegmentDomain" xlink:label="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BD5F9F8C41B4407238FAD8B33085A371" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentAxis_7A6429855BC3EC0CBE18D8B330849358" xlink:to="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BD5F9F8C41B4407238FAD8B33085A371" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPortfolioSegmentMember" xlink:label="loc_us-gaap_CommercialPortfolioSegmentMember_4F7FA2FC797DFA58C16FD8B330857CC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablePortfolioSegmentDomain_BD5F9F8C41B4407238FAD8B33085A371" xlink:to="loc_us-gaap_CommercialPortfolioSegmentMember_4F7FA2FC797DFA58C16FD8B330857CC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_F36309688E302A416837D8B330854CB5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureTable_C140AC67E644467EF31AD8B33084CBA5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_F36309688E302A416837D8B330854CB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2496A95B418CB80C0478D8B33085508A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_F36309688E302A416837D8B330854CB5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2496A95B418CB80C0478D8B33085508A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2496A95B418CB80C0478D8B33085508A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis_F36309688E302A416837D8B330854CB5" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2496A95B418CB80C0478D8B33085508A" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_PaycheckProtectionProgramMember" xlink:label="loc_cbnk_PaycheckProtectionProgramMember_79B938230D79343BBABAD8B33085761F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain_2496A95B418CB80C0478D8B33085508A" xlink:to="loc_cbnk_PaycheckProtectionProgramMember_79B938230D79343BBABAD8B33085761F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableGross" xlink:label="loc_us-gaap_NotesReceivableGross_25D6B3F95B8D72D7FD4AD8B33085BC2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F9D8FEB3CF728F198CA6D8B3308505B0" xlink:to="loc_us-gaap_NotesReceivableGross_25D6B3F95B8D72D7FD4AD8B33085BC2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerLiability" xlink:label="loc_us-gaap_ContractWithCustomerLiability_C05E3A1DA2BD9C9F4B2AD8B3308559BC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoansAndLeasesReceivableDisclosureLineItems_F9D8FEB3CF728F198CA6D8B3308505B0" xlink:to="loc_us-gaap_ContractWithCustomerLiability_C05E3A1DA2BD9C9F4B2AD8B3308559BC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/Segments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/SegmentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_E9121AB10B4358FF7600BF58C42D00BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_E9121AB10B4358FF7600BF58C42D00BE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_C3A90A9D8F54183D373BBF58C42E43E8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_E9121AB10B4358FF7600BF58C42D00BE" xlink:to="loc_srt_ConsolidationItemsAxis_C3A90A9D8F54183D373BBF58C42E43E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_DA2A2CD3BC8617BD84E6BF58C42E4D7F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_C3A90A9D8F54183D373BBF58C42E43E8" xlink:to="loc_srt_ConsolidationItemsDomain_DA2A2CD3BC8617BD84E6BF58C42E4D7F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_DA2A2CD3BC8617BD84E6BF58C42E4D7F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_C3A90A9D8F54183D373BBF58C42E43E8" xlink:to="loc_srt_ConsolidationItemsDomain_DA2A2CD3BC8617BD84E6BF58C42E4D7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_FD4B2EFC2B5045940BC5BF58C42E6C72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_DA2A2CD3BC8617BD84E6BF58C42E4D7F" xlink:to="loc_us-gaap_OperatingSegmentsMember_FD4B2EFC2B5045940BC5BF58C42E6C72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntersegmentEliminationMember" xlink:label="loc_us-gaap_IntersegmentEliminationMember_E997BE1D1D46111EC330BF58C42ED4A2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_DA2A2CD3BC8617BD84E6BF58C42E4D7F" xlink:to="loc_us-gaap_IntersegmentEliminationMember_E997BE1D1D46111EC330BF58C42ED4A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_C701871553CC2AF1C766BF58C42F506F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_E9121AB10B4358FF7600BF58C42D00BE" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_C701871553CC2AF1C766BF58C42F506F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_D8099848795B82716ADDBF58C42F4CC1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C701871553CC2AF1C766BF58C42F506F" xlink:to="loc_us-gaap_SegmentDomain_D8099848795B82716ADDBF58C42F4CC1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_D8099848795B82716ADDBF58C42F4CC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C701871553CC2AF1C766BF58C42F506F" xlink:to="loc_us-gaap_SegmentDomain_D8099848795B82716ADDBF58C42F4CC1" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_CommercialBankMember" xlink:label="loc_cbnk_CommercialBankMember_8306ACAF83B2CCC452DABF58C42FF824" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_D8099848795B82716ADDBF58C42F4CC1" xlink:to="loc_cbnk_CommercialBankMember_8306ACAF83B2CCC452DABF58C42FF824" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_CapitalBankHomeLoansMember" xlink:label="loc_cbnk_CapitalBankHomeLoansMember_C972C4B4FAF45A5ABA1BBF58C42FDD96" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_D8099848795B82716ADDBF58C42F4CC1" xlink:to="loc_cbnk_CapitalBankHomeLoansMember_C972C4B4FAF45A5ABA1BBF58C42FDD96" xlink:type="arc" />
    <link:loc xlink:href="cbnk-20200630.xsd#cbnk_OpenSkyMember" xlink:label="loc_cbnk_OpenSkyMember_C227817C3B24C8275976BF58C42F6F1B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_D8099848795B82716ADDBF58C42F4CC1" xlink:to="loc_cbnk_OpenSkyMember_C227817C3B24C8275976BF58C42F6F1B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateMember" xlink:label="loc_us-gaap_CorporateMember_84675C5277F6EE394583BF58C430D7E6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_D8099848795B82716ADDBF58C42F4CC1" xlink:to="loc_us-gaap_CorporateMember_84675C5277F6EE394583BF58C430D7E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_D901F53B873477C022B4BF58C43081EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_NumberOfReportableSegments_D901F53B873477C022B4BF58C43081EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_C9715E8E70B8A4163B83BF58C430555B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_C9715E8E70B8A4163B83BF58C430555B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_C21A5B050326667D6D3FBF58C43086A1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_InterestExpense_C21A5B050326667D6D3FBF58C43086A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_F505C950C391EC363041BF58C43063E3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_F505C950C391EC363041BF58C43063E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_C77FA07F617A6C5478CDBF58C4312B11" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_C77FA07F617A6C5478CDBF58C4312B11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_5D899C7AF14EA0B77A69BF58C4310B4A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_5D899C7AF14EA0B77A69BF58C4310B4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_B1DF5DF460E434971FA6BF58C4314C19" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_NoninterestIncome_B1DF5DF460E434971FA6BF58C4314C19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_BC74E261598E6634DF00BF58C431A415" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_NoninterestExpense_BC74E261598E6634DF00BF58C431A415" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_2FF33F0BA04948577DA0BF58C431ABE0" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_2FF33F0BA04948577DA0BF58C431ABE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_2176986E9E18EC578E24BF58C431C883" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_53D11213FB9355405DA6BF58C4300F6E" xlink:to="loc_us-gaap_Assets_2176986E9E18EC578E24BF58C431C883" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/SegmentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://capitalbankmd.com/role/SubsequentEvents" xlink:type="extended" />
</link:linkbase>
