<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>742</ContextCount>
  <ElementCount>784</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>173</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="bhb-20211231x10k.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-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - CONSOLIDATED STATEMENTS OF INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfIncome</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00405 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00500 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10101 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="bhb-20211231x10k.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-20211231x10k.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-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10401 - Disclosure - PREMISES AND EQUIPMENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosurePremisesAndEquipment</Role>
      <ShortName>PREMISES AND EQUIPMENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10501 - Disclosure - GOODWILL AND OTHER INTANGIBLES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangibles</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10601 - Disclosure - DEPOSITS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDeposits</Role>
      <ShortName>DEPOSITS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10701 - Disclosure - BORROWED FUNDS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFunds</Role>
      <ShortName>BORROWED FUNDS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10801 - Disclosure - EMPLOYEE BENEFIT PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlans</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>10901 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11001 - 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>18</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11101 - Disclosure - OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureOtherCommitmentsContingenciesAndOffBalanceSheetActivities</Role>
      <ShortName>OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11201 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShare</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11301 - Disclosure - STOCK-BASED COMPENSATION PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlans</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>11401 - 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>22</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>11501 - 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>23</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>11601 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeases</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>11701 - Disclosure - CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompany</Role>
      <ShortName>CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>11801 - Disclosure - QUARTERLY DATA (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureQuarterlyDataUnaudited</Role>
      <ShortName>QUARTERLY DATA (UNAUDITED)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>11901 - Disclosure - SUBSEQUENT EVENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSubsequentEvents</Role>
      <ShortName>SUBSEQUENT EVENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>20102 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>30103 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.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>30</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.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>31</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>30403 - Disclosure - PREMISES AND EQUIPMENT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosurePremisesAndEquipmentTables</Role>
      <ShortName>PREMISES AND EQUIPMENT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosurePremisesAndEquipment</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>30503 - Disclosure - GOODWILL AND OTHER INTANGIBLES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangiblesTables</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangibles</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>30603 - 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>34</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>30703 - 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>35</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>30803 - Disclosure - EMPLOYEE BENEFIT PLANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansTables</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlans</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>30903 - Disclosure - INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureIncomeTaxes</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>31003 - 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>38</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>31103 - Disclosure - OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureOtherCommitmentsContingenciesAndOffBalanceSheetActivitiesTables</Role>
      <ShortName>OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureOtherCommitmentsContingenciesAndOffBalanceSheetActivities</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>31203 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareTables</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShare</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>31303 - Disclosure - STOCK-BASED COMPENSATION PLANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansTables</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlans</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>31403 - 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>42</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>31503 - 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>43</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>31603 - Disclosure - LEASES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeasesTables</Role>
      <ShortName>LEASES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureLeases</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>31703 - Disclosure - CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompanyTables</Role>
      <ShortName>CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompany</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>31803 - Disclosure - QUARTERLY DATA (UNAUDITED) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureQuarterlyDataUnauditedTables</Role>
      <ShortName>QUARTERLY DATA (UNAUDITED) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureQuarterlyDataUnaudited</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40101 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40102 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Impact of Adoption (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesImpactOfAdoptionDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Impact of Adoption (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40103 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Impact of Adoption - Balance sheet (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesImpactOfAdoptionBalanceSheetDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Impact of Adoption - Balance sheet (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40104 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Impact of Adaption on comprehensive income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesImpactOfAdaptionOnComprehensiveIncomeDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Impact of Adaption on comprehensive income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40105 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Impact of Adoption on Stockholders equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesImpactOfAdoptionOnStockholdersEquityDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Impact of Adoption on Stockholders equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.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>52</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.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>53</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>40203 - Disclosure - SECURITIES AVAILABLE FOR SALE - Proceeds from the Sale of Securities and Realized Gains and Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleProceedsFromSaleOfSecuritiesAndRealizedGainsAndLossesDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Proceeds from the Sale of Securities and Realized Gains and Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.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>55</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>40205 - Disclosure - SECURITIES AVAILABLE FOR SALE - Securities Pledged for Collateral (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSecuritiesPledgedForCollateralDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Securities Pledged for Collateral (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40207 - 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>57</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.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>58</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.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>59</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.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>60</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>40304 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans by Credit Risk Rating (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesLoansByCreditRiskRatingDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans by Credit Risk Rating (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.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>62</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.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>63</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>40307 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans Evaluated for Impairment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesLoansEvaluatedForImpairmentDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans Evaluated for Impairment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>40308 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Impaired Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesImpairedLoansDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Impaired Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>40309 - 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>66</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>40310 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Concentrations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesConcentrationsDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Concentrations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>40311 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans to Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAndAllowanceForCreditLossesLoansToRelatedPartiesDetails</Role>
      <ShortName>LOANS AND ALLOWANCE FOR CREDIT LOSSES - Loans to Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>40312 - 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>69</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>40401 - Disclosure - PREMISES AND EQUIPMENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosurePremisesAndEquipmentDetails</Role>
      <ShortName>PREMISES AND EQUIPMENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosurePremisesAndEquipmentTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>40501 - Disclosure - GOODWILL AND OTHER INTANGIBLES - Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangiblesGoodwillDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES - Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>40502 - Disclosure - GOODWILL AND OTHER INTANGIBLES - Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureGoodwillAndOtherIntangiblesIntangibleAssetsDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES - Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>40601 - 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>73</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>40602 - 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>74</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>40701 - 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>75</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>40702 - 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>76</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>40703 - 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>77</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>40704 - 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>78</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>40705 - 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>79</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>40801 - Disclosure - EMPLOYEE BENEFIT PLANS - Information about the plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansInformationAboutPlanDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Information about the plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>40802 - Disclosure - EMPLOYEE BENEFIT PLANS - Schedule of Net Benefit Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansScheduleOfNetBenefitCostsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Schedule of Net Benefit Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>40803 - Disclosure - EMPLOYEE BENEFIT PLANS - Amounts Recognized in Other Comprehensive Income (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansAmountsRecognizedInOtherComprehensiveIncomeLossDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Amounts Recognized in Other Comprehensive Income (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>40804 - Disclosure - EMPLOYEE BENEFIT PLANS - Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansAssumptionsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>40805 - Disclosure - EMPLOYEE BENEFIT PLANS - Allocation of Plan Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansAllocationOfPlanAssetsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Allocation of Plan Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>40806 - Disclosure - EMPLOYEE BENEFIT PLANS - Estimated Benefit Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlansEstimatedBenefitPaymentsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Estimated Benefit Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>40807 - Disclosure - EMPLOYEE BENEFIT PLANS - 401(k) and Other plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureEmployeeBenefitPlans401KAndOtherPlansDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - 401(k) and Other plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>40901 - Disclosure - INCOME TAXES - Components of Income Tax Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails</Role>
      <ShortName>INCOME TAXES - Components of Income Tax Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>40902 - Disclosure - INCOME TAXES - Effective Income Tax Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails</Role>
      <ShortName>INCOME TAXES - Effective Income Tax Reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>40903 - Disclosure - INCOME TAXES - Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails</Role>
      <ShortName>INCOME TAXES - Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>40904 - Disclosure - INCOME TAXES - Tax Cuts and Jobs Act (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxesTaxCutsAndJobsActDetails</Role>
      <ShortName>INCOME TAXES - Tax Cuts and Jobs Act (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>41001 - 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>91</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>41002 - 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>92</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>41003 - 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>93</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>41004 - 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>94</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>41005 - 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>95</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>41101 - Disclosure - OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureOtherCommitmentsContingenciesAndOffBalanceSheetActivitiesDetails</Role>
      <ShortName>OTHER COMMITMENTS, CONTINGENCIES, AND OFF-BALANCE SHEET ACTIVITIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureOtherCommitmentsContingenciesAndOffBalanceSheetActivitiesTables</ParentRole>
      <Position>96</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>41201 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Actual and Required Capital Ratios (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareActualAndRequiredCapitalRatiosDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Actual and Required Capital Ratios (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>41202 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Components of AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareComponentsOfAociDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Components of AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>41203 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Components of OCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareComponentsOfOciDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Components of OCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>41204 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Changes in AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareChangesInAociDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Changes in AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>41205 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Amounts Reclassified Out of AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareAmountsReclassifiedOutOfAociDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Amounts Reclassified Out of AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>41206 - Disclosure - SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureShareholdersEquityAndEarningsPerCommonShareEarningsPerShareDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND EARNINGS PER COMMON SHARE - Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>41301 - Disclosure - STOCK-BASED COMPENSATION PLANS - (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansTables</ParentRole>
      <Position>103</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>41302 - Disclosure - STOCK-BASED COMPENSATION PLANS - Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansCompensationExpenseDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>41303 - Disclosure - STOCK-BASED COMPENSATION PLANS - Tax Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansTaxBenefitsDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Tax Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>41304 - Disclosure - STOCK-BASED COMPENSATION PLANS - Stock Options Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansStockOptionsActivityDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Stock Options Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>41305 - Disclosure - STOCK-BASED COMPENSATION PLANS - Restricted Stock Award Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansRestrictedStockAwardActivityDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Restricted Stock Award Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>41306 - Disclosure - STOCK-BASED COMPENSATION PLANS - Intrinsic value, Unrecognized compensation and Contractual term (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansIntrinsicValueUnrecognizedCompensationAndContractualTermDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Intrinsic value, Unrecognized compensation and Contractual term (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>41307 - Disclosure - STOCK-BASED COMPENSATION PLANS - Stock Units Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansStockUnitsActivityDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Stock Units Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>41308 - Disclosure - STOCK-BASED COMPENSATION PLANS - Employee Stock Purchase Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansEmployeeStockPurchasePlanDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION PLANS - Employee Stock Purchase Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>41401 - 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>111</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>41402 - 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>112</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>41403 - 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>113</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>41404 - 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>114</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>41405 - 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>115</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>41406 - 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>116</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>41501 - 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>117</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>41502 - 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>118</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>41601 - Disclosure - LEASES - Assets and liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeasesAssetsAndLiabilitiesDetails</Role>
      <ShortName>LEASES - Assets and liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>119</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>41602 - Disclosure - LEASES - Lease Term and Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeasesLeaseTermAndCostDetails</Role>
      <ShortName>LEASES - Lease Term and Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>120</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>41603 - Disclosure - LEASES - Future Minimum Payments for Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeasesFutureMinimumPaymentsForLeasesDetails</Role>
      <ShortName>LEASES - Future Minimum Payments for Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>121</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>41701 - Disclosure - CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Balance Sheets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompanyBalanceSheetsDetails</Role>
      <ShortName>CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Balance Sheets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>122</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>41702 - Disclosure - CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Statements of Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompanyStatementsOfIncomeDetails</Role>
      <ShortName>CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Statements of Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>123</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R124.htm</HtmlFileName>
      <LongName>41703 - Disclosure - CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureCondensedFinancialStatementsOfParentCompanyCashFlowsDetails</Role>
      <ShortName>CONDENSED FINANCIAL STATEMENTS OF PARENT COMPANY - Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>124</Position>
    </Report>
    <Report instance="bhb-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R125.htm</HtmlFileName>
      <LongName>41801 - Disclosure - QUARTERLY FINANCIAL DATA (UNAUDITED) - Revision to comprehensive income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureQuarterlyFinancialDataUnauditedRevisionToComprehensiveIncomeDetails</Role>
      <ShortName>QUARTERLY FINANCIAL DATA (UNAUDITED) - Revision to comprehensive income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>125</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" original="bhb-20211231x10k.htm">bhb-20211231x10k.htm</File>
    <File>bhb-20211231.xsd</File>
    <File>bhb-20211231_cal.xml</File>
    <File>bhb-20211231_def.xml</File>
    <File>bhb-20211231_lab.xml</File>
    <File>bhb-20211231_pre.xml</File>
    <File>bhb-20211231xex10d6.htm</File>
    <File>bhb-20211231xex10d7.htm</File>
    <File>bhb-20211231xex21d1.htm</File>
    <File>bhb-20211231xex23d1.htm</File>
    <File>bhb-20211231xex31d1.htm</File>
    <File>bhb-20211231xex31d2.htm</File>
    <File>bhb-20211231xex32d1.htm</File>
    <File>bhb-20211231xex32d2.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>bhb-20211231x10k001.jpg</File>
    <File>bhb-20211231x10k002.jpg</File>
    <File>bhb-20211231x10k003.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="4">http://fasb.org/srt/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="2842">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="37">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
