<?xml version="1.0" encoding="utf-8"?>
<!--XBRL document created with Toppan Merrill Bridge  11.3.0.1 -->
<!--Based on XBRL 2.1-->
<!--Created on: 5/5/2026 7:35:07 PM-->
<!--Modified on: 5/5/2026 7:35:07 PM-->
<link:linkbase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance">
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#StatementConsolidatedBalanceSheets" roleURI="http://www.bhbt.com/role/StatementConsolidatedBalanceSheets" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#StatementConsolidatedStatementsOfIncome" roleURI="http://www.bhbt.com/role/StatementConsolidatedStatementsOfIncome" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#StatementConsolidatedStatementsOfComprehensiveIncome" roleURI="http://www.bhbt.com/role/StatementConsolidatedStatementsOfComprehensiveIncome" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#StatementConsolidatedStatementsOfCashFlows" roleURI="http://www.bhbt.com/role/StatementConsolidatedStatementsOfCashFlows" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureMaturityOfAvailableForSaleSecuritiesDetailsCalc2" roleURI="http://www.bhbt.com/role/DisclosureMaturityOfAvailableForSaleSecuritiesDetailsCalc2" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureSecuritiesAvailableForSaleSummaryOfAvailableForSaleDebtSecuritiesDetails" roleURI="http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSummaryOfAvailableForSaleDebtSecuritiesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureSecuritiesAvailableForSaleMaturitiesOfAvailableForSaleSecuritiesDetails" roleURI="http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleMaturitiesOfAvailableForSaleSecuritiesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureSecuritiesAvailableForSaleSummaryOfSecuritiesWithUnrealizedLossesDetails" roleURI="http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSummaryOfSecuritiesWithUnrealizedLossesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureSecuritiesAvailableForSaleSecuritiesPledgedForCollateralDetails" roleURI="http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSecuritiesPledgedForCollateralDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureLoansAndAllowanceForCreditLossesUnamortizedNetCostsAndPremiumsDetails" roleURI="http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesUnamortizedNetCostsAndPremiumsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureLoansAndAllowanceForCreditLossesLoansByYearOfOriginationLoanSegmentationAndRiskIndicatorDetails" roleURI="http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesLoansByYearOfOriginationLoanSegmentationAndRiskIndicatorDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureLoansAndAllowanceForCreditLossesPcdLoansDetails" roleURI="http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesPcdLoansDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureBorrowedFundsSummaryOfBorrowedFundsDetails" roleURI="http://www.bhbt.com/role/DisclosureBorrowedFundsSummaryOfBorrowedFundsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureBorrowedFundsMaturitiesOfFhlbAdvancesDetails" roleURI="http://www.bhbt.com/role/DisclosureBorrowedFundsMaturitiesOfFhlbAdvancesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureDepositsComponentsDetails" roleURI="http://www.bhbt.com/role/DisclosureDepositsComponentsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureDepositsMaturitiesBrokeredReciprocalDetails" roleURI="http://www.bhbt.com/role/DisclosureDepositsMaturitiesBrokeredReciprocalDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureCapitalRatiosAndShareholdersEquityComponentsOfAocilDetails" roleURI="http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityComponentsOfAocilDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureCapitalRatiosAndShareholdersEquityComponentsOfOcilDetails" roleURI="http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityComponentsOfOcilDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureCapitalRatiosAndShareholdersEquityAmountsReclassifiedOutOfAociDetails" roleURI="http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityAmountsReclassifiedOutOfAociDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureEarningsPerShareDetails" roleURI="http://www.bhbt.com/role/DisclosureEarningsPerShareDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingAssetsAndLiabilitiesDetails" roleURI="http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingAssetsAndLiabilitiesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureFairValueMeasurementsUnobservableInputsRecurringDetails" roleURI="http://www.bhbt.com/role/DisclosureFairValueMeasurementsUnobservableInputsRecurringDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureFairValueMeasurementsUnobservableInputsNonRecurringDetails" roleURI="http://www.bhbt.com/role/DisclosureFairValueMeasurementsUnobservableInputsNonRecurringDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureGoodwillAndOtherIntangiblesIntangibleAssetsDetails" roleURI="http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangiblesIntangibleAssetsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureLeasesFutureMinimumPaymentsForLeasesDetailsCalc2" roleURI="http://www.bhbt.com/role/DisclosureLeasesFutureMinimumPaymentsForLeasesDetailsCalc2" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureLeasesLeaseTermAndCostDetails" roleURI="http://www.bhbt.com/role/DisclosureLeasesLeaseTermAndCostDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="bhb-20260331.xsd#DisclosureShareholdersEquityAndEarningsPerCommonShareComponentsOfOciDetailsCalc2" roleURI="http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareComponentsOfOciDetailsCalc2" xmlns="http://www.xbrl.org/2003/linkbase" />
  <link:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item" />
  <calculationLink xlink:role="http://www.bhbt.com/role/StatementConsolidatedBalanceSheets" xlink:type="extended" xlink:title="995200100 - Statement - CONSOLIDATED BALANCE SHEETS" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets" xlink:label="us-gaap_Assets" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssets" xlink:label="us-gaap_OtherAssets_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_OtherAssets_639136065040847167" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxAssetsNet" xlink:label="us-gaap_DeferredIncomeTaxAssetsNet_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_DeferredIncomeTaxAssetsNet_639136065040847167" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BankOwnedLifeInsurance" xlink:label="us-gaap_BankOwnedLifeInsurance_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_BankOwnedLifeInsurance_639136065040847167" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="us-gaap_IntangibleAssetsNetExcludingGoodwill_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_IntangibleAssetsNetExcludingGoodwill_639136065040847167" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill" xlink:label="us-gaap_Goodwill_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_Goodwill_639136065040847167" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="us-gaap_PropertyPlantAndEquipmentNet_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_PropertyPlantAndEquipmentNet_639136065040847167" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:label="us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_639136065040847167" order="7" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest" xlink:label="us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_639136065040847167" xlink:to="us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_639136065040847167" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss" xlink:label="us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_639136065040847167" xlink:to="us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_639136065040847167" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoansReceivableHeldForSaleAmount" xlink:label="us-gaap_LoansReceivableHeldForSaleAmount_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_LoansReceivableHeldForSaleAmount_639136065040847167" order="8" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankStock" xlink:label="us-gaap_FederalHomeLoanBankStock_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_FederalHomeLoanBankStock_639136065040847167" order="9" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_MarketableSecuritiesAfterAllowanceForCreditLoss" xlink:label="bhb_MarketableSecuritiesAfterAllowanceForCreditLoss_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="bhb_MarketableSecuritiesAfterAllowanceForCreditLoss_639136065040847167" order="10" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="bhb_MarketableSecuritiesAfterAllowanceForCreditLoss_639136065040847167" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_639136065040847167" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="bhb_MarketableSecuritiesAfterAllowanceForCreditLoss_639136065040847167" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_639136065040847167" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue_639136065040847167" order="11" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestBearingDepositsInBanks" xlink:label="us-gaap_InterestBearingDepositsInBanks_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_CashAndCashEquivalentsAtCarryingValue_639136065040847167" xlink:to="us-gaap_InterestBearingDepositsInBanks_639136065040847167" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndDueFromBanks" xlink:label="us-gaap_CashAndDueFromBanks_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_CashAndCashEquivalentsAtCarryingValue_639136065040847167" xlink:to="us-gaap_CashAndDueFromBanks_639136065040847167" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities" xlink:label="us-gaap_Liabilities_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:to="us-gaap_Liabilities_639136065040847167" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Deposits" xlink:label="us-gaap_Deposits_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Liabilities_639136065040847167" xlink:to="us-gaap_Deposits_639136065040847167" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestBearingDomesticDepositDemand" xlink:label="us-gaap_NoninterestBearingDomesticDepositDemand_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Deposits_639136065040847167" xlink:to="us-gaap_NoninterestBearingDomesticDepositDemand_639136065040847167" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestBearingDomesticDepositNegotiableOrderOfWithdrawalNOW" xlink:label="us-gaap_InterestBearingDomesticDepositNegotiableOrderOfWithdrawalNOW_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Deposits_639136065040847167" xlink:to="us-gaap_InterestBearingDomesticDepositNegotiableOrderOfWithdrawalNOW_639136065040847167" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepositsMoneyMarketDeposits" xlink:label="us-gaap_DepositsMoneyMarketDeposits_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Deposits_639136065040847167" xlink:to="us-gaap_DepositsMoneyMarketDeposits_639136065040847167" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepositsSavingsDeposits" xlink:label="us-gaap_DepositsSavingsDeposits_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Deposits_639136065040847167" xlink:to="us-gaap_DepositsSavingsDeposits_639136065040847167" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits" xlink:label="us-gaap_TimeDeposits_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Deposits_639136065040847167" xlink:to="us-gaap_TimeDeposits_639136065040847167" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtAndCapitalLeaseObligations" xlink:label="us-gaap_DebtAndCapitalLeaseObligations_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Liabilities_639136065040847167" xlink:to="us-gaap_DebtAndCapitalLeaseObligations_639136065040847167" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SeniorNotes" xlink:label="us-gaap_SeniorNotes_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtAndCapitalLeaseObligations_639136065040847167" xlink:to="us-gaap_SeniorNotes_639136065040847167" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_JuniorSubordinatedNotes" xlink:label="us-gaap_JuniorSubordinatedNotes_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtAndCapitalLeaseObligations_639136065040847167" xlink:to="us-gaap_JuniorSubordinatedNotes_639136065040847167" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilities" xlink:label="us-gaap_OtherLiabilities_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Liabilities_639136065040847167" xlink:to="us-gaap_OtherLiabilities_639136065040847167" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity" xlink:label="us-gaap_StockholdersEquity_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:to="us-gaap_StockholdersEquity_639136065040847167" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue" xlink:label="us-gaap_CommonStockValue_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639136065040847167" xlink:to="us-gaap_CommonStockValue_639136065040847167" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapitalCommonStock" xlink:label="us-gaap_AdditionalPaidInCapitalCommonStock_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639136065040847167" xlink:to="us-gaap_AdditionalPaidInCapitalCommonStock_639136065040847167" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="us-gaap_RetainedEarningsAccumulatedDeficit_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639136065040847167" xlink:to="us-gaap_RetainedEarningsAccumulatedDeficit_639136065040847167" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639136065040847167" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_639136065040847167" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockCommonValue" xlink:label="us-gaap_TreasuryStockCommonValue_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639136065040847167" xlink:to="us-gaap_TreasuryStockCommonValue_639136065040847167" order="5" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/StatementConsolidatedStatementsOfIncome" xlink:type="extended" xlink:title="995200200 - Statement - CONSOLIDATED STATEMENTS OF INCOME" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="us-gaap_IncomeTaxExpenseBenefit_639136065040847167" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:to="us-gaap_IncomeTaxExpenseBenefit_639136065040847167" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639136065041003828" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639136065041003828" xlink:to="us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_639136065041003828" order="1" use="optional" weight="1" priority="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="us-gaap_InterestIncomeExpenseNet_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_639136065041003828" xlink:to="us-gaap_InterestIncomeExpenseNet_639136065041003828" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="us-gaap_InterestAndDividendIncomeOperating_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseNet_639136065041003828" xlink:to="us-gaap_InterestAndDividendIncomeOperating_639136065041003828" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="us-gaap_InterestAndFeeIncomeLoansAndLeases_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_639136065041003828" xlink:to="us-gaap_InterestAndFeeIncomeLoansAndLeases_639136065041003828" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeSecurities" xlink:label="us-gaap_InterestAndDividendIncomeSecurities_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_639136065041003828" xlink:to="us-gaap_InterestAndDividendIncomeSecurities_639136065041003828" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeDepositsWithFinancialInstitutions" xlink:label="us-gaap_InterestIncomeDepositsWithFinancialInstitutions_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_639136065041003828" xlink:to="us-gaap_InterestIncomeDepositsWithFinancialInstitutions_639136065041003828" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_DividendIncomeFromInvestmentInFederalHomeLoanBankStock" xlink:label="bhb_DividendIncomeFromInvestmentInFederalHomeLoanBankStock_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestAndDividendIncomeOperating_639136065041003828" xlink:to="bhb_DividendIncomeFromInvestmentInFederalHomeLoanBankStock_639136065041003828" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating" xlink:label="us-gaap_InterestExpenseOperating_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseNet_639136065041003828" xlink:to="us-gaap_InterestExpenseOperating_639136065041003828" order="2" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseDeposits" xlink:label="us-gaap_InterestExpenseDeposits_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestExpenseOperating_639136065041003828" xlink:to="us-gaap_InterestExpenseDeposits_639136065041003828" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseBorrowings" xlink:label="us-gaap_InterestExpenseBorrowings_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestExpenseOperating_639136065041003828" xlink:to="us-gaap_InterestExpenseBorrowings_639136065041003828" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_ProvisionForCreditLossesOnSecuritiesAvailableForSale" xlink:label="bhb_ProvisionForCreditLossesOnSecuritiesAvailableForSale_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_639136065041003828" xlink:to="bhb_ProvisionForCreditLossesOnSecuritiesAvailableForSale_639136065041003828" order="2" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal" xlink:label="us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_639136065041003828" xlink:to="us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal_639136065041003828" order="3" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome" xlink:label="us-gaap_NoninterestIncome_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639136065041003828" xlink:to="us-gaap_NoninterestIncome_639136065041003828" order="2" use="optional" weight="1" priority="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentBankingRevenue" xlink:label="us-gaap_InvestmentBankingRevenue_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_639136065041003828" xlink:to="us-gaap_InvestmentBankingRevenue_639136065041003828" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_FeesAndCommissionsDepositorAccounts1" xlink:label="bhb_FeesAndCommissionsDepositorAccounts1_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_639136065041003828" xlink:to="bhb_FeesAndCommissionsDepositorAccounts1_639136065041003828" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleGainLoss" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleGainLoss_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_639136065041003828" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleGainLoss_639136065041003828" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProfitLossFromRealEstateOperations" xlink:label="us-gaap_ProfitLossFromRealEstateOperations_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_639136065041003828" xlink:to="us-gaap_ProfitLossFromRealEstateOperations_639136065041003828" order="4" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BankOwnedLifeInsuranceIncome" xlink:label="us-gaap_BankOwnedLifeInsuranceIncome_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_639136065041003828" xlink:to="us-gaap_BankOwnedLifeInsuranceIncome_639136065041003828" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_FeesAndCommissionsCustomerDerivativeIncome" xlink:label="bhb_FeesAndCommissionsCustomerDerivativeIncome_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_639136065041003828" xlink:to="bhb_FeesAndCommissionsCustomerDerivativeIncome_639136065041003828" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncomeOther" xlink:label="us-gaap_NoninterestIncomeOther_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestIncome_639136065041003828" xlink:to="us-gaap_NoninterestIncomeOther_639136065041003828" order="7" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestExpense" xlink:label="us-gaap_NoninterestExpense_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639136065041003828" xlink:to="us-gaap_NoninterestExpense_639136065041003828" order="3" use="optional" weight="-1" priority="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="us-gaap_LaborAndRelatedExpense_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_LaborAndRelatedExpense_639136065041003828" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OccupancyNet" xlink:label="us-gaap_OccupancyNet_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_OccupancyNet_639136065041003828" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Depreciation" xlink:label="us-gaap_Depreciation_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_Depreciation_639136065041003828" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment" xlink:label="us-gaap_GainLossOnSaleOfPropertyPlantEquipment_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_GainLossOnSaleOfPropertyPlantEquipment_639136065041003828" order="4" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_OutsideServiceFees" xlink:label="bhb_OutsideServiceFees_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="bhb_OutsideServiceFees_639136065041003828" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProfessionalFees" xlink:label="us-gaap_ProfessionalFees_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_ProfessionalFees_639136065041003828" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommunicationsAndInformationTechnology" xlink:label="us-gaap_CommunicationsAndInformationTechnology_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_CommunicationsAndInformationTechnology_639136065041003828" order="7" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MarketingExpense" xlink:label="us-gaap_MarketingExpense_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_MarketingExpense_639136065041003828" order="8" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_ProvisionForUnfundedCommitments" xlink:label="bhb_ProvisionForUnfundedCommitments_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="bhb_ProvisionForUnfundedCommitments_639136065041003828" order="9" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="us-gaap_AmortizationOfIntangibleAssets_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_AmortizationOfIntangibleAssets_639136065041003828" order="10" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalDepositInsuranceCorporationPremiumExpense" xlink:label="us-gaap_FederalDepositInsuranceCorporationPremiumExpense_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_FederalDepositInsuranceCorporationPremiumExpense_639136065041003828" order="11" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNonrecurringExpense" xlink:label="us-gaap_OtherNonrecurringExpense_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_OtherNonrecurringExpense_639136065041003828" order="12" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNoninterestExpense" xlink:label="us-gaap_OtherNoninterestExpense_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NoninterestExpense_639136065041003828" xlink:to="us-gaap_OtherNoninterestExpense_639136065041003828" order="13" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/StatementConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended" xlink:title="995200300 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_5c8b3520-1ca2-0a91-0912-70d62831826c" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss" xlink:label="us-gaap_NetIncomeLoss_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:to="us-gaap_NetIncomeLoss_639136065041003828" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:to="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_639136065041003828" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax" xlink:label="us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_639136065041003828" xlink:to="us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_639136065041003828" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent" xlink:label="us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_639136065041003828" xlink:to="us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_639136065041003828" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax" xlink:label="us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_639136065041003828" xlink:to="us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_639136065041003828" order="3" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent" xlink:label="us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_639136065041003828" xlink:to="us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent_639136065041003828" order="4" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/StatementConsolidatedStatementsOfCashFlows" xlink:type="extended" xlink:title="995200500 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_50231013-f048-89e7-0e20-ba139224c5f7" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_50231013-f048-89e7-0e20-ba139224c5f7" xlink:to="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="us-gaap_ProfitLoss_639136065041003828" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments" xlink:label="us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_639136065041003828" order="2" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_ProvisionForCreditLosses" xlink:label="bhb_ProvisionForCreditLosses_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="bhb_ProvisionForCreditLosses_639136065041003828" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_ChangeInUnamortizedNetLoanCostsAndPremiums" xlink:label="bhb_ChangeInUnamortizedNetLoanCostsAndPremiums_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="bhb_ChangeInUnamortizedNetLoanCostsAndPremiums_639136065041003828" order="4" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationNonproduction" xlink:label="us-gaap_DepreciationNonproduction_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="us-gaap_DepreciationNonproduction_639136065041003828" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation" xlink:label="us-gaap_ShareBasedCompensation_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="us-gaap_ShareBasedCompensation_639136065041003828" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_AccretionOfPurchaseAccountingEntriesNet" xlink:label="bhb_AccretionOfPurchaseAccountingEntriesNet_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="bhb_AccretionOfPurchaseAccountingEntriesNet_639136065041003828" order="7" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_AmortizationOfOtherIntangibleAssets" xlink:label="bhb_AmortizationOfOtherIntangibleAssets_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="bhb_AmortizationOfOtherIntangibleAssets_639136065041003828" order="8" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtAndEquitySecuritiesGainLoss" xlink:label="us-gaap_DebtAndEquitySecuritiesGainLoss_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="us-gaap_DebtAndEquitySecuritiesGainLoss_639136065041003828" order="9" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_IncomeFromCashSurrenderValueOfBankOwnedLifeInsurancePolicies" xlink:label="bhb_IncomeFromCashSurrenderValueOfBankOwnedLifeInsurancePolicies_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="bhb_IncomeFromCashSurrenderValueOfBankOwnedLifeInsurancePolicies_639136065041003828" order="10" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAllowanceForCreditLossNotPreviouslyRecorded" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAllowanceForCreditLossNotPreviouslyRecorded_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAllowanceForCreditLossNotPreviouslyRecorded_639136065041003828" order="11" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnDispositionOfAssets" xlink:label="us-gaap_GainLossOnDispositionOfAssets_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="us-gaap_GainLossOnDispositionOfAssets_639136065041003828" order="12" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale" xlink:label="us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_639136065041003828" order="13" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale" xlink:label="us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale_639136065041003828" order="14" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet" xlink:label="us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_639136065041003828" order="15" use="optional" weight="-1" priority="3" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_IncreaseDecreaseInLeaseLiabilities" xlink:label="bhb_IncreaseDecreaseInLeaseLiabilities_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="bhb_IncreaseDecreaseInLeaseLiabilities_639136065041003828" order="16" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_IncreaseDecreaseInRightOfUseAssets" xlink:label="bhb_IncreaseDecreaseInRightOfUseAssets_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639136065041003828" xlink:to="bhb_IncreaseDecreaseInRightOfUseAssets_639136065041003828" order="17" use="optional" weight="-1" priority="3" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInInvestingActivities_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_50231013-f048-89e7-0e20-ba139224c5f7" xlink:to="us-gaap_NetCashProvidedByUsedInInvestingActivities_639136065041003828" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities" xlink:label="us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639136065041003828" xlink:to="us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_639136065041003828" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt" xlink:label="us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639136065041003828" xlink:to="us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_639136065041003828" order="2" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_PaymentToAcquireLoansHeldForInvestment" xlink:label="bhb_PaymentToAcquireLoansHeldForInvestment_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639136065041003828" xlink:to="bhb_PaymentToAcquireLoansHeldForInvestment_639136065041003828" order="3" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForProceedsFromLoansAndLeases" xlink:label="us-gaap_PaymentsForProceedsFromLoansAndLeases_639136065041003828" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639136065041003828" xlink:to="us-gaap_PaymentsForProceedsFromLoansAndLeases_639136065041003828" order="4" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireFederalHomeLoanBankStock" xlink:label="us-gaap_PaymentsToAcquireFederalHomeLoanBankStock_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639136065041003828" xlink:to="us-gaap_PaymentsToAcquireFederalHomeLoanBankStock_639136065041160792" order="5" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_ProceedsFromRedemptionOfFederalHomeLoanBankStock" xlink:label="bhb_ProceedsFromRedemptionOfFederalHomeLoanBankStock_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639136065041003828" xlink:to="bhb_ProceedsFromRedemptionOfFederalHomeLoanBankStock_639136065041160792" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639136065041003828" xlink:to="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_639136065041160792" order="7" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromLifeInsurancePolicies" xlink:label="us-gaap_ProceedsFromLifeInsurancePolicies_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639136065041003828" xlink:to="us-gaap_ProceedsFromLifeInsurancePolicies_639136065041160792" order="8" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInFinancingActivities_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_50231013-f048-89e7-0e20-ba139224c5f7" xlink:to="us-gaap_NetCashProvidedByUsedInFinancingActivities_639136065041160792" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDeposits" xlink:label="us-gaap_IncreaseDecreaseInDeposits_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639136065041160792" xlink:to="us-gaap_IncreaseDecreaseInDeposits_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromRepaymentsOfSecuredDebt" xlink:label="us-gaap_ProceedsFromRepaymentsOfSecuredDebt_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639136065041160792" xlink:to="us-gaap_ProceedsFromRepaymentsOfSecuredDebt_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfSubordinatedDebt" xlink:label="us-gaap_RepaymentsOfSubordinatedDebt_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639136065041160792" xlink:to="us-gaap_RepaymentsOfSubordinatedDebt_639136065041160792" order="3" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt" xlink:label="us-gaap_ProceedsFromRepaymentsOfShortTermDebt_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639136065041160792" xlink:to="us-gaap_ProceedsFromRepaymentsOfShortTermDebt_639136065041160792" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_NetIssuanceToEmployeeStockPlans" xlink:label="bhb_NetIssuanceToEmployeeStockPlans_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639136065041160792" xlink:to="bhb_NetIssuanceToEmployeeStockPlans_639136065041160792" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividendsCommonStock" xlink:label="us-gaap_PaymentsOfDividendsCommonStock_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639136065041160792" xlink:to="us-gaap_PaymentsOfDividendsCommonStock_639136065041160792" order="6" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureMaturityOfAvailableForSaleSecuritiesDetailsCalc2" xlink:type="extended" xlink:title="40203 - Disclosure - Maturity of Available for Sale Securities (Details) Calc 2" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_639136065041160792" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_639136065041160792" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_639136065041160792" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_639136065041160792" order="4" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSummaryOfAvailableForSaleDebtSecuritiesDetails" xlink:type="extended" xlink:title="99940301 - Disclosure - SECURITIES AVAILABLE FOR SALE - Summary of Available-for-Sale debt securities (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_639136065041160792" order="3" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleMaturitiesOfAvailableForSaleSecuritiesDetails" xlink:type="extended" xlink:title="99940303 - Disclosure - SECURITIES AVAILABLE FOR SALE - Maturities of Available for Sale Securities (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_639136065041160792" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSummaryOfSecuritiesWithUnrealizedLossesDetails" xlink:type="extended" xlink:title="99940304 - Disclosure - SECURITIES AVAILABLE FOR SALE - Summary of Securities with Unrealized Losses (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_bd4abe0a-6fe6-2d88-cf98-52c493407bcd" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_bd4abe0a-6fe6-2d88-cf98-52c493407bcd" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_bd4abe0a-6fe6-2d88-cf98-52c493407bcd" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_447294e8-f4eb-2b40-51a5-60fa019f8c40" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_447294e8-f4eb-2b40-51a5-60fa019f8c40" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_447294e8-f4eb-2b40-51a5-60fa019f8c40" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_639136065041160792" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSecuritiesPledgedForCollateralDetails" xlink:type="extended" xlink:title="99940307 - Disclosure - SECURITIES AVAILABLE FOR SALE - Securities Pledged for Collateral (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentsFairValueDisclosure" xlink:label="us-gaap_InvestmentsFairValueDisclosure" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_PledgedAssetsSeparatelyReportedSecuritiesPledgedForDepositsAtFairValue" xlink:label="bhb_PledgedAssetsSeparatelyReportedSecuritiesPledgedForDepositsAtFairValue_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InvestmentsFairValueDisclosure" xlink:to="bhb_PledgedAssetsSeparatelyReportedSecuritiesPledgedForDepositsAtFairValue_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_PledgedAssetsSeparatelyReportedSecuritiesPledgedForRepurchaseAgreementsAtFairValues" xlink:label="bhb_PledgedAssetsSeparatelyReportedSecuritiesPledgedForRepurchaseAgreementsAtFairValues_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InvestmentsFairValueDisclosure" xlink:to="bhb_PledgedAssetsSeparatelyReportedSecuritiesPledgedForRepurchaseAgreementsAtFairValues_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_PledgedAssetsSeparatelyReportedSecuritiesPledgedForFederalHomeLoanBankAndFederalReserveBankAtFairValue" xlink:label="bhb_PledgedAssetsSeparatelyReportedSecuritiesPledgedForFederalHomeLoanBankAndFederalReserveBankAtFairValue_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InvestmentsFairValueDisclosure" xlink:to="bhb_PledgedAssetsSeparatelyReportedSecuritiesPledgedForFederalHomeLoanBankAndFederalReserveBankAtFairValue_639136065041160792" order="3" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesUnamortizedNetCostsAndPremiumsDetails" xlink:type="extended" xlink:title="99940402 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Unamortized Net Costs and Premiums (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount" xlink:label="us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableUnamortizedLoanFeeCost" xlink:label="us-gaap_FinancingReceivableUnamortizedLoanFeeCost_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount" xlink:to="us-gaap_FinancingReceivableUnamortizedLoanFeeCost_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableUnamortizedPurchasePremiumDiscount" xlink:label="us-gaap_FinancingReceivableUnamortizedPurchasePremiumDiscount_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount" xlink:to="us-gaap_FinancingReceivableUnamortizedPurchasePremiumDiscount_639136065041160792" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesLoansByYearOfOriginationLoanSegmentationAndRiskIndicatorDetails" xlink:type="extended" xlink:title="99940404 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans by Year of Origination, Loan Segmentation and Risk Indicator (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs" xlink:label="us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff" xlink:label="us-gaap_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs" xlink:to="us-gaap_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff" xlink:label="us-gaap_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs" xlink:to="us-gaap_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff" xlink:label="us-gaap_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs" xlink:to="us-gaap_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_639136065041160792" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff" xlink:label="us-gaap_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs" xlink:to="us-gaap_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_639136065041160792" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff" xlink:label="us-gaap_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs" xlink:to="us-gaap_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_639136065041160792" order="5" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesPcdLoansDetails" xlink:type="extended" xlink:title="99940409 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - PCD Loans (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice" xlink:label="us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium" xlink:label="us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice" xlink:to="us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium_639136065041160792" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate" xlink:label="us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice" xlink:to="us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate_639136065041160792" order="2" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue" xlink:label="us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice" xlink:to="us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue_639136065041160792" order="3" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureBorrowedFundsSummaryOfBorrowedFundsDetails" xlink:type="extended" xlink:title="99940501 - Disclosure - BORROWED FUNDS - Summary of Borrowed Funds (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_e4d07a00-6832-0784-8a09-a48495791632" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermBorrowings" xlink:label="us-gaap_ShortTermBorrowings_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_e4d07a00-6832-0784-8a09-a48495791632" xlink:to="us-gaap_ShortTermBorrowings_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt" xlink:label="us-gaap_LongTermDebt_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_e4d07a00-6832-0784-8a09-a48495791632" xlink:to="us-gaap_LongTermDebt_639136065041160792" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureBorrowedFundsMaturitiesOfFhlbAdvancesDetails" xlink:type="extended" xlink:title="99940503 - Disclosure - BORROWED FUNDS - Maturities of FHLB Advances (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdvancesFromFederalHomeLoanBanks" xlink:label="us-gaap_AdvancesFromFederalHomeLoanBanks" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueWithinOneYearOfBalanceSheetDate" xlink:label="us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueWithinOneYearOfBalanceSheetDate_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AdvancesFromFederalHomeLoanBanks" xlink:to="us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueWithinOneYearOfBalanceSheetDate_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromOneToTwoYearsOfBalanceSheetDate" xlink:label="us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromOneToTwoYearsOfBalanceSheetDate_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AdvancesFromFederalHomeLoanBanks" xlink:to="us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromOneToTwoYearsOfBalanceSheetDate_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromTwoToThreeYearsOfBalanceSheetDate" xlink:label="us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromTwoToThreeYearsOfBalanceSheetDate_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AdvancesFromFederalHomeLoanBanks" xlink:to="us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromTwoToThreeYearsOfBalanceSheetDate_639136065041160792" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueAfterFiveYearsOfBalanceSheetDate" xlink:label="us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueAfterFiveYearsOfBalanceSheetDate_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AdvancesFromFederalHomeLoanBanks" xlink:to="us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueAfterFiveYearsOfBalanceSheetDate_639136065041160792" order="4" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureDepositsComponentsDetails" xlink:type="extended" xlink:title="99940601 - Disclosure - DEPOSITS - Components (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits" xlink:label="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositsLessThan100000" xlink:label="us-gaap_TimeDepositsLessThan100000_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:to="us-gaap_TimeDepositsLessThan100000_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits100000OrMore" xlink:label="us-gaap_TimeDeposits100000OrMore_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:to="us-gaap_TimeDeposits100000OrMore_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositsAtOrAboveFDICInsuranceLimit" xlink:label="us-gaap_TimeDepositsAtOrAboveFDICInsuranceLimit_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:to="us-gaap_TimeDepositsAtOrAboveFDICInsuranceLimit_639136065041160792" order="3" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureDepositsMaturitiesBrokeredReciprocalDetails" xlink:type="extended" xlink:title="99940602 - Disclosure - DEPOSITS - Maturities, Brokered, Reciprocal (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits" xlink:label="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearOne" xlink:label="us-gaap_TimeDepositMaturitiesYearOne_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:to="us-gaap_TimeDepositMaturitiesYearOne_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearTwo" xlink:label="us-gaap_TimeDepositMaturitiesYearTwo_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:to="us-gaap_TimeDepositMaturitiesYearTwo_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearThree" xlink:label="us-gaap_TimeDepositMaturitiesYearThree_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:to="us-gaap_TimeDepositMaturitiesYearThree_639136065041160792" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearFour" xlink:label="us-gaap_TimeDepositMaturitiesYearFour_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:to="us-gaap_TimeDepositMaturitiesYearFour_639136065041160792" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearFive" xlink:label="us-gaap_TimeDepositMaturitiesYearFive_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:to="us-gaap_TimeDepositMaturitiesYearFive_639136065041160792" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesAfterYearFive" xlink:label="us-gaap_TimeDepositMaturitiesAfterYearFive_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_0418572b-cbb0-8380-1b3a-031968db204f" xlink:to="us-gaap_TimeDepositMaturitiesAfterYearFive_639136065041160792" order="6" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityComponentsOfAocilDetails" xlink:type="extended" xlink:title="99940702 - Disclosure - CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Components of AOCIL (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity" xlink:label="us-gaap_StockholdersEquity" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AociBeforeTaxAttributableToParent" xlink:label="us-gaap_AociBeforeTaxAttributableToParent_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity" xlink:to="us-gaap_AociBeforeTaxAttributableToParent_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AociTaxAttributableToParent" xlink:label="us-gaap_AociTaxAttributableToParent_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity" xlink:to="us-gaap_AociTaxAttributableToParent_639136065041160792" order="2" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityComponentsOfOcilDetails" xlink:type="extended" xlink:title="99940703 - Disclosure - CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Components of OCIL (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_58b76f41-3f9e-d766-b689-c2b6aebb7eda" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent" xlink:label="us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_58b76f41-3f9e-d766-b689-c2b6aebb7eda" xlink:to="us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_58b76f41-3f9e-d766-b689-c2b6aebb7eda" xlink:to="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_639136065041160792" order="2" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent" xlink:label="us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:to="us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_639136065041160792" order="1" use="optional" weight="1" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_639136065041160792" xlink:to="us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent" xlink:label="us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_639136065041160792" xlink:to="us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_639136065041160792" order="2" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1" xlink:label="us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:to="us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_639136065041160792" order="2" use="optional" weight="-1" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_639136065041160792" xlink:to="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAociCurrentPeriodTax" xlink:label="us-gaap_ReclassificationFromAociCurrentPeriodTax_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_639136065041160792" xlink:to="us-gaap_ReclassificationFromAociCurrentPeriodTax_639136065041160792" order="2" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_e65d9f5e-a3fd-2fc8-3ef3-eaaec4ec01a5" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_e65d9f5e-a3fd-2fc8-3ef3-eaaec4ec01a5" xlink:to="us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_639136065041160792" order="1" use="optional" weight="1" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_e65d9f5e-a3fd-2fc8-3ef3-eaaec4ec01a5" xlink:to="us-gaap_ReclassificationFromAociCurrentPeriodTax_639136065041160792" order="2" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityAmountsReclassifiedOutOfAociDetails" xlink:type="extended" xlink:title="99940705 - Disclosure - CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Amounts Reclassified Out of AOCI (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="us-gaap_IncomeTaxExpenseBenefit_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:to="us-gaap_IncomeTaxExpenseBenefit_639136065041160792" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome" xlink:label="us-gaap_NoninterestIncome_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:to="us-gaap_NoninterestIncome_639136065041160792" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureEarningsPerShareDetails" xlink:type="extended" xlink:title="99940801 - Disclosure - EARNINGS PER SHARE (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:to="us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_639136065041160792" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:to="us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_639136065041160792" order="2" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingAssetsAndLiabilitiesDetails" xlink:type="extended" xlink:title="99940906 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Offsetting Assets and Liabilities (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement" xlink:label="us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="us-gaap_DerivativeFairValueOfDerivativeLiability_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement" xlink:to="us-gaap_DerivativeFairValueOfDerivativeLiability_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="us-gaap_DerivativeLiabilityFairValueGrossAsset_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement" xlink:to="us-gaap_DerivativeLiabilityFairValueGrossAsset_639136065041160792" order="2" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureFairValueMeasurementsUnobservableInputsRecurringDetails" xlink:type="extended" xlink:title="99941004 - Disclosure - FAIR VALUE MEASUREMENTS - Unobservable Inputs Recurring (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueNetAssetLiability" xlink:label="loc_us-gaap_FairValueNetAssetLiability_09419ab6-90cc-2352-7fbb-55cc59e35067" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet" xlink:label="us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FairValueNetAssetLiability_09419ab6-90cc-2352-7fbb-55cc59e35067" xlink:to="us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_639136065041160792" order="1" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureFairValueMeasurementsUnobservableInputsNonRecurringDetails" xlink:type="extended" xlink:title="99941005 - Disclosure - FAIR VALUE MEASUREMENTS - Unobservable Inputs Non-recurring (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="us-gaap_AssetsFairValueDisclosure" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_FinancingReceivableIndividuallyEvaluatedForCreditLossFairValueDisclosure" xlink:label="bhb_FinancingReceivableIndividuallyEvaluatedForCreditLossFairValueDisclosure_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsFairValueDisclosure" xlink:to="bhb_FinancingReceivableIndividuallyEvaluatedForCreditLossFairValueDisclosure_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ServicingAssetAtFairValueAmount" xlink:label="us-gaap_ServicingAssetAtFairValueAmount_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsFairValueDisclosure" xlink:to="us-gaap_ServicingAssetAtFairValueAmount_639136065041160792" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangiblesIntangibleAssetsDetails" xlink:type="extended" xlink:title="99941202 - Disclosure - GOODWILL AND OTHER INTANGIBLES - Intangible Assets (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="us-gaap_FiniteLivedIntangibleAssetsNet_637249747242499785" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet_637249747242499785" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet_637249747242499785" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_639136065041160792" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet_637249747242499785" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_639136065041160792" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet_637249747242499785" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_639136065041160792" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet_637249747242499785" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_639136065041160792" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="bhb-20260331.xsd#bhb_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFour" xlink:label="bhb_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFour_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet_637249747242499785" xlink:to="bhb_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFour_639136065041160792" order="6" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureLeasesFutureMinimumPaymentsForLeasesDetailsCalc2" xlink:type="extended" xlink:title="41204 - Disclosure - LEASES - Future Minimum Payments for Leases (Details) (Calc2)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_637249747244577233" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_637249747244577233" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiability" xlink:label="us-gaap_OperatingLeaseLiability_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_637249747244577233" xlink:to="us-gaap_OperatingLeaseLiability_639136065041160792" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureLeasesLeaseTermAndCostDetails" xlink:type="extended" xlink:title="99941302 - Disclosure - LEASES - Lease Term and Cost (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LeaseCost" xlink:label="loc_us-gaap_LeaseCost_ac3b1889-9651-365f-e4fc-e6474385db69" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseCost" xlink:label="us-gaap_OperatingLeaseCost_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_ac3b1889-9651-365f-e4fc-e6474385db69" xlink:to="us-gaap_OperatingLeaseCost_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableLeaseCost" xlink:label="us-gaap_VariableLeaseCost_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_ac3b1889-9651-365f-e4fc-e6474385db69" xlink:to="us-gaap_VariableLeaseCost_639136065041160792" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareComponentsOfOciDetailsCalc2" xlink:type="extended" xlink:title="41303 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Components of OCI (Details) (Calc2)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_637249747243704183" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent" xlink:label="us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_637249747243704183" xlink:to="us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_639136065041160792" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent" xlink:label="us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_639136065041160792" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_637249747243704183" xlink:to="us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_639136065041160792" order="2" use="optional" weight="-1" />
  </calculationLink>
</link:linkbase>
