<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentation" xlink:href="bmrc-20190930.xsd#BasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationPolicies" xlink:href="bmrc-20190930.xsd#BasisOfPresentationPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationReconciliationOfEarningsPerShareDetails" xlink:href="bmrc-20190930.xsd#BasisOfPresentationReconciliationOfEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationTables" xlink:href="bmrc-20190930.xsd#BasisOfPresentationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BorrowingsAndOtherObligations" xlink:href="bmrc-20190930.xsd#BorrowingsAndOtherObligations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BorrowingsAndOtherObligationsLinesOfCreditDetails" xlink:href="bmrc-20190930.xsd#BorrowingsAndOtherObligationsLinesOfCreditDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BorrowingsAndOtherObligationsSubordinatedDebtDetails" xlink:href="bmrc-20190930.xsd#BorrowingsAndOtherObligationsSubordinatedDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingencies" xlink:href="bmrc-20190930.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesLeaseAssetsAndLiabilitiesDetails" xlink:href="bmrc-20190930.xsd#CommitmentsAndContingenciesLeaseAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesLeaseCostDetails" xlink:href="bmrc-20190930.xsd#CommitmentsAndContingenciesLeaseCostDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesLeaseLiabilityMaturityScheduleDetails" xlink:href="bmrc-20190930.xsd#CommitmentsAndContingenciesLeaseLiabilityMaturityScheduleDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesLeaseLiabilityMaturityScheduleDetailsCalc2" xlink:href="bmrc-20190930.xsd#CommitmentsAndContingenciesLeaseLiabilityMaturityScheduleDetailsCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesNarrativeDetails" xlink:href="bmrc-20190930.xsd#CommitmentsAndContingenciesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesNoncashInvestingAndFinancingActivitiesDetails" xlink:href="bmrc-20190930.xsd#CommitmentsAndContingenciesNoncashInvestingAndFinancingActivitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesOffBalanceSheetArrangementsDetails" xlink:href="bmrc-20190930.xsd#CommitmentsAndContingenciesOffBalanceSheetArrangementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesTables" xlink:href="bmrc-20190930.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="bmrc-20190930.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:href="bmrc-20190930.xsd#ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:href="bmrc-20190930.xsd#ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="bmrc-20190930.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfCondition" xlink:href="bmrc-20190930.xsd#ConsolidatedStatementsOfCondition" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfConditionParenthetical" xlink:href="bmrc-20190930.xsd#ConsolidatedStatementsOfConditionParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/Cover" xlink:href="bmrc-20190930.xsd#Cover" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivities" xlink:href="bmrc-20190930.xsd#DerivativeFinancialInstrumentsAndHedgingActivities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesInformationOnDerivativesDetails" xlink:href="bmrc-20190930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesInformationOnDerivativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesNarrativeDetails" xlink:href="bmrc-20190930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfAssetsDetails" xlink:href="bmrc-20190930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfLiabilitiesDetails" xlink:href="bmrc-20190930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesTables" xlink:href="bmrc-20190930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilities" xlink:href="bmrc-20190930.xsd#FairValueOfAssetsAndLiabilities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesFairValueOfFinancialInstrumentsDetails" xlink:href="bmrc-20190930.xsd#FairValueOfAssetsAndLiabilitiesFairValueOfFinancialInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesNarrativeDetails" xlink:href="bmrc-20190930.xsd#FairValueOfAssetsAndLiabilitiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesRecordedOnRecurringBasisDetails" xlink:href="bmrc-20190930.xsd#FairValueOfAssetsAndLiabilitiesRecordedOnRecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesTables" xlink:href="bmrc-20190930.xsd#FairValueOfAssetsAndLiabilitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecurities" xlink:href="bmrc-20190930.xsd#InvestmentSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesAmortizedCostAndFairValueDetails" xlink:href="bmrc-20190930.xsd#InvestmentSecuritiesAmortizedCostAndFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesMaturitiesDetails" xlink:href="bmrc-20190930.xsd#InvestmentSecuritiesMaturitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesNarrativeDetails" xlink:href="bmrc-20190930.xsd#InvestmentSecuritiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesNonMarketableSecuritiesDetails" xlink:href="bmrc-20190930.xsd#InvestmentSecuritiesNonMarketableSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesPledgedAndTransferredSecuritiesDetails" xlink:href="bmrc-20190930.xsd#InvestmentSecuritiesPledgedAndTransferredSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesSalesOfInvestmentSecuritiesAndGrossGainsAndLossesDetails" xlink:href="bmrc-20190930.xsd#InvestmentSecuritiesSalesOfInvestmentSecuritiesAndGrossGainsAndLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesTables" xlink:href="bmrc-20190930.xsd#InvestmentSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesUnrealizedLossPositionsDetails" xlink:href="bmrc-20190930.xsd#InvestmentSecuritiesUnrealizedLossPositionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLosses" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesAllowanceForLoanLossesDetails" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLossesAllowanceForLoanLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesCreditQualityDetails" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLossesCreditQualityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesImpairedAndRelatedAllowanceDetails" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLossesImpairedAndRelatedAllowanceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesOutstandingAndAgingAnalysisDetails" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLossesOutstandingAndAgingAnalysisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesPledgedLoansDetails" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLossesPledgedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesPurchasedCreditImpairedDetails" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLossesPurchasedCreditImpairedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesRelatedPartyDetails" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLossesRelatedPartyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTables" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTroubledDebtRestructuringByClassDetails" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLossesTroubledDebtRestructuringByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTroubledDebtRestructuringModificationsDetails" xlink:href="bmrc-20190930.xsd#LoansAndAllowanceForLoanLossesTroubledDebtRestructuringModificationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/RecentlyAdoptedAndIssuedAccountingStandards" xlink:href="bmrc-20190930.xsd#RecentlyAdoptedAndIssuedAccountingStandards" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/RecentlyAdoptedAndIssuedAccountingStandardsNarrativeDetails" xlink:href="bmrc-20190930.xsd#RecentlyAdoptedAndIssuedAccountingStandardsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/StockholdersEquity" xlink:href="bmrc-20190930.xsd#StockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/StockholdersEquityNarrativeDetails" xlink:href="bmrc-20190930.xsd#StockholdersEquityNarrativeDetails" xlink:type="simple" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentationPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentationReconciliationOfEarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8c9389ea-1fbb-7e45-ce1f-5a1d89572c0d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_fbdbb03d-8583-701f-d6e2-69f8229c6051" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8c9389ea-1fbb-7e45-ce1f-5a1d89572c0d" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_fbdbb03d-8583-701f-d6e2-69f8229c6051" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_90854703-859b-2c45-aef2-d270627b3141" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8c9389ea-1fbb-7e45-ce1f-5a1d89572c0d" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_90854703-859b-2c45-aef2-d270627b3141" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends_064ab247-aacc-f890-5780-e42d5e482d4c" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8c9389ea-1fbb-7e45-ce1f-5a1d89572c0d" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends_064ab247-aacc-f890-5780-e42d5e482d4c" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentationTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BorrowingsAndOtherObligations" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BorrowingsAndOtherObligationsLinesOfCreditDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BorrowingsAndOtherObligationsSubordinatedDebtDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingenciesLeaseAssetsAndLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAsset" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_46F22939CC415EC497E87D25E6B6E0E2" xlink:type="locator" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_FinanceLeaseRightOfUseAssetGross" xlink:label="loc_bmrc_FinanceLeaseRightOfUseAssetGross_1875188956965B5F9128F0B0ABBF830A" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseRightOfUseAsset_46F22939CC415EC497E87D25E6B6E0E2" xlink:to="loc_bmrc_FinanceLeaseRightOfUseAssetGross_1875188956965B5F9128F0B0ABBF830A" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_FinanceLeaseRightOfUseAssetAccumulatedDepreciation" xlink:label="loc_bmrc_FinanceLeaseRightOfUseAssetAccumulatedDepreciation_2676B1EEAFEC5D7F9E75E1FB4459F456" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseRightOfUseAsset_46F22939CC415EC497E87D25E6B6E0E2" xlink:to="loc_bmrc_FinanceLeaseRightOfUseAssetAccumulatedDepreciation_2676B1EEAFEC5D7F9E75E1FB4459F456" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingenciesLeaseCostDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LeaseCost" xlink:label="loc_us-gaap_LeaseCost_3658F9E124AB57CA8978E5CCF50B6427" xlink:type="locator" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_FinanceLeaseCost" xlink:label="loc_bmrc_FinanceLeaseCost_C93A46AD7D88560788F4872603C584B5" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_3658F9E124AB57CA8978E5CCF50B6427" xlink:to="loc_bmrc_FinanceLeaseCost_C93A46AD7D88560788F4872603C584B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAssetAmortization" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_774405764CD750989A481B743BA94775" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_FinanceLeaseCost_C93A46AD7D88560788F4872603C584B5" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_774405764CD750989A481B743BA94775" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseInterestExpense" xlink:label="loc_us-gaap_FinanceLeaseInterestExpense_1D9522FFCACA5A2081ECDAFB324D1C27" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_FinanceLeaseCost_C93A46AD7D88560788F4872603C584B5" xlink:to="loc_us-gaap_FinanceLeaseInterestExpense_1D9522FFCACA5A2081ECDAFB324D1C27" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseCost" xlink:label="loc_us-gaap_OperatingLeaseCost_5029EFC8FDFB5917BC76124B0B3511A3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_3658F9E124AB57CA8978E5CCF50B6427" xlink:to="loc_us-gaap_OperatingLeaseCost_5029EFC8FDFB5917BC76124B0B3511A3" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingenciesLeaseLiabilityMaturityScheduleDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_585156c8-71c1-ada7-fa32-ec99a518c7a0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_56214e92-975b-87e2-d6f8-a5f1e857c6ef" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_585156c8-71c1-ada7-fa32-ec99a518c7a0" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_56214e92-975b-87e2-d6f8-a5f1e857c6ef" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_9048fd47-13cc-d6eb-d7dd-e8d53f87b993" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_585156c8-71c1-ada7-fa32-ec99a518c7a0" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_9048fd47-13cc-d6eb-d7dd-e8d53f87b993" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_c4c9d759-d9f6-eec5-3320-115ed3ebdd52" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_585156c8-71c1-ada7-fa32-ec99a518c7a0" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_c4c9d759-d9f6-eec5-3320-115ed3ebdd52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_48ac7df5-3392-98b1-a73f-b2f41673ff75" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_585156c8-71c1-ada7-fa32-ec99a518c7a0" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_48ac7df5-3392-98b1-a73f-b2f41673ff75" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_c21c69f2-c329-91b2-f24a-9debaed02565" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_585156c8-71c1-ada7-fa32-ec99a518c7a0" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_c21c69f2-c329-91b2-f24a-9debaed02565" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_80ad803a-a5b3-2c23-a7a0-aed644e501db" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_585156c8-71c1-ada7-fa32-ec99a518c7a0" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_80ad803a-a5b3-2c23-a7a0-aed644e501db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_48abcf97-737b-2b2c-8a8c-c74539d0b215" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_48abcf97-737b-2b2c-8a8c-c74539d0b215" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9b040bc1-f43c-735d-05f7-679f319d2bb6" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9b040bc1-f43c-735d-05f7-679f319d2bb6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_2f0ec234-4f20-7099-efb3-3c0ab4d024dd" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_2f0ec234-4f20-7099-efb3-3c0ab4d024dd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_1ed751b1-5f94-4f6f-41e9-ef873c9f2bab" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_1ed751b1-5f94-4f6f-41e9-ef873c9f2bab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_8a8de21f-aadc-3af7-8c96-d54cf42b401b" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_8a8de21f-aadc-3af7-8c96-d54cf42b401b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_b411eec9-2a0a-356b-e751-bd0680ab4d58" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_b411eec9-2a0a-356b-e751-bd0680ab4d58" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingenciesLeaseLiabilityMaturityScheduleDetailsCalc2" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_2E6BE81FA5003235996EB21E70FC30D0_585156c8-71c1-ada7-fa32-ec99a518c7a0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_2E6BE81FA5003235996EB21E70FC30D0_597d60ca-96f9-eb25-df87-2ed201ea93c3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_2E6BE81FA5003235996EB21E70FC30D0_585156c8-71c1-ada7-fa32-ec99a518c7a0" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_2E6BE81FA5003235996EB21E70FC30D0_597d60ca-96f9-eb25-df87-2ed201ea93c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiability" xlink:label="loc_us-gaap_FinanceLeaseLiability_2E6BE81FA5003235996EB21E70FC30D0_66b601d4-fa3f-7d40-f560-84d87697ff03" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_2E6BE81FA5003235996EB21E70FC30D0_585156c8-71c1-ada7-fa32-ec99a518c7a0" xlink:to="loc_us-gaap_FinanceLeaseLiability_2E6BE81FA5003235996EB21E70FC30D0_66b601d4-fa3f-7d40-f560-84d87697ff03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2E6BE81FA5003235996EB21E70FC30D0_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_2E6BE81FA5003235996EB21E70FC30D0_07815ffa-512a-3133-dcbb-38e09d2626b9" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2E6BE81FA5003235996EB21E70FC30D0_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_2E6BE81FA5003235996EB21E70FC30D0_07815ffa-512a-3133-dcbb-38e09d2626b9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_2E6BE81FA5003235996EB21E70FC30D0_b983c2d8-8318-0a7e-1a5c-6ab2933f7be5" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2E6BE81FA5003235996EB21E70FC30D0_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_OperatingLeaseLiability_2E6BE81FA5003235996EB21E70FC30D0_b983c2d8-8318-0a7e-1a5c-6ab2933f7be5" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingenciesNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingenciesNoncashInvestingAndFinancingActivitiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingenciesOffBalanceSheetArrangementsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_50231013-f048-89e7-0e20-ba139224c5f7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_50231013-f048-89e7-0e20-ba139224c5f7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInDeposits" xlink:label="loc_us-gaap_IncreaseDecreaseInDeposits_7d827b46-a2b0-1913-8668-676c642fa092" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_IncreaseDecreaseInDeposits_7d827b46-a2b0-1913-8668-676c642fa092" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_f73833cd-0af4-c4d5-a7c4-1151269f1da3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_f73833cd-0af4-c4d5-a7c4-1151269f1da3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_07e50027-f2db-6d1b-93ed-b22d6bd39351" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_07e50027-f2db-6d1b-93ed-b22d6bd39351" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_c70935d4-250d-fc61-ad26-5c3af3f55141" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_c70935d4-250d-fc61-ad26-5c3af3f55141" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_3f804297-91a1-3939-541d-a39b6288c9f9" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_3f804297-91a1-3939-541d-a39b6288c9f9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfFederalHomeLoanBankBorrowings" xlink:label="loc_us-gaap_RepaymentsOfFederalHomeLoanBankBorrowings_ecda1f92-8eea-4074-04d3-e84fb4413934" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_RepaymentsOfFederalHomeLoanBankBorrowings_ecda1f92-8eea-4074-04d3-e84fb4413934" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeasePrincipalPayments" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_138d7df8-0ec2-04f9-f9f7-0e5a0ff1d684" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_138d7df8-0ec2-04f9-f9f7-0e5a0ff1d684" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_41d72ed0-9a2b-31fb-9f8e-ad33f5eca26a" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_41d72ed0-9a2b-31fb-9f8e-ad33f5eca26a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_50231013-f048-89e7-0e20-ba139224c5f7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireHeldToMaturitySecurities" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_404f28cc-d31b-88b1-2e58-f61c65ab1626" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_404f28cc-d31b-88b1-2e58-f61c65ab1626" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_8b51ae5f-8f14-ae0e-00e7-8f4e716f2f96" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_8b51ae5f-8f14-ae0e-00e7-8f4e716f2f96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_d1d20cfe-f038-824a-0236-247c2a122ebc" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_d1d20cfe-f038-824a-0236-247c2a122ebc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_8f7b7d27-85ae-a2c8-2ad9-6450620cc1ca" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_8f7b7d27-85ae-a2c8-2ad9-6450620cc1ca" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_e3f9215c-1f64-e636-ccb3-9c51d05b0a6d" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_e3f9215c-1f64-e636-ccb3-9c51d05b0a6d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1" xlink:label="loc_us-gaap_ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1_1c629bc5-4cbd-5e87-d330-9edc21789da4" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1_1c629bc5-4cbd-5e87-d330-9edc21789da4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireLifeInsurancePolicies" xlink:label="loc_us-gaap_PaymentsToAcquireLifeInsurancePolicies_1c92b763-caf8-1582-3436-51ae84300f4a" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_PaymentsToAcquireLifeInsurancePolicies_1c92b763-caf8-1582-3436-51ae84300f4a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0f8df60b-841f-6df5-83c3-e4049d366459" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0f8df60b-841f-6df5-83c3-e4049d366459" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireFederalHomeLoanBankStock" xlink:label="loc_us-gaap_PaymentsToAcquireFederalHomeLoanBankStock_46e3edce-58cf-6060-53cb-9eec771eceb5" xlink:type="locator" />
    <link:calculationArc order="9" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_PaymentsToAcquireFederalHomeLoanBankStock_46e3edce-58cf-6060-53cb-9eec771eceb5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireRealEstateHeldForInvestment" xlink:label="loc_us-gaap_PaymentsToAcquireRealEstateHeldForInvestment_f97dc3fc-1f8c-801f-e0d8-8b27dc4cb42a" xlink:type="locator" />
    <link:calculationArc order="10" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_PaymentsToAcquireRealEstateHeldForInvestment_f97dc3fc-1f8c-801f-e0d8-8b27dc4cb42a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_50231013-f048-89e7-0e20-ba139224c5f7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_54eafffc-0b2c-ac72-f44e-df1738b35af7" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_54eafffc-0b2c-ac72-f44e-df1738b35af7" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments" xlink:label="loc_bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments_6d387371-4228-85f0-02d5-53c5485f8388" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments_6d387371-4228-85f0-02d5-53c5485f8388" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense" xlink:label="loc_us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense_ec8a14d8-b329-4492-dfd8-8abf1ded9e96" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense_ec8a14d8-b329-4492-dfd8-8abf1ded9e96" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_CompensationExpenseCommonStockForDirectorFees" xlink:label="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_012ae6cb-23c3-7276-01e7-53c547b0cc12" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_012ae6cb-23c3-7276-01e7-53c547b0cc12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_f0b9d825-b0b9-37fd-4d25-9294a8598890" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_ShareBasedCompensation_f0b9d825-b0b9-37fd-4d25-9294a8598890" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_725ae160-1b15-a075-fa62-729d0bc8cda1" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_725ae160-1b15-a075-fa62-729d0bc8cda1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_94f5ae99-7bd8-4f8c-5311-9522abc2f1bd" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_94f5ae99-7bd8-4f8c-5311-9522abc2f1bd" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AccretionOfDiscountOnAcquiredLoans" xlink:label="loc_bmrc_AccretionOfDiscountOnAcquiredLoans_f9f4499c-8527-5581-392f-53c547f8632a" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_bmrc_AccretionOfDiscountOnAcquiredLoans_f9f4499c-8527-5581-392f-53c547f8632a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AmortizationOfDebtDiscountPremium" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_a4567c23-eef7-473f-21b3-15ac8f57524e" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_a4567c23-eef7-473f-21b3-15ac8f57524e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AmortizationOfDeferredLoanOriginationFeesNet" xlink:label="loc_us-gaap_AmortizationOfDeferredLoanOriginationFeesNet_823cffd8-5eae-7efe-22a1-fea63b256297" xlink:type="locator" />
    <link:calculationArc order="10" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_AmortizationOfDeferredLoanOriginationFeesNet_823cffd8-5eae-7efe-22a1-fea63b256297" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtAndEquitySecuritiesGainLoss" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_621f303c-751b-9349-bcf4-ad4fd6948d9c" xlink:type="locator" />
    <link:calculationArc order="11" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_621f303c-751b-9349-bcf4-ad4fd6948d9c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationAndAmortization" xlink:label="loc_us-gaap_DepreciationAndAmortization_9f9b2594-efaa-e1fa-01db-e194221f432f" xlink:type="locator" />
    <link:calculationArc order="12" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_DepreciationAndAmortization_9f9b2594-efaa-e1fa-01db-e194221f432f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BankOwnedLifeInsuranceIncome" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_b0db8e95-59e2-832e-b060-b12e1ef5a20d" xlink:type="locator" />
    <link:calculationArc order="13" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_b0db8e95-59e2-832e-b060-b12e1ef5a20d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_5550ae9d-a6e2-fc35-fc50-54521e2bfb5d" xlink:type="locator" />
    <link:calculationArc order="14" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_5550ae9d-a6e2-fc35-fc50-54521e2bfb5d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_d7de2883-fea4-6e7c-2c8b-7fee9aa34369" xlink:type="locator" />
    <link:calculationArc order="15" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_61920a7b-5e7b-0528-0e98-f5882e73fd2d" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_d7de2883-fea4-6e7c-2c8b-7fee9aa34369" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_c01824d9-37c3-8fdf-928f-b8a11aa7dff5" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_c01824d9-37c3-8fdf-928f-b8a11aa7dff5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_5eeaa914-26ba-e438-d601-b28e4ea04414" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_5eeaa914-26ba-e438-d601-b28e4ea04414" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_0d4250f9-c67e-da85-5b79-7bf5ce074ba3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_5eeaa914-26ba-e438-d601-b28e4ea04414" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_0d4250f9-c67e-da85-5b79-7bf5ce074ba3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_05203cd1-680d-aa15-aec2-1af403c987fb" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_5eeaa914-26ba-e438-d601-b28e4ea04414" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_05203cd1-680d-aa15-aec2-1af403c987fb" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax" xlink:label="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax_f2306bdf-2824-847b-787f-53c547b212e6" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_5eeaa914-26ba-e438-d601-b28e4ea04414" xlink:to="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax_f2306bdf-2824-847b-787f-53c547b212e6" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity" xlink:label="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_889144d5-ce1e-8c2f-5dc5-53c547bc74a3" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_5eeaa914-26ba-e438-d601-b28e4ea04414" xlink:to="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_889144d5-ce1e-8c2f-5dc5-53c547bc74a3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:to="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:to="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_9ce4ddd7-88de-0c7f-0c68-70aef9a19b78" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_LaborAndRelatedExpense_9ce4ddd7-88de-0c7f-0c68-70aef9a19b78" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_OccupancyAndEquipment" xlink:label="loc_bmrc_OccupancyAndEquipment_07846b70-ab33-5717-9413-53c5482097ea" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_bmrc_OccupancyAndEquipment_07846b70-ab33-5717-9413-53c5482097ea" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationAndAmortization" xlink:label="loc_us-gaap_DepreciationAndAmortization_9f9b2594-efaa-e1fa-01db-e194221f432f" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_DepreciationAndAmortization_9f9b2594-efaa-e1fa-01db-e194221f432f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FederalDepositInsuranceCorporationPremiumExpense" xlink:label="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_1881d9c8-9cdb-d9e3-24dd-f7ad0474c849" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_1881d9c8-9cdb-d9e3-24dd-f7ad0474c849" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_DataProcessing" xlink:label="loc_bmrc_DataProcessing_e80f1f59-9bdd-eeec-e45f-53c54821a188" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_bmrc_DataProcessing_e80f1f59-9bdd-eeec-e45f-53c54821a188" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfessionalFees" xlink:label="loc_us-gaap_ProfessionalFees_af0691f4-7318-4564-f5f7-6ee97a28289e" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_ProfessionalFees_af0691f4-7318-4564-f5f7-6ee97a28289e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoninterestExpenseDirectorsFees" xlink:label="loc_us-gaap_NoninterestExpenseDirectorsFees_1045ecfc-afe9-c45e-d785-949bb9d62767" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_NoninterestExpenseDirectorsFees_1045ecfc-afe9-c45e-d785-949bb9d62767" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_InformationTechnology" xlink:label="loc_bmrc_InformationTechnology_bbde6916-2810-c1ce-554d-53c548599061" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_bmrc_InformationTechnology_bbde6916-2810-c1ce-554d-53c548599061" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_725ae160-1b15-a075-fa62-729d0bc8cda1" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_725ae160-1b15-a075-fa62-729d0bc8cda1" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments" xlink:label="loc_bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments_6d387371-4228-85f0-02d5-53c5485f8388" xlink:type="locator" />
    <link:calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments_6d387371-4228-85f0-02d5-53c5485f8388" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_60e0cfc8-9d1d-c126-3203-c33be400af36" xlink:type="locator" />
    <link:calculationArc order="11" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_OtherNoninterestExpense_60e0cfc8-9d1d-c126-3203-c33be400af36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_315eb9df-a895-f713-c268-9c6813436750" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:to="loc_us-gaap_NoninterestIncome_315eb9df-a895-f713-c268-9c6813436750" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_ee6f6897-b14b-45ca-c6e4-4fc17aaf1e37" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_315eb9df-a895-f713-c268-9c6813436750" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_ee6f6897-b14b-45ca-c6e4-4fc17aaf1e37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BankOwnedLifeInsuranceIncome" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_b0db8e95-59e2-832e-b060-b12e1ef5a20d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_315eb9df-a895-f713-c268-9c6813436750" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_b0db8e95-59e2-832e-b060-b12e1ef5a20d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_01b7d5f2-fc91-1ead-8a30-0937d23b7e70" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_315eb9df-a895-f713-c268-9c6813436750" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_01b7d5f2-fc91-1ead-8a30-0937d23b7e70" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_DividendIncomeFederalHomeLoanBank" xlink:label="loc_bmrc_DividendIncomeFederalHomeLoanBank_41425c80-6012-4bf9-4a94-53c547abb032" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_315eb9df-a895-f713-c268-9c6813436750" xlink:to="loc_bmrc_DividendIncomeFederalHomeLoanBank_41425c80-6012-4bf9-4a94-53c547abb032" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_07ff5c90-0c78-bcc6-b6d9-b6f38c1f082c" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_07ff5c90-0c78-bcc6-b6d9-b6f38c1f082c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_54eafffc-0b2c-ac72-f44e-df1738b35af7" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_07ff5c90-0c78-bcc6-b6d9-b6f38c1f082c" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_54eafffc-0b2c-ac72-f44e-df1738b35af7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_17d6fb00-d8ca-12a7-45aa-c9b702218c16" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_07ff5c90-0c78-bcc6-b6d9-b6f38c1f082c" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_17d6fb00-d8ca-12a7-45aa-c9b702218c16" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_17d6fb00-d8ca-12a7-45aa-c9b702218c16" xlink:to="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits" xlink:label="loc_us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits_96ffe6b2-ace9-cd53-3f18-99041a3a45a7" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:to="loc_us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits_96ffe6b2-ace9-cd53-3f18-99041a3a45a7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseSavingsDeposits" xlink:label="loc_us-gaap_InterestExpenseSavingsDeposits_737ec576-bbc1-93b0-642c-b5655846d84a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:to="loc_us-gaap_InterestExpenseSavingsDeposits_737ec576-bbc1-93b0-642c-b5655846d84a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseMoneyMarketDeposits" xlink:label="loc_us-gaap_InterestExpenseMoneyMarketDeposits_f037e18f-41a2-6822-acec-557b3f873612" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:to="loc_us-gaap_InterestExpenseMoneyMarketDeposits_f037e18f-41a2-6822-acec-557b3f873612" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseTimeDeposits" xlink:label="loc_us-gaap_InterestExpenseTimeDeposits_cb8b9ccb-3dfa-d4da-7a5e-1a89cd2cce8c" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:to="loc_us-gaap_InterestExpenseTimeDeposits_cb8b9ccb-3dfa-d4da-7a5e-1a89cd2cce8c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseBorrowings" xlink:label="loc_us-gaap_InterestExpenseBorrowings_e2f70c75-4fe2-c420-40fe-ec76cfb36522" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:to="loc_us-gaap_InterestExpenseBorrowings_e2f70c75-4fe2-c420-40fe-ec76cfb36522" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseTrustPreferredSecurities" xlink:label="loc_us-gaap_InterestExpenseTrustPreferredSecurities_ccb0503e-557c-04d7-8450-7f3cc6ffce15" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:to="loc_us-gaap_InterestExpenseTrustPreferredSecurities_ccb0503e-557c-04d7-8450-7f3cc6ffce15" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_17d6fb00-d8ca-12a7-45aa-c9b702218c16" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_41d4b64f-36ed-fc2b-44be-f667d024d8c2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_41d4b64f-36ed-fc2b-44be-f667d024d8c2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeOperating" xlink:label="loc_us-gaap_InterestIncomeOperating_268a7620-ecf1-70b7-f29b-722cf7efdb1c" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:to="loc_us-gaap_InterestIncomeOperating_268a7620-ecf1-70b7-f29b-722cf7efdb1c" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_InterestDueFromBanksAndOther" xlink:label="loc_bmrc_InterestDueFromBanksAndOther_2c627312-a379-74fd-6db0-53c547b52478" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:to="loc_bmrc_InterestDueFromBanksAndOther_2c627312-a379-74fd-6db0-53c547b52478" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfCondition" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Investments" xlink:label="loc_us-gaap_Investments_9f1ea5a8-e0ad-ec84-f87b-82d9863fd82f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_Investments_9f1ea5a8-e0ad-ec84-f87b-82d9863fd82f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="loc_us-gaap_HeldToMaturitySecurities_68681ceb-ee59-4c23-4b8e-33a166cc5b4e" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_9f1ea5a8-e0ad-ec84-f87b-82d9863fd82f" xlink:to="loc_us-gaap_HeldToMaturitySecurities_68681ceb-ee59-4c23-4b8e-33a166cc5b4e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_9f1ea5a8-e0ad-ec84-f87b-82d9863fd82f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_dca7a301-7b9b-bf9f-8832-b75fdb3bd6ce" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_dca7a301-7b9b-bf9f-8832-b75fdb3bd6ce" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_4246ec24-1a4c-19dd-57c9-32d4a8e0cbaa" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_4246ec24-1a4c-19dd-57c9-32d4a8e0cbaa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_37b440e2-656c-b624-0688-b7cf681bf981" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_Goodwill_37b440e2-656c-b624-0688-b7cf681bf981" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedCoreDepositsGross" xlink:label="loc_us-gaap_FiniteLivedCoreDepositsGross_8c2ce127-72f7-baf7-d32c-032c767c1d9e" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_FiniteLivedCoreDepositsGross_8c2ce127-72f7-baf7-d32c-032c767c1d9e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_dcf3df0d-2155-35f6-715d-83a9bc9cf3fb" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_dcf3df0d-2155-35f6-715d-83a9bc9cf3fb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_53a34e15-d375-c4e0-c5cf-68e055eee5e5" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_OtherAssets_53a34e15-d375-c4e0-c5cf-68e055eee5e5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_21c019f0-62e8-3b20-07d1-495695054dce" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_21c019f0-62e8-3b20-07d1-495695054dce" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:to="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_928e20af-e738-4a2d-05b8-cf88fed11953" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:to="loc_us-gaap_PreferredStockValue_928e20af-e738-4a2d-05b8-cf88fed11953" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_f05ab245-2bd1-7865-e7ed-1461a5a6155f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:to="loc_us-gaap_CommonStockValue_f05ab245-2bd1-7865-e7ed-1461a5a6155f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_62305d8f-d807-0fe8-d0ab-f2c2b3d03011" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_62305d8f-d807-0fe8-d0ab-f2c2b3d03011" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_988c1346-b444-a867-fe80-f3aec1443d54" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_988c1346-b444-a867-fe80-f3aec1443d54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:to="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Deposits" xlink:label="loc_us-gaap_Deposits_08c11e64-d78c-1df3-eb2d-2100602d7e9e" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_Deposits_08c11e64-d78c-1df3-eb2d-2100602d7e9e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoninterestBearingDepositLiabilities" xlink:label="loc_us-gaap_NoninterestBearingDepositLiabilities_114ac4fa-9318-d757-3ab2-2454a903c756" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_08c11e64-d78c-1df3-eb2d-2100602d7e9e" xlink:to="loc_us-gaap_NoninterestBearingDepositLiabilities_114ac4fa-9318-d757-3ab2-2454a903c756" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepositsNegotiableOrderOfWithdrawalNOW" xlink:label="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_1ef73cbd-35d5-8d3e-cf1e-bf886ce75755" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_08c11e64-d78c-1df3-eb2d-2100602d7e9e" xlink:to="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_1ef73cbd-35d5-8d3e-cf1e-bf886ce75755" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepositsSavingsDeposits" xlink:label="loc_us-gaap_DepositsSavingsDeposits_911ff4dd-b2e8-d16a-b85c-650fe3ab6208" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_08c11e64-d78c-1df3-eb2d-2100602d7e9e" xlink:to="loc_us-gaap_DepositsSavingsDeposits_911ff4dd-b2e8-d16a-b85c-650fe3ab6208" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepositsMoneyMarketDeposits" xlink:label="loc_us-gaap_DepositsMoneyMarketDeposits_6cd331d4-4b15-7752-d9e2-cfc0ed18ec52" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_08c11e64-d78c-1df3-eb2d-2100602d7e9e" xlink:to="loc_us-gaap_DepositsMoneyMarketDeposits_6cd331d4-4b15-7752-d9e2-cfc0ed18ec52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TimeDeposits" xlink:label="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_08c11e64-d78c-1df3-eb2d-2100602d7e9e" xlink:to="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiability" xlink:label="loc_us-gaap_FinanceLeaseLiability_66b601d4-fa3f-7d40-f560-84d87697ff03" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_FinanceLeaseLiability_66b601d4-fa3f-7d40-f560-84d87697ff03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubordinatedDebt" xlink:label="loc_us-gaap_SubordinatedDebt_e6b9b873-2e23-4cdf-9bb6-bd8bec4fec39" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_SubordinatedDebt_e6b9b873-2e23-4cdf-9bb6-bd8bec4fec39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_b983c2d8-8318-0a7e-1a5c-6ab2933f7be5" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_OperatingLeaseLiability_b983c2d8-8318-0a7e-1a5c-6ab2933f7be5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_ff0e0b1b-b140-8889-cbc7-6f0d76651556" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_OtherLiabilities_ff0e0b1b-b140-8889-cbc7-6f0d76651556" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdvancesFromFederalHomeLoanBanks" xlink:label="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_c4d3e1db-0e0c-e988-1eeb-10c1a72b4296" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_c4d3e1db-0e0c-e988-1eeb-10c1a72b4296" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/ConsolidatedStatementsOfConditionParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/Cover" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivities" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesInformationOnDerivativesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_b274590f-db8d-c465-e792-919d0f77fe3f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1_b1cbc740-a868-e0b9-ba6d-266169a8bad5" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNet_b274590f-db8d-c465-e792-919d0f77fe3f" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1_b1cbc740-a868-e0b9-ba6d-266169a8bad5" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_DerivativePaymentOnInterestRateDerivative" xlink:label="loc_bmrc_DerivativePaymentOnInterestRateDerivative_c08337c6-87ac-28c5-abcd-53c5484de70c" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNet_b274590f-db8d-c465-e792-919d0f77fe3f" xlink:to="loc_bmrc_DerivativePaymentOnInterestRateDerivative_c08337c6-87ac-28c5-abcd-53c5484de70c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_a8a073ff-30a0-a424-8c63-2db421ae5342" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNet_b274590f-db8d-c465-e792-919d0f77fe3f" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_a8a073ff-30a0-a424-8c63-2db421ae5342" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement" xlink:label="loc_bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement_6996e8c6-fcfb-86a2-e4b2-53c547d06609" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeGainLossOnDerivativeNet_b274590f-db8d-c465-e792-919d0f77fe3f" xlink:to="loc_bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement_6996e8c6-fcfb-86a2-e4b2-53c547d06609" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_98e02148-066a-a48e-c8ae-d004272ef99e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_c82360c5-eba3-fc2c-e3c9-227b956c69fd" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_98e02148-066a-a48e-c8ae-d004272ef99e" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_c82360c5-eba3-fc2c-e3c9-227b956c69fd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_6cb66114-bf63-d028-2d01-3d66f917fa7d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_c82360c5-eba3-fc2c-e3c9-227b956c69fd" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_6cb66114-bf63-d028-2d01-3d66f917fa7d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_72917570-227a-8bdb-1e78-6463f6305512" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_c82360c5-eba3-fc2c-e3c9-227b956c69fd" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_72917570-227a-8bdb-1e78-6463f6305512" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnCash" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_1647c165-45eb-9e3d-2908-911d1880235e" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_98e02148-066a-a48e-c8ae-d004272ef99e" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_1647c165-45eb-9e3d-2908-911d1880235e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_6fa3a097-5251-77f2-6636-1c0c36a4db94" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_98e02148-066a-a48e-c8ae-d004272ef99e" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_6fa3a097-5251-77f2-6636-1c0c36a4db94" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_fb018ba0-2f6c-6118-56fa-3489233892d1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimCash" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_6d9a6590-e0bc-1dce-827d-54df8179c784" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_fb018ba0-2f6c-6118-56fa-3489233892d1" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_6d9a6590-e0bc-1dce-827d-54df8179c784" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_d1ca3b6b-2c96-5299-529a-aa51edb7c767" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_fb018ba0-2f6c-6118-56fa-3489233892d1" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_d1ca3b6b-2c96-5299-529a-aa51edb7c767" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_e71ae707-eb75-3d79-5329-2d57b55cdf39" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_fb018ba0-2f6c-6118-56fa-3489233892d1" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_e71ae707-eb75-3d79-5329-2d57b55cdf39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_93b8afa1-df44-72a3-bafe-6e432f14f5b9" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_e71ae707-eb75-3d79-5329-2d57b55cdf39" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_93b8afa1-df44-72a3-bafe-6e432f14f5b9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_0078bdbb-290f-5ef0-62d2-056ec95a2492" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_e71ae707-eb75-3d79-5329-2d57b55cdf39" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_0078bdbb-290f-5ef0-62d2-056ec95a2492" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilities" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesFairValueOfFinancialInstrumentsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesRecordedOnRecurringBasisDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecurities" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesAmortizedCostAndFairValueDetails" xlink:type="extended">
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss_18f64d5f-216d-594c-94d1-53c54851d95b" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a23ab896-034e-8e96-1a84-63ffb40e496e" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss_18f64d5f-216d-594c-94d1-53c54851d95b" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a23ab896-034e-8e96-1a84-63ffb40e496e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_6a2ab4f1-73c0-397b-ff46-cdc67a75525b" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss_18f64d5f-216d-594c-94d1-53c54851d95b" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_6a2ab4f1-73c0-397b-ff46-cdc67a75525b" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis_74647390-637e-ed80-777b-53c5483a53ea" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_16e7280d-f1ff-d8b4-2ae4-a55b3f4e383f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis_74647390-637e-ed80-777b-53c5483a53ea" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_16e7280d-f1ff-d8b4-2ae4-a55b3f4e383f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_4f9b7046-b000-3e9f-077e-198f95563d5e" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_16e7280d-f1ff-d8b4-2ae4-a55b3f4e383f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_4f9b7046-b000-3e9f-077e-198f95563d5e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_d7d63001-cc8d-097b-a0dc-f2e7b842eedb" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_16e7280d-f1ff-d8b4-2ae4-a55b3f4e383f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_d7d63001-cc8d-097b-a0dc-f2e7b842eedb" xlink:type="arc" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_16e7280d-f1ff-d8b4-2ae4-a55b3f4e383f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_6a2ab4f1-73c0-397b-ff46-cdc67a75525b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis_74647390-637e-ed80-777b-53c5483a53ea" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_9fbaf9cb-468f-3b91-9cf2-18d26152173d" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_9fbaf9cb-468f-3b91-9cf2-18d26152173d" xlink:type="arc" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a23ab896-034e-8e96-1a84-63ffb40e496e" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain_1e4865b3-6273-8c52-3179-53c547ef966d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain_1e4865b3-6273-8c52-3179-53c547ef966d" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_d7d63001-cc8d-097b-a0dc-f2e7b842eedb" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain_1e4865b3-6273-8c52-3179-53c547ef966d" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_9fbaf9cb-468f-3b91-9cf2-18d26152173d" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue_d7fdf2ac-2d84-5b3d-25c0-53c54856e965" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue_d7fdf2ac-2d84-5b3d-25c0-53c54856e965" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue_d7fdf2ac-2d84-5b3d-25c0-53c54856e965" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_4f9b7046-b000-3e9f-077e-198f95563d5e" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_B6C0F66FFEFB55CBA9E526265769A9B2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_F9F2EA484B5251B3908E59D5D0C83486" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_B6C0F66FFEFB55CBA9E526265769A9B2" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_F9F2EA484B5251B3908E59D5D0C83486" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_D83EF90F3A1153EDA74F4A7D35CA2334" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_B6C0F66FFEFB55CBA9E526265769A9B2" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_D83EF90F3A1153EDA74F4A7D35CA2334" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_BFC07545106B51EA8DAE7058FF68EF54" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_B6C0F66FFEFB55CBA9E526265769A9B2" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_BFC07545106B51EA8DAE7058FF68EF54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_BE03B47DBD1E5C8494665DAFE382B0C2" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_B6C0F66FFEFB55CBA9E526265769A9B2" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_BE03B47DBD1E5C8494665DAFE382B0C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="loc_us-gaap_HeldToMaturitySecurities_7BA55FDB9BBE5C4EB518FBDF34214A36" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_ACB833D42707544CA16C903D9C31E258" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecurities_7BA55FDB9BBE5C4EB518FBDF34214A36" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_ACB833D42707544CA16C903D9C31E258" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_08D00AB1D6975F8F870FDD7090016EFD" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecurities_7BA55FDB9BBE5C4EB518FBDF34214A36" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_08D00AB1D6975F8F870FDD7090016EFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_8312C7D5A2215E3E85540EDA14391C0C" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecurities_7BA55FDB9BBE5C4EB518FBDF34214A36" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_8312C7D5A2215E3E85540EDA14391C0C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_D23629DE2D8F5164AA7BC8320EFEB830" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecurities_7BA55FDB9BBE5C4EB518FBDF34214A36" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_D23629DE2D8F5164AA7BC8320EFEB830" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_DF4378EE81085B029FA97E0675736379" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_529C7A19827F5AE49D017E7A161681F2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_DF4378EE81085B029FA97E0675736379" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_529C7A19827F5AE49D017E7A161681F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_8A42438DF9C2596894128669870B0701" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_DF4378EE81085B029FA97E0675736379" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_8A42438DF9C2596894128669870B0701" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_A72A58511ECA5414956B3054608F1807" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_DF4378EE81085B029FA97E0675736379" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_A72A58511ECA5414956B3054608F1807" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_C94C6FD8F5B3587D98ABCC672EE397BA" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_DF4378EE81085B029FA97E0675736379" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_C94C6FD8F5B3587D98ABCC672EE397BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_F1A749AD32745586B73CC31DBF210A30" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_4087DE6348895206B2B4A99498C03EFB" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_F1A749AD32745586B73CC31DBF210A30" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_4087DE6348895206B2B4A99498C03EFB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_1EC295BFFAB05BE4A42104F5AAF827A2" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_F1A749AD32745586B73CC31DBF210A30" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_1EC295BFFAB05BE4A42104F5AAF827A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_E0AB823805845F47B946B421095CB4F5" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_F1A749AD32745586B73CC31DBF210A30" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_E0AB823805845F47B946B421095CB4F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_9CEA02420E97541B943EF6031BD4CE32" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_F1A749AD32745586B73CC31DBF210A30" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_9CEA02420E97541B943EF6031BD4CE32" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesNonMarketableSecuritiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesPledgedAndTransferredSecuritiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesSalesOfInvestmentSecuritiesAndGrossGainsAndLossesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/InvestmentSecuritiesUnrealizedLossPositionsDetails" xlink:type="extended">
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_31A52C78A48E5F31983C3C566516EC0D" xlink:type="locator" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_DAF2A2DAC60E56638D76306DC88EFD40" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_31A52C78A48E5F31983C3C566516EC0D" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_DAF2A2DAC60E56638D76306DC88EFD40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_A780BEF0E5785617AF1297BB169C60D3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_DAF2A2DAC60E56638D76306DC88EFD40" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_A780BEF0E5785617AF1297BB169C60D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_E8D7D405095B501EA32A9DBF2F2339F9" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_DAF2A2DAC60E56638D76306DC88EFD40" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_E8D7D405095B501EA32A9DBF2F2339F9" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_AE0390421A5657729F8F223DA1485BE8" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_31A52C78A48E5F31983C3C566516EC0D" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_AE0390421A5657729F8F223DA1485BE8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_44EF3901A80251409EFED5AE93051988" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_AE0390421A5657729F8F223DA1485BE8" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_44EF3901A80251409EFED5AE93051988" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_84237B2CF1DF56BAA9A4FBECB4B4B0B7" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_AE0390421A5657729F8F223DA1485BE8" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_84237B2CF1DF56BAA9A4FBECB4B4B0B7" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_5091078B8CC15B9CA35F8460D8626A9C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_478A73C3A47C505DAF3E36045C5C4E10" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_5091078B8CC15B9CA35F8460D8626A9C" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_478A73C3A47C505DAF3E36045C5C4E10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_F8EAA151E8DB5A889FCA0BF23B2781EB" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_5091078B8CC15B9CA35F8460D8626A9C" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_F8EAA151E8DB5A889FCA0BF23B2781EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_08A96175C2C5596A8ACECFEDA940F04C" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_08A96175C2C5596A8ACECFEDA940F04C" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_44EF3901A80251409EFED5AE93051988" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_08A96175C2C5596A8ACECFEDA940F04C" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_A780BEF0E5785617AF1297BB169C60D3" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_A27D9A66968C54CA9F3CC11C101E5CBC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_87E9EE441DC950F688308C2459B82233" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_A27D9A66968C54CA9F3CC11C101E5CBC" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_87E9EE441DC950F688308C2459B82233" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_461D5232429A5093A474D29FE874EED5" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_87E9EE441DC950F688308C2459B82233" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_461D5232429A5093A474D29FE874EED5" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_87E9EE441DC950F688308C2459B82233" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_478A73C3A47C505DAF3E36045C5C4E10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_54A225652D0852C4AE4477A3358880F0" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_A27D9A66968C54CA9F3CC11C101E5CBC" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_54A225652D0852C4AE4477A3358880F0" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_54A225652D0852C4AE4477A3358880F0" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_F8EAA151E8DB5A889FCA0BF23B2781EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_387C443AECDE5841BA68105345C771AF" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_54A225652D0852C4AE4477A3358880F0" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_387C443AECDE5841BA68105345C771AF" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20190930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_67EE38B54F9F51B2A7DDB465DF9E0C20" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_67EE38B54F9F51B2A7DDB465DF9E0C20" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_461D5232429A5093A474D29FE874EED5" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_67EE38B54F9F51B2A7DDB465DF9E0C20" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_387C443AECDE5841BA68105345C771AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_72A6DAE5B7C9558185A72368C7CD58F8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_72A6DAE5B7C9558185A72368C7CD58F8" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_E8D7D405095B501EA32A9DBF2F2339F9" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_72A6DAE5B7C9558185A72368C7CD58F8" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_84237B2CF1DF56BAA9A4FBECB4B4B0B7" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLosses" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesAllowanceForLoanLossesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_cc5c1006-c22a-97e2-a6fb-a77bbc2c7a79" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_24223fe2-be24-eaf2-3dd6-5556dbeb1405" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_cc5c1006-c22a-97e2-a6fb-a77bbc2c7a79" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_24223fe2-be24-eaf2-3dd6-5556dbeb1405" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_c00c2fd4-3786-d090-a83a-648d5b7163d1" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_cc5c1006-c22a-97e2-a6fb-a77bbc2c7a79" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_c00c2fd4-3786-d090-a83a-648d5b7163d1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesReceivableNet" xlink:label="loc_us-gaap_NotesReceivableNet_3d52d34d-8d60-6172-4f19-5421e992ebcb" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_cc5c1006-c22a-97e2-a6fb-a77bbc2c7a79" xlink:to="loc_us-gaap_NotesReceivableNet_3d52d34d-8d60-6172-4f19-5421e992ebcb" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesCreditQualityDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesImpairedAndRelatedAllowanceDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_fdad77ca-28ce-252d-98a8-33a502e9b719" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_355294e2-98bf-73c6-5f01-e345d65d2410" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_fdad77ca-28ce-252d-98a8-33a502e9b719" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_355294e2-98bf-73c6-5f01-e345d65d2410" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_29b30077-67ac-dedd-5ca9-f881a29f3118" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_fdad77ca-28ce-252d-98a8-33a502e9b719" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_29b30077-67ac-dedd-5ca9-f881a29f3118" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesOutstandingAndAgingAnalysisDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_C23780815E42524D8A74FD464DE68BF1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_174A40CA43AE53328EF36EA33A246CCC" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_C23780815E42524D8A74FD464DE68BF1" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_174A40CA43AE53328EF36EA33A246CCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_2DD156FD1D5755249F8B61D5D78B20F2" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_C23780815E42524D8A74FD464DE68BF1" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_2DD156FD1D5755249F8B61D5D78B20F2" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesPledgedLoansDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesPurchasedCreditImpairedDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesRelatedPartyDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTroubledDebtRestructuringByClassDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTroubledDebtRestructuringModificationsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/RecentlyAdoptedAndIssuedAccountingStandards" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/RecentlyAdoptedAndIssuedAccountingStandardsNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/StockholdersEquity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/StockholdersEquityNarrativeDetails" xlink:type="extended" />
</link:linkbase>
