<?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/Acquisition" xlink:href="bmrc-20180930.xsd#Acquisition" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/AcquisitionNarrativeDetails" xlink:href="bmrc-20180930.xsd#AcquisitionNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/AcquisitionSummaryOfAcquisitionRelatedCostsDetails" xlink:href="bmrc-20180930.xsd#AcquisitionSummaryOfAcquisitionRelatedCostsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/AcquisitionTables" xlink:href="bmrc-20180930.xsd#AcquisitionTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentation" xlink:href="bmrc-20180930.xsd#BasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationPolicies" xlink:href="bmrc-20180930.xsd#BasisOfPresentationPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationReconciliationOfEarningsPerShareDetails" xlink:href="bmrc-20180930.xsd#BasisOfPresentationReconciliationOfEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationSummaryOfProformaEpsDetails" xlink:href="bmrc-20180930.xsd#BasisOfPresentationSummaryOfProformaEpsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BasisOfPresentationTables" xlink:href="bmrc-20180930.xsd#BasisOfPresentationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/Borrowings" xlink:href="bmrc-20180930.xsd#Borrowings" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BorrowingsLinesOfCreditDetails" xlink:href="bmrc-20180930.xsd#BorrowingsLinesOfCreditDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BorrowingsSubordinatedDebtDetails" xlink:href="bmrc-20180930.xsd#BorrowingsSubordinatedDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/BorrowingsTables" xlink:href="bmrc-20180930.xsd#BorrowingsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingencies" xlink:href="bmrc-20180930.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesDetails" xlink:href="bmrc-20180930.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/CommitmentsAndContingenciesTables" xlink:href="bmrc-20180930.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfChangesInStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfCondition" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfCondition" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/ConsolidatedStatementsOfConditionParenthetical" xlink:href="bmrc-20180930.xsd#ConsolidatedStatementsOfConditionParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivities" xlink:href="bmrc-20180930.xsd#DerivativeFinancialInstrumentsAndHedgingActivities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesInformationOnDerivativesDetails" xlink:href="bmrc-20180930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesInformationOnDerivativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfAssetsDetails" xlink:href="bmrc-20180930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfLiabilitiesDetails" xlink:href="bmrc-20180930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesTables" xlink:href="bmrc-20180930.xsd#DerivativeFinancialInstrumentsAndHedgingActivitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/DocumentAndEntityInformation" xlink:href="bmrc-20180930.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilities" xlink:href="bmrc-20180930.xsd#FairValueOfAssetsAndLiabilities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesFairValueOfFinancialInstrumentsDetails" xlink:href="bmrc-20180930.xsd#FairValueOfAssetsAndLiabilitiesFairValueOfFinancialInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesNarrativeDetails" xlink:href="bmrc-20180930.xsd#FairValueOfAssetsAndLiabilitiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesRecordedOnRecurringBasisDetails" xlink:href="bmrc-20180930.xsd#FairValueOfAssetsAndLiabilitiesRecordedOnRecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/FairValueOfAssetsAndLiabilitiesTables" xlink:href="bmrc-20180930.xsd#FairValueOfAssetsAndLiabilitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecurities" xlink:href="bmrc-20180930.xsd#InvestmentSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesAmortizedCostAndFairValueDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesAmortizedCostAndFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesMaturitiesDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesMaturitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesNarrativeDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesNonMarketableSecuritiesDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesNonMarketableSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesPledgedAndTransferredSecuritiesDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesPledgedAndTransferredSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesSalesOfInvestmentSecuritiesAndGrossGainsAndLossesDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesSalesOfInvestmentSecuritiesAndGrossGainsAndLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesTables" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/InvestmentSecuritiesUnrealizedLossPositionsDetails" xlink:href="bmrc-20180930.xsd#InvestmentSecuritiesUnrealizedLossPositionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLosses" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesAllowanceForLoanLossesDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesAllowanceForLoanLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesCreditQualityDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesCreditQualityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesImpairedAndRelatedAllowanceDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesImpairedAndRelatedAllowanceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesOutstandingAndAgingAnalysisDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesOutstandingAndAgingAnalysisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesPledgedLoansDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesPledgedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesPurchasedCreditImpairedDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesPurchasedCreditImpairedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesRelatedPartyDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesRelatedPartyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTables" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTroubledDebtRestructuringByClassDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesTroubledDebtRestructuringByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/LoansAndAllowanceForLoanLossesTroubledDebtRestructuringModificationsDetails" xlink:href="bmrc-20180930.xsd#LoansAndAllowanceForLoanLossesTroubledDebtRestructuringModificationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/RecentlyAdoptedAndIssuedAccountingStandards" xlink:href="bmrc-20180930.xsd#RecentlyAdoptedAndIssuedAccountingStandards" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/RecentlyAdoptedAndIssuedAccountingStandardsDetails" xlink:href="bmrc-20180930.xsd#RecentlyAdoptedAndIssuedAccountingStandardsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/StockholdersEquity" xlink:href="bmrc-20180930.xsd#StockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.bankofmarin.com/role/StockholdersEquityDetails" xlink:href="bmrc-20180930.xsd#StockholdersEquityDetails" xlink:type="simple" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/Acquisition" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/AcquisitionNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/AcquisitionSummaryOfAcquisitionRelatedCostsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_4f09b019-1798-ea9c-e343-c24acb96b019" xlink:type="locator" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DataProcessing" xlink:label="loc_bmrc_DataProcessing_778a0719-60d7-c553-f22f-80e8635d00fd" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_4f09b019-1798-ea9c-e343-c24acb96b019" xlink:to="loc_bmrc_DataProcessing_778a0719-60d7-c553-f22f-80e8635d00fd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfessionalFees" xlink:label="loc_us-gaap_ProfessionalFees_d3803021-4a6b-ba50-bb5d-805045e6e3a3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_4f09b019-1798-ea9c-e343-c24acb96b019" xlink:to="loc_us-gaap_ProfessionalFees_d3803021-4a6b-ba50-bb5d-805045e6e3a3" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_PersonnelSeverance" xlink:label="loc_bmrc_PersonnelSeverance_b548df19-0d46-f917-fccc-80e86472da4e" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_4f09b019-1798-ea9c-e343-c24acb96b019" xlink:to="loc_bmrc_PersonnelSeverance_b548df19-0d46-f917-fccc-80e86472da4e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_d09da395-8fdb-b903-4fff-0036db8908fa" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_4f09b019-1798-ea9c-e343-c24acb96b019" xlink:to="loc_us-gaap_OtherNoninterestExpense_d09da395-8fdb-b903-4fff-0036db8908fa" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/AcquisitionTables" xlink:type="extended" />
  <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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_21ce4f2f-397c-6c02-8635-7c94146a06a0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2dd9a981-e559-d141-f1c2-4db79f71a7ef" 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_21ce4f2f-397c-6c02-8635-7c94146a06a0" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2dd9a981-e559-d141-f1c2-4db79f71a7ef" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_e52bef3f-d63a-d129-8b6a-48192f5d97b3" 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_21ce4f2f-397c-6c02-8635-7c94146a06a0" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_e52bef3f-d63a-d129-8b6a-48192f5d97b3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends_66bbb7f4-5728-20f8-d291-a9b5e10a2fb2" 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_21ce4f2f-397c-6c02-8635-7c94146a06a0" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToNonvestedSharesWithForfeitableDividends_66bbb7f4-5728-20f8-d291-a9b5e10a2fb2" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentationSummaryOfProformaEpsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BasisOfPresentationTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/Borrowings" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BorrowingsLinesOfCreditDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BorrowingsSubordinatedDebtDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/BorrowingsTables" 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/CommitmentsAndContingenciesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_f3d34f3b-9a0c-658e-29c2-4e3a93f2cd51" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_f3d34f3b-9a0c-658e-29c2-4e3a93f2cd51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_ccaff3fc-3d87-e58a-0083-69dda0c10f9d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_ccaff3fc-3d87-e58a-0083-69dda0c10f9d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_39e76369-4fdc-9d5f-860a-45d0795e5fb0" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_39e76369-4fdc-9d5f-860a-45d0795e5fb0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_fe404cae-7fcc-3489-844f-4d90e9776180" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_fe404cae-7fcc-3489-844f-4d90e9776180" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_5b651b24-1278-4eab-c840-7002c6d68546" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_5b651b24-1278-4eab-c840-7002c6d68546" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_36c616b1-40de-90d4-3c05-7e224ce1169a" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_36c616b1-40de-90d4-3c05-7e224ce1169a" xlink:type="arc" />
  </link:calculationLink>
  <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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_ad8f5587-cd30-97dd-9cf0-81ed4f58516c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_ad8f5587-cd30-97dd-9cf0-81ed4f58516c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInDeposits" xlink:label="loc_us-gaap_IncreaseDecreaseInDeposits_e8af2fca-81f7-f33a-8acf-39682ab6a5e9" 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_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_IncreaseDecreaseInDeposits_e8af2fca-81f7-f33a-8acf-39682ab6a5e9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_706d3cc5-3df5-1e1a-5067-c02728407eb6" 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_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_706d3cc5-3df5-1e1a-5067-c02728407eb6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_43305c85-41ff-3d0f-c464-dc8983363bce" 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_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_43305c85-41ff-3d0f-c464-dc8983363bce" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_696ef8d0-385f-266e-0f61-04b954a738e7" 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_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_696ef8d0-385f-266e-0f61-04b954a738e7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_d4a92697-d008-996b-823a-bd9a56a04b3a" 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_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_d4a92697-d008-996b-823a-bd9a56a04b3a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_15de0c29-7f29-fc68-dcff-36f8e7ff06d8" 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_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_15de0c29-7f29-fc68-dcff-36f8e7ff06d8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_ad8f5587-cd30-97dd-9cf0-81ed4f58516c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireHeldToMaturitySecurities" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_858d4efd-0d7c-ee5c-52f0-1e178d025835" 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_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_858d4efd-0d7c-ee5c-52f0-1e178d025835" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_5a6cca43-79c5-34f3-6172-5859b13486b1" 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_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_5a6cca43-79c5-34f3-6172-5859b13486b1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_33cd5d62-efc5-7725-6424-7800a10af341" 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_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_33cd5d62-efc5-7725-6424-7800a10af341" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_dc943f7d-cd66-bc7b-55b1-34b41b88cbae" 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_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_dc943f7d-cd66-bc7b-55b1-34b41b88cbae" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_b2d1473c-d06a-7053-5039-5cb1510f932e" 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_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_b2d1473c-d06a-7053-5039-5cb1510f932e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1" xlink:label="loc_us-gaap_ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1_1dd1cc8b-ba8d-f0a2-794d-84360c3d03f4" 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_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1_1dd1cc8b-ba8d-f0a2-794d-84360c3d03f4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_6d89f221-3ede-36b2-fcad-4a4ce1606f6a" 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_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_6d89f221-3ede-36b2-fcad-4a4ce1606f6a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfForeclosedAssets" xlink:label="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_f7a05dd0-d1a9-4315-39bd-0a10a3074473" 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_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_f7a05dd0-d1a9-4315-39bd-0a10a3074473" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireRealEstateHeldForInvestment" xlink:label="loc_us-gaap_PaymentsToAcquireRealEstateHeldForInvestment_f6046b51-e4bc-ba3b-c8a8-af4fabea7258" 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_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquireRealEstateHeldForInvestment_f6046b51-e4bc-ba3b-c8a8-af4fabea7258" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_ad8f5587-cd30-97dd-9cf0-81ed4f58516c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_41102ac6-5583-ebde-623f-0dcb87ce19b0" 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_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments" xlink:label="loc_bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments_2c779c47-9070-5d90-b2e3-80e86360d740" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments_2c779c47-9070-5d90-b2e3-80e86360d740" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense" xlink:label="loc_us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense_3f62717f-7c58-838c-b4a5-1a1cf16bcf25" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_EmployeeStockOwnershipPlanESOPCompensationExpense_3f62717f-7c58-838c-b4a5-1a1cf16bcf25" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_CompensationExpenseCommonStockForDirectorFees" xlink:label="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_a62109cc-12d8-07ce-623c-80e86347b3e6" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_bmrc_CompensationExpenseCommonStockForDirectorFees_a62109cc-12d8-07ce-623c-80e86347b3e6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_90cbc3ab-f555-6407-b3b4-b2bfa84c9f18" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_ShareBasedCompensation_90cbc3ab-f555-6407-b3b4-b2bfa84c9f18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_afd0f625-a29a-3806-bad0-ad0ca19e7015" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_afd0f625-a29a-3806-bad0-ad0ca19e7015" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_4f3832d5-e2fd-470b-5e04-ece38e7ab02d" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_4f3832d5-e2fd-470b-5e04-ece38e7ab02d" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AccretionOfDiscountOnAcquiredLoans" xlink:label="loc_bmrc_AccretionOfDiscountOnAcquiredLoans_75b2cbc7-a918-f726-5a54-80e86349c1f4" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_bmrc_AccretionOfDiscountOnAcquiredLoans_75b2cbc7-a918-f726-5a54-80e86349c1f4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfDebtDiscountPremium" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_d883e212-a0a2-0f3a-80cd-5a5472a7f783" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_d883e212-a0a2-0f3a-80cd-5a5472a7f783" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfDeferredLoanOriginationFeesNet" xlink:label="loc_us-gaap_AmortizationOfDeferredLoanOriginationFeesNet_4b42539f-625e-8b12-9b63-5b3356864c00" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_AmortizationOfDeferredLoanOriginationFeesNet_4b42539f-625e-8b12-9b63-5b3356864c00" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtAndEquitySecuritiesGainLoss" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_d380605d-211f-0160-5c76-7d7032901bae" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_d380605d-211f-0160-5c76-7d7032901bae" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepreciationAndAmortization" xlink:label="loc_us-gaap_DepreciationAndAmortization_97b88949-d4fc-dff4-be7f-d39018557f4e" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_DepreciationAndAmortization_97b88949-d4fc-dff4-be7f-d39018557f4e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_7051af50-65b8-3377-3a03-896140e3a07f" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_7051af50-65b8-3377-3a03-896140e3a07f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BankOwnedLifeInsuranceIncome" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_ef383aa9-6c90-462f-4de7-3ef419e74577" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_ef383aa9-6c90-462f-4de7-3ef419e74577" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_IncreaseDecreaseInDeferredRentAndOtherRentRelatedExpenses" xlink:label="loc_bmrc_IncreaseDecreaseInDeferredRentAndOtherRentRelatedExpenses_92158569-6070-a7ab-758b-80e863b490a4" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_bmrc_IncreaseDecreaseInDeferredRentAndOtherRentRelatedExpenses_92158569-6070-a7ab-758b-80e863b490a4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_d54a644c-3d3c-bcc1-da30-2f136651f90f" 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_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_d54a644c-3d3c-bcc1-da30-2f136651f90f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_a039d388-4db8-a076-4618-28899f6ce801" xlink:type="locator" />
    <link:calculationArc order="16" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_41102ac6-5583-ebde-623f-0dcb87ce19b0" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_a039d388-4db8-a076-4618-28899f6ce801" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" 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_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_59645a08-ce25-9000-2f65-e4bfddb1182e" 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_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_59645a08-ce25-9000-2f65-e4bfddb1182e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_50c26228-785a-fe1d-06b0-b2a5fbc70cad" 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_59645a08-ce25-9000-2f65-e4bfddb1182e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_50c26228-785a-fe1d-06b0-b2a5fbc70cad" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_e89ca2aa-57c2-7da1-ce21-9385e8d6f5ea" 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_59645a08-ce25-9000-2f65-e4bfddb1182e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_e89ca2aa-57c2-7da1-ce21-9385e8d6f5ea" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_426e7037-e52e-6d57-8593-8389365a6ce7" 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_e89ca2aa-57c2-7da1-ce21-9385e8d6f5ea" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_426e7037-e52e-6d57-8593-8389365a6ce7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_38e7043a-91a1-7307-7d5a-7edbcdf6d346" 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_e89ca2aa-57c2-7da1-ce21-9385e8d6f5ea" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_38e7043a-91a1-7307-7d5a-7edbcdf6d346" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax" xlink:label="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax_54e6024f-a973-8032-a446-80e8632d479d" 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_e89ca2aa-57c2-7da1-ce21-9385e8d6f5ea" xlink:to="loc_bmrc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForInvestmentTransferredFromAvailableForSaleToHeldToMaturityBeforeTax_54e6024f-a973-8032-a446-80e8632d479d" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity" xlink:label="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_9cb8b0ef-1175-d270-d89e-80e863850259" 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_e89ca2aa-57c2-7da1-ce21-9385e8d6f5ea" xlink:to="loc_bmrc_AmortizationOfNetUnrealizedLossOnAvailableForSaleSecuritiesTransferredToHeldToMaturity_9cb8b0ef-1175-d270-d89e-80e863850259" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" 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_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:to="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_19dfad62-5a43-dcc4-04a8-012732c1ed97" 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_a10eea14-f4db-3125-d183-77bb54500e95" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" 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_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:to="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_d09da395-8fdb-b903-4fff-0036db8908fa" 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_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_OtherNoninterestExpense_d09da395-8fdb-b903-4fff-0036db8908fa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfessionalFees" xlink:label="loc_us-gaap_ProfessionalFees_d3803021-4a6b-ba50-bb5d-805045e6e3a3" 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_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_ProfessionalFees_d3803021-4a6b-ba50-bb5d-805045e6e3a3" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InformationTechnology" xlink:label="loc_bmrc_InformationTechnology_ae4fee13-73d2-675a-1e2d-80e863f0fe39" 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_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_bmrc_InformationTechnology_ae4fee13-73d2-675a-1e2d-80e863f0fe39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalDepositInsuranceCorporationPremiumExpense" xlink:label="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_837625a4-2315-6777-7d14-c530eb215f29" 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_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_837625a4-2315-6777-7d14-c530eb215f29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepreciationAndAmortization" xlink:label="loc_us-gaap_DepreciationAndAmortization_97b88949-d4fc-dff4-be7f-d39018557f4e" 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_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_DepreciationAndAmortization_97b88949-d4fc-dff4-be7f-d39018557f4e" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_OccupancyAndEquipment" xlink:label="loc_bmrc_OccupancyAndEquipment_a7e5d8b1-e70f-0a80-e5bc-80e8635c643f" 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_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_bmrc_OccupancyAndEquipment_a7e5d8b1-e70f-0a80-e5bc-80e8635c643f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_1283cb92-0ae2-bdeb-f803-6d5e502ce8d9" 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_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_LaborAndRelatedExpense_1283cb92-0ae2-bdeb-f803-6d5e502ce8d9" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments" xlink:label="loc_bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments_2c779c47-9070-5d90-b2e3-80e86360d740" 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_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_bmrc_ProvisionForReversalOfLossesOnOffBalanceSheetCommitments_2c779c47-9070-5d90-b2e3-80e86360d740" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestExpenseDirectorsFees" xlink:label="loc_us-gaap_NoninterestExpenseDirectorsFees_ea809190-8fd3-784c-ad9c-829066efcf52" 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_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_NoninterestExpenseDirectorsFees_ea809190-8fd3-784c-ad9c-829066efcf52" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DataProcessing" xlink:label="loc_bmrc_DataProcessing_778a0719-60d7-c553-f22f-80e8635d00fd" 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_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_bmrc_DataProcessing_778a0719-60d7-c553-f22f-80e8635d00fd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" 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_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:to="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_4562fc03-cbaf-a89b-d454-b9d16c5936b8" 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_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_4562fc03-cbaf-a89b-d454-b9d16c5936b8" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_MerchantInterchangeFees" xlink:label="loc_bmrc_MerchantInterchangeFees_86c4a2c0-994b-74a2-b25b-80e863326184" 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_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_bmrc_MerchantInterchangeFees_86c4a2c0-994b-74a2-b25b-80e863326184" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BankOwnedLifeInsuranceIncome" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_ef383aa9-6c90-462f-4de7-3ef419e74577" 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_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_ef383aa9-6c90-462f-4de7-3ef419e74577" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_3757e0a1-8c93-5316-53c9-8f3b34503211" 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_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_3757e0a1-8c93-5316-53c9-8f3b34503211" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DividendIncomeFederalHomeLoanBank" xlink:label="loc_bmrc_DividendIncomeFederalHomeLoanBank_eff08a27-0ac9-a75d-a8d4-80e863f8eb68" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_bmrc_DividendIncomeFederalHomeLoanBank_eff08a27-0ac9-a75d-a8d4-80e863f8eb68" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_43276f52-64d7-633b-1383-000dbf34adbf" 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_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_43276f52-64d7-633b-1383-000dbf34adbf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_9f6db274-5164-b640-b84e-10baf2f4757e" 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_43276f52-64d7-633b-1383-000dbf34adbf" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_9f6db274-5164-b640-b84e-10baf2f4757e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" 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_43276f52-64d7-633b-1383-000dbf34adbf" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_a56b34b7-57ab-a07c-7f03-8366849a14f0" 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_80036452-8f22-8b77-cf8f-49eda674198d" xlink:to="loc_us-gaap_InterestExpense_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits" xlink:label="loc_us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits_fac808fb-6724-8960-e154-02153718cc74" 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_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:to="loc_us-gaap_InterestExpenseNegotiableOrderOfWithdrawalNOWDeposits_fac808fb-6724-8960-e154-02153718cc74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseSavingsDeposits" xlink:label="loc_us-gaap_InterestExpenseSavingsDeposits_8ce85c02-e4ec-7ae7-e37e-3acdf5927942" 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_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:to="loc_us-gaap_InterestExpenseSavingsDeposits_8ce85c02-e4ec-7ae7-e37e-3acdf5927942" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseMoneyMarketDeposits" xlink:label="loc_us-gaap_InterestExpenseMoneyMarketDeposits_15a17173-3cac-7d57-05ed-1491a5befecc" 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_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:to="loc_us-gaap_InterestExpenseMoneyMarketDeposits_15a17173-3cac-7d57-05ed-1491a5befecc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseTimeDeposits" xlink:label="loc_us-gaap_InterestExpenseTimeDeposits_d216cf59-d6e6-148a-39cd-bd159b61b1c0" 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_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:to="loc_us-gaap_InterestExpenseTimeDeposits_d216cf59-d6e6-148a-39cd-bd159b61b1c0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseBorrowings" xlink:label="loc_us-gaap_InterestExpenseBorrowings_f0b31bbd-d00d-9f85-44b1-5d58621ff6a2" 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_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:to="loc_us-gaap_InterestExpenseBorrowings_f0b31bbd-d00d-9f85-44b1-5d58621ff6a2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseTrustPreferredSecurities" xlink:label="loc_us-gaap_InterestExpenseTrustPreferredSecurities_72af31ac-1e57-cd60-de71-946444759b0a" 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_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:to="loc_us-gaap_InterestExpenseTrustPreferredSecurities_72af31ac-1e57-cd60-de71-946444759b0a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" 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_80036452-8f22-8b77-cf8f-49eda674198d" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_5e280e98-99c6-f098-f4f9-65bce8235b66" 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_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_5e280e98-99c6-f098-f4f9-65bce8235b66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeSecuritiesOtherUSGovernment" xlink:label="loc_us-gaap_InterestIncomeSecuritiesOtherUSGovernment_c5667a86-c9df-60b3-1735-0fd757bfdbca" 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_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestIncomeSecuritiesOtherUSGovernment_c5667a86-c9df-60b3-1735-0fd757bfdbca" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeSecuritiesStateAndMunicipal" xlink:label="loc_us-gaap_InterestIncomeSecuritiesStateAndMunicipal_e83836a1-1f66-9c54-238c-73b5a54eb534" 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_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestIncomeSecuritiesStateAndMunicipal_e83836a1-1f66-9c54-238c-73b5a54eb534" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesOther" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesOther_b1f1f311-585d-9b3e-71fe-51125610f6c1" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesOther_b1f1f311-585d-9b3e-71fe-51125610f6c1" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_InterestDueFromBanksAndOther" xlink:label="loc_bmrc_InterestDueFromBanksAndOther_93f8883c-2ebb-143a-9be7-80e864138b3e" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_bmrc_InterestDueFromBanksAndOther_93f8883c-2ebb-143a-9be7-80e864138b3e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_97bbae57-7f84-4da9-acab-610e56204929" 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_a10eea14-f4db-3125-d183-77bb54500e95" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_97bbae57-7f84-4da9-acab-610e56204929" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Investments" xlink:label="loc_us-gaap_Investments_8a8ef201-5c33-fb75-8c70-8badb4bfe6f4" 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_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_Investments_8a8ef201-5c33-fb75-8c70-8badb4bfe6f4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="loc_us-gaap_HeldToMaturitySecurities_70d0d4df-f8d1-cf12-e04c-edcdce30731a" 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_8a8ef201-5c33-fb75-8c70-8badb4bfe6f4" xlink:to="loc_us-gaap_HeldToMaturitySecurities_70d0d4df-f8d1-cf12-e04c-edcdce30731a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" 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_8a8ef201-5c33-fb75-8c70-8badb4bfe6f4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" 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_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_f37ad080-c77a-efc5-c936-389b16abc420" 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_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_f37ad080-c77a-efc5-c936-389b16abc420" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_806083e9-63fa-5acf-a0c8-803a67715508" 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_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_OtherAssets_806083e9-63fa-5acf-a0c8-803a67715508" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndDueFromBanks" xlink:label="loc_us-gaap_CashAndDueFromBanks_f08f0ea2-f2a1-969a-62a5-610ddb2a9eda" 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_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_CashAndDueFromBanks_f08f0ea2-f2a1-969a-62a5-610ddb2a9eda" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedCoreDepositsGross" xlink:label="loc_us-gaap_FiniteLivedCoreDepositsGross_8dfe8d1a-57f3-fc9d-c59a-a22bad60e25a" 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_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_FiniteLivedCoreDepositsGross_8dfe8d1a-57f3-fc9d-c59a-a22bad60e25a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_831ad0b9-9dba-3997-20e6-e99a19aa28db" 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_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_Goodwill_831ad0b9-9dba-3997-20e6-e99a19aa28db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" 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_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_ea289a9d-deba-2cde-21e4-3d0ae7a1f011" 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_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:to="loc_us-gaap_PreferredStockValue_ea289a9d-deba-2cde-21e4-3d0ae7a1f011" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_aefe3f0c-abe4-5b83-9a64-da77d8e253dd" 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_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:to="loc_us-gaap_CommonStockValue_aefe3f0c-abe4-5b83-9a64-da77d8e253dd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a59bc5ae-63a0-c9bc-32f7-e2bd9f32bd26" 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_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a59bc5ae-63a0-c9bc-32f7-e2bd9f32bd26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_798442bf-12e1-d944-3fa1-8b797b67482e" 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_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_798442bf-12e1-d944-3fa1-8b797b67482e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" 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_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Deposits" xlink:label="loc_us-gaap_Deposits_bac76255-5267-a5d6-5c3c-ff8e870786ee" 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_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_Deposits_bac76255-5267-a5d6-5c3c-ff8e870786ee" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TimeDeposits" xlink:label="loc_us-gaap_TimeDeposits_427747a9-a7a6-1021-309a-ad5081134062" 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_bac76255-5267-a5d6-5c3c-ff8e870786ee" xlink:to="loc_us-gaap_TimeDeposits_427747a9-a7a6-1021-309a-ad5081134062" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepositsMoneyMarketDeposits" xlink:label="loc_us-gaap_DepositsMoneyMarketDeposits_7a2ceda8-cf68-7bff-7f74-f8b6ed0b1d07" 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_bac76255-5267-a5d6-5c3c-ff8e870786ee" xlink:to="loc_us-gaap_DepositsMoneyMarketDeposits_7a2ceda8-cf68-7bff-7f74-f8b6ed0b1d07" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepositsSavingsDeposits" xlink:label="loc_us-gaap_DepositsSavingsDeposits_3a2d9e56-b53d-135f-e591-681784530216" 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_bac76255-5267-a5d6-5c3c-ff8e870786ee" xlink:to="loc_us-gaap_DepositsSavingsDeposits_3a2d9e56-b53d-135f-e591-681784530216" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepositsNegotiableOrderOfWithdrawalNOW" xlink:label="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_cc9472a3-3b35-52ad-8a21-c6c21671d08c" 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_bac76255-5267-a5d6-5c3c-ff8e870786ee" xlink:to="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_cc9472a3-3b35-52ad-8a21-c6c21671d08c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestBearingDepositLiabilities" xlink:label="loc_us-gaap_NoninterestBearingDepositLiabilities_e132c416-fd6b-8a73-3443-4dbb97e7041b" 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_bac76255-5267-a5d6-5c3c-ff8e870786ee" xlink:to="loc_us-gaap_NoninterestBearingDepositLiabilities_e132c416-fd6b-8a73-3443-4dbb97e7041b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_b7c80bbc-e033-5d39-6a1b-ed85fbc903f7" 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_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_OtherLiabilities_b7c80bbc-e033-5d39-6a1b-ed85fbc903f7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubordinatedDebt" xlink:label="loc_us-gaap_SubordinatedDebt_09dd298a-e4ed-b05e-26af-e75d4775c837" 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_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_SubordinatedDebt_09dd298a-e4ed-b05e-26af-e75d4775c837" 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/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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_f29e1615-69a8-32d6-e81b-bb176e7348de" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1_22e096f9-fbc1-3d75-844d-58f227a85e90" 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_f29e1615-69a8-32d6-e81b-bb176e7348de" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfInterestRateFairValueHedgingInstruments1_22e096f9-fbc1-3d75-844d-58f227a85e90" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DerivativePaymentOnInterestRateDerivative" xlink:label="loc_bmrc_DerivativePaymentOnInterestRateDerivative_2e026a7a-2107-a2d9-6c73-80e8634360d9" 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_f29e1615-69a8-32d6-e81b-bb176e7348de" xlink:to="loc_bmrc_DerivativePaymentOnInterestRateDerivative_2e026a7a-2107-a2d9-6c73-80e8634360d9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_ce2cffa1-a8ba-1b94-4b24-faf68a407ce7" 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_f29e1615-69a8-32d6-e81b-bb176e7348de" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_ce2cffa1-a8ba-1b94-4b24-faf68a407ce7" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement" xlink:label="loc_bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement_18eeeff4-9113-db4b-f0be-80e8638e03f6" 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_f29e1615-69a8-32d6-e81b-bb176e7348de" xlink:to="loc_bmrc_DerivativeIncreaseDecreaseInValueOfYieldMaintenanceAgreement_18eeeff4-9113-db4b-f0be-80e8638e03f6" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.bankofmarin.com/role/DerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingOfAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_8B2A7FD7ABF9551688FFE21748704884" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_D16DC99460A35477B0ABC0DB44B41D7E" 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_8B2A7FD7ABF9551688FFE21748704884" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_D16DC99460A35477B0ABC0DB44B41D7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_ACF90A20C5DE5DB186510EF3DEB22D9B" 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_D16DC99460A35477B0ABC0DB44B41D7E" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_ACF90A20C5DE5DB186510EF3DEB22D9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_664A86C178C75F719A084EDB09E2D07B" 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_D16DC99460A35477B0ABC0DB44B41D7E" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_664A86C178C75F719A084EDB09E2D07B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnCash" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_00CB667A41EF50C2984E23D68F0A5C10" 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_8B2A7FD7ABF9551688FFE21748704884" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_00CB667A41EF50C2984E23D68F0A5C10" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_F2ED8FF2700A5BD59BE3CADA0FFA90B6" 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_8B2A7FD7ABF9551688FFE21748704884" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_F2ED8FF2700A5BD59BE3CADA0FFA90B6" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_9a2064d5-b196-da13-cee7-3947a6f63c98" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimCash" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_ba9b7e73-74c8-3d48-e5ba-ade1ad9434c2" 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_9a2064d5-b196-da13-cee7-3947a6f63c98" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_ba9b7e73-74c8-3d48-e5ba-ade1ad9434c2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_5244c507-3f42-5954-cc90-925b9f10faaf" 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_9a2064d5-b196-da13-cee7-3947a6f63c98" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_5244c507-3f42-5954-cc90-925b9f10faaf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_0ff8e868-09a7-6e5e-8ff9-ff0cfc9297c2" 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_9a2064d5-b196-da13-cee7-3947a6f63c98" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_0ff8e868-09a7-6e5e-8ff9-ff0cfc9297c2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_c269c798-d27a-aa37-4ec7-f78942e69904" 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_0ff8e868-09a7-6e5e-8ff9-ff0cfc9297c2" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_c269c798-d27a-aa37-4ec7-f78942e69904" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_c526cec7-2a96-da82-2b5c-b252c3ef64fd" 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_0ff8e868-09a7-6e5e-8ff9-ff0cfc9297c2" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_c526cec7-2a96-da82-2b5c-b252c3ef64fd" 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/DocumentAndEntityInformation" 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-20180930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss_4D57A15A238551EDAA5CCDA74EE0468C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_F97C936F9BFD5E6F8037D8C881A516AF" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss_4D57A15A238551EDAA5CCDA74EE0468C" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_F97C936F9BFD5E6F8037D8C881A516AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_14BCF00D769D5698B42F95F32AB5BBAC" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedLoss_4D57A15A238551EDAA5CCDA74EE0468C" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_14BCF00D769D5698B42F95F32AB5BBAC" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis_E1C4575597555194983E035FF680FD45" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_9EB97614C7EA54D2BCDD3CB002E603E1" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis_E1C4575597555194983E035FF680FD45" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_9EB97614C7EA54D2BCDD3CB002E603E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_AE9E709726565D1D8D490138FCE8E950" 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_9EB97614C7EA54D2BCDD3CB002E603E1" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_AE9E709726565D1D8D490138FCE8E950" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_C02FE712B5C651DAAFA711188C34C214" 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_9EB97614C7EA54D2BCDD3CB002E603E1" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_C02FE712B5C651DAAFA711188C34C214" 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_9EB97614C7EA54D2BCDD3CB002E603E1" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_14BCF00D769D5698B42F95F32AB5BBAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_44DB6A22A6DE5823961DB6748577BA32" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCostBasis_E1C4575597555194983E035FF680FD45" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_44DB6A22A6DE5823961DB6748577BA32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3C447B247B9C5B52927DE1417CA2B20A" 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_44DB6A22A6DE5823961DB6748577BA32" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3C447B247B9C5B52927DE1417CA2B20A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_888BF7C0475E5863B78D1EA084F9C790" 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_44DB6A22A6DE5823961DB6748577BA32" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_888BF7C0475E5863B78D1EA084F9C790" 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_44DB6A22A6DE5823961DB6748577BA32" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_F97C936F9BFD5E6F8037D8C881A516AF" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue_4014DD94FC2C584DB7728792D83623C8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue_4014DD94FC2C584DB7728792D83623C8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3C447B247B9C5B52927DE1417CA2B20A" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesFairValue_4014DD94FC2C584DB7728792D83623C8" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_AE9E709726565D1D8D490138FCE8E950" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain_353728DE021451BDBC2941E73824CCE5" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain_353728DE021451BDBC2941E73824CCE5" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_C02FE712B5C651DAAFA711188C34C214" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesAccumulatedGrossUnrealizedGain_353728DE021451BDBC2941E73824CCE5" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_888BF7C0475E5863B78D1EA084F9C790" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3C447B247B9C5B52927DE1417CA2B20A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_2A19B811ED2E5F60812CA4851279DA4B" 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_3C447B247B9C5B52927DE1417CA2B20A" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_2A19B811ED2E5F60812CA4851279DA4B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_FEB72BF575A4546DB52B2384B90D53BD" 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_3C447B247B9C5B52927DE1417CA2B20A" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_FEB72BF575A4546DB52B2384B90D53BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_3EEC8C8BDECE5099B8DED4416A4E2BC3" 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_3C447B247B9C5B52927DE1417CA2B20A" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_3EEC8C8BDECE5099B8DED4416A4E2BC3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_61BBA68DC45256FE968D4EB273355050" 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_3C447B247B9C5B52927DE1417CA2B20A" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_61BBA68DC45256FE968D4EB273355050" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_44DB6A22A6DE5823961DB6748577BA32" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_AE7CC2CEBED957E38AEC770D1E432173" 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_44DB6A22A6DE5823961DB6748577BA32" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_AE7CC2CEBED957E38AEC770D1E432173" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_448A849A4DAA59088BF04354599A2A68" 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_44DB6A22A6DE5823961DB6748577BA32" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_448A849A4DAA59088BF04354599A2A68" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_45FA777329415A80A2E8E78AA3C496F6" 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_44DB6A22A6DE5823961DB6748577BA32" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_45FA777329415A80A2E8E78AA3C496F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_4C9830779F2551E3BA507D05B2693A3F" 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_44DB6A22A6DE5823961DB6748577BA32" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_4C9830779F2551E3BA507D05B2693A3F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_AE9E709726565D1D8D490138FCE8E950" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_A304FDBFA136514FA9CE0CC2645FE863" 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_AE9E709726565D1D8D490138FCE8E950" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_A304FDBFA136514FA9CE0CC2645FE863" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_A80716355F5F5EA89B6F13E752E77062" 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_AE9E709726565D1D8D490138FCE8E950" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_A80716355F5F5EA89B6F13E752E77062" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_277874B8F44E5085A944E1851276A1E6" 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_AE9E709726565D1D8D490138FCE8E950" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_277874B8F44E5085A944E1851276A1E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_5937A14C207A5F2391D3C577B9AB0674" 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_AE9E709726565D1D8D490138FCE8E950" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_5937A14C207A5F2391D3C577B9AB0674" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="loc_us-gaap_HeldToMaturitySecurities_C9858D4148B85CDABFC781FDC8D7B1A4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_E1C72345BB2D5FDB92F8CD58B72AC4D3" 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_C9858D4148B85CDABFC781FDC8D7B1A4" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_E1C72345BB2D5FDB92F8CD58B72AC4D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_B894BA00DCA65A9FAA35DDE5E492444C" 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_C9858D4148B85CDABFC781FDC8D7B1A4" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_B894BA00DCA65A9FAA35DDE5E492444C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_60D623C4F4045DCBBDC8A905B8F09B03" 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_C9858D4148B85CDABFC781FDC8D7B1A4" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_60D623C4F4045DCBBDC8A905B8F09B03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_73D4A2383D1557699DE586C71E4CE429" 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_C9858D4148B85CDABFC781FDC8D7B1A4" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_73D4A2383D1557699DE586C71E4CE429" 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-20180930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_91df1323-d9ea-bcc0-47d1-80e8634402a9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_db9e5922-2e70-406b-1ac3-0318ebdc102f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_91df1323-d9ea-bcc0-47d1-80e8634402a9" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_db9e5922-2e70-406b-1ac3-0318ebdc102f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_582eb562-b44c-058a-8090-76a8ae174bd8" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPosition12MonthsorLongerAccumulatedLoss_91df1323-d9ea-bcc0-47d1-80e8634402a9" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_582eb562-b44c-058a-8090-76a8ae174bd8" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_3d4ea7d9-800d-799b-63b9-80e863e0a0e4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_5ad2bd9a-8a3d-b589-f487-66423fdb193d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_3d4ea7d9-800d-799b-63b9-80e863e0a0e4" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_5ad2bd9a-8a3d-b589-f487-66423fdb193d" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_5ad2bd9a-8a3d-b589-f487-66423fdb193d" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_db9e5922-2e70-406b-1ac3-0318ebdc102f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_97b62833-0a42-058f-3886-4b4d65c49079" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_5ad2bd9a-8a3d-b589-f487-66423fdb193d" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_97b62833-0a42-058f-3886-4b4d65c49079" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_748a8c9c-61e9-42c9-7212-750dd04458b8" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_3d4ea7d9-800d-799b-63b9-80e863e0a0e4" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_748a8c9c-61e9-42c9-7212-750dd04458b8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_c781fa38-f346-b384-de05-a84174c97f40" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_748a8c9c-61e9-42c9-7212-750dd04458b8" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_c781fa38-f346-b384-de05-a84174c97f40" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_748a8c9c-61e9-42c9-7212-750dd04458b8" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_582eb562-b44c-058a-8090-76a8ae174bd8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_af9751bd-9ef3-d03c-04d5-f8f88c6250ed" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_27bf5a01-52cf-5d4c-3b22-ae83d6d4f819" 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_af9751bd-9ef3-d03c-04d5-f8f88c6250ed" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_27bf5a01-52cf-5d4c-3b22-ae83d6d4f819" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_bef10eab-2322-7526-a908-c5a50dfcb38d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_af9751bd-9ef3-d03c-04d5-f8f88c6250ed" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_bef10eab-2322-7526-a908-c5a50dfcb38d" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss" xlink:label="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_3999144f-2758-ef8d-2b3c-80e863544a0a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_3999144f-2758-ef8d-2b3c-80e863544a0a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_97b62833-0a42-058f-3886-4b4d65c49079" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableforsaleSecuritiesandHeldtomaturitySecuritiesContinuousUnrealizedLossPositionLessthan12MonthsAccumulatedLoss_3999144f-2758-ef8d-2b3c-80e863544a0a" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_c781fa38-f346-b384-de05-a84174c97f40" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_625fe982-c940-7711-80dd-80e86483e965" xlink:type="locator" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_a5e39404-eb6e-483e-cdfa-80e863c61b01" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_625fe982-c940-7711-80dd-80e86483e965" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_a5e39404-eb6e-483e-cdfa-80e863c61b01" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_a5e39404-eb6e-483e-cdfa-80e863c61b01" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_bef10eab-2322-7526-a908-c5a50dfcb38d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_9dc7d38b-d1f1-ee4c-83ca-bf0de39ac02c" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_a5e39404-eb6e-483e-cdfa-80e863c61b01" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_9dc7d38b-d1f1-ee4c-83ca-bf0de39ac02c" xlink:type="arc" />
    <link:loc xlink:href="bmrc-20180930.xsd#bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_25b5dfca-5737-c3b8-dd03-80e8635a2c7f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValueTotal_625fe982-c940-7711-80dd-80e86483e965" xlink:to="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_25b5dfca-5737-c3b8-dd03-80e8635a2c7f" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_25b5dfca-5737-c3b8-dd03-80e8635a2c7f" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_27bf5a01-52cf-5d4c-3b22-ae83d6d4f819" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_540feb58-a104-9e2c-e527-965521238e74" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_bmrc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_25b5dfca-5737-c3b8-dd03-80e8635a2c7f" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_540feb58-a104-9e2c-e527-965521238e74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_5fba5b8c-f33f-c8fe-316d-96157b5eaddf" 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_5fba5b8c-f33f-c8fe-316d-96157b5eaddf" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_9dc7d38b-d1f1-ee4c-83ca-bf0de39ac02c" 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_5fba5b8c-f33f-c8fe-316d-96157b5eaddf" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_540feb58-a104-9e2c-e527-965521238e74" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_7fc12937-eaa2-55a7-e865-f85ce1360766" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_fdda4884-a15d-3311-52f9-6149947dcf70" 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_7fc12937-eaa2-55a7-e865-f85ce1360766" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_fdda4884-a15d-3311-52f9-6149947dcf70" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_67d184fe-5d25-860b-7c00-2caf210e10b0" 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_7fc12937-eaa2-55a7-e865-f85ce1360766" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_67d184fe-5d25-860b-7c00-2caf210e10b0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NotesReceivableNet" xlink:label="loc_us-gaap_NotesReceivableNet_edffac08-c4fd-5b58-bfd8-cb7d3227e37a" 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_7fc12937-eaa2-55a7-e865-f85ce1360766" xlink:to="loc_us-gaap_NotesReceivableNet_edffac08-c4fd-5b58-bfd8-cb7d3227e37a" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_7fe2fb9a-d4a5-c40c-5fda-872a4762476e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_894e98ed-a0c1-54bf-656f-b8d7234fa885" 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_7fe2fb9a-d4a5-c40c-5fda-872a4762476e" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_894e98ed-a0c1-54bf-656f-b8d7234fa885" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_d55eb292-11ba-3ba1-09df-1e6bc4b784c8" 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_7fe2fb9a-d4a5-c40c-5fda-872a4762476e" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_d55eb292-11ba-3ba1-09df-1e6bc4b784c8" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_68A2358C70245951B18504E49FE8D85D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_5539A023A9C2500E9A11724FCC60F83C" 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_68A2358C70245951B18504E49FE8D85D" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_5539A023A9C2500E9A11724FCC60F83C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_FECB99FC0E825FCAA7A958C80B11920E" 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_68A2358C70245951B18504E49FE8D85D" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_FECB99FC0E825FCAA7A958C80B11920E" 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/RecentlyAdoptedAndIssuedAccountingStandardsDetails" 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/StockholdersEquityDetails" xlink:type="extended" />
</link:linkbase>
