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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:5e52992d-6909-4bb5-bc07-2db53debac06,g:33a68087-104e-469b-a7c2-36e1a0b11b72-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCONDITION" xlink:type="simple" xlink:href="bmrc-20231231.xsd#CONSOLIDATEDSTATEMENTSOFCONDITION"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCONDITION" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_f42dde6e-8354-46fb-9149-374186fcf9de" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_c4979e03-320d-4e15-9aef-e2eba4b07e7b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Deposits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f42dde6e-8354-46fb-9149-374186fcf9de" xlink:to="loc_us-gaap_Deposits_c4979e03-320d-4e15-9aef-e2eba4b07e7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_6575cecf-c9da-4682-bf02-879b0aeba1a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f42dde6e-8354-46fb-9149-374186fcf9de" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_6575cecf-c9da-4682-bf02-879b0aeba1a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_f8ac2fbb-3f83-4e14-9e35-9d4f8da9243f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f42dde6e-8354-46fb-9149-374186fcf9de" xlink:to="loc_us-gaap_OperatingLeaseLiability_f8ac2fbb-3f83-4e14-9e35-9d4f8da9243f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_8c3e5296-a663-4ece-a2ee-66681df78531" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f42dde6e-8354-46fb-9149-374186fcf9de" xlink:to="loc_us-gaap_OtherLiabilities_8c3e5296-a663-4ece-a2ee-66681df78531" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_94b96d07-2159-4afd-a2ce-c5f1f5120359" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_ae0be5c1-ff97-47c5-a915-d859aec700f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_94b96d07-2159-4afd-a2ce-c5f1f5120359" xlink:to="loc_us-gaap_Liabilities_ae0be5c1-ff97-47c5-a915-d859aec700f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_a9a05da4-5a20-4a95-8fd4-aeaf1391df64" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_94b96d07-2159-4afd-a2ce-c5f1f5120359" xlink:to="loc_us-gaap_StockholdersEquity_a9a05da4-5a20-4a95-8fd4-aeaf1391df64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_06b17f84-3992-47b2-91c0-4e240cecae23" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_94b96d07-2159-4afd-a2ce-c5f1f5120359" xlink:to="loc_us-gaap_CommitmentsAndContingencies_06b17f84-3992-47b2-91c0-4e240cecae23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_8e7cde22-032a-4b72-8f9a-df231015b7f9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Investments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_68f6f67d-0dab-49da-9070-329f300dd349" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_8e7cde22-032a-4b72-8f9a-df231015b7f9" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_68f6f67d-0dab-49da-9070-329f300dd349" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_0239fa71-8009-495b-913e-4cd0f568c303" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_8e7cde22-032a-4b72-8f9a-df231015b7f9" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_0239fa71-8009-495b-913e-4cd0f568c303" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_25952d65-e12f-42af-ad0f-8bd2544d0094" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Deposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestBearingDepositLiabilities_d00589be-1a26-4a56-bb75-eefaa78c8b11" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestBearingDepositLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_25952d65-e12f-42af-ad0f-8bd2544d0094" xlink:to="loc_us-gaap_NoninterestBearingDepositLiabilities_d00589be-1a26-4a56-bb75-eefaa78c8b11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_04e18c09-38d3-4f14-a8e2-69dac5d76b5b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepositsNegotiableOrderOfWithdrawalNOW"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_25952d65-e12f-42af-ad0f-8bd2544d0094" xlink:to="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_04e18c09-38d3-4f14-a8e2-69dac5d76b5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsSavingsDeposits_d872be40-ab54-4648-a6b9-2642eb54b25c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepositsSavingsDeposits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_25952d65-e12f-42af-ad0f-8bd2544d0094" xlink:to="loc_us-gaap_DepositsSavingsDeposits_d872be40-ab54-4648-a6b9-2642eb54b25c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsMoneyMarketDeposits_63b88b00-dd81-4008-bd4a-dfc12bc4e8f6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepositsMoneyMarketDeposits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_25952d65-e12f-42af-ad0f-8bd2544d0094" xlink:to="loc_us-gaap_DepositsMoneyMarketDeposits_63b88b00-dd81-4008-bd4a-dfc12bc4e8f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_93372970-2e1a-45c8-b6d1-a9d4c54f45be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDeposits"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_25952d65-e12f-42af-ad0f-8bd2544d0094" xlink:to="loc_us-gaap_TimeDeposits_93372970-2e1a-45c8-b6d1-a9d4c54f45be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_a5b55631-385c-471a-8282-3c1f8146b0e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_6136c630-2cda-4fae-a7ae-689f83f843fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_a5b55631-385c-471a-8282-3c1f8146b0e3" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_6136c630-2cda-4fae-a7ae-689f83f843fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_d8dba750-5013-4225-b084-b84ab5ab383e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_a5b55631-385c-471a-8282-3c1f8146b0e3" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_d8dba750-5013-4225-b084-b84ab5ab383e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_87757f4c-2b29-44ef-a7e8-635b7c9b7745" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_3c8fa207-71ab-401d-87e7-564450406b3a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_87757f4c-2b29-44ef-a7e8-635b7c9b7745" xlink:to="loc_us-gaap_PreferredStockValue_3c8fa207-71ab-401d-87e7-564450406b3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_facfe922-b566-41be-9891-372f8f804b96" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_87757f4c-2b29-44ef-a7e8-635b7c9b7745" xlink:to="loc_us-gaap_CommonStockValue_facfe922-b566-41be-9891-372f8f804b96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_50042ff5-cf0e-46b4-befe-004f40ef959b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_87757f4c-2b29-44ef-a7e8-635b7c9b7745" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_50042ff5-cf0e-46b4-befe-004f40ef959b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_b8792b26-d375-485e-acf5-f0ea492f637b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_87757f4c-2b29-44ef-a7e8-635b7c9b7745" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_b8792b26-d375-485e-acf5-f0ea492f637b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_040355af-29d4-481f-86eb-0ed471efe014" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_040355af-29d4-481f-86eb-0ed471efe014" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_89b13e1c-f7bb-4798-9709-077297119701" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Investments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:to="loc_us-gaap_Investments_89b13e1c-f7bb-4798-9709-077297119701" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_a8a7153e-9277-4f46-8f5a-0af004a3a5f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_a8a7153e-9277-4f46-8f5a-0af004a3a5f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_4575ba89-407b-412b-93b7-8888e8028e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:to="loc_us-gaap_Goodwill_4575ba89-407b-412b-93b7-8888e8028e4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsurance_29bbb937-2706-43ea-837a-3b65560f9e27" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BankOwnedLifeInsurance"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:to="loc_us-gaap_BankOwnedLifeInsurance_29bbb937-2706-43ea-837a-3b65560f9e27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_84cfd202-ae68-4516-9b50-7ce8dca895c5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_84cfd202-ae68-4516-9b50-7ce8dca895c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_fb66f6f7-a671-4a31-baeb-9126ace3d8a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_fb66f6f7-a671-4a31-baeb-9126ace3d8a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedCoreDepositsGross_c7919bab-23ff-451c-a127-d54c4204e812" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedCoreDepositsGross"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:to="loc_us-gaap_FiniteLivedCoreDepositsGross_c7919bab-23ff-451c-a127-d54c4204e812" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OtherRealEstateOwned_2e910e70-397e-4b65-ba12-098b530266d4" xlink:href="bmrc-20231231.xsd#bmrc_OtherRealEstateOwned"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:to="loc_bmrc_OtherRealEstateOwned_2e910e70-397e-4b65-ba12-098b530266d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivableAndOtherAssets_ab28c9a0-0197-42ab-bd53-68db24872787" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestReceivableAndOtherAssets"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5aa473b2-1d93-4ddb-973e-960129d164f2" xlink:to="loc_us-gaap_InterestReceivableAndOtherAssets_ab28c9a0-0197-42ab-bd53-68db24872787" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="bmrc-20231231.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_67e5ea40-abc6-44a3-acbb-20d563365440" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_b315fb39-bdc9-4fae-8360-677f6be99526" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_67e5ea40-abc6-44a3-acbb-20d563365440" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_b315fb39-bdc9-4fae-8360-677f6be99526" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_ProvisionForReversalOfLossesOnUnfundedLoanCommitments_23d10ee1-28ac-4dcc-aed6-4e29d14a1d59" xlink:href="bmrc-20231231.xsd#bmrc_ProvisionForReversalOfLossesOnUnfundedLoanCommitments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_67e5ea40-abc6-44a3-acbb-20d563365440" xlink:to="loc_bmrc_ProvisionForReversalOfLossesOnUnfundedLoanCommitments_23d10ee1-28ac-4dcc-aed6-4e29d14a1d59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_afb968ff-e200-449e-87ed-46bf8b1c9556" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_67e5ea40-abc6-44a3-acbb-20d563365440" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_afb968ff-e200-449e-87ed-46bf8b1c9556" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_23477c7d-112d-4b30-8fe3-3d2859072eea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_522e0490-5fe5-4ba5-866f-df3af45d49e0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_23477c7d-112d-4b30-8fe3-3d2859072eea" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_522e0490-5fe5-4ba5-866f-df3af45d49e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9ceb1696-a7d1-4ac9-a6f4-70c785b9db1a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_23477c7d-112d-4b30-8fe3-3d2859072eea" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_9ceb1696-a7d1-4ac9-a6f4-70c785b9db1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_f6f8362a-0c18-4e12-ad8f-80eea5b8bb94" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_301518fb-af08-4189-8379-bff4f860adaf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_f6f8362a-0c18-4e12-ad8f-80eea5b8bb94" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_301518fb-af08-4189-8379-bff4f860adaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_1c5fd27a-acd2-40ce-9042-e60041f77739" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_f6f8362a-0c18-4e12-ad8f-80eea5b8bb94" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_1c5fd27a-acd2-40ce-9042-e60041f77739" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_2e8fab91-d3cb-4fac-a59a-f652da51cbac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtAndEquitySecuritiesGainLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_f6f8362a-0c18-4e12-ad8f-80eea5b8bb94" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_2e8fab91-d3cb-4fac-a59a-f652da51cbac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DividendIncomeFederalHomeLoanBank_9c86d15f-4b40-4055-b2c8-26b37a2079b8" xlink:href="bmrc-20231231.xsd#bmrc_DividendIncomeFederalHomeLoanBank"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_f6f8362a-0c18-4e12-ad8f-80eea5b8bb94" xlink:to="loc_bmrc_DividendIncomeFederalHomeLoanBank_9c86d15f-4b40-4055-b2c8-26b37a2079b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_36b4a98e-9d46-4a07-89fd-4f4d5eee4fae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BankOwnedLifeInsuranceIncome"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_f6f8362a-0c18-4e12-ad8f-80eea5b8bb94" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_36b4a98e-9d46-4a07-89fd-4f4d5eee4fae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_62af8c5e-daad-4688-9ee6-d18d30e1e52f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_efa3c499-fbe4-4673-a656-2237f7317d1e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_62af8c5e-daad-4688-9ee6-d18d30e1e52f" xlink:to="loc_us-gaap_InterestExpense_efa3c499-fbe4-4673-a656-2237f7317d1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_5619f226-7eaa-4e9b-a6bf-a4b2beb66a07" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_62af8c5e-daad-4688-9ee6-d18d30e1e52f" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_5619f226-7eaa-4e9b-a6bf-a4b2beb66a07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_66c70a4f-34e7-44c5-a85d-e752be783404" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_51fb784e-14dd-4f0b-8d0d-0cc77582dd8b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_66c70a4f-34e7-44c5-a85d-e752be783404" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_51fb784e-14dd-4f0b-8d0d-0cc77582dd8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperating_60ba4126-2b37-4499-ada0-1fcd91a466dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_66c70a4f-34e7-44c5-a85d-e752be783404" xlink:to="loc_us-gaap_InterestIncomeOperating_60ba4126-2b37-4499-ada0-1fcd91a466dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_InterestDueFromBanksAndOther_7d4aa9c1-b8de-4c94-8e82-44ed87f1f64b" xlink:href="bmrc-20231231.xsd#bmrc_InterestDueFromBanksAndOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_66c70a4f-34e7-44c5-a85d-e752be783404" xlink:to="loc_bmrc_InterestDueFromBanksAndOther_7d4aa9c1-b8de-4c94-8e82-44ed87f1f64b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoninterestExpense_df9a16be-2268-4f7a-8b15-adb6aea72cd6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoninterestExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_us-gaap_OtherNoninterestExpense_df9a16be-2268-4f7a-8b15-adb6aea72cd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpenseDirectorsFees_7639e3ca-956a-42f7-bca9-899aeeb3b5f8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestExpenseDirectorsFees"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_us-gaap_NoninterestExpenseDirectorsFees_7639e3ca-956a-42f7-bca9-899aeeb3b5f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OtherRealEstateOwnedExpense_8ad5ae25-eb7c-4aa9-97fa-703c10516c54" xlink:href="bmrc-20231231.xsd#bmrc_OtherRealEstateOwnedExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_bmrc_OtherRealEstateOwnedExpense_8ad5ae25-eb7c-4aa9-97fa-703c10516c54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_InformationTechnology_a4df7eba-805d-4c0a-8a44-79717abaa969" xlink:href="bmrc-20231231.xsd#bmrc_InformationTechnology"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_bmrc_InformationTechnology_a4df7eba-805d-4c0a-8a44-79717abaa969" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_2aaf22f7-b5fb-4167-9c09-329007755155" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfessionalFees"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_us-gaap_ProfessionalFees_2aaf22f7-b5fb-4167-9c09-329007755155" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_CharitableContributionsExpense_5b7e5985-beec-4091-b6b7-0457342a90cc" xlink:href="bmrc-20231231.xsd#bmrc_CharitableContributionsExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_bmrc_CharitableContributionsExpense_5b7e5985-beec-4091-b6b7-0457342a90cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_a1b477ac-f40b-4a5a-9b60-733697df1708" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_a1b477ac-f40b-4a5a-9b60-733697df1708" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DataProcessing_377ac5b5-2135-4030-a975-1d4c4445c323" xlink:href="bmrc-20231231.xsd#bmrc_DataProcessing"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_bmrc_DataProcessing_377ac5b5-2135-4030-a975-1d4c4445c323" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets_c9b5dee7-b0b7-4c32-ae20-6cbeea13feff" xlink:href="bmrc-20231231.xsd#bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets_c9b5dee7-b0b7-4c32-ae20-6cbeea13feff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_ed255fa8-038f-4362-891e-3715c80d0c16" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FederalDepositInsuranceCorporationPremiumExpense"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_ed255fa8-038f-4362-891e-3715c80d0c16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_ec808c86-fab8-4df5-b416-ae9cb3c0f343" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_us-gaap_LaborAndRelatedExpense_ec808c86-fab8-4df5-b416-ae9cb3c0f343" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OccupancyAndEquipment_f68721f5-6fe8-4961-a0bd-919df23a737b" xlink:href="bmrc-20231231.xsd#bmrc_OccupancyAndEquipment"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_bmrc_OccupancyAndEquipment_f68721f5-6fe8-4961-a0bd-919df23a737b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DepositNetworkFees_ed85dc58-8ba1-4b70-87e0-52bc2b320640" xlink:href="bmrc-20231231.xsd#bmrc_DepositNetworkFees"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_59347011-92af-4986-82c1-19e257b253d1" xlink:to="loc_bmrc_DepositNetworkFees_ed85dc58-8ba1-4b70-87e0-52bc2b320640" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7da732cf-911c-41eb-ad02-d8ba2c829797" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_f616011b-4acb-4ea7-8bf4-971612cf2388" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7da732cf-911c-41eb-ad02-d8ba2c829797" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_f616011b-4acb-4ea7-8bf4-971612cf2388" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_082747f3-2acc-4cca-b072-d3434122a1aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7da732cf-911c-41eb-ad02-d8ba2c829797" xlink:to="loc_us-gaap_NoninterestIncome_082747f3-2acc-4cca-b072-d3434122a1aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_33a262bf-3d82-41f2-84e3-6e2e5fe1619d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7da732cf-911c-41eb-ad02-d8ba2c829797" xlink:to="loc_us-gaap_NoninterestExpense_33a262bf-3d82-41f2-84e3-6e2e5fe1619d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_4e95a3fa-897a-40f5-8a96-79ecbb2cb436" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_613ba117-8e48-42f0-a1e8-aafa99300e2a" xlink:href="bmrc-20231231.xsd#bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_4e95a3fa-897a-40f5-8a96-79ecbb2cb436" xlink:to="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_613ba117-8e48-42f0-a1e8-aafa99300e2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax_3945bb11-0512-4fc3-ad90-16140c98bfaa" xlink:href="bmrc-20231231.xsd#bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_4e95a3fa-897a-40f5-8a96-79ecbb2cb436" xlink:to="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax_3945bb11-0512-4fc3-ad90-16140c98bfaa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_4c0e8f91-c6de-458f-ac03-da8e1d5a6c4a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_4e95a3fa-897a-40f5-8a96-79ecbb2cb436" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_4c0e8f91-c6de-458f-ac03-da8e1d5a6c4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_b5ce131d-8235-43c5-984d-f423b8a35fe9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_4e95a3fa-897a-40f5-8a96-79ecbb2cb436" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_b5ce131d-8235-43c5-984d-f423b8a35fe9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentGainOrLossesFairValueHedge_363bccd6-3160-41f2-a873-e0ac8cf0be6a" xlink:href="bmrc-20231231.xsd#bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentGainOrLossesFairValueHedge"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_4e95a3fa-897a-40f5-8a96-79ecbb2cb436" xlink:to="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentGainOrLossesFairValueHedge_363bccd6-3160-41f2-a873-e0ac8cf0be6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_31a832aa-8f24-4f56-8224-4c3c6a4fe350" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_3ccaea5a-4fe2-4879-a863-bc50d29a5186" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_31a832aa-8f24-4f56-8224-4c3c6a4fe350" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_3ccaea5a-4fe2-4879-a863-bc50d29a5186" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_08c5bb91-f216-4437-bf73-e73c824058ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_31a832aa-8f24-4f56-8224-4c3c6a4fe350" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_08c5bb91-f216-4437-bf73-e73c824058ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_2e5bff1d-1933-44ef-9b38-c6b6051e4423" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseTrustPreferredSecurities_819b03bb-a1e8-4b18-a7b3-ff8d08d11f97" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseTrustPreferredSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_2e5bff1d-1933-44ef-9b38-c6b6051e4423" xlink:to="loc_us-gaap_InterestExpenseTrustPreferredSecurities_819b03bb-a1e8-4b18-a7b3-ff8d08d11f97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseBorrowings_a5008322-b6fb-460b-9faf-d82af4c48251" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseBorrowings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_2e5bff1d-1933-44ef-9b38-c6b6051e4423" xlink:to="loc_us-gaap_InterestExpenseBorrowings_a5008322-b6fb-460b-9faf-d82af4c48251" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseTimeDeposits_3d916d64-3a89-46a0-b92c-fa3abb51a59f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseTimeDeposits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_2e5bff1d-1933-44ef-9b38-c6b6051e4423" xlink:to="loc_us-gaap_InterestExpenseTimeDeposits_3d916d64-3a89-46a0-b92c-fa3abb51a59f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMoneyMarketDeposits_dbb4ef0b-476c-4f0c-bfc0-ba3546b1a26f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseMoneyMarketDeposits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_2e5bff1d-1933-44ef-9b38-c6b6051e4423" xlink:to="loc_us-gaap_InterestExpenseMoneyMarketDeposits_dbb4ef0b-476c-4f0c-bfc0-ba3546b1a26f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseSavingsDeposits_c39f62b5-b12f-437f-b693-699da57c97c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseSavingsDeposits"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_2e5bff1d-1933-44ef-9b38-c6b6051e4423" xlink:to="loc_us-gaap_InterestExpenseSavingsDeposits_c39f62b5-b12f-437f-b693-699da57c97c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits_cc05f21e-e714-4aa0-ae39-b55a4828a6c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_2e5bff1d-1933-44ef-9b38-c6b6051e4423" xlink:to="loc_us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits_cc05f21e-e714-4aa0-ae39-b55a4828a6c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_c8a881fb-f0e3-4f8b-8789-e39839f65c8f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_13f67c7f-124b-41b4-b1cb-31218773a766" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_c8a881fb-f0e3-4f8b-8789-e39839f65c8f" xlink:to="loc_us-gaap_NetIncomeLoss_13f67c7f-124b-41b4-b1cb-31218773a766" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_feec7134-deff-4cba-b81c-866e2c491f8a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_c8a881fb-f0e3-4f8b-8789-e39839f65c8f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_feec7134-deff-4cba-b81c-866e2c491f8a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="bmrc-20231231.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f26727b-f28a-480d-93d1-5a23274f787a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_e2ca4938-d18c-4915-95ca-9d8b64fa4f0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f26727b-f28a-480d-93d1-5a23274f787a" xlink:to="loc_us-gaap_NetIncomeLoss_e2ca4938-d18c-4915-95ca-9d8b64fa4f0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_8acbb3e2-778e-4605-bfc2-42138e255942" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f26727b-f28a-480d-93d1-5a23274f787a" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_8acbb3e2-778e-4605-bfc2-42138e255942" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_af990848-2106-4472-b553-1744562eff1a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireHeldToMaturitySecurities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_af990848-2106-4472-b553-1744562eff1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansReceivable_f172bbe8-1721-4c53-8368-f906c197cf3a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfLoansReceivable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansReceivable_f172bbe8-1721-4c53-8368-f906c197cf3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_5fcd6dba-be8f-4aee-abd4-ea509a44bde9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_5fcd6dba-be8f-4aee-abd4-ea509a44bde9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_d42887a8-f961-4d89-b40c-9affe20267bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_d42887a8-f961-4d89-b40c-9affe20267bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_f6f44b73-9a09-45e6-a96a-fbd88c5595ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_f6f44b73-9a09-45e6-a96a-fbd88c5595ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_affaa7b4-b24a-4578-970f-a8faede4bae3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_affaa7b4-b24a-4578-970f-a8faede4bae3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncreaseDecreaseInLoansReceivableNet_85ea24a8-8d62-484b-924d-378f554a2d70" xlink:href="bmrc-20231231.xsd#bmrc_IncreaseDecreaseInLoansReceivableNet"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_bmrc_IncreaseDecreaseInLoansReceivableNet_85ea24a8-8d62-484b-924d-378f554a2d70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireLifeInsurancePolicies_e2e0ac7f-22ad-402a-aaa7-3a1247795ffc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireLifeInsurancePolicies"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_PaymentsToAcquireLifeInsurancePolicies_e2e0ac7f-22ad-402a-aaa7-3a1247795ffc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLifeInsurancePolicies_3d35ae5c-88e3-4ee5-8748-3b7d7da61a54" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromLifeInsurancePolicies"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_ProceedsFromLifeInsurancePolicies_3d35ae5c-88e3-4ee5-8748-3b7d7da61a54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_953c7b4c-97c7-4b42-885e-d58214655acc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_953c7b4c-97c7-4b42-885e-d58214655acc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAcquiredFromAcquisition_a584cde2-4f0b-46fd-9b0d-d394f0184766" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAcquiredFromAcquisition"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_CashAcquiredFromAcquisition_a584cde2-4f0b-46fd-9b0d-d394f0184766" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireRealEstateHeldForInvestment_84341aa9-6ae8-4eec-8630-85d129f88807" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireRealEstateHeldForInvestment"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_PaymentsToAcquireRealEstateHeldForInvestment_84341aa9-6ae8-4eec-8630-85d129f88807" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_053b8cd4-fb73-437a-9eb5-4d59efa7c139" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfOtherRealEstate"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_053b8cd4-fb73-437a-9eb5-4d59efa7c139" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfEquitySecuritiesFvNi_8fe0ce9f-4545-4aa1-b758-6ff8b0e1b614" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfEquitySecuritiesFvNi"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_us-gaap_ProceedsFromSaleOfEquitySecuritiesFvNi_8fe0ce9f-4545-4aa1-b758-6ff8b0e1b614" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_CapitalContributionToSubsidiaryBank_062a65c9-9a62-45de-8610-8de64b109632" xlink:href="bmrc-20231231.xsd#bmrc_CapitalContributionToSubsidiaryBank"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_346b2854-d9db-4c55-891c-70af38f4f486" xlink:to="loc_bmrc_CapitalContributionToSubsidiaryBank_062a65c9-9a62-45de-8610-8de64b109632" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_3d4eea35-2a9c-4b77-b751-dcea601d9293" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_3d4eea35-2a9c-4b77-b751-dcea601d9293" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_6334e2e8-08c7-4590-affe-814afc4f09cf" xlink:href="bmrc-20231231.xsd#bmrc_CompensationExpenseCommonStockForDirectorFees"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_6334e2e8-08c7-4590-affe-814afc4f09cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_8c42110a-f7a5-46b3-a46c-1995e1d3038e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_8c42110a-f7a5-46b3-a46c-1995e1d3038e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AccretionOfDiscountOnAcquiredLoans_b851c15c-3055-4960-99ce-cd62b8e22dde" xlink:href="bmrc-20231231.xsd#bmrc_AccretionOfDiscountOnAcquiredLoans"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_bmrc_AccretionOfDiscountOnAcquiredLoans_b851c15c-3055-4960-99ce-cd62b8e22dde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense_f0be7365-a737-4f69-a0ac-e6b3187bc833" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense_f0be7365-a737-4f69-a0ac-e6b3187bc833" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_9004c659-ceff-44c5-9acc-6f5f5992d8b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_9004c659-ceff-44c5-9acc-6f5f5992d8b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDeferredLoanOriginationFeesNet_36d1a7de-525a-4ed2-af0e-8d3e89527e3a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfDeferredLoanOriginationFeesNet"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_AmortizationOfDeferredLoanOriginationFeesNet_36d1a7de-525a-4ed2-af0e-8d3e89527e3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_a077436f-a6ba-43cc-ba55-10b0f7dfa6c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_a077436f-a6ba-43cc-ba55-10b0f7dfa6c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_333fba13-b21b-45b2-822f-75996d85969f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_333fba13-b21b-45b2-822f-75996d85969f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_567a4e8e-4f52-4f87-accc-35e7d5ff78e8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_ShareBasedCompensation_567a4e8e-4f52-4f87-accc-35e7d5ff78e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_aa1c42aa-13b8-4bd3-8708-5972580d9fd2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_aa1c42aa-13b8-4bd3-8708-5972580d9fd2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_f8132823-55e6-42bc-87cc-212dfcdbb918" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BankOwnedLifeInsuranceIncome"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_f8132823-55e6-42bc-87cc-212dfcdbb918" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets_22a1e449-6517-43ae-a117-2dff63e6f1d7" xlink:href="bmrc-20231231.xsd#bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets_22a1e449-6517-43ae-a117-2dff63e6f1d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_ProvisionForReversalOfLossesOnUnfundedLoanCommitments_3e17bb90-d286-4ef7-bcf0-d0e0d56aa07b" xlink:href="bmrc-20231231.xsd#bmrc_ProvisionForReversalOfLossesOnUnfundedLoanCommitments"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_bmrc_ProvisionForReversalOfLossesOnUnfundedLoanCommitments_3e17bb90-d286-4ef7-bcf0-d0e0d56aa07b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfInvestments_aee7d285-cbe1-4671-95ad-059e61e797bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSaleOfInvestments"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_us-gaap_GainLossOnSaleOfInvestments_aee7d285-cbe1-4671-95ad-059e61e797bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_WriteDownOfOtherRealEstateOwned_ef91f23a-a597-4efa-8833-7d03cbf243b1" xlink:href="bmrc-20231231.xsd#bmrc_WriteDownOfOtherRealEstateOwned"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_e5c7ebec-23af-4a0f-bf1e-fabdb02d9365" xlink:to="loc_bmrc_WriteDownOfOtherRealEstateOwned_ef91f23a-a597-4efa-8833-7d03cbf243b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb1969a-e398-439b-aa25-88c9d97a6537" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeposits_e91e57f3-c436-4404-8f7a-7b98ecfd233c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInDeposits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb1969a-e398-439b-aa25-88c9d97a6537" xlink:to="loc_us-gaap_IncreaseDecreaseInDeposits_e91e57f3-c436-4404-8f7a-7b98ecfd233c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_c7443711-982c-457d-ac23-4eed7fbcc210" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb1969a-e398-439b-aa25-88c9d97a6537" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_c7443711-982c-457d-ac23-4eed7fbcc210" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_08d5ff13-d93a-4efd-a99c-8af5972a8808" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb1969a-e398-439b-aa25-88c9d97a6537" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_08d5ff13-d93a-4efd-a99c-8af5972a8808" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_30a16fcd-8bc0-4daa-9836-0f4f9bfa45cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb1969a-e398-439b-aa25-88c9d97a6537" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_30a16fcd-8bc0-4daa-9836-0f4f9bfa45cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSubordinatedDebt_51f6c273-7197-4c56-bfc1-d2aa4c362e12" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfSubordinatedDebt"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb1969a-e398-439b-aa25-88c9d97a6537" xlink:to="loc_us-gaap_RepaymentsOfSubordinatedDebt_51f6c273-7197-4c56-bfc1-d2aa4c362e12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_e47cbb8c-4548-430f-ac73-b7d0e412b5ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeasePrincipalPayments"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb1969a-e398-439b-aa25-88c9d97a6537" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_e47cbb8c-4548-430f-ac73-b7d0e412b5ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_337b78d9-1494-4ac0-9ccf-d6e935bb8683" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb1969a-e398-439b-aa25-88c9d97a6537" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_337b78d9-1494-4ac0-9ccf-d6e935bb8683" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfEquity_e628fe82-ff87-4fe9-bd9c-d01bdbd03084" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForRepurchaseOfEquity"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb1969a-e398-439b-aa25-88c9d97a6537" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfEquity_e628fe82-ff87-4fe9-bd9c-d01bdbd03084" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_48c24dc9-8916-4ed1-95f8-646d103b7735" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb1969a-e398-439b-aa25-88c9d97a6537" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_48c24dc9-8916-4ed1-95f8-646d103b7735" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_61ff1324-220c-44f9-aeed-b4d11c73e2cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2ac1d8b2-29c4-4c2e-b50f-bbfc9bea94b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_61ff1324-220c-44f9-aeed-b4d11c73e2cd" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2ac1d8b2-29c4-4c2e-b50f-bbfc9bea94b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bb4c833d-1269-49b4-9ac6-1881bc6af973" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_61ff1324-220c-44f9-aeed-b4d11c73e2cd" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bb4c833d-1269-49b4-9ac6-1881bc6af973" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_eaae177a-7713-41b7-80bc-ffbd39fbc379" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_61ff1324-220c-44f9-aeed-b4d11c73e2cd" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_eaae177a-7713-41b7-80bc-ffbd39fbc379" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesFutureAmortizationExpenseofCoreDepositsDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#SummaryofSignificantAccountingPoliciesFutureAmortizationExpenseofCoreDepositsDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesFutureAmortizationExpenseofCoreDepositsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_79144db4-556d-4eb0-889e-0bff325eb614" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_ea45e423-5f6f-48c0-b4c3-d929d8041753" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_79144db4-556d-4eb0-889e-0bff325eb614" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_ea45e423-5f6f-48c0-b4c3-d929d8041753" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_1e0ce5e8-a474-4c2e-85ba-580b0323732c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_79144db4-556d-4eb0-889e-0bff325eb614" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_1e0ce5e8-a474-4c2e-85ba-580b0323732c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_aed45317-ac31-4e77-9b11-8ae2e7c8b008" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_79144db4-556d-4eb0-889e-0bff325eb614" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_aed45317-ac31-4e77-9b11-8ae2e7c8b008" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_34ef5b67-409c-4ea8-a971-aca0152bed13" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_79144db4-556d-4eb0-889e-0bff325eb614" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_34ef5b67-409c-4ea8-a971-aca0152bed13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_c2db4ab9-18e0-4361-97be-69814da80e3d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_79144db4-556d-4eb0-889e-0bff325eb614" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_c2db4ab9-18e0-4361-97be-69814da80e3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_16994f53-cfb3-44b9-b0d6-b2b5963ca2f9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_79144db4-556d-4eb0-889e-0bff325eb614" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_16994f53-cfb3-44b9-b0d6-b2b5963ca2f9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesEarningsPerShareDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#SummaryofSignificantAccountingPoliciesEarningsPerShareDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesEarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_821cbb24-0030-4108-814d-34cc2071b3e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_d4451e33-9d91-480b-8bc9-1438bd6e13dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_821cbb24-0030-4108-814d-34cc2071b3e5" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_d4451e33-9d91-480b-8bc9-1438bd6e13dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_48201e7a-798c-42af-9b4a-ab3ef49a1b9e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_821cbb24-0030-4108-814d-34cc2071b3e5" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_48201e7a-798c-42af-9b4a-ab3ef49a1b9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends_b404e86c-a9e9-4084-a4f7-a4696302da7c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_821cbb24-0030-4108-814d-34cc2071b3e5" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends_b404e86c-a9e9-4084-a4f7-a4696302da7c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofAvailableforSaleSecuritiesAmortizedCostandFairValueDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#InvestmentSecuritiesScheduleofAvailableforSaleSecuritiesAmortizedCostandFairValueDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofAvailableforSaleSecuritiesAmortizedCostandFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_15b977de-d844-4bb5-ba82-6812d0a47221" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_0a885a50-27b0-413f-b4e6-85a9823104a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_15b977de-d844-4bb5-ba82-6812d0a47221" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_0a885a50-27b0-413f-b4e6-85a9823104a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_91cadb80-4eeb-4249-bea9-fcffa253e42f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_15b977de-d844-4bb5-ba82-6812d0a47221" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_91cadb80-4eeb-4249-bea9-fcffa253e42f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_fba959ab-c454-4670-854d-779ddd4acc9a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_15b977de-d844-4bb5-ba82-6812d0a47221" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_fba959ab-c454-4670-854d-779ddd4acc9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_b7169eee-6229-4dd1-9bc6-69aa9085605c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_15b977de-d844-4bb5-ba82-6812d0a47221" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_b7169eee-6229-4dd1-9bc6-69aa9085605c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofMaturitiesDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#InvestmentSecuritiesScheduleofMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_958ab0ab-1643-4432-94f6-86b2513fd68a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_b282d300-d755-4f35-8fc4-8ff52a02ac44" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_958ab0ab-1643-4432-94f6-86b2513fd68a" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_b282d300-d755-4f35-8fc4-8ff52a02ac44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_6e914354-1e29-4aa8-a43b-1517e9123375" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_958ab0ab-1643-4432-94f6-86b2513fd68a" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_6e914354-1e29-4aa8-a43b-1517e9123375" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_5e875969-d89d-4738-bf9b-0ec40953bf09" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_958ab0ab-1643-4432-94f6-86b2513fd68a" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_5e875969-d89d-4738-bf9b-0ec40953bf09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_511f7e59-ce9e-46e3-91cc-0a8cb504cd5d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_958ab0ab-1643-4432-94f6-86b2513fd68a" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_511f7e59-ce9e-46e3-91cc-0a8cb504cd5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_aeade607-38f7-49ae-a76b-f5afed7675e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_fae71b80-c2c4-4a1c-bd6c-af98e00f47bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_aeade607-38f7-49ae-a76b-f5afed7675e3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_fae71b80-c2c4-4a1c-bd6c-af98e00f47bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_a90c8574-cecf-4e92-a081-566533dc7029" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_aeade607-38f7-49ae-a76b-f5afed7675e3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_a90c8574-cecf-4e92-a081-566533dc7029" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_3651c064-c133-4080-a4a6-f66edbb448a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_aeade607-38f7-49ae-a76b-f5afed7675e3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_3651c064-c133-4080-a4a6-f66edbb448a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_9cce3b3b-47b5-46df-bcca-d2e5bf6fba5f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_aeade607-38f7-49ae-a76b-f5afed7675e3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_9cce3b3b-47b5-46df-bcca-d2e5bf6fba5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_60722381-b1bf-484b-a40a-ec50a0408e1e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne_e8817bae-2acb-4519-8db5-29e5978e2ca6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_60722381-b1bf-484b-a40a-ec50a0408e1e" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne_e8817bae-2acb-4519-8db5-29e5978e2ca6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive_0af7cecc-7fc3-46e0-bb03-fbf3b621c172" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_60722381-b1bf-484b-a40a-ec50a0408e1e" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive_0af7cecc-7fc3-46e0-bb03-fbf3b621c172" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10_e12306ea-d472-44cb-8099-5fc60479b102" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_60722381-b1bf-484b-a40a-ec50a0408e1e" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10_e12306ea-d472-44cb-8099-5fc60479b102" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10_9128e3e2-a0c9-40a9-992c-4ddb7c1e31a2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_60722381-b1bf-484b-a40a-ec50a0408e1e" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10_9128e3e2-a0c9-40a9-992c-4ddb7c1e31a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_58696aea-e6a6-465f-8f5e-3583e26517b8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_8b02fbce-dd89-4acb-9266-a5c44c75a0bf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_58696aea-e6a6-465f-8f5e-3583e26517b8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_8b02fbce-dd89-4acb-9266-a5c44c75a0bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_d2b5885a-8e76-433a-a286-15f8643985d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_58696aea-e6a6-465f-8f5e-3583e26517b8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_d2b5885a-8e76-433a-a286-15f8643985d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_e6c261ce-e029-4d93-9324-4bbc8e5c867c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_58696aea-e6a6-465f-8f5e-3583e26517b8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_e6c261ce-e029-4d93-9324-4bbc8e5c867c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_0a3fee43-ef9a-41af-89c1-fbfd0421d934" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_58696aea-e6a6-465f-8f5e-3583e26517b8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_0a3fee43-ef9a-41af-89c1-fbfd0421d934" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofUnrealizedLossPositionsDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#InvestmentSecuritiesScheduleofUnrealizedLossPositionsDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofUnrealizedLossPositionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_c7c08a19-a118-41ca-a877-1cacd09b1e8c" xlink:href="bmrc-20231231.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_9f71afcf-6e50-4bb0-ac9d-771b17ca82b1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_c7c08a19-a118-41ca-a877-1cacd09b1e8c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_9f71afcf-6e50-4bb0-ac9d-771b17ca82b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_685f783b-df82-45f3-90cc-ff0171390ccf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_c7c08a19-a118-41ca-a877-1cacd09b1e8c" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_685f783b-df82-45f3-90cc-ff0171390ccf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_1d208b51-db61-4d66-9841-ab3fe9a3a39c" xlink:href="bmrc-20231231.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_14456e7b-4ab0-4a7a-a35c-9d68ab9cb80e" xlink:href="bmrc-20231231.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_1d208b51-db61-4d66-9841-ab3fe9a3a39c" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_14456e7b-4ab0-4a7a-a35c-9d68ab9cb80e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_d0dbaef9-98a8-4f51-bb7f-9ec8fbb3b833" xlink:href="bmrc-20231231.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_1d208b51-db61-4d66-9841-ab3fe9a3a39c" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_d0dbaef9-98a8-4f51-bb7f-9ec8fbb3b833" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_43fe8dfa-b475-4946-827c-3a97402edeeb" xlink:href="bmrc-20231231.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_4010c310-fc7f-4147-8e71-3440fe0b13a9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_43fe8dfa-b475-4946-827c-3a97402edeeb" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_4010c310-fc7f-4147-8e71-3440fe0b13a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_63fbb8f4-4c7d-458b-b9f5-0c1d7ffd4dc7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_43fe8dfa-b475-4946-827c-3a97402edeeb" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_63fbb8f4-4c7d-458b-b9f5-0c1d7ffd4dc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_5b70a590-131a-445d-b272-1a7d1f3b98af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_667545fe-3d52-44dd-a1d8-59bf780ab35d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_5b70a590-131a-445d-b272-1a7d1f3b98af" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_667545fe-3d52-44dd-a1d8-59bf780ab35d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_6a9cd0ea-335a-4325-8265-707415e9f0c8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_5b70a590-131a-445d-b272-1a7d1f3b98af" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_6a9cd0ea-335a-4325-8265-707415e9f0c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_b706d24f-35fd-4ae3-a47a-cbc4c7806054" xlink:href="bmrc-20231231.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_a53af774-fb8f-414d-bf8c-6f26caf38618" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_b706d24f-35fd-4ae3-a47a-cbc4c7806054" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_a53af774-fb8f-414d-bf8c-6f26caf38618" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_10b72336-c178-4dde-abe1-e5767620c5d4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_b706d24f-35fd-4ae3-a47a-cbc4c7806054" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_10b72336-c178-4dde-abe1-e5767620c5d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_834b5ba0-934b-4bce-a773-7f572756c636" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_ddf8123f-07c0-4d3e-a237-2bdaaf0fa2fe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_834b5ba0-934b-4bce-a773-7f572756c636" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_ddf8123f-07c0-4d3e-a237-2bdaaf0fa2fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_a2bb49ed-44dc-438a-8319-e29548c11510" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_834b5ba0-934b-4bce-a773-7f572756c636" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_a2bb49ed-44dc-438a-8319-e29548c11510" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_040d1ccf-8a72-4c3a-83c4-bc638f20f224" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_d70d0da1-cc7a-49b2-ae75-86030c2e1765" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_040d1ccf-8a72-4c3a-83c4-bc638f20f224" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_d70d0da1-cc7a-49b2-ae75-86030c2e1765" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_578942fd-4127-4123-a421-447803d93243" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_040d1ccf-8a72-4c3a-83c4-bc638f20f224" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_578942fd-4127-4123-a421-447803d93243" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_8edc7e4f-29da-49f8-95e3-7c6a4e2cfab1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_a9dbf81e-66d6-4a14-9898-d3cbcc843429" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_8edc7e4f-29da-49f8-95e3-7c6a4e2cfab1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_a9dbf81e-66d6-4a14-9898-d3cbcc843429" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_7dd84c30-fe8d-4e9a-9568-9d1263bf8c73" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_8edc7e4f-29da-49f8-95e3-7c6a4e2cfab1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_7dd84c30-fe8d-4e9a-9568-9d1263bf8c73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_fb0a08b4-de26-46cd-a872-01c922f4467a" xlink:href="bmrc-20231231.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_5383605c-4f31-497a-af39-5f335c920947" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_fb0a08b4-de26-46cd-a872-01c922f4467a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_5383605c-4f31-497a-af39-5f335c920947" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_ba732b3b-0290-48a7-bfc2-0079a5853496" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_fb0a08b4-de26-46cd-a872-01c922f4467a" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_ba732b3b-0290-48a7-bfc2-0079a5853496" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_5975c29e-5133-4162-adcd-367ef5e10d6a" xlink:href="bmrc-20231231.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_0cff787a-465e-4007-8f07-012e5bc84533" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_5975c29e-5133-4162-adcd-367ef5e10d6a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_0cff787a-465e-4007-8f07-012e5bc84533" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_dc576610-42fb-4827-878c-ffdc252c7344" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_5975c29e-5133-4162-adcd-367ef5e10d6a" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_dc576610-42fb-4827-878c-ffdc252c7344" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofLoansbyRiskGradeandOriginationYearDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#LoansandAllowanceforCreditLossesonLoansScheduleofLoansbyRiskGradeandOriginationYearDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofLoansbyRiskGradeandOriginationYearDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_a62a2325-d090-4700-96b4-9210b1eff509" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_ca5f5497-a91b-425a-8bb4-2718c714fc19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_a62a2325-d090-4700-96b4-9210b1eff509" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_ca5f5497-a91b-425a-8bb4-2718c714fc19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_a0e7fb76-d6cf-4394-b7d9-7b06d083ad01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_a62a2325-d090-4700-96b4-9210b1eff509" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_a0e7fb76-d6cf-4394-b7d9-7b06d083ad01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_17111ff8-f737-461a-8ef3-6bc472b010ac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_a62a2325-d090-4700-96b4-9210b1eff509" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_17111ff8-f737-461a-8ef3-6bc472b010ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_e68cd984-823d-439c-99dc-c49454f04c32" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_a62a2325-d090-4700-96b4-9210b1eff509" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_e68cd984-823d-439c-99dc-c49454f04c32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_f264a442-cfd5-4999-bbce-13005d232ccb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_a62a2325-d090-4700-96b4-9210b1eff509" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_f264a442-cfd5-4999-bbce-13005d232ccb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_9ccc5d67-d5d4-4442-ab91-a4c2c9e1c807" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_a62a2325-d090-4700-96b4-9210b1eff509" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_9ccc5d67-d5d4-4442-ab91-a4c2c9e1c807" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_385b2a2d-ba09-41b5-b4f2-c5b6106f9eab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_a62a2325-d090-4700-96b4-9210b1eff509" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_385b2a2d-ba09-41b5-b4f2-c5b6106f9eab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_48f638d1-eb17-494d-9fe1-ab2cc8d351e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_31373849-6ef6-41b5-9866-d60b9946b068" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_48f638d1-eb17-494d-9fe1-ab2cc8d351e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_31373849-6ef6-41b5-9866-d60b9946b068" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_a0c9afc2-7724-407d-be93-235a4083a682" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_48f638d1-eb17-494d-9fe1-ab2cc8d351e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_a0c9afc2-7724-407d-be93-235a4083a682" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_ff71dafb-83b5-4ccc-8f08-4c3a739462f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_48f638d1-eb17-494d-9fe1-ab2cc8d351e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_ff71dafb-83b5-4ccc-8f08-4c3a739462f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_f728123f-c5e0-4811-8225-b5aafa96e63e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolving"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_48f638d1-eb17-494d-9fe1-ab2cc8d351e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_f728123f-c5e0-4811-8225-b5aafa96e63e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_1f6b2894-1ec7-42af-9dad-fcc062c7d4fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_48f638d1-eb17-494d-9fe1-ab2cc8d351e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_1f6b2894-1ec7-42af-9dad-fcc062c7d4fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_2c76b4e4-4c40-4706-aa72-d22bfdabb2a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_48f638d1-eb17-494d-9fe1-ab2cc8d351e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_2c76b4e4-4c40-4706-aa72-d22bfdabb2a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_1a380fe1-bee4-4ab1-9ca1-342d3cc342a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_48f638d1-eb17-494d-9fe1-ab2cc8d351e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_1a380fe1-bee4-4ab1-9ca1-342d3cc342a0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BankPremisesandEquipmentScheduleofBankPremisesandEquipmentDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#BankPremisesandEquipmentScheduleofBankPremisesandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BankPremisesandEquipmentScheduleofBankPremisesandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_38ac339d-c747-4dd8-8ed9-cfca4d3c861a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_784cec42-620e-4aa6-bbe3-d3a3619f185a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_38ac339d-c747-4dd8-8ed9-cfca4d3c861a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_784cec42-620e-4aa6-bbe3-d3a3619f185a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_bead17c1-63d1-4bba-b060-32422bae96d6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_38ac339d-c747-4dd8-8ed9-cfca4d3c861a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_bead17c1-63d1-4bba-b060-32422bae96d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_11f331d4-de1a-4a62-87bd-8e54306c84e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_cf03b9eb-fc5e-4fce-951a-be280890133f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_11f331d4-de1a-4a62-87bd-8e54306c84e6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_cf03b9eb-fc5e-4fce-951a-be280890133f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_1e9405d0-55a3-4679-b811-24ab3c4b2c5d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_11f331d4-de1a-4a62-87bd-8e54306c84e6" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_1e9405d0-55a3-4679-b811-24ab3c4b2c5d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DepositsScheduleofStratificationofTimeDepositsDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#DepositsScheduleofStratificationofTimeDepositsDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DepositsScheduleofStratificationofTimeDepositsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_34903548-8894-402f-bf3a-8ec4a8898d18" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDeposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TimeDepositsLessThanOrEqualTo250000_e8f73dac-900f-4a79-8706-a06289f6f845" xlink:href="bmrc-20231231.xsd#bmrc_TimeDepositsLessThanOrEqualTo250000"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_34903548-8894-402f-bf3a-8ec4a8898d18" xlink:to="loc_bmrc_TimeDepositsLessThanOrEqualTo250000_e8f73dac-900f-4a79-8706-a06289f6f845" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TimeDeposits250000OrMore_8f2d2b79-b2db-43f7-a122-a265faf0682b" xlink:href="bmrc-20231231.xsd#bmrc_TimeDeposits250000OrMore"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_34903548-8894-402f-bf3a-8ec4a8898d18" xlink:to="loc_bmrc_TimeDeposits250000OrMore_8f2d2b79-b2db-43f7-a122-a265faf0682b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DepositsScheduleofTimeDepositMaturitiesDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#DepositsScheduleofTimeDepositMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DepositsScheduleofTimeDepositMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_87615172-1686-40e0-a82a-2c8f82ef929b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDeposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearOne_d1dddf70-7777-4f98-9496-935ca5072620" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesYearOne"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_87615172-1686-40e0-a82a-2c8f82ef929b" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearOne_d1dddf70-7777-4f98-9496-935ca5072620" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearTwo_83c48b01-81a5-46ff-850a-ae9dd0df1edc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_87615172-1686-40e0-a82a-2c8f82ef929b" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearTwo_83c48b01-81a5-46ff-850a-ae9dd0df1edc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearThree_217d3e9c-e7c9-40b5-ad9d-1e03d550912a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_87615172-1686-40e0-a82a-2c8f82ef929b" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearThree_217d3e9c-e7c9-40b5-ad9d-1e03d550912a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearFour_a3cdccd4-cb2b-4eed-8488-0b00b30a7b95" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_87615172-1686-40e0-a82a-2c8f82ef929b" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearFour_a3cdccd4-cb2b-4eed-8488-0b00b30a7b95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearFive_fc85f0ef-d42a-43fa-956b-2c0f39c0d297" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_87615172-1686-40e0-a82a-2c8f82ef929b" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearFive_fc85f0ef-d42a-43fa-956b-2c0f39c0d297" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesAfterYearFive_4c8f965c-b1b7-4049-9e96-7732665b46a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TimeDepositMaturitiesAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_87615172-1686-40e0-a82a-2c8f82ef929b" xlink:to="loc_us-gaap_TimeDepositMaturitiesAfterYearFive_4c8f965c-b1b7-4049-9e96-7732665b46a1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DepositsScheduleofCompositionofNetworkDepositsDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#DepositsScheduleofCompositionofNetworkDepositsDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DepositsScheduleofCompositionofNetworkDepositsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TotalNetworkDepositsReciprocal_c5c7626b-6406-42be-8189-815f62ec3c7c" xlink:href="bmrc-20231231.xsd#bmrc_TotalNetworkDepositsReciprocal"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TimeDepositsCertificateOfDepositAccountRegistryServiceCDARS_07ee6a11-2296-4390-a417-f9723fee4238" xlink:href="bmrc-20231231.xsd#bmrc_TimeDepositsCertificateOfDepositAccountRegistryServiceCDARS"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_TotalNetworkDepositsReciprocal_c5c7626b-6406-42be-8189-815f62ec3c7c" xlink:to="loc_bmrc_TimeDepositsCertificateOfDepositAccountRegistryServiceCDARS_07ee6a11-2296-4390-a417-f9723fee4238" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DepositsMoneyMarketDepositsInsuredCashSweepICS_4d4eb432-3c00-4901-b8c8-95338f2a0609" xlink:href="bmrc-20231231.xsd#bmrc_DepositsMoneyMarketDepositsInsuredCashSweepICS"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_TotalNetworkDepositsReciprocal_c5c7626b-6406-42be-8189-815f62ec3c7c" xlink:to="loc_bmrc_DepositsMoneyMarketDepositsInsuredCashSweepICS_4d4eb432-3c00-4901-b8c8-95338f2a0609" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DepositsMoneyMarketDepositsDemandDepositMarketplace_a16c5d5f-6be2-4dd5-ad2a-6b0a31261ace" xlink:href="bmrc-20231231.xsd#bmrc_DepositsMoneyMarketDepositsDemandDepositMarketplace"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_TotalNetworkDepositsReciprocal_c5c7626b-6406-42be-8189-815f62ec3c7c" xlink:to="loc_bmrc_DepositsMoneyMarketDepositsDemandDepositMarketplace_a16c5d5f-6be2-4dd5-ad2a-6b0a31261ace" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TotalNetworkDepositsOneWay_325d4053-1524-48af-b52c-ea128c61d669" xlink:href="bmrc-20231231.xsd#bmrc_TotalNetworkDepositsOneWay"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TimeDepositsCertificateOfDepositAccountRegistryServiceCDARSOneWay_46396263-2633-4e63-93bb-ca9e4825225f" xlink:href="bmrc-20231231.xsd#bmrc_TimeDepositsCertificateOfDepositAccountRegistryServiceCDARSOneWay"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_TotalNetworkDepositsOneWay_325d4053-1524-48af-b52c-ea128c61d669" xlink:to="loc_bmrc_TimeDepositsCertificateOfDepositAccountRegistryServiceCDARSOneWay_46396263-2633-4e63-93bb-ca9e4825225f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DepositsMoneyMarketDepositsInsuredCashSweepICSOneWay_00301e67-bfe3-40e9-8b57-24672dbcf896" xlink:href="bmrc-20231231.xsd#bmrc_DepositsMoneyMarketDepositsInsuredCashSweepICSOneWay"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_TotalNetworkDepositsOneWay_325d4053-1524-48af-b52c-ea128c61d669" xlink:to="loc_bmrc_DepositsMoneyMarketDepositsInsuredCashSweepICSOneWay_00301e67-bfe3-40e9-8b57-24672dbcf896" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DepositsMoneyMarketDepositsDemandDepositMarketplaceOneWay_27f87133-c4b0-4e75-bce1-ad8e68937da8" xlink:href="bmrc-20231231.xsd#bmrc_DepositsMoneyMarketDepositsDemandDepositMarketplaceOneWay"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_TotalNetworkDepositsOneWay_325d4053-1524-48af-b52c-ea128c61d669" xlink:to="loc_bmrc_DepositsMoneyMarketDepositsDemandDepositMarketplaceOneWay_27f87133-c4b0-4e75-bce1-ad8e68937da8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxProvisionDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#IncomeTaxesScheduleofComponentsofIncomeTaxProvisionDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxProvisionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9718d456-b7ae-439a-ab7c-beeb07ba4217" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_8ad4ff21-12bf-4964-acae-3edf3d7ac2ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9718d456-b7ae-439a-ab7c-beeb07ba4217" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_8ad4ff21-12bf-4964-acae-3edf3d7ac2ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_7d789d56-ed0d-46ad-95eb-682452475b86" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_9718d456-b7ae-439a-ab7c-beeb07ba4217" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_7d789d56-ed0d-46ad-95eb-682452475b86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_c5fd5bd7-a92b-4e8b-8504-c981b7e1d2d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_06eab8df-8f2d-4271-9b75-2f2702c6d77d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_c5fd5bd7-a92b-4e8b-8504-c981b7e1d2d3" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_06eab8df-8f2d-4271-9b75-2f2702c6d77d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_fb255c03-3c01-4dc5-99d9-734e74fefd93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_c5fd5bd7-a92b-4e8b-8504-c981b7e1d2d3" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_fb255c03-3c01-4dc5-99d9-734e74fefd93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_15eaccd0-999a-4fbf-b079-a7441ec2731a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_265191c0-4f9b-44c8-b72b-c7421d719fba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_15eaccd0-999a-4fbf-b079-a7441ec2731a" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_265191c0-4f9b-44c8-b72b-c7421d719fba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_426b6915-55b3-443c-9d6c-4bf34acc2837" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_15eaccd0-999a-4fbf-b079-a7441ec2731a" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_426b6915-55b3-443c-9d6c-4bf34acc2837" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofDeferredTaxAssetandLiabilityDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#IncomeTaxesScheduleofDeferredTaxAssetandLiabilityDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/IncomeTaxesScheduleofDeferredTaxAssetandLiabilityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_a2c06f24-382b-453c-bc17-0f80d314d05c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_b36be517-5581-4d8b-81c4-972f1ad5c693" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_a2c06f24-382b-453c-bc17-0f80d314d05c" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_b36be517-5581-4d8b-81c4-972f1ad5c693" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OperatingLeaseAndFinanceLeaseRightOfUseAsset_ff62faeb-5f2e-4e7e-9fd3-0058d15b9769" xlink:href="bmrc-20231231.xsd#bmrc_OperatingLeaseAndFinanceLeaseRightOfUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_a2c06f24-382b-453c-bc17-0f80d314d05c" xlink:to="loc_bmrc_OperatingLeaseAndFinanceLeaseRightOfUseAsset_ff62faeb-5f2e-4e7e-9fd3-0058d15b9769" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DeferredTaxLiabilitiesDeferredLoanOriginationCosts_41547927-dfc9-4589-8e6e-31513ed24230" xlink:href="bmrc-20231231.xsd#bmrc_DeferredTaxLiabilitiesDeferredLoanOriginationCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_a2c06f24-382b-453c-bc17-0f80d314d05c" xlink:to="loc_bmrc_DeferredTaxLiabilitiesDeferredLoanOriginationCosts_41547927-dfc9-4589-8e6e-31513ed24230" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_becb2e69-a18a-4f12-b1b1-513bfcbe19f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_a2c06f24-382b-453c-bc17-0f80d314d05c" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_becb2e69-a18a-4f12-b1b1-513bfcbe19f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_f7205add-c5a1-4253-a607-10ff2fdcf1da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_f7205add-c5a1-4253-a607-10ff2fdcf1da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_ee49d337-d2bb-4244-9073-241d75caf94d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_ee49d337-d2bb-4244-9073-241d75caf94d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DeferredTaxAssetsUnrealizedLossesonAvailableforSaleSecuritiesNet_53f3cd43-3b7d-491e-a67e-09d5b5280b22" xlink:href="bmrc-20231231.xsd#bmrc_DeferredTaxAssetsUnrealizedLossesonAvailableforSaleSecuritiesNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_bmrc_DeferredTaxAssetsUnrealizedLossesonAvailableforSaleSecuritiesNet_53f3cd43-3b7d-491e-a67e-09d5b5280b22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DeferredTaxAssetFairValueAdjustmentLoansReceivable_d5cd9b34-8933-49aa-9ada-4a2536736a66" xlink:href="bmrc-20231231.xsd#bmrc_DeferredTaxAssetFairValueAdjustmentLoansReceivable"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_bmrc_DeferredTaxAssetFairValueAdjustmentLoansReceivable_d5cd9b34-8933-49aa-9ada-4a2536736a66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_45371da8-cc9c-4a4a-9339-1cea6be373ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_45371da8-cc9c-4a4a-9339-1cea6be373ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_12dc64bf-4efc-4432-a38c-ffa683856bb4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_12dc64bf-4efc-4432-a38c-ffa683856bb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_483ef1e1-c1a6-462a-9d0f-1dc9a877a5cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_483ef1e1-c1a6-462a-9d0f-1dc9a877a5cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_895b4a7a-cffb-477c-9c8b-6eff2fad7184" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_895b4a7a-cffb-477c-9c8b-6eff2fad7184" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_5642c350-f78c-4edf-b0e9-aa9d6bbcb385" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_5642c350-f78c-4edf-b0e9-aa9d6bbcb385" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OperatingLeaseAndFinanceLeaseLiability_1bfe9db9-6130-4dd0-b3d2-49b4ac0276dd" xlink:href="bmrc-20231231.xsd#bmrc_OperatingLeaseAndFinanceLeaseLiability"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_bmrc_OperatingLeaseAndFinanceLeaseLiability_1bfe9db9-6130-4dd0-b3d2-49b4ac0276dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsStateTaxes_5b01b049-1448-4f37-a823-1eaba9d5ef61" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsStateTaxes"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_b8352811-a3b7-4e68-aeb9-000cc5fc813d" xlink:to="loc_us-gaap_DeferredTaxAssetsStateTaxes_5b01b049-1448-4f37-a823-1eaba9d5ef61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1459b26b-b29c-4e1e-8b77-74597ca685a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_62cea39c-5a60-4b59-9778-11f3522d2da6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1459b26b-b29c-4e1e-8b77-74597ca685a1" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_62cea39c-5a60-4b59-9778-11f3522d2da6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_d8c198ad-fcd4-4f30-a3d8-0083ff607d66" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1459b26b-b29c-4e1e-8b77-74597ca685a1" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_d8c198ad-fcd4-4f30-a3d8-0083ff607d66" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofEffectiveIncomeTaxReconciliationDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#IncomeTaxesScheduleofEffectiveIncomeTaxReconciliationDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/IncomeTaxesScheduleofEffectiveIncomeTaxReconciliationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d4610316-8db9-44d8-86db-365b031f2e24" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_e094b953-9cd7-4a93-93f5-52eb34020a74" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d4610316-8db9-44d8-86db-365b031f2e24" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_e094b953-9cd7-4a93-93f5-52eb34020a74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_f1ffc01e-d22d-4b1a-9217-e60f4c83a65b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d4610316-8db9-44d8-86db-365b031f2e24" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_f1ffc01e-d22d-4b1a-9217-e60f4c83a65b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EffectiveIncomeTaxRateReconciliationTaxExemptIncomeInterestOnMunicipalSecuritiesAndLoans_c5faf70d-a9d3-4f33-a832-837a66d69d8f" xlink:href="bmrc-20231231.xsd#bmrc_EffectiveIncomeTaxRateReconciliationTaxExemptIncomeInterestOnMunicipalSecuritiesAndLoans"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d4610316-8db9-44d8-86db-365b031f2e24" xlink:to="loc_bmrc_EffectiveIncomeTaxRateReconciliationTaxExemptIncomeInterestOnMunicipalSecuritiesAndLoans_c5faf70d-a9d3-4f33-a832-837a66d69d8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EffectiveIncomeTaxRateReconciliationTaxExemptIncomeEarningsOnBankOwnedLifeInsurance_8fda6627-4376-4a3a-a061-a4d584df7cab" xlink:href="bmrc-20231231.xsd#bmrc_EffectiveIncomeTaxRateReconciliationTaxExemptIncomeEarningsOnBankOwnedLifeInsurance"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d4610316-8db9-44d8-86db-365b031f2e24" xlink:to="loc_bmrc_EffectiveIncomeTaxRateReconciliationTaxExemptIncomeEarningsOnBankOwnedLifeInsurance_8fda6627-4376-4a3a-a061-a4d584df7cab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EffectiveIncomeTaxRateReconciliationTaxCreditAffordableHousing_d06426e3-be54-407c-af0e-512c4beb5190" xlink:href="bmrc-20231231.xsd#bmrc_EffectiveIncomeTaxRateReconciliationTaxCreditAffordableHousing"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d4610316-8db9-44d8-86db-365b031f2e24" xlink:to="loc_bmrc_EffectiveIncomeTaxRateReconciliationTaxCreditAffordableHousing_d06426e3-be54-407c-af0e-512c4beb5190" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EffectiveIncomeTaxRateReconciliationDeductionShareBasedCompensationAndExcessTaxBenefits_e49428c4-9df3-404a-a9c9-f49004beabc1" xlink:href="bmrc-20231231.xsd#bmrc_EffectiveIncomeTaxRateReconciliationDeductionShareBasedCompensationAndExcessTaxBenefits"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d4610316-8db9-44d8-86db-365b031f2e24" xlink:to="loc_bmrc_EffectiveIncomeTaxRateReconciliationDeductionShareBasedCompensationAndExcessTaxBenefits_e49428c4-9df3-404a-a9c9-f49004beabc1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_9842df53-e643-46e9-9940-70f90025cb9f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d4610316-8db9-44d8-86db-365b031f2e24" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_9842df53-e643-46e9-9940-70f90025cb9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EffectiveIncomeTaxRateReconciliationNonDeductibleAcquisitionRelatedExpenses_2728c059-4305-4ddc-b07b-764936375080" xlink:href="bmrc-20231231.xsd#bmrc_EffectiveIncomeTaxRateReconciliationNonDeductibleAcquisitionRelatedExpenses"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d4610316-8db9-44d8-86db-365b031f2e24" xlink:to="loc_bmrc_EffectiveIncomeTaxRateReconciliationNonDeductibleAcquisitionRelatedExpenses_2728c059-4305-4ddc-b07b-764936375080" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EffectiveIncomeTaxRateReconciliationNonDeductibleExecutiveCompensation_efd351f5-a52f-4839-9346-7d439f5cedd6" xlink:href="bmrc-20231231.xsd#bmrc_EffectiveIncomeTaxRateReconciliationNonDeductibleExecutiveCompensation"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d4610316-8db9-44d8-86db-365b031f2e24" xlink:to="loc_bmrc_EffectiveIncomeTaxRateReconciliationNonDeductibleExecutiveCompensation_efd351f5-a52f-4839-9346-7d439f5cedd6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofOperatingandFinanceLeaseRightofUseAssetsandLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#CommitmentsandContingenciesScheduleofOperatingandFinanceLeaseRightofUseAssetsandLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofOperatingandFinanceLeaseRightofUseAssetsandLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_68071985-3fe8-4a0b-bb5d-5a9b68a5b407" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseRightOfUseAsset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_4f7705ad-6c49-4aaf-8560-685131e144b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseRightOfUseAsset_68071985-3fe8-4a0b-bb5d-5a9b68a5b407" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_4f7705ad-6c49-4aaf-8560-685131e144b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_FinanceLeaseRightOfUseAssetAccumulatedDepreciation_ad583bc1-f35c-44bf-8a38-3f721541e54b" xlink:href="bmrc-20231231.xsd#bmrc_FinanceLeaseRightOfUseAssetAccumulatedDepreciation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseRightOfUseAsset_68071985-3fe8-4a0b-bb5d-5a9b68a5b407" xlink:to="loc_bmrc_FinanceLeaseRightOfUseAssetAccumulatedDepreciation_ad583bc1-f35c-44bf-8a38-3f721541e54b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseCostDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#CommitmentsandContingenciesScheduleofLeaseCostDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseCostDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_FinanceLeaseCost_78fab57b-3213-42af-bd20-6e41335cbe68" xlink:href="bmrc-20231231.xsd#bmrc_FinanceLeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_4824ee16-909f-4786-94e3-97b62a81a162" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseRightOfUseAssetAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_FinanceLeaseCost_78fab57b-3213-42af-bd20-6e41335cbe68" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_4824ee16-909f-4786-94e3-97b62a81a162" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseInterestExpense_0bdff8f0-bd0e-4d87-9a2a-dc6d7f36d38a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseInterestExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_FinanceLeaseCost_78fab57b-3213-42af-bd20-6e41335cbe68" xlink:to="loc_us-gaap_FinanceLeaseInterestExpense_0bdff8f0-bd0e-4d87-9a2a-dc6d7f36d38a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_6ad6308e-f10d-41ab-867f-8858d2e17e09" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OperatingLeaseCostNet_fec193dd-6c65-43eb-944e-5bc4219a14e5" xlink:href="bmrc-20231231.xsd#bmrc_OperatingLeaseCostNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_6ad6308e-f10d-41ab-867f-8858d2e17e09" xlink:to="loc_bmrc_OperatingLeaseCostNet_fec193dd-6c65-43eb-944e-5bc4219a14e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_FinanceLeaseCost_6f954087-1b0b-4591-aa4f-83a25298e71e" xlink:href="bmrc-20231231.xsd#bmrc_FinanceLeaseCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_6ad6308e-f10d-41ab-867f-8858d2e17e09" xlink:to="loc_bmrc_FinanceLeaseCost_6f954087-1b0b-4591-aa4f-83a25298e71e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OperatingLeaseCostNet_bbca0ce2-ae53-44bc-a423-bd656acb49f7" xlink:href="bmrc-20231231.xsd#bmrc_OperatingLeaseCostNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_e74b9169-b773-4f03-bab5-c4caa0ada0cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_OperatingLeaseCostNet_bbca0ce2-ae53-44bc-a423-bd656acb49f7" xlink:to="loc_us-gaap_VariableLeaseCost_e74b9169-b773-4f03-bab5-c4caa0ada0cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_58227f33-3872-4e63-beca-ec7b6cc91f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_OperatingLeaseCostNet_bbca0ce2-ae53-44bc-a423-bd656acb49f7" xlink:to="loc_us-gaap_OperatingLeaseCost_58227f33-3872-4e63-beca-ec7b6cc91f8f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8deada4e-9fd2-46d4-b9d1-c6d18b412c0b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_9a0aa542-08a7-4316-b0ea-8cfd01808a9e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8deada4e-9fd2-46d4-b9d1-c6d18b412c0b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_9a0aa542-08a7-4316-b0ea-8cfd01808a9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_2294f44d-bb63-4425-a453-50f7b98869a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8deada4e-9fd2-46d4-b9d1-c6d18b412c0b" xlink:to="loc_us-gaap_OperatingLeaseLiability_2294f44d-bb63-4425-a453-50f7b98869a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_52b4d5af-2126-4f55-969a-a06b9c95e5f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_4a0bd09f-e16d-4337-b3da-1ca180cbe656" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_52b4d5af-2126-4f55-969a-a06b9c95e5f2" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_4a0bd09f-e16d-4337-b3da-1ca180cbe656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_0e604306-84ba-4db5-b913-f746914640b4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_52b4d5af-2126-4f55-969a-a06b9c95e5f2" xlink:to="loc_us-gaap_FinanceLeaseLiability_0e604306-84ba-4db5-b913-f746914640b4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails_1" xlink:type="simple" xlink:href="bmrc-20231231.xsd#CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails_1"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_be885915-5d8a-43a5-a9ab-3efe263695f8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_26c1446f-3277-41fd-88e5-3133feab3405" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_be885915-5d8a-43a5-a9ab-3efe263695f8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_26c1446f-3277-41fd-88e5-3133feab3405" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_aaf59961-61d6-422b-8fdf-6e707140e004" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_be885915-5d8a-43a5-a9ab-3efe263695f8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_aaf59961-61d6-422b-8fdf-6e707140e004" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_11ff5dd9-b830-4b3b-b293-2b85e359eb68" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_be885915-5d8a-43a5-a9ab-3efe263695f8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_11ff5dd9-b830-4b3b-b293-2b85e359eb68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_8a63ab75-732d-4125-804f-f394fa61e82f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_be885915-5d8a-43a5-a9ab-3efe263695f8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_8a63ab75-732d-4125-804f-f394fa61e82f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_a1e74af7-f640-4ab9-9a89-af1760e86bb5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_be885915-5d8a-43a5-a9ab-3efe263695f8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_a1e74af7-f640-4ab9-9a89-af1760e86bb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_9b6c7f46-c008-42aa-9d8d-bf31feeabaae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_be885915-5d8a-43a5-a9ab-3efe263695f8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_9b6c7f46-c008-42aa-9d8d-bf31feeabaae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_a6a7ccd2-1ff0-4687-b4af-d4f8c6bf87e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_c4cf942c-2d98-47f5-b8a8-c610125240a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_a6a7ccd2-1ff0-4687-b4af-d4f8c6bf87e6" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_c4cf942c-2d98-47f5-b8a8-c610125240a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_66584564-dd7d-4c8a-846a-f82787fd89a9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_a6a7ccd2-1ff0-4687-b4af-d4f8c6bf87e6" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_66584564-dd7d-4c8a-846a-f82787fd89a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_a4d1b82a-384e-4f79-b861-2d9c7015c4f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_a6a7ccd2-1ff0-4687-b4af-d4f8c6bf87e6" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_a4d1b82a-384e-4f79-b861-2d9c7015c4f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_1b475bff-4b12-4dbc-a137-682b7d3bcd0b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_a6a7ccd2-1ff0-4687-b4af-d4f8c6bf87e6" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_1b475bff-4b12-4dbc-a137-682b7d3bcd0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_07c1d425-b9a0-40e9-a35a-05c3326418c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_a6a7ccd2-1ff0-4687-b4af-d4f8c6bf87e6" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_07c1d425-b9a0-40e9-a35a-05c3326418c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_405fef27-4772-4837-b693-09553ae8f68d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_a6a7ccd2-1ff0-4687-b4af-d4f8c6bf87e6" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_405fef27-4772-4837-b693-09553ae8f68d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofInterestIncomeDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofInterestIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofInterestIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_106af6e6-585f-428b-a413-a1ca3af8ccaf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1_239e9183-41cc-4555-a10b-1222dda9c678" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNet_106af6e6-585f-428b-a413-a1ca3af8ccaf" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1_239e9183-41cc-4555-a10b-1222dda9c678" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DerivativeHedgedInterestEarnedPaid_2e931902-ce79-494b-ad41-cf0155f6564e" xlink:href="bmrc-20231231.xsd#bmrc_DerivativeHedgedInterestEarnedPaid"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNet_106af6e6-585f-428b-a413-a1ca3af8ccaf" xlink:to="loc_bmrc_DerivativeHedgedInterestEarnedPaid_2e931902-ce79-494b-ad41-cf0155f6564e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_c9768e04-6a20-42f7-abc5-eb6ec108c061" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNet_106af6e6-585f-428b-a413-a1ca3af8ccaf" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_c9768e04-6a20-42f7-abc5-eb6ec108c061" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofAssetsDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_a162098e-2572-4aec-ad82-d4e82be51222" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_dbf3f39e-d023-4540-b79d-853dd8c029e1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_a162098e-2572-4aec-ad82-d4e82be51222" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_dbf3f39e-d023-4540-b79d-853dd8c029e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_02ecf55e-3ce6-452c-a05a-6ac6657e835f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_a162098e-2572-4aec-ad82-d4e82be51222" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_02ecf55e-3ce6-452c-a05a-6ac6657e835f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_0e4e295f-fd6c-441d-bf18-156bcd147884" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_50a984df-61b8-49fa-9ab1-7cf7ec325f4b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_0e4e295f-fd6c-441d-bf18-156bcd147884" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_50a984df-61b8-49fa-9ab1-7cf7ec325f4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_c1aa8533-e6c8-4f4d-8758-641686d4659a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeCollateralObligationToReturnCash"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_0e4e295f-fd6c-441d-bf18-156bcd147884" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_c1aa8533-e6c8-4f4d-8758-641686d4659a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_34f656c2-f136-4db2-8707-2072c801f870" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_0e4e295f-fd6c-441d-bf18-156bcd147884" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_34f656c2-f136-4db2-8707-2072c801f870" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofLiabilitiesDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_bc30c40a-180b-463c-a5ae-2418b6cf249c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_9627a180-7fb2-4d02-aae6-752886b0fdbf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_bc30c40a-180b-463c-a5ae-2418b6cf249c" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_9627a180-7fb2-4d02-aae6-752886b0fdbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_9ec15890-8adc-4dd6-9bfa-3998cf5f962a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeCollateralRightToReclaimCash"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_bc30c40a-180b-463c-a5ae-2418b6cf249c" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_9ec15890-8adc-4dd6-9bfa-3998cf5f962a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_85d8d446-031b-4ea3-b7b4-4953bed54e71" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_bc30c40a-180b-463c-a5ae-2418b6cf249c" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_85d8d446-031b-4ea3-b7b4-4953bed54e71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_0f8a3fe5-301a-448b-b82d-4e1fcc7c1825" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_0db64d88-58b8-4643-bcf2-20ceacb02c6d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_0f8a3fe5-301a-448b-b82d-4e1fcc7c1825" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_0db64d88-58b8-4643-bcf2-20ceacb02c6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_7acb0325-48fb-4550-9d35-f79b08265816" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_0f8a3fe5-301a-448b-b82d-4e1fcc7c1825" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_7acb0325-48fb-4550-9d35-f79b08265816" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUncosolidatedStatementsofConditionDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUncosolidatedStatementsofConditionDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUncosolidatedStatementsofConditionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_79bb04be-9689-4c5c-80fc-9bf7bf79b441" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_CashAndDueFromSubsidiary_f235926d-9160-440f-9eb3-52b49a9c669e" xlink:href="bmrc-20231231.xsd#bmrc_CashAndDueFromSubsidiary"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_79bb04be-9689-4c5c-80fc-9bf7bf79b441" xlink:to="loc_bmrc_CashAndDueFromSubsidiary_f235926d-9160-440f-9eb3-52b49a9c669e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_InvestmentInSubsidiary_f67fc146-6fc0-4eda-bfd5-a6bc2d67d66d" xlink:href="bmrc-20231231.xsd#bmrc_InvestmentInSubsidiary"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_79bb04be-9689-4c5c-80fc-9bf7bf79b441" xlink:to="loc_bmrc_InvestmentInSubsidiary_f67fc146-6fc0-4eda-bfd5-a6bc2d67d66d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_93380ee0-4c6d-4ced-9506-c94895abad43" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_79bb04be-9689-4c5c-80fc-9bf7bf79b441" xlink:to="loc_us-gaap_OtherAssets_93380ee0-4c6d-4ced-9506-c94895abad43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_a865e27d-2451-4a5c-b788-1c6bc703592d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_744eee1e-ad0a-4e44-8a7f-8a0f40c7e63c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_a865e27d-2451-4a5c-b788-1c6bc703592d" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_744eee1e-ad0a-4e44-8a7f-8a0f40c7e63c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_a8bdd98a-969c-49be-9ac4-9b5499ab39f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_a865e27d-2451-4a5c-b788-1c6bc703592d" xlink:to="loc_us-gaap_OtherLiabilities_a8bdd98a-969c-49be-9ac4-9b5499ab39f5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofIncomeDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TotalExpense_65fc0012-df75-4ef3-b5dd-675ef2e6ee97" xlink:href="bmrc-20231231.xsd#bmrc_TotalExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_b9c631e4-9980-46af-bc58-713001b49140" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_TotalExpense_65fc0012-df75-4ef3-b5dd-675ef2e6ee97" xlink:to="loc_us-gaap_InterestExpense_b9c631e4-9980-46af-bc58-713001b49140" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_618953bd-22a5-477a-bcad-2f60df113d85" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoninterestExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_TotalExpense_65fc0012-df75-4ef3-b5dd-675ef2e6ee97" xlink:to="loc_us-gaap_NoninterestExpense_618953bd-22a5-477a-bcad-2f60df113d85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries_1f9e217f-a028-4d9c-add8-739a61b87cb3" xlink:href="bmrc-20231231.xsd#bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary_df65f09e-c8cf-4658-8546-0652f16747fb" xlink:href="bmrc-20231231.xsd#bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries_1f9e217f-a028-4d9c-add8-739a61b87cb3" xlink:to="loc_bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary_df65f09e-c8cf-4658-8546-0652f16747fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_aa97e0c5-22dc-48b0-a618-3f5d97cfcd3a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries_1f9e217f-a028-4d9c-add8-739a61b87cb3" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_aa97e0c5-22dc-48b0-a618-3f5d97cfcd3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_b4a1911f-c512-47e0-ab05-489f9d11d40c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromSubsidiariesBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DividendIncomeFromSubsidiariesOperating_886b10ba-3693-40bb-85aa-8f3c44b339eb" xlink:href="bmrc-20231231.xsd#bmrc_DividendIncomeFromSubsidiariesOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_b4a1911f-c512-47e0-ab05-489f9d11d40c" xlink:to="loc_bmrc_DividendIncomeFromSubsidiariesOperating_886b10ba-3693-40bb-85aa-8f3c44b339eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_MiscellaneousIncome_30ddf54c-6d13-45ea-aa6c-8a6689c9070f" xlink:href="bmrc-20231231.xsd#bmrc_MiscellaneousIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_b4a1911f-c512-47e0-ab05-489f9d11d40c" xlink:to="loc_bmrc_MiscellaneousIncome_30ddf54c-6d13-45ea-aa6c-8a6689c9070f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_fd2731d9-eefe-4440-a7f4-f579a3612769" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries_9018ecf6-ef49-421a-b23c-c659dad79e46" xlink:href="bmrc-20231231.xsd#bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_fd2731d9-eefe-4440-a7f4-f579a3612769" xlink:to="loc_bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries_9018ecf6-ef49-421a-b23c-c659dad79e46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EquityInUndistributedNetIncomeOfSubsidiary_b1daf352-7611-4d59-a9e6-9b912e974933" xlink:href="bmrc-20231231.xsd#bmrc_EquityInUndistributedNetIncomeOfSubsidiary"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_fd2731d9-eefe-4440-a7f4-f579a3612769" xlink:to="loc_bmrc_EquityInUndistributedNetIncomeOfSubsidiary_b1daf352-7611-4d59-a9e6-9b912e974933" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary_df16582b-4acc-45e2-bf59-8023d9a57fe1" xlink:href="bmrc-20231231.xsd#bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TotalExpense_82dba875-801a-4e50-92ff-a4b1e8d3e7c0" xlink:href="bmrc-20231231.xsd#bmrc_TotalExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary_df16582b-4acc-45e2-bf59-8023d9a57fe1" xlink:to="loc_bmrc_TotalExpense_82dba875-801a-4e50-92ff-a4b1e8d3e7c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_6f05deb0-ae07-4717-9b6f-f62c8fe58c6c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromSubsidiariesBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary_df16582b-4acc-45e2-bf59-8023d9a57fe1" xlink:to="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_6f05deb0-ae07-4717-9b6f-f62c8fe58c6c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofCashFlowsDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofCashFlowsDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofCashFlowsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2ca87f17-f7fc-4a5d-b127-0bfd671f7561" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_ProceedsFromStockOptionsExercisedAndEmployeeStockPurchases_d9f27b2d-f871-4a6c-89b2-a20be981a2a6" xlink:href="bmrc-20231231.xsd#bmrc_ProceedsFromStockOptionsExercisedAndEmployeeStockPurchases"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2ca87f17-f7fc-4a5d-b127-0bfd671f7561" xlink:to="loc_bmrc_ProceedsFromStockOptionsExercisedAndEmployeeStockPurchases_d9f27b2d-f871-4a6c-89b2-a20be981a2a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_90e47864-b3a8-40dc-a9ab-6cf3b9f1521f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2ca87f17-f7fc-4a5d-b127-0bfd671f7561" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_90e47864-b3a8-40dc-a9ab-6cf3b9f1521f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_6bbaf31f-b6a5-4b03-afa8-7a1f3f2b98ec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2ca87f17-f7fc-4a5d-b127-0bfd671f7561" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_6bbaf31f-b6a5-4b03-afa8-7a1f3f2b98ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSubordinatedDebt_8c20fdae-89e7-4b8e-8974-1d6992998b08" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfSubordinatedDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2ca87f17-f7fc-4a5d-b127-0bfd671f7561" xlink:to="loc_us-gaap_RepaymentsOfSubordinatedDebt_8c20fdae-89e7-4b8e-8974-1d6992998b08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfEquity_14737292-ab97-411e-8ecd-9a137c6773e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForRepurchaseOfEquity"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2ca87f17-f7fc-4a5d-b127-0bfd671f7561" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfEquity_14737292-ab97-411e-8ecd-9a137c6773e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5090087b-370c-4b85-907e-f630fb9c48b4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_4572d14b-978b-4c02-a995-957200d8798f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5090087b-370c-4b85-907e-f630fb9c48b4" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_4572d14b-978b-4c02-a995-957200d8798f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_18716363-aab4-4ff8-b212-8c3cb7798143" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5090087b-370c-4b85-907e-f630fb9c48b4" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_18716363-aab4-4ff8-b212-8c3cb7798143" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EquityinUndistributedandDistributedEarningsofSubsidiaryNetofDividendsReceived_945f64bf-b4b0-435e-91e2-acddf9129548" xlink:href="bmrc-20231231.xsd#bmrc_EquityinUndistributedandDistributedEarningsofSubsidiaryNetofDividendsReceived"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5090087b-370c-4b85-907e-f630fb9c48b4" xlink:to="loc_bmrc_EquityinUndistributedandDistributedEarningsofSubsidiaryNetofDividendsReceived_945f64bf-b4b0-435e-91e2-acddf9129548" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_775f4bdc-4dd4-45a0-baa1-a2d1847f57fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5090087b-370c-4b85-907e-f630fb9c48b4" xlink:to="loc_us-gaap_NetIncomeLoss_775f4bdc-4dd4-45a0-baa1-a2d1847f57fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_f6c9e907-937a-4593-a15f-0cd47f0f0584" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5090087b-370c-4b85-907e-f630fb9c48b4" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_f6c9e907-937a-4593-a15f-0cd47f0f0584" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_5ad50955-3f0b-4e4d-9ee2-b4fce306a888" xlink:href="bmrc-20231231.xsd#bmrc_CompensationExpenseCommonStockForDirectorFees"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5090087b-370c-4b85-907e-f630fb9c48b4" xlink:to="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_5ad50955-3f0b-4e4d-9ee2-b4fce306a888" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/MergerScheduleofConsiderationPaidforAMRBDetails" xlink:type="simple" xlink:href="bmrc-20231231.xsd#MergerScheduleofConsiderationPaidforAMRBDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/MergerScheduleofConsiderationPaidforAMRBDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_27fbc4b2-0e44-42e2-9005-2e416fc7c308" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_3b9df868-1871-4736-b067-34f08b346b33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_27fbc4b2-0e44-42e2-9005-2e416fc7c308" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_3b9df868-1871-4736-b067-34f08b346b33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_BusinessCombinationConsiderationTransferredAdditionalEquityInterestsIssuedAndIssuable_d33a09eb-e44b-49ac-8169-4b10a1abe121" xlink:href="bmrc-20231231.xsd#bmrc_BusinessCombinationConsiderationTransferredAdditionalEquityInterestsIssuedAndIssuable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_27fbc4b2-0e44-42e2-9005-2e416fc7c308" xlink:to="loc_bmrc_BusinessCombinationConsiderationTransferredAdditionalEquityInterestsIssuedAndIssuable_d33a09eb-e44b-49ac-8169-4b10a1abe121" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_a7a732b2-ec5b-4359-9261-e5ca1e91f8f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_27fbc4b2-0e44-42e2-9005-2e416fc7c308" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_a7a732b2-ec5b-4359-9261-e5ca1e91f8f7" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
