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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019eadf5-dfe0-76ac-b28f-a5401b8b7603,g:c738b862-df0c-4101-9b87-3b51b6cf6b10-->
<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:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="fnlc-20260630.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_Deposits_019eadf5-e9c9-7d60-9ae1-8d0d1970aea0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Deposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DemandDepositAccounts_019eadf5-e9c9-781a-843a-a59478163bd6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DemandDepositAccounts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019eadf5-e9c9-7d60-9ae1-8d0d1970aea0" xlink:to="loc_us-gaap_DemandDepositAccounts_019eadf5-e9c9-781a-843a-a59478163bd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_019eadf5-e9c9-7643-921f-6f7ba9fd367d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepositsNegotiableOrderOfWithdrawalNOW"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019eadf5-e9c9-7d60-9ae1-8d0d1970aea0" xlink:to="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_019eadf5-e9c9-7643-921f-6f7ba9fd367d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsMoneyMarketDeposits_019eadf5-e9c9-7b37-ae4d-75df8fad2d80" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepositsMoneyMarketDeposits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019eadf5-e9c9-7d60-9ae1-8d0d1970aea0" xlink:to="loc_us-gaap_DepositsMoneyMarketDeposits_019eadf5-e9c9-7b37-ae4d-75df8fad2d80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsSavingsDeposits_019eadf5-e9c9-7621-9400-cf7f61d02a25" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepositsSavingsDeposits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019eadf5-e9c9-7d60-9ae1-8d0d1970aea0" xlink:to="loc_us-gaap_DepositsSavingsDeposits_019eadf5-e9c9-7621-9400-cf7f61d02a25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_019eadf5-e9c9-708a-821d-1ce1b1522aa4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TimeDeposits"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019eadf5-e9c9-7d60-9ae1-8d0d1970aea0" xlink:to="loc_us-gaap_TimeDeposits_019eadf5-e9c9-708a-821d-1ce1b1522aa4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7597-a64e-daacd9609093" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019eadf5-e9c9-73e8-b9c6-982a7836517e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7597-a64e-daacd9609093" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019eadf5-e9c9-73e8-b9c6-982a7836517e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7624-8adb-f4e480158ad7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7597-a64e-daacd9609093" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7624-8adb-f4e480158ad7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019eadf5-e9c9-7c31-a2d7-e0eafcafff41" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_019eadf5-e9c9-79ea-bdbf-6ef19e56e3e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019eadf5-e9c9-7c31-a2d7-e0eafcafff41" xlink:to="loc_us-gaap_OtherLiabilities_019eadf5-e9c9-79ea-bdbf-6ef19e56e3e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019eadf5-e9c9-7ebe-a003-d3e7d7fee00b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019eadf5-e9c9-7c31-a2d7-e0eafcafff41" xlink:to="loc_us-gaap_LongTermDebt_019eadf5-e9c9-7ebe-a003-d3e7d7fee00b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_019eadf5-e9c9-7299-854d-9554880ee680" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermBorrowings"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019eadf5-e9c9-7c31-a2d7-e0eafcafff41" xlink:to="loc_us-gaap_ShortTermBorrowings_019eadf5-e9c9-7299-854d-9554880ee680" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_019eadf5-e9c9-79c3-aea5-9b0c7a46eecb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Deposits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019eadf5-e9c9-7c31-a2d7-e0eafcafff41" xlink:to="loc_us-gaap_Deposits_019eadf5-e9c9-79c3-aea5-9b0c7a46eecb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019eadf5-e9c9-7e84-b4f8-6e21f73f42e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019eadf5-e9c9-7e84-b4f8-6e21f73f42e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_019eadf5-e9c9-7272-a32b-e41a08e658b3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestBearingDepositsInBanks"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_019eadf5-e9c9-7272-a32b-e41a08e658b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-e9c9-7c58-ba19-6fdbe9ba77e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-e9c9-7c58-ba19-6fdbe9ba77e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7264-8b32-dceaa3089cb3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7264-8b32-dceaa3089cb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_RestrictedEquitySecuritiesAtCost_019eadf5-e9c9-7e2e-bdd0-f738164c936f" xlink:href="fnlc-20260630.xsd#fnlc_RestrictedEquitySecuritiesAtCost"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_fnlc_RestrictedEquitySecuritiesAtCost_019eadf5-e9c9-7e2e-bdd0-f738164c936f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7ee4-9444-d56f97b84b3f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7ee4-9444-d56f97b84b3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_019eadf5-e9c9-7c41-9e60-974a6157241a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestReceivable"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_us-gaap_InterestReceivable_019eadf5-e9c9-7c41-9e60-974a6157241a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization_019eadf5-e9c9-7975-ba95-60e74f825640" xlink:href="fnlc-20260630.xsd#fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization_019eadf5-e9c9-7975-ba95-60e74f825640" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019eadf5-e9c9-7427-9361-92d261ab80a1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_us-gaap_Goodwill_019eadf5-e9c9-7427-9361-92d261ab80a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019eadf5-e9c9-72ce-9e46-630dc0eadcb2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_us-gaap_OtherAssets_019eadf5-e9c9-72ce-9e46-630dc0eadcb2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_019f7f85-78b8-7056-a282-8f639e10c003" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eadf5-e9c9-7267-8b84-6c30da5a812b" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_019f7f85-78b8-7056-a282-8f639e10c003" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019eadf5-e9c9-759a-8ebb-ae85a752cb53" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019eadf5-e9c9-73ed-b835-25de43788f7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eadf5-e9c9-759a-8ebb-ae85a752cb53" xlink:to="loc_us-gaap_CommonStockValue_019eadf5-e9c9-73ed-b835-25de43788f7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019eadf5-e9c9-7690-9de2-d339fece4142" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eadf5-e9c9-759a-8ebb-ae85a752cb53" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019eadf5-e9c9-7690-9de2-d339fece4142" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019eadf5-e9c9-7e7c-afd6-acdd88932a18" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eadf5-e9c9-759a-8ebb-ae85a752cb53" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019eadf5-e9c9-7e7c-afd6-acdd88932a18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_019eadf5-e9c9-7a67-a56c-ded261aa8541" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eadf5-e9c9-759a-8ebb-ae85a752cb53" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_019eadf5-e9c9-7a67-a56c-ded261aa8541" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity_019eadf5-e9c9-7d71-a39c-b39baaaab4c7" xlink:href="fnlc-20260630.xsd#fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eadf5-e9c9-759a-8ebb-ae85a752cb53" xlink:to="loc_fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity_019eadf5-e9c9-7d71-a39c-b39baaaab4c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_019eadf5-e9c9-73be-9cca-4a0a8bca1c80" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eadf5-e9c9-759a-8ebb-ae85a752cb53" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_019eadf5-e9c9-73be-9cca-4a0a8bca1c80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_019eadf5-e9c9-7b36-a856-85a115291f91" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eadf5-e9c9-759a-8ebb-ae85a752cb53" xlink:to="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_019eadf5-e9c9-7b36-a856-85a115291f91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019eadf5-e9c9-7dc2-9d6d-3e9115183c7e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019eadf5-e9c9-7f1b-9ee7-a30ebbadd293" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019eadf5-e9c9-7dc2-9d6d-3e9115183c7e" xlink:to="loc_us-gaap_StockholdersEquity_019eadf5-e9c9-7f1b-9ee7-a30ebbadd293" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019eadf5-e9c9-715f-94aa-48f6643bd94f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019eadf5-e9c9-7dc2-9d6d-3e9115183c7e" xlink:to="loc_us-gaap_Liabilities_019eadf5-e9c9-715f-94aa-48f6643bd94f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncomeUnaudited" xlink:type="simple" xlink:href="fnlc-20260630.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_NoninterestExpense_019eadf5-e9c9-7a63-87f5-29a5acfd3cef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoninterestExpense_019eadf5-e9c9-7628-bdc1-514f709f962c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNoninterestExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019eadf5-e9c9-7a63-87f5-29a5acfd3cef" xlink:to="loc_us-gaap_OtherNoninterestExpense_019eadf5-e9c9-7628-bdc1-514f709f962c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019eadf5-e9c9-7c69-8216-ae4ce2dfa798" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019eadf5-e9c9-7a63-87f5-29a5acfd3cef" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019eadf5-e9c9-7c69-8216-ae4ce2dfa798" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_019eadf5-e9c9-7e8c-85c3-ac4d2b4edb7c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalDepositInsuranceCorporationPremiumExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019eadf5-e9c9-7a63-87f5-29a5acfd3cef" xlink:to="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_019eadf5-e9c9-7e8c-85c3-ac4d2b4edb7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquipmentExpense_019eadf5-e9c9-7682-b1e0-aceeedd3a548" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquipmentExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019eadf5-e9c9-7a63-87f5-29a5acfd3cef" xlink:to="loc_us-gaap_EquipmentExpense_019eadf5-e9c9-7682-b1e0-aceeedd3a548" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OccupancyNet_019eadf5-e9c9-7cce-bd6b-158adefe674b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OccupancyNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019eadf5-e9c9-7a63-87f5-29a5acfd3cef" xlink:to="loc_us-gaap_OccupancyNet_019eadf5-e9c9-7cce-bd6b-158adefe674b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_019eadf5-e9c9-7ecf-b186-6121cde3d792" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019eadf5-e9c9-7a63-87f5-29a5acfd3cef" xlink:to="loc_us-gaap_LaborAndRelatedExpense_019eadf5-e9c9-7ecf-b186-6121cde3d792" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019eadf5-e9c9-7048-b00c-6fbf1a9f64c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_CreditLossExpenseReversal_019eadf5-e9c9-7f62-8d90-a620cd672391" xlink:href="fnlc-20260630.xsd#fnlc_CreditLossExpenseReversal"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019eadf5-e9c9-7048-b00c-6fbf1a9f64c0" xlink:to="loc_fnlc_CreditLossExpenseReversal_019eadf5-e9c9-7f62-8d90-a620cd672391" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019eadf5-e9c9-7792-87bf-2b6f209adb8c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019eadf5-e9c9-7048-b00c-6fbf1a9f64c0" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_019eadf5-e9c9-7792-87bf-2b6f209adb8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019eadf5-e9c9-7275-9ce3-4371d01407fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019eadf5-e9c9-7cba-9bfa-feebf0f33753" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019eadf5-e9c9-7275-9ce3-4371d01407fd" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019eadf5-e9c9-7cba-9bfa-feebf0f33753" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eadf5-e9c9-70ad-98a2-1f20cbc28ecc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019eadf5-e9c9-7275-9ce3-4371d01407fd" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eadf5-e9c9-70ad-98a2-1f20cbc28ecc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019eadf5-e9c9-7691-9732-9cf3408b81f5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019eadf5-e9c9-78a4-811b-999c6c945e8c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019eadf5-e9c9-7691-9732-9cf3408b81f5" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019eadf5-e9c9-78a4-811b-999c6c945e8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019eadf5-e9c9-7633-a8ac-65f8b8a6f87f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019eadf5-e9c9-7691-9732-9cf3408b81f5" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019eadf5-e9c9-7633-a8ac-65f8b8a6f87f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_019eadf5-e9c9-7825-ab2e-93df422d0546" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019eadf5-e9c9-7691-9732-9cf3408b81f5" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_019eadf5-e9c9-7825-ab2e-93df422d0546" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019eadf5-e9c9-71a7-9f49-8d6e188d515e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019eadf5-e9c9-7d44-a6db-51c9e2cfb0b8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019eadf5-e9c9-71a7-9f49-8d6e188d515e" xlink:to="loc_us-gaap_NetIncomeLoss_019eadf5-e9c9-7d44-a6db-51c9e2cfb0b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019eadf5-e9c9-7b98-9d1f-5903ff798807" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019eadf5-e9c9-71a7-9f49-8d6e188d515e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019eadf5-e9c9-7b98-9d1f-5903ff798807" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eadf5-e9c9-7ed9-9b56-8b535e1ad530" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_019eadf5-e9c9-78a9-9c1d-9197c59e8c9d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eadf5-e9c9-7ed9-9b56-8b535e1ad530" xlink:to="loc_us-gaap_NoninterestExpense_019eadf5-e9c9-78a9-9c1d-9197c59e8c9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019eadf5-e9c9-7c24-a9dc-b220e946aa33" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eadf5-e9c9-7ed9-9b56-8b535e1ad530" xlink:to="loc_us-gaap_NoninterestIncome_019eadf5-e9c9-7c24-a9dc-b220e946aa33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019eadf5-e9c9-7d76-8c47-c0760cb174f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eadf5-e9c9-7ed9-9b56-8b535e1ad530" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019eadf5-e9c9-7d76-8c47-c0760cb174f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019eadf5-e9c9-7763-9a2d-8b51b3b5bdc0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecurities_019eadf5-e9c9-7375-af5d-4b25284f4231" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019eadf5-e9c9-7763-9a2d-8b51b3b5bdc0" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecurities_019eadf5-e9c9-7375-af5d-4b25284f4231" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_019eadf5-e9c9-7307-8913-bb39f0446ad7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeDepositsWithFinancialInstitutions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019eadf5-e9c9-7763-9a2d-8b51b3b5bdc0" xlink:to="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_019eadf5-e9c9-7307-8913-bb39f0446ad7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019eadf5-e9c9-7608-9fbe-aa7e31cf1d73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019eadf5-e9c9-7763-9a2d-8b51b3b5bdc0" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019eadf5-e9c9-7608-9fbe-aa7e31cf1d73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019eadf5-e9c9-714e-ab96-23983ea047ad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_019eadf5-e9c9-797b-8cb9-423393563ead" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019eadf5-e9c9-714e-ab96-23983ea047ad" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_019eadf5-e9c9-797b-8cb9-423393563ead" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_019eadf5-e9c9-7a66-a465-eace5d654a84" xlink:href="fnlc-20260630.xsd#fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019eadf5-e9c9-714e-ab96-23983ea047ad" xlink:to="loc_fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_019eadf5-e9c9-7a66-a465-eace5d654a84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019eadf5-e9c9-72b1-bc62-42aba0de4bf4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019eadf5-e9c9-714e-ab96-23983ea047ad" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019eadf5-e9c9-72b1-bc62-42aba0de4bf4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_CreditLossExpenseReversal_019eadf5-e9c9-7073-8c2b-96f82696f3a6" xlink:href="fnlc-20260630.xsd#fnlc_CreditLossExpenseReversal"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_019eadf5-e9c9-7eb2-a438-571391711a39" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fnlc_CreditLossExpenseReversal_019eadf5-e9c9-7073-8c2b-96f82696f3a6" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_019eadf5-e9c9-7eb2-a438-571391711a39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_019eadf5-e9c9-7275-9800-d548381ce3ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fnlc_CreditLossExpenseReversal_019eadf5-e9c9-7073-8c2b-96f82696f3a6" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_019eadf5-e9c9-7275-9800-d548381ce3ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityCreditLossExpenseReversal_019eadf5-e9c9-7686-96ee-6fb9775b8725" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityCreditLossExpenseReversal"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fnlc_CreditLossExpenseReversal_019eadf5-e9c9-7073-8c2b-96f82696f3a6" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityCreditLossExpenseReversal_019eadf5-e9c9-7686-96ee-6fb9775b8725" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019eadf5-e9c9-7ced-82f5-34889b2658d6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019eadf5-e9c9-7e02-a4ff-e45e075e52fb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019eadf5-e9c9-7ced-82f5-34889b2658d6" xlink:to="loc_us-gaap_InterestExpenseOperating_019eadf5-e9c9-7e02-a4ff-e45e075e52fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019eadf5-e9c9-727c-b503-388c2b533d26" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019eadf5-e9c9-7ced-82f5-34889b2658d6" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_019eadf5-e9c9-727c-b503-388c2b533d26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019eadf5-e9c9-7551-b49f-d007271b0c78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseBorrowings_019eadf5-e9c9-7f37-97c6-e599fb99d52c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseBorrowings"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019eadf5-e9c9-7551-b49f-d007271b0c78" xlink:to="loc_us-gaap_InterestExpenseBorrowings_019eadf5-e9c9-7f37-97c6-e599fb99d52c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDeposits_019eadf5-e9c9-7821-9db7-d14011336899" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDeposits"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019eadf5-e9c9-7551-b49f-d007271b0c78" xlink:to="loc_us-gaap_InterestExpenseDeposits_019eadf5-e9c9-7821-9db7-d14011336899" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquityUnaudited" xlink:type="simple" xlink:href="fnlc-20260630.xsd#ConsolidatedStatementsofChangesinShareholdersEquityUnaudited"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsofChangesinShareholdersEquityUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019f1424-1ed6-707f-a9aa-7ec8c9abdf69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019f1424-1ed6-7ca0-9a22-e3f642a9fa2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019f1424-1ed6-707f-a9aa-7ec8c9abdf69" xlink:to="loc_us-gaap_NetIncomeLoss_019f1424-1ed6-7ca0-9a22-e3f642a9fa2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019f1424-1ed6-7462-8f4e-cf212afd977c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019f1424-1ed6-707f-a9aa-7ec8c9abdf69" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019f1424-1ed6-7462-8f4e-cf212afd977c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_019f1424-1ed6-79f9-bd79-266748c6698e" xlink:href="fnlc-20260630.xsd#fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019f1424-1ed6-707f-a9aa-7ec8c9abdf69" xlink:to="loc_fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_019f1424-1ed6-79f9-bd79-266748c6698e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_019f1424-1ed6-7c4d-80b6-266fe8b7e2da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019f1424-1ed6-707f-a9aa-7ec8c9abdf69" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_019f1424-1ed6-7c4d-80b6-266fe8b7e2da" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsofCashFlowsUnaudited" xlink:type="simple" xlink:href="fnlc-20260630.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_019eadf5-e9c9-7f40-b629-30e617cb5598" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-7653-a7ed-2eba3fb0aaf3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019eadf5-e9c9-7f40-b629-30e617cb5598" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-7653-a7ed-2eba3fb0aaf3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7b72-9e65-45d6fde4e93a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019eadf5-e9c9-7f40-b629-30e617cb5598" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7b72-9e65-45d6fde4e93a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eadf5-e9c9-742d-8f2a-8713e115bc34" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019eadf5-e9c9-7f40-b629-30e617cb5598" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eadf5-e9c9-742d-8f2a-8713e115bc34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eadf5-e9c9-7360-8406-d80d5bc26b56" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts_019eadf5-e9c9-72ae-b85e-681fa1331250" xlink:href="fnlc-20260630.xsd#fnlc_IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eadf5-e9c9-7360-8406-d80d5bc26b56" xlink:to="loc_fnlc_IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts_019eadf5-e9c9-72ae-b85e-681fa1331250" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInTimeDeposits_019eadf5-e9c9-750d-a042-308804f05522" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInTimeDeposits"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eadf5-e9c9-7360-8406-d80d5bc26b56" xlink:to="loc_us-gaap_IncreaseDecreaseInTimeDeposits_019eadf5-e9c9-750d-a042-308804f05522" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_019eadf5-e9c9-7bf4-808f-77e8c4ee6c6b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eadf5-e9c9-7360-8406-d80d5bc26b56" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_019eadf5-e9c9-7bf4-808f-77e8c4ee6c6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfOtherLongTermDebt_019eadf5-e9c9-78be-a7d3-87d32b2b8b45" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfOtherLongTermDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eadf5-e9c9-7360-8406-d80d5bc26b56" xlink:to="loc_us-gaap_RepaymentsOfOtherLongTermDebt_019eadf5-e9c9-78be-a7d3-87d32b2b8b45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019eadf5-e9c9-77a7-9196-e6026df9dceb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eadf5-e9c9-7360-8406-d80d5bc26b56" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019eadf5-e9c9-77a7-9196-e6026df9dceb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019eadf5-e9c9-75d4-a5e9-c502a307ce41" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eadf5-e9c9-7360-8406-d80d5bc26b56" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019eadf5-e9c9-75d4-a5e9-c502a307ce41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_019f7f88-388d-72a2-8551-9e34c1403184" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eadf5-e9c9-7360-8406-d80d5bc26b56" xlink:to="loc_us-gaap_PaymentsOfDividends_019f7f88-388d-72a2-8551-9e34c1403184" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_InterestBearingDepositsInOtherBanks_019eadf5-e9c9-7929-924b-241d13d428ce" xlink:href="fnlc-20260630.xsd#fnlc_InterestBearingDepositsInOtherBanks"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_fnlc_InterestBearingDepositsInOtherBanks_019eadf5-e9c9-7929-924b-241d13d428ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_019eadf5-e9c9-7c10-a277-ad8c489eda38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_019eadf5-e9c9-7c10-a277-ad8c489eda38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_019eadf5-e9c9-7b07-acc5-68ce44d40bb6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_019eadf5-e9c9-7b07-acc5-68ce44d40bb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_019eadf5-e9c9-7d1d-ba92-ef09b962237e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_019eadf5-e9c9-7d1d-ba92-ef09b962237e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_019eadf5-e9c9-71a0-9688-03c01954eeb7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfOtherRealEstate"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_019eadf5-e9c9-71a0-9688-03c01954eeb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019eadf5-e9c9-74b9-b1d9-0e67efb2ffa4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019eadf5-e9c9-74b9-b1d9-0e67efb2ffa4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_019eadf5-e9c9-7157-b130-7dfa29ebff84" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireHeldToMaturitySecurities"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_019eadf5-e9c9-7157-b130-7dfa29ebff84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_IncreaseDecreaseInRestrictedEquitySecurities_019eadf5-e9c9-7fb5-9ef4-c33df43c0adf" xlink:href="fnlc-20260630.xsd#fnlc_IncreaseDecreaseInRestrictedEquitySecurities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_fnlc_IncreaseDecreaseInRestrictedEquitySecurities_019eadf5-e9c9-7fb5-9ef4-c33df43c0adf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireFinanceReceivables_019eadf5-e9c9-793b-9714-45cac13efb63" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireFinanceReceivables"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_us-gaap_PaymentsToAcquireFinanceReceivables_019eadf5-e9c9-793b-9714-45cac13efb63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019eadf5-e9c9-77bf-a888-e254cc70b63d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019eadf5-e9c9-77bf-a888-e254cc70b63d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_019eadf5-e9c9-7743-96f4-9050eb8c676f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eadf5-e9c9-7552-9a4d-445360b3a693" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_019eadf5-e9c9-7743-96f4-9050eb8c676f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019eadf5-e9c9-721e-a4a1-ae70e171df18" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_NetIncomeLoss_019eadf5-e9c9-721e-a4a1-ae70e171df18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_019eadf5-e9c9-71eb-a708-60d00c1bee00" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_Depreciation_019eadf5-e9c9-71eb-a708-60d00c1bee00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019eadf5-e9c9-77d1-8029-7de5b94ea3cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019eadf5-e9c9-77d1-8029-7de5b94ea3cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_CreditLossExpenseReversal_019eadf5-e9c9-7a87-8f00-ec64cf6f6124" xlink:href="fnlc-20260630.xsd#fnlc_CreditLossExpenseReversal"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_fnlc_CreditLossExpenseReversal_019eadf5-e9c9-7a87-8f00-ec64cf6f6124" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_019eadf5-e9c9-7712-be77-c355c7c1dd71" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_019eadf5-e9c9-7712-be77-c355c7c1dd71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_019eadf5-e9c9-7280-bc8d-69d0834fc0ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_019eadf5-e9c9-7280-bc8d-69d0834fc0ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_019eadf5-e9c9-7e79-bc59-72cb43caf635" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_019eadf5-e9c9-7e79-bc59-72cb43caf635" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019eadf5-e9c9-709e-ab81-be567edc47ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019eadf5-e9c9-709e-ab81-be567edc47ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_019eadf5-e9c9-7082-8e6c-b77ee47bc077" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_019eadf5-e9c9-7082-8e6c-b77ee47bc077" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019eadf5-e9c9-7404-a950-ab840f2eb0a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_ShareBasedCompensation_019eadf5-e9c9-7404-a950-ab840f2eb0a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019eadf5-e9c9-73cc-a21f-5d00d77ae2ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019eadf5-e9c9-73cc-a21f-5d00d77ae2ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019eadf5-e9c9-7420-bb36-489966d9f926" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019eadf5-e9c9-7420-bb36-489966d9f926" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_019eadf5-e9c9-752a-b356-c079e25d76cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnDispositionOfAssets"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_019eadf5-e9c9-752a-b356-c079e25d76cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_019eadf5-e9c9-7b27-a200-2256f6c2bb1c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherDepreciationAndAmortization"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_019eadf5-e9c9-7b27-a200-2256f6c2bb1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfAcquisitionCosts_019eadf5-e9c9-7367-994e-f5cdb27534ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfAcquisitionCosts"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_AmortizationOfAcquisitionCosts_019eadf5-e9c9-7367-994e-f5cdb27534ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_019eadf5-e9c9-73eb-9d5e-187adea159bb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eadf5-e9c9-763b-9d82-da96c8c6a9b5" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_019eadf5-e9c9-73eb-9d5e-187adea159bb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofAmortizedCostandEstimatedFairValueAFSHTMandRestrictedEquitySecuritiesDetails" xlink:type="simple" xlink:href="fnlc-20260630.xsd#InvestmentSecuritiesScheduleofAmortizedCostandEstimatedFairValueAFSHTMandRestrictedEquitySecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofAmortizedCostandEstimatedFairValueAFSHTMandRestrictedEquitySecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7b06-bc96-a25cba3d2260" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_019eadf5-e9c9-7810-b188-587c0800d093" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7b06-bc96-a25cba3d2260" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_019eadf5-e9c9-7810-b188-587c0800d093" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019eadf5-e9c9-7d86-97b7-ad11acfa48e1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7b06-bc96-a25cba3d2260" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019eadf5-e9c9-7d86-97b7-ad11acfa48e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_019eadf5-e9c9-71e4-8123-798d60daa9c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7b06-bc96-a25cba3d2260" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_019eadf5-e9c9-71e4-8123-798d60daa9c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7b28-bc98-d9f8f04f1087" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019eadf5-e9c9-7e97-9c52-5dbd4afe6608" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7b28-bc98-d9f8f04f1087" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019eadf5-e9c9-7e97-9c52-5dbd4afe6608" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-e9c9-7507-b131-5f14f5966971" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7b28-bc98-d9f8f04f1087" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-e9c9-7507-b131-5f14f5966971" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019eadf5-e9c9-7d93-b857-e20e483f3e4c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7b28-bc98-d9f8f04f1087" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019eadf5-e9c9-7d93-b857-e20e483f3e4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7db3-a263-a559e2885042" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7b0b-bca9-35bf32dd4f7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7db3-a263-a559e2885042" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7b0b-bca9-35bf32dd4f7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest_019eadf5-e9c9-747d-a96e-764a30606d15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-7db3-a263-a559e2885042" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest_019eadf5-e9c9-747d-a96e-764a30606d15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock_019eadf5-e9c9-7168-a37d-84f29d3d4174" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalReserveBankStock_019eadf5-e9c9-7134-a798-dfa2f2eb4ec1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalReserveBankStock"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock_019eadf5-e9c9-7168-a37d-84f29d3d4174" xlink:to="loc_us-gaap_FederalReserveBankStock_019eadf5-e9c9-7134-a798-dfa2f2eb4ec1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankStock_019eadf5-e9c9-7ee4-b443-bf24148728d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock_019eadf5-e9c9-7168-a37d-84f29d3d4174" xlink:to="loc_us-gaap_FederalHomeLoanBankStock_019eadf5-e9c9-7ee4-b443-bf24148728d2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofContractualMaturitiesDetails" xlink:type="simple" xlink:href="fnlc-20260630.xsd#InvestmentSecuritiesScheduleofContractualMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofContractualMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7fed-98c4-0f7c7278551c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_019eadf5-e9c9-7177-a62e-1c649c4a266a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7fed-98c4-0f7c7278551c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_019eadf5-e9c9-7177-a62e-1c649c4a266a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_019eadf5-e9c9-740c-b2ff-379119906734" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7fed-98c4-0f7c7278551c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_019eadf5-e9c9-740c-b2ff-379119906734" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_019eadf5-e9c9-7e49-a3bf-2c3942735e3f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7fed-98c4-0f7c7278551c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_019eadf5-e9c9-7e49-a3bf-2c3942735e3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_019eadf5-e9c9-7d33-9547-97f9abaae5b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-e9c9-7fed-98c4-0f7c7278551c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_019eadf5-e9c9-7d33-9547-97f9abaae5b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-70f4-aae3-ec33f12ae820" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019eadf5-e9c9-794a-98dd-eb8a917c19cd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-70f4-aae3-ec33f12ae820" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019eadf5-e9c9-794a-98dd-eb8a917c19cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019eadf5-e9c9-7aea-9657-1e0b1f97ed95" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-70f4-aae3-ec33f12ae820" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019eadf5-e9c9-7aea-9657-1e0b1f97ed95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019eadf5-e9c9-7842-8507-5656259cd5c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-70f4-aae3-ec33f12ae820" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019eadf5-e9c9-7842-8507-5656259cd5c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019eadf5-e9c9-788f-b592-03c9d2c8ce7a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_019eadf5-e9c9-70f4-aae3-ec33f12ae820" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019eadf5-e9c9-788f-b592-03c9d2c8ce7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019eadf5-e9c9-75e9-b2d1-5292ed503907" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_019eadf5-e9c9-7840-a013-9aca3ff7f829" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019eadf5-e9c9-75e9-b2d1-5292ed503907" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_019eadf5-e9c9-7840-a013-9aca3ff7f829" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019eadf5-e9c9-72eb-99ab-51ee0b1a9f9b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019eadf5-e9c9-75e9-b2d1-5292ed503907" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019eadf5-e9c9-72eb-99ab-51ee0b1a9f9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019eadf5-e9c9-7565-930a-976ff9026b33" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019eadf5-e9c9-75e9-b2d1-5292ed503907" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019eadf5-e9c9-7565-930a-976ff9026b33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_019eadf5-e9c9-70b7-a6da-d89eb4fb665d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019eadf5-e9c9-75e9-b2d1-5292ed503907" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_019eadf5-e9c9-70b7-a6da-d89eb4fb665d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-e9c9-767b-abf3-509eb0ced997" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019eadf5-e9c9-7c2f-81b1-80dc76dbc4d8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-e9c9-767b-abf3-509eb0ced997" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019eadf5-e9c9-7c2f-81b1-80dc76dbc4d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019eadf5-e9c9-7e1c-aa17-f8555e97611f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-e9c9-767b-abf3-509eb0ced997" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019eadf5-e9c9-7e1c-aa17-f8555e97611f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019eadf5-e9c9-76e8-afc4-82fbd56927f5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-e9c9-767b-abf3-509eb0ced997" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019eadf5-e9c9-76e8-afc4-82fbd56927f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019eadf5-e9c9-73ce-af05-9cdfaddfa316" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-e9c9-767b-abf3-509eb0ced997" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019eadf5-e9c9-73ce-af05-9cdfaddfa316" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesGainsandLossesDetails" xlink:type="simple" xlink:href="fnlc-20260630.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_DebtSecuritiesAvailableForSaleRealizedGainLoss_019eadf5-e9c9-7644-93cd-afbcc655783a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGain_019eadf5-e9c9-7f60-b6f8-2a0cded6761f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGain"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_019eadf5-e9c9-7644-93cd-afbcc655783a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGain_019eadf5-e9c9-7f60-b6f8-2a0cded6761f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesSecuritiesTemporarilyImpairedDetails" xlink:type="simple" xlink:href="fnlc-20260630.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_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019eadf5-e9c9-7f45-920d-c7d2ef2e0a67" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019eadf5-e9c9-755f-b696-76a59de1799d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019eadf5-e9c9-7f45-920d-c7d2ef2e0a67" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019eadf5-e9c9-755f-b696-76a59de1799d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019eadf5-e9c9-7072-8408-54c6c555d5aa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019eadf5-e9c9-7f45-920d-c7d2ef2e0a67" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019eadf5-e9c9-7072-8408-54c6c555d5aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019eadf5-e9c9-7bed-a121-d504f4bcd9de" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019eadf5-e9c9-7ed6-a284-f1c76abcd418" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019eadf5-e9c9-7bed-a121-d504f4bcd9de" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019eadf5-e9c9-7ed6-a284-f1c76abcd418" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019eadf5-e9c9-77e4-bc48-e4e7cb2b8377" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019eadf5-e9c9-7bed-a121-d504f4bcd9de" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019eadf5-e9c9-77e4-bc48-e4e7cb2b8377" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansNonaccrualLoansDetails" xlink:type="simple" xlink:href="fnlc-20260630.xsd#LoansNonaccrualLoansDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansNonaccrualLoansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_019eadf5-eace-7605-87d8-7d5e755231b8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableNonaccrualNoAllowance_019eadf5-eace-7075-ab9a-1bc8e285d73b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableNonaccrualNoAllowance"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_019eadf5-eace-7605-87d8-7d5e755231b8" xlink:to="loc_us-gaap_FinancingReceivableNonaccrualNoAllowance_019eadf5-eace-7075-ab9a-1bc8e285d73b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_FinancingReceivableNonaccrualWithAllowance_019eadf5-eace-7f54-acfa-faeb5a61d41e" xlink:href="fnlc-20260630.xsd#fnlc_FinancingReceivableNonaccrualWithAllowance"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_019eadf5-eace-7605-87d8-7d5e755231b8" xlink:to="loc_fnlc_FinancingReceivableNonaccrualWithAllowance_019eadf5-eace-7f54-acfa-faeb5a61d41e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/AllowanceforCreditLossesCreditQualityRiskRatingsbySegmentDetails" xlink:type="simple" xlink:href="fnlc-20260630.xsd#AllowanceforCreditLossesCreditQualityRiskRatingsbySegmentDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/AllowanceforCreditLossesCreditQualityRiskRatingsbySegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019eadf5-eace-7202-ba75-0d3409a7d960" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_019eadf5-eace-72ac-baf3-e57b0b64b483" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019eadf5-eace-7202-ba75-0d3409a7d960" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_019eadf5-eace-72ac-baf3-e57b0b64b483" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_019eadf5-eace-7158-8c1a-1ccbef7585ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019eadf5-eace-7202-ba75-0d3409a7d960" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_019eadf5-eace-7158-8c1a-1ccbef7585ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_019eadf5-eace-7c1d-8608-a2ea14094186" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019eadf5-eace-7202-ba75-0d3409a7d960" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_019eadf5-eace-7c1d-8608-a2ea14094186" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_019eadf5-eace-7897-a525-ab8c76a94f10" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019eadf5-eace-7202-ba75-0d3409a7d960" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_019eadf5-eace-7897-a525-ab8c76a94f10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_019eadf5-eace-7701-a5cf-3c2f578b1c2f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019eadf5-eace-7202-ba75-0d3409a7d960" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_019eadf5-eace-7701-a5cf-3c2f578b1c2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoanWriteoff_019eadf5-eace-7467-8219-5b55a9dd52a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoanWriteoff"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019eadf5-eace-7202-ba75-0d3409a7d960" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoanWriteoff_019eadf5-eace-7467-8219-5b55a9dd52a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_019eadf5-eace-74dd-9007-d5cc1f6708de" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019eadf5-eace-7202-ba75-0d3409a7d960" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_019eadf5-eace-74dd-9007-d5cc1f6708de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_019eadf5-eace-779c-a870-edbd7d10944a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019eadf5-eace-7202-ba75-0d3409a7d960" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_019eadf5-eace-779c-a870-edbd7d10944a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-eace-727d-a255-1a29bbef5e0f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_019eadf5-eace-7ab2-9c76-650f9da8ded2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-eace-727d-a255-1a29bbef5e0f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_019eadf5-eace-7ab2-9c76-650f9da8ded2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019eadf5-eace-71fe-8d3b-ada5358a8a5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-eace-727d-a255-1a29bbef5e0f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019eadf5-eace-71fe-8d3b-ada5358a8a5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_019eadf5-eace-7d8e-8946-0554a8f912d3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolving"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-eace-727d-a255-1a29bbef5e0f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_019eadf5-eace-7d8e-8946-0554a8f912d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_019eadf5-eace-7484-b5ce-a2ac0a1e7a17" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-eace-727d-a255-1a29bbef5e0f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_019eadf5-eace-7484-b5ce-a2ac0a1e7a17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_019eadf5-eace-73f3-8214-1d26bee42185" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-eace-727d-a255-1a29bbef5e0f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_019eadf5-eace-73f3-8214-1d26bee42185" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan_019eadf5-eace-757b-94e6-608c9b41b8fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-eace-727d-a255-1a29bbef5e0f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan_019eadf5-eace-757b-94e6-608c9b41b8fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019eadf5-eace-7bbf-ace9-f21b64c00447" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-eace-727d-a255-1a29bbef5e0f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019eadf5-eace-7bbf-ace9-f21b64c00447" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_019eadf5-eace-7d44-8d52-45c87f6dfaf0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019eadf5-eace-727d-a255-1a29bbef5e0f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_019eadf5-eace-7d44-8d52-45c87f6dfaf0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/EarningsPerShareDetails" xlink:type="simple" xlink:href="fnlc-20260630.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_NetIncomeLossAvailableToCommonStockholdersDiluted_019eadf5-eace-7dd3-96f8-f2ceef8405d1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019eadf5-eace-70c1-891e-b3ab48b4dfcc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_019eadf5-eace-7dd3-96f8-f2ceef8405d1" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019eadf5-eace-70c1-891e-b3ab48b4dfcc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019eadf5-eace-7fc6-970d-2ef19a689c69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019eadf5-eace-712f-b0eb-b7192589e644" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019eadf5-eace-7fc6-970d-2ef19a689c69" xlink:to="loc_us-gaap_NetIncomeLoss_019eadf5-eace-712f-b0eb-b7192589e644" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019eadf5-eace-71ff-962b-ad09a32c6c15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_019eadf5-eace-7e0a-979d-56075a27a3b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019eadf5-eace-71ff-962b-ad09a32c6c15" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_019eadf5-eace-7e0a-979d-56075a27a3b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019eadf5-eace-758e-b265-8faec3039e50" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019eadf5-eace-71ff-962b-ad09a32c6c15" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019eadf5-eace-758e-b265-8faec3039e50" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofNetPeriodicBenefitCostNotYetRecognizedDetails" xlink:type="simple" xlink:href="fnlc-20260630.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_019eadf5-eace-7faa-a5c5-925bc822e585" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit_019eadf5-eace-7ff7-ac29-9f7c5871e597" xlink:href="fnlc-20260630.xsd#fnlc_AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_019eadf5-eace-7faa-a5c5-925bc822e585" xlink:to="loc_fnlc_AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit_019eadf5-eace-7ff7-ac29-9f7c5871e597" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_019eadf5-eace-7fe6-94e9-c04c3e859cf1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_019eadf5-eace-7faa-a5c5-925bc822e585" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_019eadf5-eace-7fe6-94e9-c04c3e859cf1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails" xlink:type="simple" xlink:href="fnlc-20260630.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_019eadf5-eace-7da8-9e4c-84003ecda218" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019eadf5-eace-7032-99f7-cab41625bcf4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019eadf5-eace-7da8-9e4c-84003ecda218" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019eadf5-eace-7032-99f7-cab41625bcf4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019eadf5-eace-743c-84f7-079bc0c41399" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019eadf5-eace-7da8-9e4c-84003ecda218" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019eadf5-eace-743c-84f7-079bc0c41399" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019eadf5-eace-777a-b29d-9414de606303" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019eadf5-eace-7da8-9e4c-84003ecda218" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019eadf5-eace-777a-b29d-9414de606303" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/MortgageServicingRightsScheduleofMortgageServicingRightsDetails" xlink:type="simple" xlink:href="fnlc-20260630.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_ServicingAssetAtAmortizedValueFairValue_019eadf5-eace-7dc5-ac1a-967350467c83" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ServicingAssetAtAmortizedValueFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_MortgageServicingRightsGross_019eadf5-eace-7cda-916e-ed5eac530f70" xlink:href="fnlc-20260630.xsd#fnlc_MortgageServicingRightsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ServicingAssetAtAmortizedValueFairValue_019eadf5-eace-7dc5-ac1a-967350467c83" xlink:to="loc_fnlc_MortgageServicingRightsGross_019eadf5-eace-7cda-916e-ed5eac530f70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_AccumulatedAmortizationMortgageServicingRights_019eadf5-eace-787a-9cc7-f70c296c271d" xlink:href="fnlc-20260630.xsd#fnlc_AccumulatedAmortizationMortgageServicingRights"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ServicingAssetAtAmortizedValueFairValue_019eadf5-eace-7dc5-ac1a-967350467c83" xlink:to="loc_fnlc_AccumulatedAmortizationMortgageServicingRights_019eadf5-eace-787a-9cc7-f70c296c271d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/CertificatesofDepositDetails" xlink:type="simple" xlink:href="fnlc-20260630.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_019eadf5-eace-7c1c-b821-af4a4f613841" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TimeDeposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositsLessThan100000_019eadf5-eace-7cd1-87f0-d36c15645da8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TimeDepositsLessThan100000"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_019eadf5-eace-7c1c-b821-af4a4f613841" xlink:to="loc_us-gaap_TimeDepositsLessThan100000_019eadf5-eace-7cd1-87f0-d36c15645da8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TimeDepositsGreaterThan100000AndLessThan250000_019eadf5-eace-7638-a5a9-e38ffb004097" xlink:href="fnlc-20260630.xsd#fnlc_TimeDepositsGreaterThan100000AndLessThan250000"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_019eadf5-eace-7c1c-b821-af4a4f613841" xlink:to="loc_fnlc_TimeDepositsGreaterThan100000AndLessThan250000_019eadf5-eace-7638-a5a9-e38ffb004097" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TimeDeposits250000OrMore_019eadf5-eace-78ac-a1bc-63767a40bd31" xlink:href="fnlc-20260630.xsd#fnlc_TimeDeposits250000OrMore"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_019eadf5-eace-7c1c-b821-af4a4f613841" xlink:to="loc_fnlc_TimeDeposits250000OrMore_019eadf5-eace-78ac-a1bc-63767a40bd31" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueAssetsandLiabilitiesRecordedatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="fnlc-20260630.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_019eadf5-eace-7582-aed9-d6e66b467ac0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-eace-77a7-8985-e89da5137b01" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019eadf5-eace-7582-aed9-d6e66b467ac0" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019eadf5-eace-77a7-8985-e89da5137b01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019eadf5-eace-70b0-b247-0ddd8224ed90" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019eadf5-eace-7582-aed9-d6e66b467ac0" xlink:to="loc_us-gaap_DerivativeAssets_019eadf5-eace-70b0-b247-0ddd8224ed90" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueAssetsRecordedatFairValueonaNonRecurringBasisDetails" xlink:type="simple" xlink:href="fnlc-20260630.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_019eadf5-eace-7c35-9456-10af69eb744d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetAtFairValueAmount_019eadf5-eace-7515-b31b-813f4fa02dbe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ServicingAssetAtFairValueAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019eadf5-eace-7c35-9456-10af69eb744d" xlink:to="loc_us-gaap_ServicingAssetAtFairValueAmount_019eadf5-eace-7515-b31b-813f4fa02dbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_ImpairedLoansFairValueDisclosure_019eadf5-eace-749b-9d2d-3662ac04687e" xlink:href="fnlc-20260630.xsd#fnlc_ImpairedLoansFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019eadf5-eace-7c35-9456-10af69eb744d" xlink:to="loc_fnlc_ImpairedLoansFairValueDisclosure_019eadf5-eace-749b-9d2d-3662ac04687e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueCarryingAmountsandEstimatedFairValuesDetails" xlink:type="simple" xlink:href="fnlc-20260630.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_019eadf5-eace-7039-beb0-1b6946687f4f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Deposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_NationalCertificatesOfDeposit_019eadf5-eace-7d46-8f92-4e41c90ed2a0" xlink:href="fnlc-20260630.xsd#fnlc_NationalCertificatesOfDeposit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019eadf5-eace-7039-beb0-1b6946687f4f" xlink:to="loc_fnlc_NationalCertificatesOfDeposit_019eadf5-eace-7d46-8f92-4e41c90ed2a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_019eadf5-eace-7c60-9ebf-8db167ed6829" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TimeDeposits"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019eadf5-eace-7039-beb0-1b6946687f4f" xlink:to="loc_us-gaap_TimeDeposits_019eadf5-eace-7c60-9ebf-8db167ed6829" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_019eadf5-eace-7054-a710-eb50bed41cee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability_019eadf5-eace-7b73-ad93-37df9406f522" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_019eadf5-eace-7054-a710-eb50bed41cee" xlink:to="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability_019eadf5-eace-7b73-ad93-37df9406f522" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesLongTerm_019eadf5-eace-77ec-9dfa-230d30f7273a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesLongTerm"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_019eadf5-eace-7054-a710-eb50bed41cee" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesLongTerm_019eadf5-eace-77ec-9dfa-230d30f7273a" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
