<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>466</ContextCount>
  <ElementCount>367</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>111</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - CONSOLIDATED BALANCE SHEETS (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (UNAUDITED)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - CONSOLIDATED BALANCE SHEETS (UNAUDITED) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (UNAUDITED) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - CONSOLIDATED STATEMENTS OF INCOME (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfIncomeUnaudited</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME (UNAUDITED)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeUnaudited</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (UNAUDITED)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (UNAUDITED)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00405 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (UNAUDITED) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (UNAUDITED) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00500 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10101 - Disclosure - BASIS OF PRESENTATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBasisOfPresentation</Role>
      <ShortName>BASIS OF PRESENTATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10201 - Disclosure - SECURITIES AVAILABLE FOR SALE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSale</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10301 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLosses</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10401 - Disclosure - BORROWED FUNDS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFunds</Role>
      <ShortName>BORROWED FUNDS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10501 - Disclosure - DEPOSITS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDeposits</Role>
      <ShortName>DEPOSITS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10601 - Disclosure - CAPITAL RATIOS AND SHAREHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquity</Role>
      <ShortName>CAPITAL RATIOS AND SHAREHOLDERS' EQUITY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10701 - Disclosure - EARNINGS PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEarningsPerShare</Role>
      <ShortName>EARNINGS PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10801 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivities</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>10901 - Disclosure - FAIR VALUE MEASUREMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurements</Role>
      <ShortName>FAIR VALUE MEASUREMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11001 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureRevenueFromContractsWithCustomers</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>20102 - Disclosure - BASIS OF PRESENTATION (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBasisOfPresentationPolicies</Role>
      <ShortName>BASIS OF PRESENTATION (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>30203 - Disclosure - SECURITIES AVAILABLE FOR SALE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleTables</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSale</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>30303 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesTables</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLosses</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>30403 - Disclosure - BORROWED FUNDS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsTables</Role>
      <ShortName>BORROWED FUNDS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureBorrowedFunds</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>30503 - Disclosure - DEPOSITS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDepositsTables</Role>
      <ShortName>DEPOSITS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureDeposits</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>30603 - Disclosure - CAPITAL RATIOS AND SHAREHOLDERS' EQUITY (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityTables</Role>
      <ShortName>CAPITAL RATIOS AND SHAREHOLDERS' EQUITY (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquity</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>30703 - Disclosure - EARNINGS PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEarningsPerShareTables</Role>
      <ShortName>EARNINGS PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureEarningsPerShare</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>30803 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesTables</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivities</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>30903 - Disclosure - FAIR VALUE MEASUREMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>31003 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureRevenueFromContractsWithCustomersTables</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureRevenueFromContractsWithCustomers</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>40201 - Disclosure - SECURITIES AVAILABLE FOR SALE - Summary of Securities Available for Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSummaryOfSecuritiesAvailableForSaleDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Summary of Securities Available for Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>40202 - Disclosure - SECURITIES AVAILABLE FOR SALE - Maturity of Available for Sale Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleMaturityOfAvailableForSaleSecuritiesDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Maturity of Available for Sale Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>40203 - Disclosure - SECURITIES AVAILABLE FOR SALE - Gains and Losses from AFS Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleGainsAndLossesFromAfsSecuritiesDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Gains and Losses from AFS Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>40204 - Disclosure - SECURITIES AVAILABLE FOR SALE - Summary of Securities with Unrealized Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSummaryOfSecuritiesWithUnrealizedLossesDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Summary of Securities with Unrealized Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>40205 - Disclosure - SECURITIES AVAILABLE FOR SALE - Basis for Impairment Conclusion (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleBasisForImpairmentConclusionDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Basis for Impairment Conclusion (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>40301 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Summary of Total Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfTotalLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Summary of Total Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>40302 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Unamortized Net Costs and Premiums (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesUnamortizedNetCostsAndPremiumsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Unamortized Net Costs and Premiums (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>40303 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Allowance Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesAllowanceActivityDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Allowance Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>40304 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans by Year of Origination, Loan Segmentation and Risk Indicator (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesLoansByYearOfOriginationLoanSegmentationAndRiskIndicatorDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans by Year of Origination, Loan Segmentation and Risk Indicator (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>40305 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Summary of Past Due Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfPastDueLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Summary of Past Due Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>40306 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Non-accrual Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesNonAccrualLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Non-accrual Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>40307 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Amortized Cost Basis of Collateral Dependent Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Amortized Cost Basis of Collateral Dependent Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>40308 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - TDR, Recorded Investment and Number of Modifications (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesTdrRecordedInvestmentAndNumberOfModificationsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - TDR, Recorded Investment and Number of Modifications (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>40309 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Mortgage Banking (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesMortgageBankingDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Mortgage Banking (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40401 - Disclosure - BORROWED FUNDS - Summary of Borrowed Funds (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsSummaryOfBorrowedFundsDetails</Role>
      <ShortName>BORROWED FUNDS - Summary of Borrowed Funds (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40402 - Disclosure - BORROWED FUNDS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsAdditionalInformationDetails</Role>
      <ShortName>BORROWED FUNDS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40403 - Disclosure - BORROWED FUNDS - Maturities of FHLB Advances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsMaturitiesOfFhlbAdvancesDetails</Role>
      <ShortName>BORROWED FUNDS - Maturities of FHLB Advances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40404 - Disclosure - BORROWED FUNDS - Subordinated and Junior Subordinated Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsSubordinatedAndJuniorSubordinatedBorrowingsDetails</Role>
      <ShortName>BORROWED FUNDS - Subordinated and Junior Subordinated Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40405 - Disclosure - BORROWED FUNDS - Repurchase Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFundsRepurchaseAgreementsDetails</Role>
      <ShortName>BORROWED FUNDS - Repurchase Agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40501 - Disclosure - DEPOSITS - Components (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDepositsComponentsDetails</Role>
      <ShortName>DEPOSITS - Components (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40502 - Disclosure - DEPOSITS - Maturities, Brokered, Reciprocal (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDepositsMaturitiesBrokeredReciprocalDetails</Role>
      <ShortName>DEPOSITS - Maturities, Brokered, Reciprocal (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40601 - Disclosure - CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Actual and Required Capital Ratios (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityActualAndRequiredCapitalRatiosDetails</Role>
      <ShortName>CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Actual and Required Capital Ratios (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40602 - Disclosure - CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Components of AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityComponentsOfAociDetails</Role>
      <ShortName>CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Components of AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>40603 - Disclosure - CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Components of OCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityComponentsOfOciDetails</Role>
      <ShortName>CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Components of OCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>40604 - Disclosure - CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Changes in AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityChangesInAociDetails</Role>
      <ShortName>CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Changes in AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>40605 - Disclosure - CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Amounts Reclassified Out of AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCapitalRatiosAndShareholdersEquityAmountsReclassifiedOutOfAociDetails</Role>
      <ShortName>CAPITAL RATIOS AND SHAREHOLDERS' EQUITY - Amounts Reclassified Out of AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>40701 - Disclosure - EARNINGS PER SHARE (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEarningsPerShareDetails</Role>
      <ShortName>EARNINGS PER SHARE (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureEarningsPerShareTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>40801 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40802 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Amount of Gain (Loss) recognized in Other Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesAmountOfGainLossRecognizedInOtherComprehensiveIncomeDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Amount of Gain (Loss) recognized in Other Comprehensive Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>40803 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Consolidated statements of income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesConsolidatedStatementsOfIncomeDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Consolidated statements of income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>40804 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesAdditionalInformationDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>40805 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Effect of cash flow hedging and fair value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesEffectOfCashFlowHedgingAndFairValueDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Effect of cash flow hedging and fair value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>40806 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Offsetting Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDerivativeFinancialInstrumentsAndHedgingActivitiesOffsettingAssetsAndLiabilitiesDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENTS AND HEDGING ACTIVITIES - Offsetting Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>40901 - Disclosure - FAIR VALUE MEASUREMENTS - Measured on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsMeasuredOnRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Measured on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>40902 - Disclosure - FAIR VALUE MEASUREMENTS - Changes in Level 3 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsChangesInLevel3Details</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Changes in Level 3 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>40903 - Disclosure - FAIR VALUE MEASUREMENTS - Unobservable Inputs Recurring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsUnobservableInputsRecurringDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Unobservable Inputs Recurring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>40904 - Disclosure - FAIR VALUE MEASUREMENTS - Measured on Non-recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsMeasuredOnNonRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Measured on Non-recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>40905 - Disclosure - FAIR VALUE MEASUREMENTS - Unobservable Inputs Non-recurring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsUnobservableInputsNonRecurringDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Unobservable Inputs Non-recurring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>40906 - Disclosure - FAIR VALUE MEASUREMENTS - Fair Values and Carrying Amounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureFairValueMeasurementsFairValuesAndCarryingAmountsDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Fair Values and Carrying Amounts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>41001 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS - Disaggregation of Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureRevenueFromContractsWithCustomersDisaggregationOfRevenueDetails</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS - Disaggregation of Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="bhb-20230331x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>41002 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS - Contract Balances from Contracts with Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureRevenueFromContractsWithCustomersContractBalancesFromContractsWithCustomersDetails</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS - Contract Balances from Contracts with Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept TreasuryStockShares in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. bhb-20230331x10q.htm 14</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept TreasuryStockMember in us-gaap/2022 used in 6 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. bhb-20230331x10q.htm 17</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept LondonInterbankOfferedRateLIBORMember in us-gaap/2022 used in 1 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. bhb-20230331x10q.htm 33</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="bhb-20230331x10q.htm">bhb-20230331x10q.htm</File>
    <File>bhb-20230331.xsd</File>
    <File>bhb-20230331_cal.xml</File>
    <File>bhb-20230331_def.xml</File>
    <File>bhb-20230331_lab.xml</File>
    <File>bhb-20230331_pre.xml</File>
    <File>bhb-20230331xex31d1.htm</File>
    <File>bhb-20230331xex31d2.htm</File>
    <File>bhb-20230331xex32d1.htm</File>
    <File>bhb-20230331xex32d2.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>bhb-20230331x10q001.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1577">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
