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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:a460cb4f-40cf-44f8-aad8-42bcadc7d698,g:0b0974fc-a39e-4962-a35e-f79556473c28-->
<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-20251231.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_Deposits_f928696c-dec3-4bfc-937a-be92353ac032" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Deposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestBearingDepositLiabilities_ca748a1c-3208-41ee-80d0-d32a832d97a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f928696c-dec3-4bfc-937a-be92353ac032" xlink:to="loc_us-gaap_NoninterestBearingDepositLiabilities_ca748a1c-3208-41ee-80d0-d32a832d97a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_f283c771-9d4b-4a02-ac10-e6b1d507613a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f928696c-dec3-4bfc-937a-be92353ac032" xlink:to="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_f283c771-9d4b-4a02-ac10-e6b1d507613a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsSavingsDeposits_b659521a-f62b-4633-bdc6-518789bb09b3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f928696c-dec3-4bfc-937a-be92353ac032" xlink:to="loc_us-gaap_DepositsSavingsDeposits_b659521a-f62b-4633-bdc6-518789bb09b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsMoneyMarketDeposits_f5dc7c59-aac5-450a-a3d6-a8b410f25634" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f928696c-dec3-4bfc-937a-be92353ac032" xlink:to="loc_us-gaap_DepositsMoneyMarketDeposits_f5dc7c59-aac5-450a-a3d6-a8b410f25634" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_587a05db-2046-451a-8367-d5e3adbf72d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f928696c-dec3-4bfc-937a-be92353ac032" xlink:to="loc_us-gaap_TimeDeposits_587a05db-2046-451a-8367-d5e3adbf72d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_d82b0159-144c-4588-8e27-fd92b5cad860" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_6845fad1-7d68-4794-a661-ca5460f8bf52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d82b0159-144c-4588-8e27-fd92b5cad860" xlink:to="loc_us-gaap_Liabilities_6845fad1-7d68-4794-a661-ca5460f8bf52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_bb4e2632-a2ae-4750-a3d7-4d10c9fc5d58" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d82b0159-144c-4588-8e27-fd92b5cad860" xlink:to="loc_us-gaap_StockholdersEquity_bb4e2632-a2ae-4750-a3d7-4d10c9fc5d58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_bdc45777-31ab-44ad-b180-0abebf495865" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d82b0159-144c-4588-8e27-fd92b5cad860" xlink:to="loc_us-gaap_CommitmentsAndContingencies_bdc45777-31ab-44ad-b180-0abebf495865" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019b373b-a0c9-72ba-a2fc-b356a00276a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_019b373b-a0c9-70b0-b46e-e302a864ccbf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019b373b-a0c9-72ba-a2fc-b356a00276a5" xlink:to="loc_us-gaap_Deposits_019b373b-a0c9-70b0-b46e-e302a864ccbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OtherDebtAndLeaseObligations_019b373b-a0c9-734b-89b5-d867846f720c" xlink:href="bmrc-20251231.xsd#bmrc_OtherDebtAndLeaseObligations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019b373b-a0c9-72ba-a2fc-b356a00276a5" xlink:to="loc_bmrc_OtherDebtAndLeaseObligations_019b373b-a0c9-734b-89b5-d867846f720c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubordinatedDebt_019b373b-a0c9-75c0-9a91-f439cc78b51e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubordinatedDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019b373b-a0c9-72ba-a2fc-b356a00276a5" xlink:to="loc_us-gaap_SubordinatedDebt_019b373b-a0c9-75c0-9a91-f439cc78b51e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_019b373b-a0c9-739c-8eed-7b09d3cc2039" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019b373b-a0c9-72ba-a2fc-b356a00276a5" xlink:to="loc_us-gaap_OperatingLeaseLiability_019b373b-a0c9-739c-8eed-7b09d3cc2039" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_019b373b-a0c9-7662-b1d6-7966c6c25e52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019b373b-a0c9-72ba-a2fc-b356a00276a5" xlink:to="loc_us-gaap_OtherLiabilities_019b373b-a0c9-7662-b1d6-7966c6c25e52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_a51712d6-ec9f-42c4-bf94-249fe54c7e09" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_26e2e743-d43e-46d5-aca2-1e33840b925d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a51712d6-ec9f-42c4-bf94-249fe54c7e09" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_26e2e743-d43e-46d5-aca2-1e33840b925d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_040ad549-9fb0-4e00-b737-5d9522a0774d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a51712d6-ec9f-42c4-bf94-249fe54c7e09" xlink:to="loc_us-gaap_Investments_040ad549-9fb0-4e00-b737-5d9522a0774d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_6f886899-0623-4e71-a6b4-15ec6a0be7b0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a51712d6-ec9f-42c4-bf94-249fe54c7e09" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_6f886899-0623-4e71-a6b4-15ec6a0be7b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_0245b7ec-5e62-4bf5-bfd3-2fb9427a2df6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a51712d6-ec9f-42c4-bf94-249fe54c7e09" xlink:to="loc_us-gaap_Goodwill_0245b7ec-5e62-4bf5-bfd3-2fb9427a2df6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsurance_be71c8ca-caa2-4677-972a-5c8984babc47" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a51712d6-ec9f-42c4-bf94-249fe54c7e09" xlink:to="loc_us-gaap_BankOwnedLifeInsurance_be71c8ca-caa2-4677-972a-5c8984babc47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_8655ab8a-629b-4b3b-bb5e-0fc7e670455a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a51712d6-ec9f-42c4-bf94-249fe54c7e09" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_8655ab8a-629b-4b3b-bb5e-0fc7e670455a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_7c52e602-1598-4a25-b555-8e1ed235fcb1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a51712d6-ec9f-42c4-bf94-249fe54c7e09" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_7c52e602-1598-4a25-b555-8e1ed235fcb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedCoreDepositsGross_98316b83-4da6-43c7-b5bf-3adc75344e0d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a51712d6-ec9f-42c4-bf94-249fe54c7e09" xlink:to="loc_us-gaap_FiniteLivedCoreDepositsGross_98316b83-4da6-43c7-b5bf-3adc75344e0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivableAndOtherAssets_9f305e62-3ed9-4774-ba1c-c05afcd9d369" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestReceivableAndOtherAssets"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_a51712d6-ec9f-42c4-bf94-249fe54c7e09" xlink:to="loc_us-gaap_InterestReceivableAndOtherAssets_9f305e62-3ed9-4774-ba1c-c05afcd9d369" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_43a3e6e2-06e7-4a98-b764-f4983b93f400" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Investments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_013fc1cb-7fcb-4392-9f63-4252d2324c4c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_43a3e6e2-06e7-4a98-b764-f4983b93f400" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_013fc1cb-7fcb-4392-9f63-4252d2324c4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_0d208c1a-53b5-466a-b161-3334e3ec0117" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_43a3e6e2-06e7-4a98-b764-f4983b93f400" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_0d208c1a-53b5-466a-b161-3334e3ec0117" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b05aa688-a8ad-47ba-9041-6608a992e17c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_543175c7-4267-4713-9fe2-8768bb80e819" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b05aa688-a8ad-47ba-9041-6608a992e17c" xlink:to="loc_us-gaap_PreferredStockValue_543175c7-4267-4713-9fe2-8768bb80e819" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_add55c8e-4cb4-41ca-a816-dd99888d68da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b05aa688-a8ad-47ba-9041-6608a992e17c" xlink:to="loc_us-gaap_CommonStockValue_add55c8e-4cb4-41ca-a816-dd99888d68da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_27dd7eef-6207-4213-b402-84e75c966b26" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b05aa688-a8ad-47ba-9041-6608a992e17c" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_27dd7eef-6207-4213-b402-84e75c966b26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_28191740-3c92-4f53-8fc3-7efabd9fff2f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b05aa688-a8ad-47ba-9041-6608a992e17c" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_28191740-3c92-4f53-8fc3-7efabd9fff2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_9afeb162-f643-4fca-b31e-def1366a8b23" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_e6ed509f-1a26-4bec-81e6-149c05b1f6b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9afeb162-f643-4fca-b31e-def1366a8b23" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_e6ed509f-1a26-4bec-81e6-149c05b1f6b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_ecc2cda8-81e1-4d73-a45b-81d7c3cc9013" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9afeb162-f643-4fca-b31e-def1366a8b23" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_ecc2cda8-81e1-4d73-a45b-81d7c3cc9013" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME" xlink:type="simple" xlink:href="bmrc-20251231.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_18196c0a-df62-4c83-987c-4b7447285155" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_86ec18d2-73bc-4733-9ea1-631b48e63181" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_18196c0a-df62-4c83-987c-4b7447285155" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_86ec18d2-73bc-4733-9ea1-631b48e63181" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperating_58ec124f-4819-49a9-b56d-3945c7da7824" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_18196c0a-df62-4c83-987c-4b7447285155" xlink:to="loc_us-gaap_InterestIncomeOperating_58ec124f-4819-49a9-b56d-3945c7da7824" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_InterestDueFromBanksAndOther_449a91bb-fb12-4f1f-b363-28cefcf11d7e" xlink:href="bmrc-20251231.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_18196c0a-df62-4c83-987c-4b7447285155" xlink:to="loc_bmrc_InterestDueFromBanksAndOther_449a91bb-fb12-4f1f-b363-28cefcf11d7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019c0d78-e2ee-7da1-aeea-bd28440418e0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits_019c0d78-e2ee-71fe-a5b7-e77a77181ef2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019c0d78-e2ee-7da1-aeea-bd28440418e0" xlink:to="loc_us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits_019c0d78-e2ee-71fe-a5b7-e77a77181ef2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseSavingsDeposits_019c0d78-e2ee-7064-b71a-edb80e0e3fde" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseSavingsDeposits"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019c0d78-e2ee-7da1-aeea-bd28440418e0" xlink:to="loc_us-gaap_InterestExpenseSavingsDeposits_019c0d78-e2ee-7064-b71a-edb80e0e3fde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMoneyMarketDeposits_019c0d78-e2ee-7f33-9e35-370b6f8b5e19" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseMoneyMarketDeposits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019c0d78-e2ee-7da1-aeea-bd28440418e0" xlink:to="loc_us-gaap_InterestExpenseMoneyMarketDeposits_019c0d78-e2ee-7f33-9e35-370b6f8b5e19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseTimeDeposits_019c0d78-e2ee-7ec3-8f1c-464f872b8d35" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseTimeDeposits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019c0d78-e2ee-7da1-aeea-bd28440418e0" xlink:to="loc_us-gaap_InterestExpenseTimeDeposits_019c0d78-e2ee-7ec3-8f1c-464f872b8d35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_InterestExpenseBorrowingsAndOtherObligations_019c0d78-e2ee-7162-b539-13cfa629f60f" xlink:href="bmrc-20251231.xsd#bmrc_InterestExpenseBorrowingsAndOtherObligations"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019c0d78-e2ee-7da1-aeea-bd28440418e0" xlink:to="loc_bmrc_InterestExpenseBorrowingsAndOtherObligations_019c0d78-e2ee-7162-b539-13cfa629f60f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseSubordinatedNotesAndDebentures_019c0d78-e2ee-78eb-8bbc-c2beb5174f73" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseSubordinatedNotesAndDebentures"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019c0d78-e2ee-7da1-aeea-bd28440418e0" xlink:to="loc_us-gaap_InterestExpenseSubordinatedNotesAndDebentures_019c0d78-e2ee-78eb-8bbc-c2beb5174f73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_115e30b6-3665-47fd-ba47-1b7414181acf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_caef37b0-4103-410c-abbb-21f015ab0f14" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_115e30b6-3665-47fd-ba47-1b7414181acf" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_caef37b0-4103-410c-abbb-21f015ab0f14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_fd3ee67d-90ee-491d-bcc9-38696bf0af45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_115e30b6-3665-47fd-ba47-1b7414181acf" xlink:to="loc_us-gaap_NoninterestIncome_fd3ee67d-90ee-491d-bcc9-38696bf0af45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_d376687e-a212-4ff4-91d1-499219795381" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_115e30b6-3665-47fd-ba47-1b7414181acf" xlink:to="loc_us-gaap_NoninterestExpense_d376687e-a212-4ff4-91d1-499219795381" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoninterestExpense_26ee0305-ba0d-483d-9000-497b1c5fff8e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_us-gaap_OtherNoninterestExpense_26ee0305-ba0d-483d-9000-497b1c5fff8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpenseDirectorsFees_0295675b-ad55-4a1c-8815-c5defce2a9d8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_us-gaap_NoninterestExpenseDirectorsFees_0295675b-ad55-4a1c-8815-c5defce2a9d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OtherRealEstateOwnedExpense_b93cdf49-2435-4a4f-9e85-bf5ba0a5eaff" xlink:href="bmrc-20251231.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_bmrc_OtherRealEstateOwnedExpense_b93cdf49-2435-4a4f-9e85-bf5ba0a5eaff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_InformationTechnology_f96e8f67-03d8-44f3-a99f-cb5e9b7214dc" xlink:href="bmrc-20251231.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_bmrc_InformationTechnology_f96e8f67-03d8-44f3-a99f-cb5e9b7214dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_07fbc791-de69-4de7-9e5a-e027ac991819" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_us-gaap_ProfessionalFees_07fbc791-de69-4de7-9e5a-e027ac991819" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_CharitableContributionsExpense_d7cdcb16-1f7a-4375-82e2-54ea7da117ba" xlink:href="bmrc-20251231.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_bmrc_CharitableContributionsExpense_d7cdcb16-1f7a-4375-82e2-54ea7da117ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_be34a465-a9b1-4e80-82e4-5b4b8947ae6c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_be34a465-a9b1-4e80-82e4-5b4b8947ae6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DataProcessing_7f8ecdf5-e60f-4aaa-9b2f-ab442b4843e2" xlink:href="bmrc-20251231.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_bmrc_DataProcessing_7f8ecdf5-e60f-4aaa-9b2f-ab442b4843e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets_22a842af-ccfa-4019-927c-c4e44a263a4d" xlink:href="bmrc-20251231.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets_22a842af-ccfa-4019-927c-c4e44a263a4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_27b53bd6-6120-424d-8feb-52064e2155a7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_27b53bd6-6120-424d-8feb-52064e2155a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_c84875b1-75c3-4698-bb1f-ede8ad2806b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_us-gaap_LaborAndRelatedExpense_c84875b1-75c3-4698-bb1f-ede8ad2806b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OccupancyAndEquipment_a33f2b11-e16b-4ad8-8c72-ea1fc370d034" xlink:href="bmrc-20251231.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_bmrc_OccupancyAndEquipment_a33f2b11-e16b-4ad8-8c72-ea1fc370d034" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DepositNetworkFees_3e382287-d050-47f6-b901-2079906eab79" xlink:href="bmrc-20251231.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_45563159-b922-47a6-b43b-b3edce98e8a1" xlink:to="loc_bmrc_DepositNetworkFees_3e382287-d050-47f6-b901-2079906eab79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_59514025-07b1-4449-ac12-9b47664450f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_a781d5bf-9326-44cc-8b02-8810c089365e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_59514025-07b1-4449-ac12-9b47664450f1" xlink:to="loc_us-gaap_InterestExpenseOperating_a781d5bf-9326-44cc-8b02-8810c089365e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_664f7aba-240a-451d-b767-7776fe6a26e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_59514025-07b1-4449-ac12-9b47664450f1" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_664f7aba-240a-451d-b767-7776fe6a26e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_87a36034-59da-4f2c-9738-f41149755ee3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_0fd3516c-571c-4f34-a7af-7c6beaaa7375" xlink:href="bmrc-20251231.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_87a36034-59da-4f2c-9738-f41149755ee3" xlink:to="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_0fd3516c-571c-4f34-a7af-7c6beaaa7375" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromHeldToMaturityToAvailableForSaleBeforeTax_2e56d3ce-326d-4685-a865-98a42d604391" xlink:href="bmrc-20251231.xsd#bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromHeldToMaturityToAvailableForSaleBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_87a36034-59da-4f2c-9738-f41149755ee3" xlink:to="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromHeldToMaturityToAvailableForSaleBeforeTax_2e56d3ce-326d-4685-a865-98a42d604391" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_1fac52d8-cf5b-402f-901b-998c477bbf30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_87a36034-59da-4f2c-9738-f41149755ee3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_1fac52d8-cf5b-402f-901b-998c477bbf30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_ff9d22c1-78d4-44a9-92fc-dbf3ec767e93" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_87a36034-59da-4f2c-9738-f41149755ee3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_ff9d22c1-78d4-44a9-92fc-dbf3ec767e93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentGainOrLossesFairValueHedge_b186b476-ed3b-441c-8eb1-4bfab112e73e" xlink:href="bmrc-20251231.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_87a36034-59da-4f2c-9738-f41149755ee3" xlink:to="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentGainOrLossesFairValueHedge_b186b476-ed3b-441c-8eb1-4bfab112e73e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019b3779-e46f-728b-9b28-ca58d25facde" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019b3779-e46f-711a-8d3b-2bc7893a1e05" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019b3779-e46f-728b-9b28-ca58d25facde" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019b3779-e46f-711a-8d3b-2bc7893a1e05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_BankOwnedLifeInsuranceIncomeNetExcludingDeathBenefits_019b3779-e46f-7e8e-8b23-87678641e7cd" xlink:href="bmrc-20251231.xsd#bmrc_BankOwnedLifeInsuranceIncomeNetExcludingDeathBenefits"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019b3779-e46f-728b-9b28-ca58d25facde" xlink:to="loc_bmrc_BankOwnedLifeInsuranceIncomeNetExcludingDeathBenefits_019b3779-e46f-7e8e-8b23-87678641e7cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EarningsOnBankOwnedLifeInsuranceDeathBenefits_019b3779-e46f-70cc-b474-ea51c1812e89" xlink:href="bmrc-20251231.xsd#bmrc_EarningsOnBankOwnedLifeInsuranceDeathBenefits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019b3779-e46f-728b-9b28-ca58d25facde" xlink:to="loc_bmrc_EarningsOnBankOwnedLifeInsuranceDeathBenefits_019b3779-e46f-70cc-b474-ea51c1812e89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DividendIncomeFederalHomeLoanBank_019b3779-e46f-7df1-ad9e-badb1fe1be87" xlink:href="bmrc-20251231.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_019b3779-e46f-728b-9b28-ca58d25facde" xlink:to="loc_bmrc_DividendIncomeFederalHomeLoanBank_019b3779-e46f-7df1-ad9e-badb1fe1be87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_019b3779-e46f-7204-b6ba-39572189bdff" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtAndEquitySecuritiesGainLoss"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019b3779-e46f-728b-9b28-ca58d25facde" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_019b3779-e46f-7204-b6ba-39572189bdff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019b3779-e46f-7d07-9253-bbb703e8ef5e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019b3779-e46f-728b-9b28-ca58d25facde" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019b3779-e46f-7d07-9253-bbb703e8ef5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_aa10f5a9-7546-4525-8401-5f23ef9f668e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_71519709-ab28-4878-bc32-aa2b2f7a354c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_aa10f5a9-7546-4525-8401-5f23ef9f668e" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_71519709-ab28-4878-bc32-aa2b2f7a354c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_35f05bb7-67ef-43a7-9e3a-be8eb553374d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_aa10f5a9-7546-4525-8401-5f23ef9f668e" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_35f05bb7-67ef-43a7-9e3a-be8eb553374d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_29f59d67-1541-4602-83ea-3e1784195c42" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_1f99f298-4159-4fed-b7b4-c5509378a3ba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_29f59d67-1541-4602-83ea-3e1784195c42" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_1f99f298-4159-4fed-b7b4-c5509378a3ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_d59cbf0c-a194-4565-b421-1160d4b5204b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_29f59d67-1541-4602-83ea-3e1784195c42" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_d59cbf0c-a194-4565-b421-1160d4b5204b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_37cf0099-154b-4d32-9815-ff42ef9e63cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_31df6a8c-d67c-4962-b54b-568d823ed56b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_37cf0099-154b-4d32-9815-ff42ef9e63cc" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_31df6a8c-d67c-4962-b54b-568d823ed56b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_2634bc96-98ad-463b-b945-21691824f4ee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_37cf0099-154b-4d32-9815-ff42ef9e63cc" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_2634bc96-98ad-463b-b945-21691824f4ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_b5fc8fe4-3756-4e4b-963d-dd58378b15e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_37cf0099-154b-4d32-9815-ff42ef9e63cc" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_b5fc8fe4-3756-4e4b-963d-dd58378b15e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_5123331d-db15-4774-85cd-6ff0cf35a7f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_4d0c178a-9fa4-4690-8c81-df0edb7dd640" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5123331d-db15-4774-85cd-6ff0cf35a7f5" xlink:to="loc_us-gaap_NetIncomeLoss_4d0c178a-9fa4-4690-8c81-df0edb7dd640" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8cbd5f51-c50d-4a8c-a96b-c0e89c649c71" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5123331d-db15-4774-85cd-6ff0cf35a7f5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8cbd5f51-c50d-4a8c-a96b-c0e89c649c71" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="bmrc-20251231.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_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_019b9d1d-1cbf-7cc2-bf27-902d3592b00f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_019b9d1d-1cbf-7cc2-bf27-902d3592b00f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_ProvisionForReversalOfLossesOnUnfundedLoanCommitments_019b9d1d-1cbf-7607-aa13-e0ba5f257af6" xlink:href="bmrc-20251231.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_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_bmrc_ProvisionForReversalOfLossesOnUnfundedLoanCommitments_019b9d1d-1cbf-7607-aa13-e0ba5f257af6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense_019b9d1d-1cbf-74e3-b04f-1e149a3b9bdf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense_019b9d1d-1cbf-74e3-b04f-1e149a3b9bdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IssuanceCostsOffsetToSubordinatedNotes_019c79c1-72ba-714a-849f-84897a63e42b" xlink:href="bmrc-20251231.xsd#bmrc_IssuanceCostsOffsetToSubordinatedNotes"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_bmrc_IssuanceCostsOffsetToSubordinatedNotes_019c79c1-72ba-714a-849f-84897a63e42b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_019b9d1d-1cbf-7c42-a946-4e7cfb447cba" xlink:href="bmrc-20251231.xsd#bmrc_CompensationExpenseCommonStockForDirectorFees"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_019b9d1d-1cbf-7c42-a946-4e7cfb447cba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019b9d1d-1cbf-7113-a6f0-008d2aff1cd9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_ShareBasedCompensation_019b9d1d-1cbf-7113-a6f0-008d2aff1cd9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019b9d1d-1cbf-71f6-9bfe-3013c449d4fb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019b9d1d-1cbf-71f6-9bfe-3013c449d4fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019b9d1d-1cbf-7422-a8c1-ffe644d87e7a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019b9d1d-1cbf-7422-a8c1-ffe644d87e7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AccretionOfDiscountOnAcquiredLoans_019b9d1d-1cbf-717a-9086-3cf91375b2f6" xlink:href="bmrc-20251231.xsd#bmrc_AccretionOfDiscountOnAcquiredLoans"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_bmrc_AccretionOfDiscountOnAcquiredLoans_019b9d1d-1cbf-717a-9086-3cf91375b2f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_019b9d1d-1cbf-7fba-bf87-2e8afac30d14" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_019b9d1d-1cbf-7fba-bf87-2e8afac30d14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDeferredLoanOriginationFeesNet_019b9d1d-1cbf-72da-8a5f-9d7c78713b0b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfDeferredLoanOriginationFeesNet"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_AmortizationOfDeferredLoanOriginationFeesNet_019b9d1d-1cbf-72da-8a5f-9d7c78713b0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_WriteDownOfOtherRealEstateOwned_019b9d1d-1cbf-76bf-b72e-d5c5ed84ebec" xlink:href="bmrc-20251231.xsd#bmrc_WriteDownOfOtherRealEstateOwned"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_bmrc_WriteDownOfOtherRealEstateOwned_019b9d1d-1cbf-76bf-b72e-d5c5ed84ebec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfInvestments_019b9d1d-1cbf-74fa-96e7-b2f194a0f120" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfInvestments"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_GainLossOnSaleOfInvestments_019b9d1d-1cbf-74fa-96e7-b2f194a0f120" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets_019b9d1d-1cbf-7cf2-8c94-93824b40a5b0" xlink:href="bmrc-20251231.xsd#bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_bmrc_DepreciationDepletionAndAmortizationNonproductionExcludingAmortizationOfIntangibleAssets_019b9d1d-1cbf-7cf2-8c94-93824b40a5b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_019bedc2-c503-76f3-8646-afbc6bd7ba89" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_019bedc2-c503-76f3-8646-afbc6bd7ba89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_019bedc2-c503-7195-b2ab-6b7d011e2ca4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BankOwnedLifeInsuranceIncome"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_019bedc2-c503-7195-b2ab-6b7d011e2ca4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EarningsOnBankOwnedLifeInsuranceDeathBenefits_019bedc2-c503-7b38-ad6c-c725cffd3b7b" xlink:href="bmrc-20251231.xsd#bmrc_EarningsOnBankOwnedLifeInsuranceDeathBenefits"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_bmrc_EarningsOnBankOwnedLifeInsuranceDeathBenefits_019bedc2-c503-7b38-ad6c-c725cffd3b7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019bedc2-c503-7cee-806c-4a7c0a5370e0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="18" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019bedc2-c503-7cee-806c-4a7c0a5370e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019bedc2-c503-7fb1-809d-8d6d50466a17" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019b9d1d-1cbf-7132-99d9-dd16c319ea36" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019bedc2-c503-7fb1-809d-8d6d50466a17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b3d6ea19-d4db-4df3-a289-d88e5bbb1898" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c36a1f18-0120-4bea-8cea-578407e99c4b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b3d6ea19-d4db-4df3-a289-d88e5bbb1898" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c36a1f18-0120-4bea-8cea-578407e99c4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_72b7e26c-1529-4a72-bd5b-53746024c56c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b3d6ea19-d4db-4df3-a289-d88e5bbb1898" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_72b7e26c-1529-4a72-bd5b-53746024c56c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a086d6e1-f423-4d41-b411-2c8c959387d8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b3d6ea19-d4db-4df3-a289-d88e5bbb1898" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a086d6e1-f423-4d41-b411-2c8c959387d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_019b9d1d-cee6-761d-946f-de4843caca6e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_019b9d1d-cee6-761d-946f-de4843caca6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019b9d1d-cee6-7d21-bf5e-513466e50752" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019b9d1d-cee6-7d21-bf5e-513466e50752" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_ProceedsFromSaleOfDebtSecuritiesAvailableForSaleExcludingTransfersFromHeldToMaturity_019b9d1d-cee6-7642-920a-8b13f31aa245" xlink:href="bmrc-20251231.xsd#bmrc_ProceedsFromSaleOfDebtSecuritiesAvailableForSaleExcludingTransfersFromHeldToMaturity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_bmrc_ProceedsFromSaleOfDebtSecuritiesAvailableForSaleExcludingTransfersFromHeldToMaturity_019b9d1d-cee6-7642-920a-8b13f31aa245" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_ProceedsFromSaleOfAvailableForSaleSecuritiesTransferredFromHeldToMaturity_019b9d1d-cee6-7293-ac99-191d4351e7fd" xlink:href="bmrc-20251231.xsd#bmrc_ProceedsFromSaleOfAvailableForSaleSecuritiesTransferredFromHeldToMaturity"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_bmrc_ProceedsFromSaleOfAvailableForSaleSecuritiesTransferredFromHeldToMaturity_019b9d1d-cee6-7293-ac99-191d4351e7fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_019b9d1d-cee6-7d7e-804b-f097bee289c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_019b9d1d-cee6-7d7e-804b-f097bee289c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_019b9d1d-cee6-7855-85ef-023bed85dc6f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_019b9d1d-cee6-7855-85ef-023bed85dc6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_ProceedsFromSaleOfRestrictedCommonStock_019b9d1d-cee6-74d4-9c21-d1d8cd512a71" xlink:href="bmrc-20251231.xsd#bmrc_ProceedsFromSaleOfRestrictedCommonStock"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_bmrc_ProceedsFromSaleOfRestrictedCommonStock_019b9d1d-cee6-74d4-9c21-d1d8cd512a71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncreaseDecreaseInLoansReceivableNet_019b9d1d-cee6-73ff-afd8-25047f13c646" xlink:href="bmrc-20251231.xsd#bmrc_IncreaseDecreaseInLoansReceivableNet"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_bmrc_IncreaseDecreaseInLoansReceivableNet_019b9d1d-cee6-73ff-afd8-25047f13c646" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireLoansReceivable_019b9d1d-cee6-79b0-aab7-2117b17179fa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireLoansReceivable"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_PaymentsToAcquireLoansReceivable_019b9d1d-cee6-79b0-aab7-2117b17179fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansReceivable_019b9d1d-cee6-7fbe-a51d-00f312a92f4a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfLoansReceivable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansReceivable_019b9d1d-cee6-7fbe-a51d-00f312a92f4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireLifeInsurancePolicies_019b9d1d-cee6-7e9c-af0d-ce394afe7267" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireLifeInsurancePolicies"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_PaymentsToAcquireLifeInsurancePolicies_019b9d1d-cee6-7e9c-af0d-ce394afe7267" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLifeInsurancePolicies_019b9d1d-cee6-70ee-9be8-4c092c0180b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromLifeInsurancePolicies"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_ProceedsFromLifeInsurancePolicies_019b9d1d-cee6-70ee-9be8-4c092c0180b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019b9d1d-cee6-7634-8df1-02930e9d1621" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019b9d1d-cee6-7634-8df1-02930e9d1621" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_019b9d1d-cee6-794a-8d0e-9e9556eb1857" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfOtherRealEstate"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_019b9d1d-cee6-794a-8d0e-9e9556eb1857" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireRealEstateHeldForInvestment_019b9d1d-cee6-7573-a029-c2c400828b10" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireRealEstateHeldForInvestment"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019b9d1d-cee6-79f4-b223-05574a43d6db" xlink:to="loc_us-gaap_PaymentsToAcquireRealEstateHeldForInvestment_019b9d1d-cee6-7573-a029-c2c400828b10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0a5251ba-7a78-4f1c-82d8-ab86860c4e49" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_68f2a051-253a-41f7-abc3-ef90a0deda5f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0a5251ba-7a78-4f1c-82d8-ab86860c4e49" xlink:to="loc_us-gaap_NetIncomeLoss_68f2a051-253a-41f7-abc3-ef90a0deda5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_ccfb2439-bef8-425b-b803-c52b951bd6a7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0a5251ba-7a78-4f1c-82d8-ab86860c4e49" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_ccfb2439-bef8-425b-b803-c52b951bd6a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019b3a03-c10a-754b-aba1-e2a0c1cd5fcc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeposits_019b3a03-c10a-7d47-b9d3-154756769316" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019b3a03-c10a-754b-aba1-e2a0c1cd5fcc" xlink:to="loc_us-gaap_IncreaseDecreaseInDeposits_019b3a03-c10a-7d47-b9d3-154756769316" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_019b3a03-c10a-7bb0-8c62-76b3fa2824a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019b3a03-c10a-754b-aba1-e2a0c1cd5fcc" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_019b3a03-c10a-7bb0-8c62-76b3fa2824a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_019b3a03-c10a-7130-bf5e-583835784aa1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeasePrincipalPayments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019b3a03-c10a-754b-aba1-e2a0c1cd5fcc" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_019b3a03-c10a-7130-bf5e-583835784aa1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt_019b3a03-c10a-7bd0-b860-4b4b8d2fba6d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019b3a03-c10a-754b-aba1-e2a0c1cd5fcc" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt_019b3a03-c10a-7bd0-b860-4b4b8d2fba6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_019b3a03-c10a-78e2-a742-d74fe3b9ae9c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019b3a03-c10a-754b-aba1-e2a0c1cd5fcc" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_019b3a03-c10a-78e2-a742-d74fe3b9ae9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019b3a03-c10a-761a-8ac6-989c6281f6af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019b3a03-c10a-754b-aba1-e2a0c1cd5fcc" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019b3a03-c10a-761a-8ac6-989c6281f6af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_019b3a03-c10a-7a1d-a74b-1059281b4f74" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019b3a03-c10a-754b-aba1-e2a0c1cd5fcc" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_019b3a03-c10a-7a1d-a74b-1059281b4f74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfEquity_019b3a03-c10a-76c6-b4bc-2e65d27d4a8a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019b3a03-c10a-754b-aba1-e2a0c1cd5fcc" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfEquity_019b3a03-c10a-76c6-b4bc-2e65d27d4a8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_019b3a03-c10a-759b-9057-31c57fc7786a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019b3a03-c10a-754b-aba1-e2a0c1cd5fcc" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_019b3a03-c10a-759b-9057-31c57fc7786a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesFutureAmortizationExpenseofCoreDepositsDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_839ca1b4-dca8-4714-bd09-f6d2013de0bc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_98bd95e4-dc17-4d4e-88e3-43f789b0f4d0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_839ca1b4-dca8-4714-bd09-f6d2013de0bc" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_98bd95e4-dc17-4d4e-88e3-43f789b0f4d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_0097fe14-af46-45d7-b7ec-872c176608e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_839ca1b4-dca8-4714-bd09-f6d2013de0bc" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_0097fe14-af46-45d7-b7ec-872c176608e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_beb23bed-5f45-469a-8d6a-f722ef23a155" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_839ca1b4-dca8-4714-bd09-f6d2013de0bc" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_beb23bed-5f45-469a-8d6a-f722ef23a155" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_b7f56e2a-8126-48e0-99fa-3417a5ce5240" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_839ca1b4-dca8-4714-bd09-f6d2013de0bc" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_b7f56e2a-8126-48e0-99fa-3417a5ce5240" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_019cd670-5bdf-78a7-aa74-a21d10882cf6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_839ca1b4-dca8-4714-bd09-f6d2013de0bc" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_019cd670-5bdf-78a7-aa74-a21d10882cf6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_62cf4c86-a8c1-42cc-ba99-b5e066f624ed" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_839ca1b4-dca8-4714-bd09-f6d2013de0bc" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_62cf4c86-a8c1-42cc-ba99-b5e066f624ed" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/SummaryofSignificantAccountingPoliciesEarningsPerShareDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_ac2e32e1-fdfe-4144-a2a5-7df1219c2b26" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_da701caa-8e0c-4aec-95f1-9b343b43844e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_ac2e32e1-fdfe-4144-a2a5-7df1219c2b26" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_da701caa-8e0c-4aec-95f1-9b343b43844e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_e3a9daec-406e-479d-954f-3dfc828939e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_ac2e32e1-fdfe-4144-a2a5-7df1219c2b26" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_e3a9daec-406e-479d-954f-3dfc828939e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends_e5f736b4-5a6e-4c64-9e2a-442cb67d4ca0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_ac2e32e1-fdfe-4144-a2a5-7df1219c2b26" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends_e5f736b4-5a6e-4c64-9e2a-442cb67d4ca0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofAvailableforSaleSecuritiesAmortizedCostandFairValueDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_2ca8c00d-f5e9-478a-b6d7-9b0be4e276be" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_63445633-90ee-473a-bc99-298370b9fb2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_2ca8c00d-f5e9-478a-b6d7-9b0be4e276be" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_63445633-90ee-473a-bc99-298370b9fb2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_5008d905-e92e-4b9a-9f66-a0915bda6fd8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_2ca8c00d-f5e9-478a-b6d7-9b0be4e276be" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_5008d905-e92e-4b9a-9f66-a0915bda6fd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_b4eeadd9-c1e4-4ec9-9765-daed325a4169" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_2ca8c00d-f5e9-478a-b6d7-9b0be4e276be" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_b4eeadd9-c1e4-4ec9-9765-daed325a4169" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_436d4f0c-278b-42aa-b54b-054388cf34b3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_2ca8c00d-f5e9-478a-b6d7-9b0be4e276be" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_436d4f0c-278b-42aa-b54b-054388cf34b3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofMaturitiesDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_7eea46c5-df3d-46c4-8ec9-ea9b4feaa92c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_3cccc2f5-36bc-4421-b9d1-5f0007888acf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_7eea46c5-df3d-46c4-8ec9-ea9b4feaa92c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_3cccc2f5-36bc-4421-b9d1-5f0007888acf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_279df1d5-5128-479f-aa89-5cbdc77c4631" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_7eea46c5-df3d-46c4-8ec9-ea9b4feaa92c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_279df1d5-5128-479f-aa89-5cbdc77c4631" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_448fd657-77c6-46da-90a1-40a0bd9d5124" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_7eea46c5-df3d-46c4-8ec9-ea9b4feaa92c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_448fd657-77c6-46da-90a1-40a0bd9d5124" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_8d1dd461-7816-453d-bfd3-59afc198905e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_7eea46c5-df3d-46c4-8ec9-ea9b4feaa92c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_8d1dd461-7816-453d-bfd3-59afc198905e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_9df73b81-adc2-4ebf-aeb7-8e46d5ea22d4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_78fe73e2-e352-4e0d-8415-eeb8a2589bf4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9df73b81-adc2-4ebf-aeb7-8e46d5ea22d4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_78fe73e2-e352-4e0d-8415-eeb8a2589bf4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_8b70f26b-ff71-439b-8966-3dc5c72fb627" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9df73b81-adc2-4ebf-aeb7-8e46d5ea22d4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_8b70f26b-ff71-439b-8966-3dc5c72fb627" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_ca830e38-0a1a-414c-9fae-6caeee5e2878" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9df73b81-adc2-4ebf-aeb7-8e46d5ea22d4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_ca830e38-0a1a-414c-9fae-6caeee5e2878" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_92800259-f667-47f6-9807-9ea462bf3fa9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9df73b81-adc2-4ebf-aeb7-8e46d5ea22d4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_92800259-f667-47f6-9807-9ea462bf3fa9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_0fb24b60-4704-4d72-8557-317ac6bf4d66" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne_2f5d4d36-abf9-47f2-bce3-71c45a5a5150" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0fb24b60-4704-4d72-8557-317ac6bf4d66" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne_2f5d4d36-abf9-47f2-bce3-71c45a5a5150" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive_c8b6f984-8587-433d-845e-c38f42da7cab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0fb24b60-4704-4d72-8557-317ac6bf4d66" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive_c8b6f984-8587-433d-845e-c38f42da7cab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10_e0cdbae6-83db-45d2-9369-875a9d8634ec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0fb24b60-4704-4d72-8557-317ac6bf4d66" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10_e0cdbae6-83db-45d2-9369-875a9d8634ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10_403cae07-bbf2-422e-983b-1845b943e47e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0fb24b60-4704-4d72-8557-317ac6bf4d66" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10_403cae07-bbf2-422e-983b-1845b943e47e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_e7170281-9774-439a-8079-9ba37b4e8bfd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_5a92aba9-77ef-4f2f-9103-c0d8876357fb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_e7170281-9774-439a-8079-9ba37b4e8bfd" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_5a92aba9-77ef-4f2f-9103-c0d8876357fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_baee45ea-eac3-499b-943f-deb4f5970fb9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_e7170281-9774-439a-8079-9ba37b4e8bfd" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_baee45ea-eac3-499b-943f-deb4f5970fb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_e6b5f4f5-18b4-4df1-b0f1-8047545c7055" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_e7170281-9774-439a-8079-9ba37b4e8bfd" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_e6b5f4f5-18b4-4df1-b0f1-8047545c7055" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_9c2e39c9-a6b7-4ce6-b01c-6af5dad078de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_e7170281-9774-439a-8079-9ba37b4e8bfd" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_9c2e39c9-a6b7-4ce6-b01c-6af5dad078de" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofUnrealizedLossPositionsDetails" xlink:type="simple" xlink:href="bmrc-20251231.xsd#InvestmentSecuritiesScheduleofUnrealizedLossPositionsDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesScheduleofUnrealizedLossPositionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_5c5b6cdc-0b30-44ac-8e72-013e7f722c33" xlink:href="bmrc-20251231.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_04c7256e-2f11-4323-b3eb-633d80aa63d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5c5b6cdc-0b30-44ac-8e72-013e7f722c33" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_04c7256e-2f11-4323-b3eb-633d80aa63d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_7b37d404-c652-46db-b439-a1f70ad43120" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_5c5b6cdc-0b30-44ac-8e72-013e7f722c33" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_7b37d404-c652-46db-b439-a1f70ad43120" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_efdead02-4930-46e9-a20a-0babd91d2661" xlink:href="bmrc-20251231.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_e34147a2-3316-4ebb-9c4b-37d02bc3630d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_efdead02-4930-46e9-a20a-0babd91d2661" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_e34147a2-3316-4ebb-9c4b-37d02bc3630d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_c9c3ab76-01bb-44fb-8eb1-256557bfb1ee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_efdead02-4930-46e9-a20a-0babd91d2661" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_c9c3ab76-01bb-44fb-8eb1-256557bfb1ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_05e1d493-6008-4d65-9965-0f732cf795f1" xlink:href="bmrc-20251231.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_2c9782a0-dff9-432e-aae6-2d42f4ca1f14" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_05e1d493-6008-4d65-9965-0f732cf795f1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_2c9782a0-dff9-432e-aae6-2d42f4ca1f14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_bcc0df20-fc61-42d4-9e94-dff2dbd939c1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_05e1d493-6008-4d65-9965-0f732cf795f1" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_bcc0df20-fc61-42d4-9e94-dff2dbd939c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_71dbbc4c-f830-423c-b037-c76a5d5aa7a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_a9cd3a71-0512-41cf-bf20-322d6a5bf296" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_71dbbc4c-f830-423c-b037-c76a5d5aa7a6" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_a9cd3a71-0512-41cf-bf20-322d6a5bf296" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_2abd8e49-1b02-4987-b16f-dd5732097e5c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_71dbbc4c-f830-423c-b037-c76a5d5aa7a6" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_2abd8e49-1b02-4987-b16f-dd5732097e5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_485cf7e6-faa8-4fcf-a7f9-ae0b5ff796f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_1976d2a4-3590-4f57-a237-e84fa6fa45e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_485cf7e6-faa8-4fcf-a7f9-ae0b5ff796f2" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_1976d2a4-3590-4f57-a237-e84fa6fa45e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_312d9546-3b36-48c1-b94f-beafb7c99a71" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_485cf7e6-faa8-4fcf-a7f9-ae0b5ff796f2" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_312d9546-3b36-48c1-b94f-beafb7c99a71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_183b78db-fc57-49bd-821b-4e5c0bcef0d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_63c8f609-2a05-4171-a261-4ea5e839d585" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_183b78db-fc57-49bd-821b-4e5c0bcef0d7" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_63c8f609-2a05-4171-a261-4ea5e839d585" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_4c1e943f-47f5-4d85-8a1a-69ae7f25556b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_183b78db-fc57-49bd-821b-4e5c0bcef0d7" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_4c1e943f-47f5-4d85-8a1a-69ae7f25556b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_cdcabe10-bae2-44a0-9ad4-a5e47940df0b" xlink:href="bmrc-20251231.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_8a69daf7-4988-4cec-986c-efd76d2302aa" xlink:href="bmrc-20251231.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_cdcabe10-bae2-44a0-9ad4-a5e47940df0b" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_8a69daf7-4988-4cec-986c-efd76d2302aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_278cc8f7-d206-4351-9051-981f0ba9d61c" xlink:href="bmrc-20251231.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_cdcabe10-bae2-44a0-9ad4-a5e47940df0b" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_278cc8f7-d206-4351-9051-981f0ba9d61c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_d24b22a9-c641-4d0f-809c-40ce4b65173a" xlink:href="bmrc-20251231.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_f35c697d-48e9-4200-896e-9970a8ea6cae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d24b22a9-c641-4d0f-809c-40ce4b65173a" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_f35c697d-48e9-4200-896e-9970a8ea6cae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_ae79c655-5642-4ef1-92ef-94eab578cd51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d24b22a9-c641-4d0f-809c-40ce4b65173a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_ae79c655-5642-4ef1-92ef-94eab578cd51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_318b06db-0f85-445f-949f-a7b8755bf532" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_52421087-2a38-4084-bf2d-0f9073614396" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_318b06db-0f85-445f-949f-a7b8755bf532" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_52421087-2a38-4084-bf2d-0f9073614396" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_4e91230a-0583-4cfb-9041-fe59174a8815" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_318b06db-0f85-445f-949f-a7b8755bf532" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_4e91230a-0583-4cfb-9041-fe59174a8815" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_0a05c081-d978-4a31-9011-29e5b4a1c670" xlink:href="bmrc-20251231.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_57237e62-f032-431b-b08b-5805dd7a585c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0a05c081-d978-4a31-9011-29e5b4a1c670" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_57237e62-f032-431b-b08b-5805dd7a585c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_13bd7abe-21c6-4089-8ac9-13fe6b3089eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0a05c081-d978-4a31-9011-29e5b4a1c670" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_13bd7abe-21c6-4089-8ac9-13fe6b3089eb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofLoansbyRiskGradeandOriginationYearDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_a17f238b-3aac-4397-97eb-5efa44e05537" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_9a8e2ed8-fbf9-46e2-94e1-5edcbddf6668" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a17f238b-3aac-4397-97eb-5efa44e05537" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_9a8e2ed8-fbf9-46e2-94e1-5edcbddf6668" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_48d87307-98e7-4ed3-9598-ff30494a1c94" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a17f238b-3aac-4397-97eb-5efa44e05537" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_48d87307-98e7-4ed3-9598-ff30494a1c94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_4bac9f58-7f81-436e-8c7c-88bc735bea0a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a17f238b-3aac-4397-97eb-5efa44e05537" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_4bac9f58-7f81-436e-8c7c-88bc735bea0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_789b4b5f-57cb-4b98-8050-d485311a1e80" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a17f238b-3aac-4397-97eb-5efa44e05537" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_789b4b5f-57cb-4b98-8050-d485311a1e80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_43406d59-9e65-41f9-8b71-e00809912e73" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a17f238b-3aac-4397-97eb-5efa44e05537" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_43406d59-9e65-41f9-8b71-e00809912e73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_25ac2bfe-d821-418f-9113-9dd63601a509" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a17f238b-3aac-4397-97eb-5efa44e05537" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_25ac2bfe-d821-418f-9113-9dd63601a509" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_368bf56d-0c4f-4688-a547-5c684abc6b83" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a17f238b-3aac-4397-97eb-5efa44e05537" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_368bf56d-0c4f-4688-a547-5c684abc6b83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_28659502-d931-47c9-a772-3cd2d7c861e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_f46f6270-f650-4375-9bc0-05263ac8fc7a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_28659502-d931-47c9-a772-3cd2d7c861e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_f46f6270-f650-4375-9bc0-05263ac8fc7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_f64fbcce-149e-43ae-b2ff-55fb3cbeaa06" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_28659502-d931-47c9-a772-3cd2d7c861e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_f64fbcce-149e-43ae-b2ff-55fb3cbeaa06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_a4443980-d293-4ff8-8e14-de6ddfe5b470" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_28659502-d931-47c9-a772-3cd2d7c861e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_a4443980-d293-4ff8-8e14-de6ddfe5b470" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_74321d3b-50ea-48e6-b2c9-21ad15d9f84d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_28659502-d931-47c9-a772-3cd2d7c861e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_74321d3b-50ea-48e6-b2c9-21ad15d9f84d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_c7a7fb3c-21e5-4392-91c5-6d3b06cb9b30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_28659502-d931-47c9-a772-3cd2d7c861e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_c7a7fb3c-21e5-4392-91c5-6d3b06cb9b30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_8abae5cd-8f31-44e2-bf38-e5c0ae371959" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_28659502-d931-47c9-a772-3cd2d7c861e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_8abae5cd-8f31-44e2-bf38-e5c0ae371959" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_ac7b875e-a8d3-4548-8840-b0209fb98509" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_28659502-d931-47c9-a772-3cd2d7c861e5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_ac7b875e-a8d3-4548-8840-b0209fb98509" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BankPremisesandEquipmentScheduleofBankPremisesandEquipmentDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_de64730f-a26f-4a49-ad1b-7d4cb901ae5e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_5890db96-9618-4fbb-a0c2-f17c287074a0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_de64730f-a26f-4a49-ad1b-7d4cb901ae5e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_5890db96-9618-4fbb-a0c2-f17c287074a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_f9e3e1c1-f027-40f3-b182-a8f0c60f26b5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_de64730f-a26f-4a49-ad1b-7d4cb901ae5e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_f9e3e1c1-f027-40f3-b182-a8f0c60f26b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_28e9640a-45d8-46b2-9292-f64c2fe69880" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_6b25b3ab-9115-4b57-8727-d125891474c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_28e9640a-45d8-46b2-9292-f64c2fe69880" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_6b25b3ab-9115-4b57-8727-d125891474c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_9ff25d24-b5d7-4fb5-abee-bceaa0de9a1d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_28e9640a-45d8-46b2-9292-f64c2fe69880" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_9ff25d24-b5d7-4fb5-abee-bceaa0de9a1d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DepositsScheduleofStratificationofTimeDepositsDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_67568b1c-86af-4cbc-b813-7f3add233118" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TimeDepositsLessThanOrEqualTo250000_5536e4e3-de4b-4bcd-8521-26024edb426b" xlink:href="bmrc-20251231.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_67568b1c-86af-4cbc-b813-7f3add233118" xlink:to="loc_bmrc_TimeDepositsLessThanOrEqualTo250000_5536e4e3-de4b-4bcd-8521-26024edb426b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TimeDeposits250000OrMore_872b9498-557f-480e-88b4-1adbc31e9c48" xlink:href="bmrc-20251231.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_67568b1c-86af-4cbc-b813-7f3add233118" xlink:to="loc_bmrc_TimeDeposits250000OrMore_872b9498-557f-480e-88b4-1adbc31e9c48" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DepositsScheduleofTimeDepositMaturitiesDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_1766ae07-5bad-4691-b2a1-541e27e09c0b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearOne_95b0f858-314a-4aca-8e0a-7b881f7d3b31" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1766ae07-5bad-4691-b2a1-541e27e09c0b" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearOne_95b0f858-314a-4aca-8e0a-7b881f7d3b31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearTwo_3d38f2be-8e62-4705-98dc-b41144ca2223" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1766ae07-5bad-4691-b2a1-541e27e09c0b" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearTwo_3d38f2be-8e62-4705-98dc-b41144ca2223" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearThree_5a05dbbd-a9ed-4b5e-a5e0-66a072ff6f30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1766ae07-5bad-4691-b2a1-541e27e09c0b" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearThree_5a05dbbd-a9ed-4b5e-a5e0-66a072ff6f30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearFour_3d4af66c-69af-4164-bcd7-9b0d724838cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1766ae07-5bad-4691-b2a1-541e27e09c0b" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearFour_3d4af66c-69af-4164-bcd7-9b0d724838cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearFive_ae238529-7415-4b13-b45e-c2f686cd044a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1766ae07-5bad-4691-b2a1-541e27e09c0b" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearFive_ae238529-7415-4b13-b45e-c2f686cd044a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesAfterYearFive_a5cbd291-0b56-4634-bd25-028e1c79264f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_1766ae07-5bad-4691-b2a1-541e27e09c0b" xlink:to="loc_us-gaap_TimeDepositMaturitiesAfterYearFive_a5cbd291-0b56-4634-bd25-028e1c79264f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofPretaxIncomefromContinuingOperationsDetails" xlink:type="simple" xlink:href="bmrc-20251231.xsd#IncomeTaxesScheduleofPretaxIncomefromContinuingOperationsDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/IncomeTaxesScheduleofPretaxIncomefromContinuingOperationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c30c5-e3df-7a6b-b271-b24cd7b748e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_019c30c5-e3df-71cc-b17a-af1a11c4e47f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c30c5-e3df-7a6b-b271-b24cd7b748e3" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_019c30c5-e3df-71cc-b17a-af1a11c4e47f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_019c30c5-e3df-76e5-9121-a5b7623198e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019c30c5-e3df-7a6b-b271-b24cd7b748e3" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_019c30c5-e3df-76e5-9121-a5b7623198e3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxProvisionDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_CurrentIncomeTaxExpenseBenefit_330be1e0-e7fe-49cc-8197-f9b21075f91f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_f9ecb1e3-e7a1-4b2f-a8a9-c237f7d3309c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_330be1e0-e7fe-49cc-8197-f9b21075f91f" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_f9ecb1e3-e7a1-4b2f-a8a9-c237f7d3309c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_70db1bf0-219a-4130-93a4-169e353aaccc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_330be1e0-e7fe-49cc-8197-f9b21075f91f" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_70db1bf0-219a-4130-93a4-169e353aaccc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_0ffa8fa1-73e3-4e58-88a5-641641ac9903" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_e52d6654-75b0-48f2-9c3c-6b3138c27664" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0ffa8fa1-73e3-4e58-88a5-641641ac9903" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_e52d6654-75b0-48f2-9c3c-6b3138c27664" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_e77dbcca-7e8f-4f17-800f-2599d817c0e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0ffa8fa1-73e3-4e58-88a5-641641ac9903" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_e77dbcca-7e8f-4f17-800f-2599d817c0e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_019c30c7-83b6-7c94-85ca-3b287ac171b2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_0ffa8fa1-73e3-4e58-88a5-641641ac9903" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_019c30c7-83b6-7c94-85ca-3b287ac171b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_07705244-6709-4a91-ab08-e1b0e5fcebb4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_09a405d0-54d9-4501-bbdb-d7bb365e3c9a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_07705244-6709-4a91-ab08-e1b0e5fcebb4" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_09a405d0-54d9-4501-bbdb-d7bb365e3c9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_706b4c2e-26ca-4eb4-8741-c99e967cfbd1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_07705244-6709-4a91-ab08-e1b0e5fcebb4" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_706b4c2e-26ca-4eb4-8741-c99e967cfbd1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofEffectiveIncomeTaxReconciliationDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_IncomeTaxExpenseBenefit_019b4473-e931-7750-9854-fca44b56a6f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_019b4473-e931-74f2-8647-3bf6658e0939" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019b4473-e931-7750-9854-fca44b56a6f5" xlink:to="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_019b4473-e931-74f2-8647-3bf6658e0939" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_019b4473-e931-7aca-8e7e-76757c83cc84" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019b4473-e931-7750-9854-fca44b56a6f5" xlink:to="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_019b4473-e931-7aca-8e7e-76757c83cc84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsInvestment_019b4473-e931-7a76-81e5-d3544a053af0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsInvestment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019b4473-e931-7750-9854-fca44b56a6f5" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsInvestment_019b4473-e931-7a76-81e5-d3544a053af0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsOther_019b4473-e931-79b7-8be4-2f6ed42e9c24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsOther"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019b4473-e931-7750-9854-fca44b56a6f5" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsOther_019b4473-e931-79b7-8be4-2f6ed42e9c24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxExemptIncome_019b4473-e931-71ed-a62f-6a07db8663c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationTaxExemptIncome"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019b4473-e931-7750-9854-fca44b56a6f5" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxExemptIncome_019b4473-e931-71ed-a62f-6a07db8663c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EffectiveIncomeTaxRateReconciliationOtherTaxExemptIncomeAmount_019b4473-e931-7243-aa65-7915fb1910dd" xlink:href="bmrc-20251231.xsd#bmrc_EffectiveIncomeTaxRateReconciliationOtherTaxExemptIncomeAmount"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019b4473-e931-7750-9854-fca44b56a6f5" xlink:to="loc_bmrc_EffectiveIncomeTaxRateReconciliationOtherTaxExemptIncomeAmount_019b4473-e931-7243-aa65-7915fb1910dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_019b4473-e931-7160-b9ff-f4557de12f41" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019b4473-e931-7750-9854-fca44b56a6f5" xlink:to="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_019b4473-e931-7160-b9ff-f4557de12f41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_fd17cccb-1d56-47c7-ab18-7ce8d14d167c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_d182fc4f-ab50-49fb-a5e9-9a7d8a29c69f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_fd17cccb-1d56-47c7-ab18-7ce8d14d167c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_d182fc4f-ab50-49fb-a5e9-9a7d8a29c69f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_3e9e85ab-eb97-4962-b90e-0dc9b1fab1f8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_fd17cccb-1d56-47c7-ab18-7ce8d14d167c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_3e9e85ab-eb97-4962-b90e-0dc9b1fab1f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_e6dbb7d6-31ba-4f3c-a31a-ccb2e024cc18" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_fd17cccb-1d56-47c7-ab18-7ce8d14d167c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_e6dbb7d6-31ba-4f3c-a31a-ccb2e024cc18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther_c3caee13-211d-4841-b0f4-e1c0fba521a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_fd17cccb-1d56-47c7-ab18-7ce8d14d167c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther_c3caee13-211d-4841-b0f4-e1c0fba521a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_98f3a596-aec4-4b81-a166-2c8bf66d51a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_fd17cccb-1d56-47c7-ab18-7ce8d14d167c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_98f3a596-aec4-4b81-a166-2c8bf66d51a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EffectiveIncomeTaxRateReconciliationOtherTaxExemptIncomePercent_e38937cd-0180-44b7-8cc6-56300b0e3889" xlink:href="bmrc-20251231.xsd#bmrc_EffectiveIncomeTaxRateReconciliationOtherTaxExemptIncomePercent"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_fd17cccb-1d56-47c7-ab18-7ce8d14d167c" xlink:to="loc_bmrc_EffectiveIncomeTaxRateReconciliationOtherTaxExemptIncomePercent_e38937cd-0180-44b7-8cc6-56300b0e3889" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_fc7667ac-b0c9-40a1-b851-244353d67840" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_fd17cccb-1d56-47c7-ab18-7ce8d14d167c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_fc7667ac-b0c9-40a1-b851-244353d67840" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofDeferredTaxAssetandLiabilityDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DeferredTaxAssetsUnrealizedLossesonAvailableforSaleSecuritiesNet_096534df-0b62-46d2-98fb-5f5c33fe0fa0" xlink:href="bmrc-20251231.xsd#bmrc_DeferredTaxAssetsUnrealizedLossesonAvailableforSaleSecuritiesNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_bmrc_DeferredTaxAssetsUnrealizedLossesonAvailableforSaleSecuritiesNet_096534df-0b62-46d2-98fb-5f5c33fe0fa0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_82a2563f-48c2-44a8-ae52-d149dd91fb41" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_82a2563f-48c2-44a8-ae52-d149dd91fb41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_6468535e-a4ff-4165-8fad-2e9f5ccd03b5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_6468535e-a4ff-4165-8fad-2e9f5ccd03b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DeferredTaxAssetsOperatingLeaseAndFinanceLeaseLiability_a7e38531-9ef8-4d6f-bab1-b71c01a447b6" xlink:href="bmrc-20251231.xsd#bmrc_DeferredTaxAssetsOperatingLeaseAndFinanceLeaseLiability"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_bmrc_DeferredTaxAssetsOperatingLeaseAndFinanceLeaseLiability_a7e38531-9ef8-4d6f-bab1-b71c01a447b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_738bb00a-c777-44ad-86cb-649475eef842" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_738bb00a-c777-44ad-86cb-649475eef842" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_711f26c1-2cf4-44c0-8684-1678cf70fe6a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_711f26c1-2cf4-44c0-8684-1678cf70fe6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DeferredTaxAssetsInterestReceivedOnNonaccrualLoans_0f76f2ed-2112-45b1-966a-85e1ec364dcd" xlink:href="bmrc-20251231.xsd#bmrc_DeferredTaxAssetsInterestReceivedOnNonaccrualLoans"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_bmrc_DeferredTaxAssetsInterestReceivedOnNonaccrualLoans_0f76f2ed-2112-45b1-966a-85e1ec364dcd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_57d3f095-8e81-420a-82ee-70262bf8f9c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_57d3f095-8e81-420a-82ee-70262bf8f9c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_2c936d9a-ea4b-419f-b073-21068e446c81" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwards"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_2c936d9a-ea4b-419f-b073-21068e446c81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsCharitableContributionCarryforwards_214febaf-6714-422e-8190-9edef35d4e7f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsCharitableContributionCarryforwards"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_us-gaap_DeferredTaxAssetsCharitableContributionCarryforwards_214febaf-6714-422e-8190-9edef35d4e7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DeferredTaxAssetFairValueAdjustmentLoansReceivable_db2c8a93-e81a-4ce0-a803-0a2c6ed77c5e" xlink:href="bmrc-20251231.xsd#bmrc_DeferredTaxAssetFairValueAdjustmentLoansReceivable"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_bmrc_DeferredTaxAssetFairValueAdjustmentLoansReceivable_db2c8a93-e81a-4ce0-a803-0a2c6ed77c5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_019c2c3e-8580-7474-8328-4866ced0e000" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_019c2c3e-8580-7474-8328-4866ced0e000" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsStateTaxes_019c2c3e-8580-7f15-864c-644082b7eb68" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsStateTaxes"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_us-gaap_DeferredTaxAssetsStateTaxes_019c2c3e-8580-7f15-864c-644082b7eb68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_019c2c3e-8580-7db9-936e-4b6ef9abb2ee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_d7d04294-9749-441a-aca6-e84656c95ff0" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_019c2c3e-8580-7db9-936e-4b6ef9abb2ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_a1474939-4318-4875-9311-4a7166a08db6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_601af798-301b-48e8-9afd-f8b25154b6c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a1474939-4318-4875-9311-4a7166a08db6" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_601af798-301b-48e8-9afd-f8b25154b6c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DeferredTaxLiabilitiesDeferredLoanOriginationCosts_b474fcd7-00c8-4199-9e1e-8b3337d55ec3" xlink:href="bmrc-20251231.xsd#bmrc_DeferredTaxLiabilitiesDeferredLoanOriginationCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_a1474939-4318-4875-9311-4a7166a08db6" xlink:to="loc_bmrc_DeferredTaxLiabilitiesDeferredLoanOriginationCosts_b474fcd7-00c8-4199-9e1e-8b3337d55ec3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OperatingLeaseAndFinanceLeaseRightOfUseAsset_cbc4ee4e-712e-4964-9bdb-de16aa56d641" xlink:href="bmrc-20251231.xsd#bmrc_OperatingLeaseAndFinanceLeaseRightOfUseAsset"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_a1474939-4318-4875-9311-4a7166a08db6" xlink:to="loc_bmrc_OperatingLeaseAndFinanceLeaseRightOfUseAsset_cbc4ee4e-712e-4964-9bdb-de16aa56d641" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_111a51a8-01c5-4dfb-87b9-bbc250c9d3d6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_a1474939-4318-4875-9311-4a7166a08db6" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_111a51a8-01c5-4dfb-87b9-bbc250c9d3d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DeferredTaxLiabilitiesPurchaseAccountingAdjustments_b91a4fba-9dd3-44bc-9d38-2ce07a1bc46e" xlink:href="bmrc-20251231.xsd#bmrc_DeferredTaxLiabilitiesPurchaseAccountingAdjustments"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_a1474939-4318-4875-9311-4a7166a08db6" xlink:to="loc_bmrc_DeferredTaxLiabilitiesPurchaseAccountingAdjustments_b91a4fba-9dd3-44bc-9d38-2ce07a1bc46e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_f72c216b-905f-449c-b076-06c4d78c9d32" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_ed7fb408-184e-40c3-8d04-3b0650062ec4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f72c216b-905f-449c-b076-06c4d78c9d32" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_ed7fb408-184e-40c3-8d04-3b0650062ec4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_6e9dfc72-ee5f-4bdd-9a39-f7d8f0d1698b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_f72c216b-905f-449c-b076-06c4d78c9d32" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_6e9dfc72-ee5f-4bdd-9a39-f7d8f0d1698b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofIncomeTaxesPaidNetofRefundsDetails" xlink:type="simple" xlink:href="bmrc-20251231.xsd#IncomeTaxesScheduleofIncomeTaxesPaidNetofRefundsDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/IncomeTaxesScheduleofIncomeTaxesPaidNetofRefundsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_019b4487-26af-7bce-8970-9c4d4872bb96" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxesPaidNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019b4487-26af-72ab-b275-d9d30ec163cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidFederalAfterRefundReceived"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019b4487-26af-7bce-8970-9c4d4872bb96" xlink:to="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019b4487-26af-72ab-b275-d9d30ec163cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019b4487-26af-79d8-8b7d-c2152afe15b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019b4487-26af-7bce-8970-9c4d4872bb96" xlink:to="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019b4487-26af-79d8-8b7d-c2152afe15b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceived_019b4487-26af-7e7b-a03d-558eb76997b3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidForeignAfterRefundReceived"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019b4487-26af-7bce-8970-9c4d4872bb96" xlink:to="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceived_019b4487-26af-7e7b-a03d-558eb76997b3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/IncomeTaxesScheduleofIncomeTaxesPaidNetofRefundsExceedingFivePercentDetails" xlink:type="simple" xlink:href="bmrc-20251231.xsd#IncomeTaxesScheduleofIncomeTaxesPaidNetofRefundsExceedingFivePercentDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/IncomeTaxesScheduleofIncomeTaxesPaidNetofRefundsExceedingFivePercentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncomeTaxesPaidNetGreaterThan5OfTotal_019cb9d3-5538-72c3-8765-515c946263ce" xlink:href="bmrc-20251231.xsd#bmrc_IncomeTaxesPaidNetGreaterThan5OfTotal"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019cb9d3-5538-7aca-84c9-48dc90ddd4a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_IncomeTaxesPaidNetGreaterThan5OfTotal_019cb9d3-5538-72c3-8765-515c946263ce" xlink:to="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019cb9d3-5538-7aca-84c9-48dc90ddd4a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceived_019cb9d3-5538-7630-8c6a-303306d126d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidForeignAfterRefundReceived"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_IncomeTaxesPaidNetGreaterThan5OfTotal_019cb9d3-5538-72c3-8765-515c946263ce" xlink:to="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceived_019cb9d3-5538-7630-8c6a-303306d126d5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofOperatingandFinanceLeaseRightofUseAssetsandLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_28aa3edb-ccb4-451b-a947-46e3dafb50c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseRightOfUseAsset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_ceb8f1eb-e8cc-4a51-a477-2da1825b208d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_28aa3edb-ccb4-451b-a947-46e3dafb50c5" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_ceb8f1eb-e8cc-4a51-a477-2da1825b208d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAccumulatedAmortization_e0c23f7e-1403-49dc-8dd7-0e9631f44adf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseRightOfUseAssetAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseRightOfUseAsset_28aa3edb-ccb4-451b-a947-46e3dafb50c5" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAccumulatedAmortization_e0c23f7e-1403-49dc-8dd7-0e9631f44adf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseCostDetails" xlink:type="simple" xlink:href="bmrc-20251231.xsd#CommitmentsandContingenciesScheduleofLeaseCostDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseCostDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OperatingLeaseCostNet_444d1b17-0299-42e3-b239-3a709a59a219" xlink:href="bmrc-20251231.xsd#bmrc_OperatingLeaseCostNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_119aad44-a9f5-4953-8b0f-3a192d7b48a8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_OperatingLeaseCostNet_444d1b17-0299-42e3-b239-3a709a59a219" xlink:to="loc_us-gaap_OperatingLeaseCost_119aad44-a9f5-4953-8b0f-3a192d7b48a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_52bc9dec-e3c3-4f44-8bef-49ae44152411" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_OperatingLeaseCostNet_28344109-5de0-47f6-aed0-7f143679ccc9" xlink:href="bmrc-20251231.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_52bc9dec-e3c3-4f44-8bef-49ae44152411" xlink:to="loc_bmrc_OperatingLeaseCostNet_28344109-5de0-47f6-aed0-7f143679ccc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_FinanceLeaseCost_010e2d5a-5d82-4dcf-80da-2304f858ae63" xlink:href="bmrc-20251231.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_52bc9dec-e3c3-4f44-8bef-49ae44152411" xlink:to="loc_bmrc_FinanceLeaseCost_010e2d5a-5d82-4dcf-80da-2304f858ae63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_FinanceLeaseCost_bdb4f95b-6d5a-46e3-841c-7d2c4890f9d4" xlink:href="bmrc-20251231.xsd#bmrc_FinanceLeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_0b809031-5bf6-4a3c-83a1-90c5a675cc3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_bdb4f95b-6d5a-46e3-841c-7d2c4890f9d4" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_0b809031-5bf6-4a3c-83a1-90c5a675cc3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseInterestExpense_cadca5ea-4a09-408f-b7b4-7efe2104fd5a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_bdb4f95b-6d5a-46e3-841c-7d2c4890f9d4" xlink:to="loc_us-gaap_FinanceLeaseInterestExpense_cadca5ea-4a09-408f-b7b4-7efe2104fd5a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_FinanceLeaseLiabilityPaymentsDue_b6a55257-d44a-4900-b924-a944159d6011" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_9c1afb60-7a1f-4162-97a1-de4a7a207de8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b6a55257-d44a-4900-b924-a944159d6011" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_9c1afb60-7a1f-4162-97a1-de4a7a207de8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_0e6e843f-ead4-4abd-b565-f45ed804359f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_b6a55257-d44a-4900-b924-a944159d6011" xlink:to="loc_us-gaap_FinanceLeaseLiability_0e6e843f-ead4-4abd-b565-f45ed804359f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0d7d8276-b9b6-4c22-a296-7c38cab4f51f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_27c17769-f1af-4c12-9974-f653a1728a24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0d7d8276-b9b6-4c22-a296-7c38cab4f51f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_27c17769-f1af-4c12-9974-f653a1728a24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9e818cfd-5d46-4b13-88f9-4ea92b0586f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0d7d8276-b9b6-4c22-a296-7c38cab4f51f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9e818cfd-5d46-4b13-88f9-4ea92b0586f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_0960c88d-9ba8-4668-956f-53a04126d2a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0d7d8276-b9b6-4c22-a296-7c38cab4f51f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_0960c88d-9ba8-4668-956f-53a04126d2a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_d0894c5e-4af0-4eb6-a118-c2e67daf8ad8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0d7d8276-b9b6-4c22-a296-7c38cab4f51f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_d0894c5e-4af0-4eb6-a118-c2e67daf8ad8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_edea8725-a24b-4480-b5e5-148f0b553421" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0d7d8276-b9b6-4c22-a296-7c38cab4f51f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_edea8725-a24b-4480-b5e5-148f0b553421" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_559813c2-24b7-4723-894d-0211d03d8033" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0d7d8276-b9b6-4c22-a296-7c38cab4f51f" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_559813c2-24b7-4723-894d-0211d03d8033" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsandContingenciesScheduleofLeaseLiabilityMaturityScheduleDetails_1" xlink:type="simple" xlink:href="bmrc-20251231.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_FinanceLeaseLiabilityPaymentsDue_109f9172-7d96-43e3-88ed-c78ff9ecd34d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_18e6087e-4951-4e7e-bc2e-2007b0a10798" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_109f9172-7d96-43e3-88ed-c78ff9ecd34d" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_18e6087e-4951-4e7e-bc2e-2007b0a10798" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_17edfc72-c272-4293-b206-23087e4e43d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_109f9172-7d96-43e3-88ed-c78ff9ecd34d" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_17edfc72-c272-4293-b206-23087e4e43d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_f80cd66a-7891-46f5-bc49-603b24ccf99d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_109f9172-7d96-43e3-88ed-c78ff9ecd34d" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_f80cd66a-7891-46f5-bc49-603b24ccf99d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_9ae644d1-1119-4851-81e5-5b13bf56caa7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_109f9172-7d96-43e3-88ed-c78ff9ecd34d" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_9ae644d1-1119-4851-81e5-5b13bf56caa7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_0bece179-5996-4752-9c20-7be9a7b24757" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_109f9172-7d96-43e3-88ed-c78ff9ecd34d" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_0bece179-5996-4752-9c20-7be9a7b24757" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_e84c7f88-2844-4b04-865e-79a1b69001de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_109f9172-7d96-43e3-88ed-c78ff9ecd34d" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_e84c7f88-2844-4b04-865e-79a1b69001de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_cfa5eabb-ab00-424b-aaa5-66340bae837c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_a67de560-7038-41b3-82db-893b167f46cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_cfa5eabb-ab00-424b-aaa5-66340bae837c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_a67de560-7038-41b3-82db-893b167f46cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_d1a0d10c-e77a-460d-bbf1-0603d193e245" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_cfa5eabb-ab00-424b-aaa5-66340bae837c" xlink:to="loc_us-gaap_OperatingLeaseLiability_d1a0d10c-e77a-460d-bbf1-0603d193e245" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofInterestIncomeDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_9cb1710d-1beb-4e0f-9fa0-77049fd299f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1_7edc8a60-4007-49c8-9424-ff6be030b945" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9cb1710d-1beb-4e0f-9fa0-77049fd299f1" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1_7edc8a60-4007-49c8-9424-ff6be030b945" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DerivativeHedgedInterestEarnedPaid_e76eb397-22dd-40bb-a750-8828f15a0acc" xlink:href="bmrc-20251231.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_9cb1710d-1beb-4e0f-9fa0-77049fd299f1" xlink:to="loc_bmrc_DerivativeHedgedInterestEarnedPaid_e76eb397-22dd-40bb-a750-8828f15a0acc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_ef2aac06-e086-440f-a1df-a269dc390ee6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_9cb1710d-1beb-4e0f-9fa0-77049fd299f1" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_ef2aac06-e086-440f-a1df-a269dc390ee6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement_e35b8303-1248-4efe-b42f-b876ea8a9af1" xlink:href="bmrc-20251231.xsd#bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNet_9cb1710d-1beb-4e0f-9fa0-77049fd299f1" xlink:to="loc_bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement_e35b8303-1248-4efe-b42f-b876ea8a9af1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DecreaseIncreaseInFairValueOfInterestRateFairValueHedgingInstruments_019cbf77-7065-7121-ab67-4df1b4da2aa6" xlink:href="bmrc-20251231.xsd#bmrc_DecreaseIncreaseInFairValueOfInterestRateFairValueHedgingInstruments"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNet_9cb1710d-1beb-4e0f-9fa0-77049fd299f1" xlink:to="loc_bmrc_DecreaseIncreaseInFairValueOfInterestRateFairValueHedgingInstruments_019cbf77-7065-7121-ab67-4df1b4da2aa6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DecreaseIncreaseInFairValueOfHedgedItemInInterestRateFairValueHedge_019cbf79-4c1c-7ee4-890e-ac97a9a54fef" xlink:href="bmrc-20251231.xsd#bmrc_DecreaseIncreaseInFairValueOfHedgedItemInInterestRateFairValueHedge"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNet_9cb1710d-1beb-4e0f-9fa0-77049fd299f1" xlink:to="loc_bmrc_DecreaseIncreaseInFairValueOfHedgedItemInInterestRateFairValueHedge_019cbf79-4c1c-7ee4-890e-ac97a9a54fef" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofAssetsDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_0705e153-3c3e-4c46-b66e-06bfffe8e0af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_f147fe0c-3027-47fb-87d4-fcb7e9a55ca0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0705e153-3c3e-4c46-b66e-06bfffe8e0af" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_f147fe0c-3027-47fb-87d4-fcb7e9a55ca0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_44a23b35-f183-40dc-9886-762cea5dd88a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0705e153-3c3e-4c46-b66e-06bfffe8e0af" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_44a23b35-f183-40dc-9886-762cea5dd88a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_2775cb5e-53b2-425d-bc19-cf540909582a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_0705e153-3c3e-4c46-b66e-06bfffe8e0af" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_2775cb5e-53b2-425d-bc19-cf540909582a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_8b5100da-bb4c-4cbf-9885-f5b3070fff61" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_dfe9b11a-1641-46c2-936c-93055a13766d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_8b5100da-bb4c-4cbf-9885-f5b3070fff61" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_dfe9b11a-1641-46c2-936c-93055a13766d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_53788286-f1c6-4f15-bb77-002a54b7bde5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_8b5100da-bb4c-4cbf-9885-f5b3070fff61" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_53788286-f1c6-4f15-bb77-002a54b7bde5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsandHedgingActivitiesScheduleofOffsettingofLiabilitiesDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_3fdeb31a-2001-4604-b749-2c8af34a9aee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_a715de32-2699-4d0a-aa4a-06759e9c6c92" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_3fdeb31a-2001-4604-b749-2c8af34a9aee" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_a715de32-2699-4d0a-aa4a-06759e9c6c92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_25dbfb6a-2ee5-4c65-852a-1c71d6cc1e92" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_3fdeb31a-2001-4604-b749-2c8af34a9aee" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_25dbfb6a-2ee5-4c65-852a-1c71d6cc1e92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_fa9a78ed-3b70-4518-a35f-5818c158ee86" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_42f3dfcd-6c24-4786-ac05-278d080b8bf0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_fa9a78ed-3b70-4518-a35f-5818c158ee86" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_42f3dfcd-6c24-4786-ac05-278d080b8bf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_1ebe7f1c-6452-409a-a855-7834a1c015b0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_fa9a78ed-3b70-4518-a35f-5818c158ee86" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_1ebe7f1c-6452-409a-a855-7834a1c015b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_aabd57da-527e-40d4-a9e2-af1c0b2c3410" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_fa9a78ed-3b70-4518-a35f-5818c158ee86" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_aabd57da-527e-40d4-a9e2-af1c0b2c3410" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUncosolidantedStatementsofConditionDetails" xlink:type="simple" xlink:href="bmrc-20251231.xsd#CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUncosolidantedStatementsofConditionDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUncosolidantedStatementsofConditionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_75002d8f-ec15-445a-8aaa-f33846c56852" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_CashAndDueFromSubsidiary_f2f03a19-c6c8-4b23-ac3a-6751b2810f6e" xlink:href="bmrc-20251231.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_75002d8f-ec15-445a-8aaa-f33846c56852" xlink:to="loc_bmrc_CashAndDueFromSubsidiary_f2f03a19-c6c8-4b23-ac3a-6751b2810f6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_InvestmentInSubsidiary_e1f5ea26-3b47-4187-bf56-a0b10becdda5" xlink:href="bmrc-20251231.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_75002d8f-ec15-445a-8aaa-f33846c56852" xlink:to="loc_bmrc_InvestmentInSubsidiary_e1f5ea26-3b47-4187-bf56-a0b10becdda5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_50fc37b9-8a3b-4e8e-91d5-2cc12a523387" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_75002d8f-ec15-445a-8aaa-f33846c56852" xlink:to="loc_us-gaap_OtherAssets_50fc37b9-8a3b-4e8e-91d5-2cc12a523387" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_fba18446-a279-42f4-918d-303d6b0423ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubordinatedDebt_019bedf6-1350-7388-8bf2-1dd2b5d84cde" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubordinatedDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_fba18446-a279-42f4-918d-303d6b0423ca" xlink:to="loc_us-gaap_SubordinatedDebt_019bedf6-1350-7388-8bf2-1dd2b5d84cde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_ff48c785-610e-464f-ab6a-6da7d7ca8ad1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_fba18446-a279-42f4-918d-303d6b0423ca" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_ff48c785-610e-464f-ab6a-6da7d7ca8ad1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofLossIncomeDetails" xlink:type="simple" xlink:href="bmrc-20251231.xsd#CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofLossIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofLossIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TotalExpense_7c10052c-dde1-4257-973d-099d50785111" xlink:href="bmrc-20251231.xsd#bmrc_TotalExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_019bedf7-3ec2-7ed9-8397-a95ed1aaad54" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_TotalExpense_7c10052c-dde1-4257-973d-099d50785111" xlink:to="loc_us-gaap_NoninterestExpense_019bedf7-3ec2-7ed9-8397-a95ed1aaad54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_49d4dc7d-9cf0-488a-bde6-76f409848f2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_TotalExpense_7c10052c-dde1-4257-973d-099d50785111" xlink:to="loc_us-gaap_InterestExpense_49d4dc7d-9cf0-488a-bde6-76f409848f2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_cdb90462-f8b4-4726-b14e-bc85142f4cc5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromSubsidiariesBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_DividendIncomeFromSubsidiariesOperating_e1a56a52-00ff-4b24-985c-a5d47fa6b561" xlink:href="bmrc-20251231.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_cdb90462-f8b4-4726-b14e-bc85142f4cc5" xlink:to="loc_bmrc_DividendIncomeFromSubsidiariesOperating_e1a56a52-00ff-4b24-985c-a5d47fa6b561" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_2f68a85b-7479-4a0f-93e7-b78c97c67886" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries_bc9fbae0-8b3b-4c6c-958f-406e2771d3b8" xlink:href="bmrc-20251231.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_2f68a85b-7479-4a0f-93e7-b78c97c67886" xlink:to="loc_bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries_bc9fbae0-8b3b-4c6c-958f-406e2771d3b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EquityInUndistributedNetIncomeOfSubsidiary_1f959482-575a-43b0-b8f8-bce3feda6360" xlink:href="bmrc-20251231.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_2f68a85b-7479-4a0f-93e7-b78c97c67886" xlink:to="loc_bmrc_EquityInUndistributedNetIncomeOfSubsidiary_1f959482-575a-43b0-b8f8-bce3feda6360" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary_6de56d21-ea1d-4005-9edd-0547fd5791c8" xlink:href="bmrc-20251231.xsd#bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_TotalExpense_fd1cfb67-eb6f-4d3f-ae74-0620b09238aa" xlink:href="bmrc-20251231.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_6de56d21-ea1d-4005-9edd-0547fd5791c8" xlink:to="loc_bmrc_TotalExpense_fd1cfb67-eb6f-4d3f-ae74-0620b09238aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_b6added6-4cf9-48c5-8785-1851c7e6bba9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_6de56d21-ea1d-4005-9edd-0547fd5791c8" xlink:to="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_b6added6-4cf9-48c5-8785-1851c7e6bba9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries_d378a5ef-4be6-401f-af72-9b46065b68d6" xlink:href="bmrc-20251231.xsd#bmrc_IncomeBeforeEquityInUndistributedEarningsOfSubsidiaries"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary_84e9bdcb-b335-4ad4-bdff-89a3c8df1da7" xlink:href="bmrc-20251231.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_d378a5ef-4be6-401f-af72-9b46065b68d6" xlink:to="loc_bmrc_IncomeLossBeforeIncomeTaxesAndEquityInUndistributedNetIncomeOfSubsidiary_84e9bdcb-b335-4ad4-bdff-89a3c8df1da7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_efe03f6d-8d34-4de6-a700-925878ac84af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_d378a5ef-4be6-401f-af72-9b46065b68d6" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_efe03f6d-8d34-4de6-a700-925878ac84af" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CondensedBankofMarinBancorpParentOnlyFinancialStatementsCondensedUnconsolidatedStatementsofCashFlowsDetails" xlink:type="simple" xlink:href="bmrc-20251231.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_NetCashProvidedByUsedInOperatingActivities_86ba8c94-7bb3-43c8-91a0-0aa152cfb24b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_c3548280-e2b6-48b8-82cb-878276c9db3c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_86ba8c94-7bb3-43c8-91a0-0aa152cfb24b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_c3548280-e2b6-48b8-82cb-878276c9db3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_a45feb2c-b46b-4cae-b3a5-5d7839d9e850" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_86ba8c94-7bb3-43c8-91a0-0aa152cfb24b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_a45feb2c-b46b-4cae-b3a5-5d7839d9e850" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_019c6a57-852b-775c-be00-aba4b5117d9e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_86ba8c94-7bb3-43c8-91a0-0aa152cfb24b" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_019c6a57-852b-775c-be00-aba4b5117d9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_EquityinUndistributedandDistributedEarningsofSubsidiaryNetofDividendsReceived_c0e7045d-f717-4e20-ab0d-59cc627f0451" xlink:href="bmrc-20251231.xsd#bmrc_EquityinUndistributedandDistributedEarningsofSubsidiaryNetofDividendsReceived"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_86ba8c94-7bb3-43c8-91a0-0aa152cfb24b" xlink:to="loc_bmrc_EquityinUndistributedandDistributedEarningsofSubsidiaryNetofDividendsReceived_c0e7045d-f717-4e20-ab0d-59cc627f0451" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_63306cca-79db-46fc-97a5-b56b87a663de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_86ba8c94-7bb3-43c8-91a0-0aa152cfb24b" xlink:to="loc_us-gaap_NetIncomeLoss_63306cca-79db-46fc-97a5-b56b87a663de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_2d56d044-41a0-4570-9a90-1f699534ebab" xlink:href="bmrc-20251231.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_86ba8c94-7bb3-43c8-91a0-0aa152cfb24b" xlink:to="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_2d56d044-41a0-4570-9a90-1f699534ebab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_46f6854b-dfb2-4e07-8583-f875a2edf256" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrc_ProceedsFromStockOptionsExercisedAndEmployeeStockPurchases_97b08351-613a-4054-8629-c99515a38a53" xlink:href="bmrc-20251231.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_46f6854b-dfb2-4e07-8583-f875a2edf256" xlink:to="loc_bmrc_ProceedsFromStockOptionsExercisedAndEmployeeStockPurchases_97b08351-613a-4054-8629-c99515a38a53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_eb3b60af-c6ba-4211-906b-1f9af9a0de0a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_46f6854b-dfb2-4e07-8583-f875a2edf256" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_eb3b60af-c6ba-4211-906b-1f9af9a0de0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_8fb0c109-2746-4dc9-8076-52285c805138" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_46f6854b-dfb2-4e07-8583-f875a2edf256" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_8fb0c109-2746-4dc9-8076-52285c805138" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt_019c6a56-3902-7b3b-b959-e6bd2e32134a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_46f6854b-dfb2-4e07-8583-f875a2edf256" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt_019c6a56-3902-7b3b-b959-e6bd2e32134a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfEquity_478dd7d5-bdf4-42c7-85ac-60e1c5676fc7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_46f6854b-dfb2-4e07-8583-f875a2edf256" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfEquity_478dd7d5-bdf4-42c7-85ac-60e1c5676fc7" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
