<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>946</ContextCount>
  <ElementCount>753</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>152</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="bhb-20201231x10k.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-20201231x10k.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-20201231x10k.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-20201231x10k.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-20201231x10k.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-20201231x10k.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-20201231x10k.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-20201231x10k.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-20201231x10k.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-20201231x10k.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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10301 - Disclosure - LOANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoans</Role>
      <ShortName>LOANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10401 - Disclosure - ALLOWANCE FOR LOAN LOSSES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureAllowanceForLoanLosses</Role>
      <ShortName>ALLOWANCE FOR LOAN LOSSES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10501 - 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>13</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10601 - 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>14</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10701 - Disclosure - DEPOSITS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureDeposits</Role>
      <ShortName>DEPOSITS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10801 - Disclosure - BORROWED FUNDS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureBorrowedFunds</Role>
      <ShortName>BORROWED FUNDS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>10901 - 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>17</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11001 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11101 - 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>19</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11201 - 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>20</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11301 - 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>21</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>11401 - 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>22</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>11501 - 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>23</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>11601 - 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>24</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>11701 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLeases</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>11801 - 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>26</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>11901 - 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>27</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>12001 - Disclosure - SUBSEQUENT EVENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSubsequentEvents</Role>
      <ShortName>SUBSEQUENT EVENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.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>29</Position>
    </Report>
    <Report instance="bhb-20201231x10k.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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>30303 - Disclosure - LOANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansTables</Role>
      <ShortName>LOANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureLoans</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>30403 - Disclosure - ALLOWANCE FOR LOAN LOSSES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureAllowanceForLoanLossesTables</Role>
      <ShortName>ALLOWANCE FOR LOAN LOSSES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureAllowanceForLoanLosses</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>30503 - 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>33</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>30603 - 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>34</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>30703 - 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>35</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>30803 - 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>36</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>30903 - 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>37</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>31003 - 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>38</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>31103 - 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>39</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>31203 - 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>40</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>31303 - 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>41</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>31403 - 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>42</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>31503 - 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>43</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>31603 - 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>44</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>31703 - 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>45</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>31803 - 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>46</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>31903 - 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>47</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.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/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40102 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES Property, etc. (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPropertyEtcDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES Property, etc. (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.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>50</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.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>51</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.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>52</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.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>53</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.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>54</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>40206 - Disclosure - SECURITIES AVAILABLE FOR SALE - Securities Impairment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureSecuritiesAvailableForSaleSecuritiesImpairmentDetails</Role>
      <ShortName>SECURITIES AVAILABLE FOR SALE - Securities Impairment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.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>56</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40301 - Disclosure - LOANS - Summary of Total Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansSummaryOfTotalLoansDetails</Role>
      <ShortName>LOANS - Summary of Total Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>40302 - Disclosure - LOANS - Unamortized Net Costs and Premiums (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansUnamortizedNetCostsAndPremiumsDetails</Role>
      <ShortName>LOANS - Unamortized Net Costs and Premiums (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>40303 - Disclosure - LOANS - Pledged, Purchased credit impaired, Accretable yield (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansPledgedPurchasedCreditImpairedAccretableYieldDetails</Role>
      <ShortName>LOANS - Pledged, Purchased credit impaired, Accretable yield (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>40304 - Disclosure - LOANS - Summary of Past Due Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansSummaryOfPastDueLoansDetails</Role>
      <ShortName>LOANS - Summary of Past Due Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>40305 - Disclosure - LOANS - Non-accrual Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansNonAccrualLoansDetails</Role>
      <ShortName>LOANS - Non-accrual Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>40306 - Disclosure - LOANS - Loans Evaluated for Impairment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansLoansEvaluatedForImpairmentDetails</Role>
      <ShortName>LOANS - Loans Evaluated for Impairment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>40307 - Disclosure - LOANS - Impaired Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansImpairedLoansDetails</Role>
      <ShortName>LOANS - Impaired Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>40308 - Disclosure - LOANS - Average Recorded Investment and Interest Income Recognized on Impaired Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansAverageRecordedInvestmentAndInterestIncomeRecognizedOnImpairedLoansDetails</Role>
      <ShortName>LOANS - Average Recorded Investment and Interest Income Recognized on Impaired Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>40309 - Disclosure - LOANS - TDR, Recorded Investment and Number of Modifications (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansTdrRecordedInvestmentAndNumberOfModificationsDetails</Role>
      <ShortName>LOANS - TDR, Recorded Investment and Number of Modifications (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>40310 - Disclosure - LOANS - Concentrations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansConcentrationsDetails</Role>
      <ShortName>LOANS - Concentrations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>40311 - Disclosure - LOANS - Loans to Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansLoansToRelatedPartiesDetails</Role>
      <ShortName>LOANS - Loans to Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>40312 - Disclosure - LOANS - Mortgage Banking (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureLoansMortgageBankingDetails</Role>
      <ShortName>LOANS - Mortgage Banking (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>40401 - Disclosure - ALLOWANCE FOR LOAN LOSSES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureAllowanceForLoanLossesDetails</Role>
      <ShortName>ALLOWANCE FOR LOAN LOSSES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureAllowanceForLoanLossesTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>40402 - Disclosure - ALLOWANCE FOR LOAN LOSSES - Allowance Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureAllowanceForLoanLossesAllowanceActivityDetails</Role>
      <ShortName>ALLOWANCE FOR LOAN LOSSES - Allowance Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>40403 - Disclosure - ALLOWANCE FOR LOAN LOSSES - Loans by Credit Risk Rating (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureAllowanceForLoanLossesLoansByCreditRiskRatingDetails</Role>
      <ShortName>ALLOWANCE FOR LOAN LOSSES - Loans by Credit Risk Rating (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>40501 - 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>72</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>40601 - 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>73</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>40602 - 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>74</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>40701 - 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>75</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>40702 - 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>76</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>40801 - 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>77</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>40802 - 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>78</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>40803 - 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>79</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>40804 - 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>80</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>40901 - 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>81</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>40902 - 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>82</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>40903 - 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>83</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>40904 - 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>84</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>40905 - 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>85</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>40906 - 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>86</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>40907 - 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>87</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>41001 - 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>88</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>41002 - 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>89</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>41003 - 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>90</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>41004 - 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>91</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>41101 - 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>92</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>41102 - 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>93</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>41103 - 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>94</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>41104 - 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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>41201 - 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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>41301 - 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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>41302 - 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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>41303 - 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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>41304 - 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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>41305 - 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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>41306 - 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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>41401 - 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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>41402 - 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-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>41403 - 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>105</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>41404 - 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>106</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>41405 - Disclosure - STOCK BASED COMPENSATION PLANS - Intrinsic value and unrecognized compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureStockBasedCompensationPlansIntrinsicValueAndUnrecognizedCompensationDetails</Role>
      <ShortName>STOCK BASED COMPENSATION PLANS - Intrinsic value and unrecognized compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>41406 - 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>108</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>41501 - 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>109</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>41502 - 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>110</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>41503 - 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>111</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>41504 - 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>112</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>41505 - 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>113</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>41506 - 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>114</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>41601 - 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>115</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>41602 - 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>116</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>41701 - 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>117</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>41702 - 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>118</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>41703 - 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>119</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>41801 - 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>120</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>41802 - 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>121</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>41803 - 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>122</Position>
    </Report>
    <Report instance="bhb-20201231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>41901 - Disclosure - QUARTERLY DATA (UNAUDITED) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bhbt.com/role/DisclosureQuarterlyDataUnauditedDetails</Role>
      <ShortName>QUARTERLY DATA (UNAUDITED) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bhbt.com/role/DisclosureQuarterlyDataUnauditedTables</ParentRole>
      <Position>123</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-20201231x10k.htm">bhb-20201231x10k.htm</File>
    <File>bhb-20201231.xsd</File>
    <File>bhb-20201231_cal.xml</File>
    <File>bhb-20201231_def.xml</File>
    <File>bhb-20201231_lab.xml</File>
    <File>bhb-20201231_pre.xml</File>
    <File>bhb-20201231xex21d1.htm</File>
    <File>bhb-20201231xex23d1.htm</File>
    <File>bhb-20201231xex31d1.htm</File>
    <File>bhb-20201231xex31d2.htm</File>
    <File>bhb-20201231xex32d1.htm</File>
    <File>bhb-20201231xex32d2.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>bhb-20201231x10k001.jpg</File>
    <File>bhb-20201231x10k002.jpg</File>
    <File>bhb-20201231x10k004.jpg</File>
    <File>bhb-20201231x10k010.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2020-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
