<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:6dc99f1f-1894-4c2f-b291-9f1b4165a377,g:9a8ef210-18b8-4998-bac2-27478cbfa298-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="fnlc-20220331.xsd#ConsolidatedBalanceSheetsUnaudited"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedBalanceSheetsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_16179781-bb52-4de8-a550-5fa87fbc43eb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesReceivableNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_128426d9-c364-4365-aab2-579d4d451177" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableNet_16179781-bb52-4de8-a550-5fa87fbc43eb" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_128426d9-c364-4365-aab2-579d4d451177" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_64b6dcb9-7374-4473-ba37-942bf3e8ccc6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesReceivableGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableNet_16179781-bb52-4de8-a550-5fa87fbc43eb" xlink:to="loc_us-gaap_NotesReceivableGross_64b6dcb9-7374-4473-ba37-942bf3e8ccc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_d2aa1cbd-0322-44bc-a23a-1ddf6a61f014" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Deposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DemandDepositAccounts_afa19121-d388-4668-9c42-b0c9335364ba" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DemandDepositAccounts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_d2aa1cbd-0322-44bc-a23a-1ddf6a61f014" xlink:to="loc_us-gaap_DemandDepositAccounts_afa19121-d388-4668-9c42-b0c9335364ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_e2b662e1-001f-424e-ac27-3d63ee875ce5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepositsNegotiableOrderOfWithdrawalNOW"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_d2aa1cbd-0322-44bc-a23a-1ddf6a61f014" xlink:to="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_e2b662e1-001f-424e-ac27-3d63ee875ce5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsMoneyMarketDeposits_3dd2ba92-9cb4-444a-8749-787e2e2b158b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepositsMoneyMarketDeposits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_d2aa1cbd-0322-44bc-a23a-1ddf6a61f014" xlink:to="loc_us-gaap_DepositsMoneyMarketDeposits_3dd2ba92-9cb4-444a-8749-787e2e2b158b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsSavingsDeposits_82d8e1bf-2fa4-4c77-ac34-a419d83eeef3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepositsSavingsDeposits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_d2aa1cbd-0322-44bc-a23a-1ddf6a61f014" xlink:to="loc_us-gaap_DepositsSavingsDeposits_82d8e1bf-2fa4-4c77-ac34-a419d83eeef3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_238e2e8c-f7b3-4af6-a3ab-7b77c6a97a34" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimeDeposits"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_d2aa1cbd-0322-44bc-a23a-1ddf6a61f014" xlink:to="loc_us-gaap_TimeDeposits_238e2e8c-f7b3-4af6-a3ab-7b77c6a97a34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_dba78741-3e24-43b4-9c5f-7e6855a0d5cf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_17eaea3d-b8b1-4415-990a-8b7b7daeb488" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_dba78741-3e24-43b4-9c5f-7e6855a0d5cf" xlink:to="loc_us-gaap_StockholdersEquity_17eaea3d-b8b1-4415-990a-8b7b7daeb488" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_e6f85b30-9eaf-42ae-8c0c-8d0debdc6420" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_dba78741-3e24-43b4-9c5f-7e6855a0d5cf" xlink:to="loc_us-gaap_Liabilities_e6f85b30-9eaf-42ae-8c0c-8d0debdc6420" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_ce2bb0fb-770c-4226-b618-d44b48fd9751" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_OtherAssets_ce2bb0fb-770c-4226-b618-d44b48fd9751" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_24712111-0a20-4f79-bb58-06081edb5fee" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_Goodwill_24712111-0a20-4f79-bb58-06081edb5fee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRealEstateAndForeclosedAssets_65595de6-567b-450f-8128-c6ddb245295d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherRealEstateAndForeclosedAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_OtherRealEstateAndForeclosedAssets_65595de6-567b-450f-8128-c6ddb245295d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_765d7498-dd14-4f2d-aac6-4d7173812e0b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_765d7498-dd14-4f2d-aac6-4d7173812e0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_60612c3f-8fb5-4ad9-ba65-49732f8c8665" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestReceivable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_InterestReceivable_60612c3f-8fb5-4ad9-ba65-49732f8c8665" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_7e050583-8d97-4a84-ab5a-1ab838a1c78b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_7e050583-8d97-4a84-ab5a-1ab838a1c78b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_59bf85b2-3b1a-47a7-9510-7c8ac62ee2ac" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_59bf85b2-3b1a-47a7-9510-7c8ac62ee2ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_RestrictedEquitySecuritiesAtCost_c6ed644e-d799-4455-94aa-d6b6a8793bbe" xlink:href="fnlc-20220331.xsd#fnlc_RestrictedEquitySecuritiesAtCost"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_fnlc_RestrictedEquitySecuritiesAtCost_c6ed644e-d799-4455-94aa-d6b6a8793bbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_0b31cb0b-2e02-4ebb-adef-bc07b54e371f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestBearingDepositsInBanks"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_0b31cb0b-2e02-4ebb-adef-bc07b54e371f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_ed7e2deb-76b9-4e85-bd44-96c52b2fd283" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_ed7e2deb-76b9-4e85-bd44-96c52b2fd283" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_6bcd5e6a-567f-4284-9c6f-5636bb6e75d2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_6bcd5e6a-567f-4284-9c6f-5636bb6e75d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_474fdea0-db46-40fd-abe6-aa0f25125fc7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesReceivableNet"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_333042bd-d57d-4164-bd79-0b72db404d0a" xlink:to="loc_us-gaap_NotesReceivableNet_474fdea0-db46-40fd-abe6-aa0f25125fc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_d22c7ff5-1a89-49a6-9c8e-d66e426e6766" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_3a8b2e8a-05df-4a6e-8995-b2d5123ae48c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d22c7ff5-1a89-49a6-9c8e-d66e426e6766" xlink:to="loc_us-gaap_OtherLiabilities_3a8b2e8a-05df-4a6e-8995-b2d5123ae48c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_f4bae444-fb50-4159-b706-7230622593f0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d22c7ff5-1a89-49a6-9c8e-d66e426e6766" xlink:to="loc_us-gaap_LongTermDebt_f4bae444-fb50-4159-b706-7230622593f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_6996de60-7e52-41fb-94df-cd32c3eecbff" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermBorrowings"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d22c7ff5-1a89-49a6-9c8e-d66e426e6766" xlink:to="loc_us-gaap_ShortTermBorrowings_6996de60-7e52-41fb-94df-cd32c3eecbff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_aaec92c6-fc41-453d-9189-3f1bc9531ae0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Deposits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d22c7ff5-1a89-49a6-9c8e-d66e426e6766" xlink:to="loc_us-gaap_Deposits_aaec92c6-fc41-453d-9189-3f1bc9531ae0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_a545793a-2853-4a95-bcd0-519a50244491" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_585ae4d6-9032-43e0-9095-b25335ee2907" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_a545793a-2853-4a95-bcd0-519a50244491" xlink:to="loc_us-gaap_CommonStockValue_585ae4d6-9032-43e0-9095-b25335ee2907" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_dffa7904-c9c0-4417-b58f-778d1d7ea760" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_a545793a-2853-4a95-bcd0-519a50244491" xlink:to="loc_us-gaap_AdditionalPaidInCapital_dffa7904-c9c0-4417-b58f-778d1d7ea760" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_4c5207f8-3954-4534-8c8a-301db07160cb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_a545793a-2853-4a95-bcd0-519a50244491" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_4c5207f8-3954-4534-8c8a-301db07160cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_3ae19dd4-0340-4775-82bb-81705c69c2db" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_a545793a-2853-4a95-bcd0-519a50244491" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_3ae19dd4-0340-4775-82bb-81705c69c2db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity_dc56c0d0-6eb1-4132-bd0a-425e0aad52f6" xlink:href="fnlc-20220331.xsd#fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_a545793a-2853-4a95-bcd0-519a50244491" xlink:to="loc_fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity_dc56c0d0-6eb1-4132-bd0a-425e0aad52f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_9c27ceac-33c0-4ee8-a579-36ec35b320a1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_a545793a-2853-4a95-bcd0-519a50244491" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_9c27ceac-33c0-4ee8-a579-36ec35b320a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_a4632fa1-0ef2-4326-9ba8-e17db16cac2c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_a545793a-2853-4a95-bcd0-519a50244491" xlink:to="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_a4632fa1-0ef2-4326-9ba8-e17db16cac2c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncomeUnaudited" xlink:type="simple" xlink:href="fnlc-20220331.xsd#ConsolidatedStatementsofIncomeandComprehensiveIncomeUnaudited"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncomeUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_57f02d25-49fe-464e-96a9-c03536c6bc29" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecurities_c98f886c-30a1-4281-b456-e90df4da5818" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestAndDividendIncomeSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_57f02d25-49fe-464e-96a9-c03536c6bc29" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecurities_c98f886c-30a1-4281-b456-e90df4da5818" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_27fc7352-e558-4f69-8657-f7e3b910b988" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestIncomeDepositsWithFinancialInstitutions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_57f02d25-49fe-464e-96a9-c03536c6bc29" xlink:to="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_27fc7352-e558-4f69-8657-f7e3b910b988" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_0291c94f-c305-4841-a2d4-132dc72fd5dc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_57f02d25-49fe-464e-96a9-c03536c6bc29" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_0291c94f-c305-4841-a2d4-132dc72fd5dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_46f2c2f1-abd6-400c-a01e-28a1753a1728" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_e32cb2ab-f1d4-419a-97db-82ca505150c8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NoninterestExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_46f2c2f1-abd6-400c-a01e-28a1753a1728" xlink:to="loc_us-gaap_NoninterestExpense_e32cb2ab-f1d4-419a-97db-82ca505150c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_e0e7d847-2424-49c9-b5ab-48863ebc198f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NoninterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_46f2c2f1-abd6-400c-a01e-28a1753a1728" xlink:to="loc_us-gaap_NoninterestIncome_e0e7d847-2424-49c9-b5ab-48863ebc198f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_5c3122ca-6500-4a7d-95ce-00db625b8531" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_46f2c2f1-abd6-400c-a01e-28a1753a1728" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_5c3122ca-6500-4a7d-95ce-00db625b8531" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_eefffcc9-3c37-44fb-b9b1-8e61edf13b1c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_a47ed2c9-1e39-4a51-ae47-de3f0bdb9750" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_eefffcc9-3c37-44fb-b9b1-8e61edf13b1c" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_a47ed2c9-1e39-4a51-ae47-de3f0bdb9750" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_1a9a4e84-31b9-4c67-ac2a-398af570dbad" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_eefffcc9-3c37-44fb-b9b1-8e61edf13b1c" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_1a9a4e84-31b9-4c67-ac2a-398af570dbad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f07befc6-1e73-4173-baa1-28cd0b285391" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_9274fbb9-f038-492d-bded-3e8c32233f0d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f07befc6-1e73-4173-baa1-28cd0b285391" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_9274fbb9-f038-492d-bded-3e8c32233f0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_9c37862f-1938-49f2-b3b8-5d0c52314c70" xlink:href="fnlc-20220331.xsd#fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f07befc6-1e73-4173-baa1-28cd0b285391" xlink:to="loc_fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_9c37862f-1938-49f2-b3b8-5d0c52314c70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_e2653f97-f104-434a-bcbf-309da928cd56" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f07befc6-1e73-4173-baa1-28cd0b285391" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_e2653f97-f104-434a-bcbf-309da928cd56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetTransitionAssetObligationNetOfTax_48c59b35-0278-4633-918c-bda83fb1aec0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetTransitionAssetObligationNetOfTax"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f07befc6-1e73-4173-baa1-28cd0b285391" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetTransitionAssetObligationNetOfTax_48c59b35-0278-4633-918c-bda83fb1aec0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_bb7a6b77-5db6-4a01-b566-efefd2665071" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_73e9e866-e059-41d2-9119-da5820af0563" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_bb7a6b77-5db6-4a01-b566-efefd2665071" xlink:to="loc_us-gaap_InterestExpense_73e9e866-e059-41d2-9119-da5820af0563" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_8a825d66-c27b-42d1-804e-42a7ce5a6411" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_bb7a6b77-5db6-4a01-b566-efefd2665071" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_8a825d66-c27b-42d1-804e-42a7ce5a6411" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_5a6fa23f-8b70-4410-8810-fdea316b30d4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_82d6934a-fdbd-4d30-8278-59af3db76986" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_5a6fa23f-8b70-4410-8810-fdea316b30d4" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_82d6934a-fdbd-4d30-8278-59af3db76986" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f6f8883e-0367-4218-b6cd-416e86bed475" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_5a6fa23f-8b70-4410-8810-fdea316b30d4" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f6f8883e-0367-4218-b6cd-416e86bed475" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_9e41a25f-5b7d-4d2f-a1cd-96d25149084d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_7ad6e40a-e8e4-4817-b591-842d72cef686" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_9e41a25f-5b7d-4d2f-a1cd-96d25149084d" xlink:to="loc_us-gaap_NetIncomeLoss_7ad6e40a-e8e4-4817-b591-842d72cef686" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_dda94f20-a871-48c1-bfc9-1950151a9004" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_9e41a25f-5b7d-4d2f-a1cd-96d25149084d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_dda94f20-a871-48c1-bfc9-1950151a9004" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_df4f50d6-5eab-4fbf-96f9-06b37feba9f0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoninterestExpense_058f78d2-e66d-4e91-8d33-71cd115e59af" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNoninterestExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_df4f50d6-5eab-4fbf-96f9-06b37feba9f0" xlink:to="loc_us-gaap_OtherNoninterestExpense_058f78d2-e66d-4e91-8d33-71cd115e59af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_913855a9-27eb-4bb1-9c98-692858e200f7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_df4f50d6-5eab-4fbf-96f9-06b37feba9f0" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_913855a9-27eb-4bb1-9c98-692858e200f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_40683310-f6b9-4033-8e8f-22c94998baf1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FederalDepositInsuranceCorporationPremiumExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_df4f50d6-5eab-4fbf-96f9-06b37feba9f0" xlink:to="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_40683310-f6b9-4033-8e8f-22c94998baf1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquipmentExpense_86af469e-08cd-401d-93b0-3466b3183945" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquipmentExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_df4f50d6-5eab-4fbf-96f9-06b37feba9f0" xlink:to="loc_us-gaap_EquipmentExpense_86af469e-08cd-401d-93b0-3466b3183945" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OccupancyNet_da96c091-bbf9-4998-85e2-28d57ee19813" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OccupancyNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_df4f50d6-5eab-4fbf-96f9-06b37feba9f0" xlink:to="loc_us-gaap_OccupancyNet_da96c091-bbf9-4998-85e2-28d57ee19813" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_f88c342a-07c6-4146-acf0-45e5a493d8f5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_df4f50d6-5eab-4fbf-96f9-06b37feba9f0" xlink:to="loc_us-gaap_LaborAndRelatedExpense_f88c342a-07c6-4146-acf0-45e5a493d8f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_de8b934d-8734-4683-a89c-e0415de76c3d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseBorrowings_9fba645d-f002-44f7-8fa6-3284cd7d7f27" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestExpenseBorrowings"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_de8b934d-8734-4683-a89c-e0415de76c3d" xlink:to="loc_us-gaap_InterestExpenseBorrowings_9fba645d-f002-44f7-8fa6-3284cd7d7f27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDeposits_e713514a-6015-4d1f-aa49-67fa20b55c87" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestExpenseDeposits"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_de8b934d-8734-4683-a89c-e0415de76c3d" xlink:to="loc_us-gaap_InterestExpenseDeposits_e713514a-6015-4d1f-aa49-67fa20b55c87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_a053b517-2e7b-471f-ae5e-dd0c04da2aef" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_a6dd960b-f585-4e80-b38f-9c102073df33" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_a053b517-2e7b-471f-ae5e-dd0c04da2aef" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_a6dd960b-f585-4e80-b38f-9c102073df33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_048b80d2-36c4-401c-8d38-bd5371e19d11" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtAndEquitySecuritiesGainLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_a053b517-2e7b-471f-ae5e-dd0c04da2aef" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_048b80d2-36c4-401c-8d38-bd5371e19d11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_0a276321-1a4f-4412-8b1d-60137edc3730" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_a053b517-2e7b-471f-ae5e-dd0c04da2aef" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_0a276321-1a4f-4412-8b1d-60137edc3730" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsofCashFlowsUnaudited" xlink:type="simple" xlink:href="fnlc-20220331.xsd#ConsolidatedStatementsofCashFlowsUnaudited"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsofCashFlowsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4106e901-e4c8-4631-870d-8b8d5c20cb9b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_92fa91fc-38b5-4f1a-ba85-b61b365ece5c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4106e901-e4c8-4631-870d-8b8d5c20cb9b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_92fa91fc-38b5-4f1a-ba85-b61b365ece5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_9d942da4-0690-43a2-a7f2-c4de506816f7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4106e901-e4c8-4631-870d-8b8d5c20cb9b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_9d942da4-0690-43a2-a7f2-c4de506816f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_717b9995-3fca-4ead-bb0a-0f87adb2025b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4106e901-e4c8-4631-870d-8b8d5c20cb9b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_717b9995-3fca-4ead-bb0a-0f87adb2025b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireRestrictedInvestments_a45245cb-36d4-40cd-b3fa-3615ea073259" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireRestrictedInvestments"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_us-gaap_PaymentsToAcquireRestrictedInvestments_a45245cb-36d4-40cd-b3fa-3615ea073259" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_0716d986-603d-42b5-9a6a-702c776b4730" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_0716d986-603d-42b5-9a6a-702c776b4730" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_cac3088a-11c6-4c26-9547-167cb00953f6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_cac3088a-11c6-4c26-9547-167cb00953f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireFinanceReceivables_03ab40f4-5137-4db6-bece-bb9ea4486da9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireFinanceReceivables"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_us-gaap_PaymentsToAcquireFinanceReceivables_03ab40f4-5137-4db6-bece-bb9ea4486da9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_bec2fa1c-1fe2-473f-b901-9225c0462bee" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireHeldToMaturitySecurities"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_bec2fa1c-1fe2-473f-b901-9225c0462bee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_RedemptionOfRestrictedEquitySecurities_e1e6428d-3e59-49fd-b61d-4f7f4c6ea151" xlink:href="fnlc-20220331.xsd#fnlc_RedemptionOfRestrictedEquitySecurities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_fnlc_RedemptionOfRestrictedEquitySecurities_e1e6428d-3e59-49fd-b61d-4f7f4c6ea151" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_788a8644-9323-40ff-98f8-47304dfb5932" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfOtherRealEstate"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_788a8644-9323-40ff-98f8-47304dfb5932" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_4fbf0fde-a679-424a-b702-c5d6acb6a41d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_4fbf0fde-a679-424a-b702-c5d6acb6a41d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_c189fee8-5964-4284-a5b4-830da5aa45a9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_c189fee8-5964-4284-a5b4-830da5aa45a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_InterestBearingDepositsInOtherBanks_79492a1d-6337-4a72-b5ef-41d5925c9bcd" xlink:href="fnlc-20220331.xsd#fnlc_InterestBearingDepositsInOtherBanks"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_fnlc_InterestBearingDepositsInOtherBanks_79492a1d-6337-4a72-b5ef-41d5925c9bcd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_b3296c3e-7923-42b9-80c6-9b265adf9b4a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a1c9fb-af9f-467f-b317-d869fe7e97bd" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_b3296c3e-7923-42b9-80c6-9b265adf9b4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_2117396e-a524-4cdb-b52c-ecc83e03fb05" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_2117396e-a524-4cdb-b52c-ecc83e03fb05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_ee44c3d8-0a83-4e5d-80b9-1e45d63f8227" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_ee44c3d8-0a83-4e5d-80b9-1e45d63f8227" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfAcquisitionCosts_dd0eb720-9791-4317-903e-cd9467cafc4e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AmortizationOfAcquisitionCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_AmortizationOfAcquisitionCosts_dd0eb720-9791-4317-903e-cd9467cafc4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_86a44e45-0670-4f46-bc96-f656d84e61ae" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherDepreciationAndAmortization"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_86a44e45-0670-4f46-bc96-f656d84e61ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_f8c484b0-6731-4390-8b93-eb04c4fbdee8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtAndEquitySecuritiesGainLoss"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesGainLoss_f8c484b0-6731-4390-8b93-eb04c4fbdee8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_0643fbd8-4cea-4bb8-b701-f074a00040f5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_ShareBasedCompensation_0643fbd8-4cea-4bb8-b701-f074a00040f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_40f458f6-4260-45a0-9e80-e3e851453ca4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_40f458f6-4260-45a0-9e80-e3e851453ca4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_525f1432-dd1a-420d-96fe-f1c8c06a9237" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_525f1432-dd1a-420d-96fe-f1c8c06a9237" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_9de0de4e-b01a-4805-a1de-e01ab7cb25f4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_Depreciation_9de0de4e-b01a-4805-a1de-e01ab7cb25f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_52f71c87-bb11-4eb1-9c19-a30251507cbc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_52f71c87-bb11-4eb1-9c19-a30251507cbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_9b80f846-ff4a-4929-b67c-45c4084a3fed" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_9b80f846-ff4a-4929-b67c-45c4084a3fed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_6a6e9656-70e7-42bc-a3e3-07f23e560e45" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_6a6e9656-70e7-42bc-a3e3-07f23e560e45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_4b0fa75b-c5d2-4aee-b5f1-a813e1325b45" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_4b0fa75b-c5d2-4aee-b5f1-a813e1325b45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_370958d9-037b-4833-9324-068392541a9f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_370958d9-037b-4833-9324-068392541a9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_11667ed3-96bc-4e05-8b22-c82ef0607633" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_11667ed3-96bc-4e05-8b22-c82ef0607633" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_ca410365-dc64-4e0e-a306-ae40540e53f3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6997da73-18ad-45ca-99b8-ed69c1605163" xlink:to="loc_us-gaap_NetIncomeLoss_ca410365-dc64-4e0e-a306-ae40540e53f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ab7b854b-582d-4ff4-aade-39a193d658d3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts_85a04518-d0ff-4efa-b317-311abe45a51a" xlink:href="fnlc-20220331.xsd#fnlc_IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ab7b854b-582d-4ff4-aade-39a193d658d3" xlink:to="loc_fnlc_IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts_85a04518-d0ff-4efa-b317-311abe45a51a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInTimeDeposits_5b5f7159-9add-49f4-8440-733cbbc76473" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInTimeDeposits"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ab7b854b-582d-4ff4-aade-39a193d658d3" xlink:to="loc_us-gaap_IncreaseDecreaseInTimeDeposits_5b5f7159-9add-49f4-8440-733cbbc76473" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_044678ed-596d-4f4b-b9d1-d7183a8da431" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ab7b854b-582d-4ff4-aade-39a193d658d3" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_044678ed-596d-4f4b-b9d1-d7183a8da431" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfOtherLongTermDebt_35e38e5c-481b-4dc9-86ae-4475e5d2f8d9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RepaymentsOfOtherLongTermDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ab7b854b-582d-4ff4-aade-39a193d658d3" xlink:to="loc_us-gaap_RepaymentsOfOtherLongTermDebt_35e38e5c-481b-4dc9-86ae-4475e5d2f8d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c4ce3188-15b3-42fa-a421-49b72f9a9990" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ab7b854b-582d-4ff4-aade-39a193d658d3" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c4ce3188-15b3-42fa-a421-49b72f9a9990" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_3c054fec-0097-4e22-9ff3-5a2909fc11b5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ab7b854b-582d-4ff4-aade-39a193d658d3" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_3c054fec-0097-4e22-9ff3-5a2909fc11b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_c1eec54c-a511-4967-955b-03819b3b54b7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ab7b854b-582d-4ff4-aade-39a193d658d3" xlink:to="loc_us-gaap_PaymentsOfDividends_c1eec54c-a511-4967-955b-03819b3b54b7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueAFSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_0d0e3a41-4c4b-4810-a099-aaecb54a2afa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_8050ec19-6754-4348-8fa2-86aed3c402df" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_0d0e3a41-4c4b-4810-a099-aaecb54a2afa" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_8050ec19-6754-4348-8fa2-86aed3c402df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_9b8c62f0-3ebc-443b-bca4-c1a0f95eb22d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_0d0e3a41-4c4b-4810-a099-aaecb54a2afa" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_9b8c62f0-3ebc-443b-bca4-c1a0f95eb22d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_c8ede970-a321-42d7-bd14-671404a31761" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_0d0e3a41-4c4b-4810-a099-aaecb54a2afa" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_c8ede970-a321-42d7-bd14-671404a31761" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesSummaryofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_115f1564-aad7-40a5-a380-5f9d2dfd0dbf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_e7bffacb-42f0-46ce-82bb-805abae5561d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_115f1564-aad7-40a5-a380-5f9d2dfd0dbf" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_e7bffacb-42f0-46ce-82bb-805abae5561d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_57feb882-9e9f-4a40-89b4-def48d1ddc13" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_115f1564-aad7-40a5-a380-5f9d2dfd0dbf" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_57feb882-9e9f-4a40-89b4-def48d1ddc13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_e46df529-201c-471d-95ef-0c6fd297d3ec" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_115f1564-aad7-40a5-a380-5f9d2dfd0dbf" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_e46df529-201c-471d-95ef-0c6fd297d3ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock_e46f3ba5-d366-4211-ab7a-3f029b7a636c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalReserveBankStock_74c1c0cb-f092-44bf-9c5d-91312ec8a08b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FederalReserveBankStock"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock_e46f3ba5-d366-4211-ab7a-3f029b7a636c" xlink:to="loc_us-gaap_FederalReserveBankStock_74c1c0cb-f092-44bf-9c5d-91312ec8a08b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankStock_68cbe06d-5f44-45f7-b18f-bf17c57d9207" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FederalHomeLoanBankStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock_e46f3ba5-d366-4211-ab7a-3f029b7a636c" xlink:to="loc_us-gaap_FederalHomeLoanBankStock_68cbe06d-5f44-45f7-b18f-bf17c57d9207" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#InvestmentSecuritiesSummaryofContractualMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesSummaryofContractualMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_fd77a8ea-927c-4f9b-a1c1-514ebd418359" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_65de5ed8-52cc-42e8-8b78-9b92c8359824" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_fd77a8ea-927c-4f9b-a1c1-514ebd418359" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_65de5ed8-52cc-42e8-8b78-9b92c8359824" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_ead9e01b-a003-4c95-8f71-bf57166d4d5f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_fd77a8ea-927c-4f9b-a1c1-514ebd418359" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_ead9e01b-a003-4c95-8f71-bf57166d4d5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_f9c1704b-c25a-453f-b9ce-9805fac7004a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_fd77a8ea-927c-4f9b-a1c1-514ebd418359" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_f9c1704b-c25a-453f-b9ce-9805fac7004a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_177e5c1e-e47f-4414-b289-89e019162d1b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_fd77a8ea-927c-4f9b-a1c1-514ebd418359" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_177e5c1e-e47f-4414-b289-89e019162d1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_7302244d-14ec-42d0-86c6-9d7602dee056" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_72db4817-42fd-4ae9-9ebc-4c95222d02a5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_7302244d-14ec-42d0-86c6-9d7602dee056" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_72db4817-42fd-4ae9-9ebc-4c95222d02a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_a58082ef-ff57-488b-ada0-b8c2e3f3a908" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_7302244d-14ec-42d0-86c6-9d7602dee056" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_a58082ef-ff57-488b-ada0-b8c2e3f3a908" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_660c0d1a-7051-4a80-b1d4-8fc8905a34eb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_7302244d-14ec-42d0-86c6-9d7602dee056" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_660c0d1a-7051-4a80-b1d4-8fc8905a34eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_66b84e8d-6e9d-4dc7-afb0-0a138d5e95a0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_7302244d-14ec-42d0-86c6-9d7602dee056" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_66b84e8d-6e9d-4dc7-afb0-0a138d5e95a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_7a71a5a1-7d68-4ce7-bda9-ae09ac9df0e8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_6282db14-d5b6-4c16-9294-0109886e7c22" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_7a71a5a1-7d68-4ce7-bda9-ae09ac9df0e8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_6282db14-d5b6-4c16-9294-0109886e7c22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_828d2d47-6c2a-4043-ae24-b14c1ea98b6d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_7a71a5a1-7d68-4ce7-bda9-ae09ac9df0e8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_828d2d47-6c2a-4043-ae24-b14c1ea98b6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_7b3898cd-d042-4cbe-9f7f-02878fdec031" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_7a71a5a1-7d68-4ce7-bda9-ae09ac9df0e8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_7b3898cd-d042-4cbe-9f7f-02878fdec031" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_0a9fe04d-4b70-4220-b37c-63ae2acafd88" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_7a71a5a1-7d68-4ce7-bda9-ae09ac9df0e8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_0a9fe04d-4b70-4220-b37c-63ae2acafd88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_9e1a7a80-ae65-4fd4-8e9d-7aa2756a4a44" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_0fad835a-8549-41f3-bc91-f320fbf63feb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_9e1a7a80-ae65-4fd4-8e9d-7aa2756a4a44" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_0fad835a-8549-41f3-bc91-f320fbf63feb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_651c63bc-4ec5-4f86-8b97-c8128f245b66" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_9e1a7a80-ae65-4fd4-8e9d-7aa2756a4a44" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_651c63bc-4ec5-4f86-8b97-c8128f245b66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_61139cc4-c741-4b06-b7ad-040b6fae621d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_9e1a7a80-ae65-4fd4-8e9d-7aa2756a4a44" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_61139cc4-c741-4b06-b7ad-040b6fae621d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_e80d5dce-683f-41a1-997f-5d30cf374082" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_9e1a7a80-ae65-4fd4-8e9d-7aa2756a4a44" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_e80d5dce-683f-41a1-997f-5d30cf374082" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#InvestmentSecuritiesSecuritiesGainsandLossesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesGainLoss_26f2a999-1ae3-42b7-a354-5f73b680f3f3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesGainLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_DebtSecuritiesRealizedGain_59cdb202-3796-4424-a25d-d01e7829859a" xlink:href="fnlc-20220331.xsd#fnlc_DebtSecuritiesRealizedGain"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesGainLoss_26f2a999-1ae3-42b7-a354-5f73b680f3f3" xlink:to="loc_fnlc_DebtSecuritiesRealizedGain_59cdb202-3796-4424-a25d-d01e7829859a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_DebtSecuritiesRealizedLoss_8503fab8-e518-406f-9424-dba1a5c87fcc" xlink:href="fnlc-20220331.xsd#fnlc_DebtSecuritiesRealizedLoss"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesGainLoss_26f2a999-1ae3-42b7-a354-5f73b680f3f3" xlink:to="loc_fnlc_DebtSecuritiesRealizedLoss_8503fab8-e518-406f-9424-dba1a5c87fcc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_4b179908-0eb8-4d4a-82f3-8d03b9e16711" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_6b739fb9-01d4-4f81-9387-ef1519850aa2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_4b179908-0eb8-4d4a-82f3-8d03b9e16711" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_6b739fb9-01d4-4f81-9387-ef1519850aa2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_4c995617-309c-48c9-84de-1e47fb6a643d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_4b179908-0eb8-4d4a-82f3-8d03b9e16711" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_4c995617-309c-48c9-84de-1e47fb6a643d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_25fd775d-b7db-4e5f-813b-2412e246d561" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_2a7e4d1f-9c14-4415-a8e5-2a72e43f68a9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_25fd775d-b7db-4e5f-813b-2412e246d561" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_2a7e4d1f-9c14-4415-a8e5-2a72e43f68a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_53ffd059-0a3d-4833-9a9b-654b481ebcb8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_25fd775d-b7db-4e5f-813b-2412e246d561" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_53ffd059-0a3d-4833-9a9b-654b481ebcb8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#LoansImpairedLoansbyClassDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansImpairedLoansbyClassDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_857d20a4-97ba-449c-a657-495475e2fee2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_77d63731-5b10-4a81-9660-796b62fbefa3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_857d20a4-97ba-449c-a657-495475e2fee2" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_77d63731-5b10-4a81-9660-796b62fbefa3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_4c74c51b-c669-4024-a9f2-6ec82d87e745" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_857d20a4-97ba-449c-a657-495475e2fee2" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_4c74c51b-c669-4024-a9f2-6ec82d87e745" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_9fe2c719-e9b4-4c97-826b-a5f22b50c048" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_fcbbb070-16a7-4cfb-8e28-3972d47079b1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_9fe2c719-e9b4-4c97-826b-a5f22b50c048" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_fcbbb070-16a7-4cfb-8e28-3972d47079b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_6ac5bff3-b89d-4587-a19e-37e35dc1aee4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_9fe2c719-e9b4-4c97-826b-a5f22b50c048" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_6ac5bff3-b89d-4587-a19e-37e35dc1aee4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_26530740-7c5d-4af8-acbb-d1b956aa2277" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_d05beb45-1608-43db-a438-43c0873a9143" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_26530740-7c5d-4af8-acbb-d1b956aa2277" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_d05beb45-1608-43db-a438-43c0873a9143" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_d3a4640e-8246-4118-ac70-99b6010c615d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_26530740-7c5d-4af8-acbb-d1b956aa2277" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_d3a4640e-8246-4118-ac70-99b6010c615d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_411be2b8-eeec-4c8c-bcfe-5b1f7290b5d4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_5d5339e8-209f-414b-9765-310d1d3f019c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_411be2b8-eeec-4c8c-bcfe-5b1f7290b5d4" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_5d5339e8-209f-414b-9765-310d1d3f019c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_b2763b7c-c81e-49b4-89f0-7d55340400fa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_411be2b8-eeec-4c8c-bcfe-5b1f7290b5d4" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_b2763b7c-c81e-49b4-89f0-7d55340400fa" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#AllowanceforLoanLossesActivitybyClassDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/AllowanceforLoanLossesActivitybyClassDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_e1aec7f0-80a5-4787-ba8a-311a1007a41d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesReceivableGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_e02b8356-cfbb-4cf5-9f93-d0618ef0b1c5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableGross_e1aec7f0-80a5-4787-ba8a-311a1007a41d" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_e02b8356-cfbb-4cf5-9f93-d0618ef0b1c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_93d99ced-4f4e-49ee-ae69-6c5728d803bf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableGross_e1aec7f0-80a5-4787-ba8a-311a1007a41d" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_93d99ced-4f4e-49ee-ae69-6c5728d803bf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/EarningsPerShareDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#EarningsPerShareDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_30d53dfa-af83-4c27-a599-30f8c22c9871" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_0c6e4549-e53d-4f73-b310-5379fecaf290" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_30d53dfa-af83-4c27-a599-30f8c22c9871" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_0c6e4549-e53d-4f73-b310-5379fecaf290" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_13672f67-ab81-432c-89e1-909bfd30e8f2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_30d53dfa-af83-4c27-a599-30f8c22c9871" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_13672f67-ab81-432c-89e1-909bfd30e8f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_1de1b1fd-74c0-4178-ac44-6bde48911d9a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a0e5b827-4dad-4ffb-8f5c-7526d9c49e91" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_1de1b1fd-74c0-4178-ac44-6bde48911d9a" xlink:to="loc_us-gaap_NetIncomeLoss_a0e5b827-4dad-4ffb-8f5c-7526d9c49e91" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_e4e86390-de0d-4809-8786-651c5a5f43d7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_3eadd54f-2d86-4445-88fb-9673afc9ec08" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_e4e86390-de0d-4809-8786-651c5a5f43d7" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_3eadd54f-2d86-4445-88fb-9673afc9ec08" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_9789037a-d883-4fd5-9657-590d6fce6678" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit_ce51d9dc-70cf-490d-877b-ce9710504006" xlink:href="fnlc-20220331.xsd#fnlc_AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_9789037a-d883-4fd5-9657-590d6fce6678" xlink:to="loc_fnlc_AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit_ce51d9dc-70cf-490d-877b-ce9710504006" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_14f2766d-ea61-4c18-a9f8-52bb24d51cd4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_9789037a-d883-4fd5-9657-590d6fce6678" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_14f2766d-ea61-4c18-a9f8-52bb24d51cd4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9a93b964-9d1d-4a51-9b18-2b3660594bd9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_f18edeed-3da0-441d-9b94-71c1dce41912" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9a93b964-9d1d-4a51-9b18-2b3660594bd9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_f18edeed-3da0-441d-9b94-71c1dce41912" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_49ff5853-b55b-4935-8b0d-c7ba1ccdd15c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9a93b964-9d1d-4a51-9b18-2b3660594bd9" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_49ff5853-b55b-4935-8b0d-c7ba1ccdd15c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_aa5dea3c-02df-472d-9a35-fbb28ae987b9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9a93b964-9d1d-4a51-9b18-2b3660594bd9" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_aa5dea3c-02df-472d-9a35-fbb28ae987b9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/MortgageServicingRightsScheduleofMortgageServicingRightsDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#MortgageServicingRightsScheduleofMortgageServicingRightsDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/MortgageServicingRightsScheduleofMortgageServicingRightsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetAtAmortizedValue_07c47767-82d8-42d9-a22b-042c89af7fcd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ServicingAssetAtAmortizedValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_AccumulatedAmortizationMortgageServicingRights_bba237b3-251d-413d-8d50-1325bab56d1d" xlink:href="fnlc-20220331.xsd#fnlc_AccumulatedAmortizationMortgageServicingRights"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ServicingAssetAtAmortizedValue_07c47767-82d8-42d9-a22b-042c89af7fcd" xlink:to="loc_fnlc_AccumulatedAmortizationMortgageServicingRights_bba237b3-251d-413d-8d50-1325bab56d1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_MortgageServicingRightsGross_ce4b2124-a7d2-47c7-bc12-024e5aaeff6b" xlink:href="fnlc-20220331.xsd#fnlc_MortgageServicingRightsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ServicingAssetAtAmortizedValue_07c47767-82d8-42d9-a22b-042c89af7fcd" xlink:to="loc_fnlc_MortgageServicingRightsGross_ce4b2124-a7d2-47c7-bc12-024e5aaeff6b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/CertificatesofDepositDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#CertificatesofDepositDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/CertificatesofDepositDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_d3940804-f9ec-4bc7-9e99-5d242da404b2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimeDeposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositsLessThan100000_b4e9020d-d3f7-44ff-adec-bba19d6cd72f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimeDepositsLessThan100000"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_d3940804-f9ec-4bc7-9e99-5d242da404b2" xlink:to="loc_us-gaap_TimeDepositsLessThan100000_b4e9020d-d3f7-44ff-adec-bba19d6cd72f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TimeDepositsGreaterThan100000AndLessThan250000_c2d719a2-ccf2-46e1-958d-2b3fdda9c677" xlink:href="fnlc-20220331.xsd#fnlc_TimeDepositsGreaterThan100000AndLessThan250000"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_d3940804-f9ec-4bc7-9e99-5d242da404b2" xlink:to="loc_fnlc_TimeDepositsGreaterThan100000AndLessThan250000_c2d719a2-ccf2-46e1-958d-2b3fdda9c677" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TimeDeposits250000OrMore_83a72bf0-7270-4726-b422-b1aec720335f" xlink:href="fnlc-20220331.xsd#fnlc_TimeDeposits250000OrMore"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_d3940804-f9ec-4bc7-9e99-5d242da404b2" xlink:to="loc_fnlc_TimeDeposits250000OrMore_83a72bf0-7270-4726-b422-b1aec720335f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueAssetsandLiabilitiesRecordedatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#FairValueAssetsandLiabilitiesRecordedatFairValueonaRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueAssetsandLiabilitiesRecordedatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_16e27c5d-bb18-4154-803f-9b7600660aa4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_4919273a-652c-4689-8842-46c75dfa394f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_16e27c5d-bb18-4154-803f-9b7600660aa4" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_4919273a-652c-4689-8842-46c75dfa394f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_e90b877e-9e27-464f-a302-ec851cfb6625" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_16e27c5d-bb18-4154-803f-9b7600660aa4" xlink:to="loc_us-gaap_DerivativeAssets_e90b877e-9e27-464f-a302-ec851cfb6625" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueAssetsRecordedatFairValueonaNonRecurringBasisDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#FairValueAssetsRecordedatFairValueonaNonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueAssetsRecordedatFairValueonaNonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_cfbdffe2-e9a1-4e55-afd7-9ce8ea087800" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRealEstateAndForeclosedAssets_8180fc32-6fd7-4728-9b85-8a960eb11a3a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherRealEstateAndForeclosedAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_cfbdffe2-e9a1-4e55-afd7-9ce8ea087800" xlink:to="loc_us-gaap_OtherRealEstateAndForeclosedAssets_8180fc32-6fd7-4728-9b85-8a960eb11a3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_ImpairedLoansFairValueDisclosure_c9629627-1c48-45a6-9481-54e22853c08a" xlink:href="fnlc-20220331.xsd#fnlc_ImpairedLoansFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_cfbdffe2-e9a1-4e55-afd7-9ce8ea087800" xlink:to="loc_fnlc_ImpairedLoansFairValueDisclosure_c9629627-1c48-45a6-9481-54e22853c08a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetAtFairValueAmount_e7889ff8-d768-4e4c-8248-c444d829417b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ServicingAssetAtFairValueAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_cfbdffe2-e9a1-4e55-afd7-9ce8ea087800" xlink:to="loc_us-gaap_ServicingAssetAtFairValueAmount_e7889ff8-d768-4e4c-8248-c444d829417b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueCarryingAmountsandEstimatedFairValuesDetails" xlink:type="simple" xlink:href="fnlc-20220331.xsd#FairValueCarryingAmountsandEstimatedFairValuesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueCarryingAmountsandEstimatedFairValuesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_fe3f7e35-86d4-4ebd-98d1-2f6d016298a7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Deposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_NationalCertificatesOfDeposit_723d62b5-1ddf-43f5-bea6-cf359f895002" xlink:href="fnlc-20220331.xsd#fnlc_NationalCertificatesOfDeposit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_fe3f7e35-86d4-4ebd-98d1-2f6d016298a7" xlink:to="loc_fnlc_NationalCertificatesOfDeposit_723d62b5-1ddf-43f5-bea6-cf359f895002" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_5f682bca-7fad-4129-b0a1-ee706a51689e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimeDeposits"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_fe3f7e35-86d4-4ebd-98d1-2f6d016298a7" xlink:to="loc_us-gaap_TimeDeposits_5f682bca-7fad-4129-b0a1-ee706a51689e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_b3bf03f5-5b64-4b40-9f2d-ef01e52a897d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability_878a06b7-f937-4648-a7b6-647e2c687892" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_b3bf03f5-5b64-4b40-9f2d-ef01e52a897d" xlink:to="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability_878a06b7-f937-4648-a7b6-647e2c687892" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesLongTerm_f394339c-a3ee-4012-9d2a-14eaf80ae317" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesLongTerm"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_b3bf03f5-5b64-4b40-9f2d-ef01e52a897d" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesLongTerm_f394339c-a3ee-4012-9d2a-14eaf80ae317" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
