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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:7ec86943-52eb-49f9-9272-bb3cc4112020,g:9c511cd7-b442-4719-a161-8e55168bbfc5-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="fnlc-20251231.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_2c3718e9-ea01-43bc-8a7d-107de22f15f6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_217d2224-d568-411f-8799-12ba0f88929d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_2c3718e9-ea01-43bc-8a7d-107de22f15f6" xlink:to="loc_us-gaap_StockholdersEquity_217d2224-d568-411f-8799-12ba0f88929d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_5c5bdb79-923b-434e-a7cf-8003833f1e1e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_2c3718e9-ea01-43bc-8a7d-107de22f15f6" xlink:to="loc_us-gaap_Liabilities_5c5bdb79-923b-434e-a7cf-8003833f1e1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_0084cfe3-a244-4070-84dd-4ea5180ead8f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_2c3718e9-ea01-43bc-8a7d-107de22f15f6" xlink:to="loc_us-gaap_CommitmentsAndContingencies_0084cfe3-a244-4070-84dd-4ea5180ead8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_1db7c6ce-fbed-43fa-838d-95deb57f6301" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Deposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DemandDepositAccounts_ffb51f4c-7647-485d-a679-274beee61e12" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DemandDepositAccounts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_1db7c6ce-fbed-43fa-838d-95deb57f6301" xlink:to="loc_us-gaap_DemandDepositAccounts_ffb51f4c-7647-485d-a679-274beee61e12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_1807a1c0-9898-4ea8-b035-22d3d79e9893" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepositsNegotiableOrderOfWithdrawalNOW"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_1db7c6ce-fbed-43fa-838d-95deb57f6301" xlink:to="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_1807a1c0-9898-4ea8-b035-22d3d79e9893" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsMoneyMarketDeposits_79fbc710-fb8f-415e-b343-2ff65f720e62" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepositsMoneyMarketDeposits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_1db7c6ce-fbed-43fa-838d-95deb57f6301" xlink:to="loc_us-gaap_DepositsMoneyMarketDeposits_79fbc710-fb8f-415e-b343-2ff65f720e62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsSavingsDeposits_7b044fa5-bdca-4d40-8125-7c62fe0d8521" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepositsSavingsDeposits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_1db7c6ce-fbed-43fa-838d-95deb57f6301" xlink:to="loc_us-gaap_DepositsSavingsDeposits_7b044fa5-bdca-4d40-8125-7c62fe0d8521" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_c6dc5c65-307f-4be9-a90a-dc02c17fd627" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_1db7c6ce-fbed-43fa-838d-95deb57f6301" xlink:to="loc_us-gaap_TimeDeposits_c6dc5c65-307f-4be9-a90a-dc02c17fd627" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_dc0b10ce-b800-40b3-9096-a95832add104" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_5c380543-579d-4641-a520-32adff6b074c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dc0b10ce-b800-40b3-9096-a95832add104" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_5c380543-579d-4641-a520-32adff6b074c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_74ea7f89-26e3-42b3-b40c-4fbd11b30a52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dc0b10ce-b800-40b3-9096-a95832add104" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_74ea7f89-26e3-42b3-b40c-4fbd11b30a52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5a0632ab-d70d-4424-b8af-eeba00240dc7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dc0b10ce-b800-40b3-9096-a95832add104" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5a0632ab-d70d-4424-b8af-eeba00240dc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_6bddc2b3-5f41-4bf9-9c82-0aab56e84034" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dc0b10ce-b800-40b3-9096-a95832add104" xlink:to="loc_us-gaap_AdditionalPaidInCapital_6bddc2b3-5f41-4bf9-9c82-0aab56e84034" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_6db31a57-e279-496d-afdf-247e9bd1302e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dc0b10ce-b800-40b3-9096-a95832add104" xlink:to="loc_us-gaap_CommonStockValue_6db31a57-e279-496d-afdf-247e9bd1302e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity_9f8ca74a-e056-4b7e-b2f3-78489a3dfea3" xlink:href="fnlc-20251231.xsd#fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dc0b10ce-b800-40b3-9096-a95832add104" xlink:to="loc_fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity_9f8ca74a-e056-4b7e-b2f3-78489a3dfea3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_774dbaed-c6a8-4c9f-bd14-5c214f3eac15" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_dc0b10ce-b800-40b3-9096-a95832add104" xlink:to="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_774dbaed-c6a8-4c9f-bd14-5c214f3eac15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_44e230b1-cbed-4944-a81f-8b9af2a7b32f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_44e230b1-cbed-4944-a81f-8b9af2a7b32f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_a2ac9333-4d56-431b-8829-0e75a1f6e7e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestBearingDepositsInBanks"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_a2ac9333-4d56-431b-8829-0e75a1f6e7e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_c6786346-0ab2-4a32-8217-ca2ecfd7f115" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_c6786346-0ab2-4a32-8217-ca2ecfd7f115" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_080809b6-024f-4c69-9c87-2d0fc028af50" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_080809b6-024f-4c69-9c87-2d0fc028af50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_RestrictedEquitySecuritiesAtCost_7098317c-a2fc-4126-b903-1e1b1555f49b" xlink:href="fnlc-20251231.xsd#fnlc_RestrictedEquitySecuritiesAtCost"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_fnlc_RestrictedEquitySecuritiesAtCost_7098317c-a2fc-4126-b903-1e1b1555f49b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_ca6c0495-e123-4c72-8798-49150992b303" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_ca6c0495-e123-4c72-8798-49150992b303" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_5400a739-f4e2-48c7-a680-63e56ede18f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestReceivable"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_us-gaap_InterestReceivable_5400a739-f4e2-48c7-a680-63e56ede18f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization_31336d4b-3565-4521-9700-5e967ed4997c" xlink:href="fnlc-20251231.xsd#fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization_31336d4b-3565-4521-9700-5e967ed4997c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRealEstateAndForeclosedAssets_ffc7cf22-db0a-416e-a3ec-5e1dbfdd35f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherRealEstateAndForeclosedAssets"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_us-gaap_OtherRealEstateAndForeclosedAssets_ffc7cf22-db0a-416e-a3ec-5e1dbfdd35f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_4e810d9a-206a-4f55-9e9d-7a9cf1205085" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_us-gaap_Goodwill_4e810d9a-206a-4f55-9e9d-7a9cf1205085" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019b108e-3737-780c-b060-6499b46966be" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ff090564-8b12-4c1c-865f-f0a1cdcc5ad7" xlink:to="loc_us-gaap_OtherAssets_019b108e-3737-780c-b060-6499b46966be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_19ceb485-4433-4f5d-8b3a-0d19aff8f7d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_e365ec10-d731-4456-b512-ca3976392d83" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_19ceb485-4433-4f5d-8b3a-0d19aff8f7d3" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_e365ec10-d731-4456-b512-ca3976392d83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_8099c361-8e82-49ee-81a9-1f6750b0d544" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_19ceb485-4433-4f5d-8b3a-0d19aff8f7d3" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_8099c361-8e82-49ee-81a9-1f6750b0d544" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_5ffd7e2f-b36d-4dd4-a618-b6a38ddd37db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_544ba1c0-1ff0-4a49-826e-b80d0e7d5cef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5ffd7e2f-b36d-4dd4-a618-b6a38ddd37db" xlink:to="loc_us-gaap_OtherLiabilities_544ba1c0-1ff0-4a49-826e-b80d0e7d5cef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_fc2379a9-e688-483e-ac2d-f8bb1c0dd581" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5ffd7e2f-b36d-4dd4-a618-b6a38ddd37db" xlink:to="loc_us-gaap_LongTermDebt_fc2379a9-e688-483e-ac2d-f8bb1c0dd581" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_63c6d692-b8a7-4bb9-899a-4d215f460d2b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermBorrowings"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5ffd7e2f-b36d-4dd4-a618-b6a38ddd37db" xlink:to="loc_us-gaap_ShortTermBorrowings_63c6d692-b8a7-4bb9-899a-4d215f460d2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_53653dde-9e23-4e71-bdbb-1853de4fb8b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Deposits"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5ffd7e2f-b36d-4dd4-a618-b6a38ddd37db" xlink:to="loc_us-gaap_Deposits_53653dde-9e23-4e71-bdbb-1853de4fb8b9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome" xlink:type="simple" xlink:href="fnlc-20251231.xsd#ConsolidatedStatementsofIncomeandComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsofIncomeandComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_90478abe-3f50-49ad-b32d-827d628edd65" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetTransitionAssetObligationNetOfTax_0cd811eb-60d9-4645-a6d7-f6ecec7e70f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetTransitionAssetObligationNetOfTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_90478abe-3f50-49ad-b32d-827d628edd65" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetTransitionAssetObligationNetOfTax_0cd811eb-60d9-4645-a6d7-f6ecec7e70f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_f3159349-4d5e-48b3-aaf9-5e7e9e9d0bea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_90478abe-3f50-49ad-b32d-827d628edd65" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_f3159349-4d5e-48b3-aaf9-5e7e9e9d0bea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_facf7b10-872d-40b1-aedf-4a37ec9b2a8d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_90478abe-3f50-49ad-b32d-827d628edd65" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_facf7b10-872d-40b1-aedf-4a37ec9b2a8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_AvailableForSaleSecuritiesTransferredToHeldToMaturitySecuritiesUnrealizedGainLoss_2877c4ed-6645-410e-b4ab-13f386812975" xlink:href="fnlc-20251231.xsd#fnlc_AvailableForSaleSecuritiesTransferredToHeldToMaturitySecuritiesUnrealizedGainLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_90478abe-3f50-49ad-b32d-827d628edd65" xlink:to="loc_fnlc_AvailableForSaleSecuritiesTransferredToHeldToMaturitySecuritiesUnrealizedGainLoss_2877c4ed-6645-410e-b4ab-13f386812975" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_c5f6e541-ea22-4731-9467-3357e4429f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecurities_83214507-1685-486f-a38d-e6851655bea6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_c5f6e541-ea22-4731-9467-3357e4429f8f" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecurities_83214507-1685-486f-a38d-e6851655bea6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_773ab948-73a3-4099-b72e-1a6edeecc586" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeDepositsWithFinancialInstitutions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_c5f6e541-ea22-4731-9467-3357e4429f8f" xlink:to="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_773ab948-73a3-4099-b72e-1a6edeecc586" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_4b33f7e6-1bee-4fa2-86fc-df4edb75b04c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_c5f6e541-ea22-4731-9467-3357e4429f8f" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_4b33f7e6-1bee-4fa2-86fc-df4edb75b04c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_74bbee9c-3fe6-4f47-8032-32f05d82da10" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_42763de8-7e16-458f-a076-fcd1e0106faf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_74bbee9c-3fe6-4f47-8032-32f05d82da10" xlink:to="loc_us-gaap_InterestExpenseOperating_42763de8-7e16-458f-a076-fcd1e0106faf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_8fe7d5ab-ef9f-4370-83bd-081fa0c87a14" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_74bbee9c-3fe6-4f47-8032-32f05d82da10" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_8fe7d5ab-ef9f-4370-83bd-081fa0c87a14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_52bcc8a6-cbff-4690-a778-0c20b548dac8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_3eb79504-f451-47a7-af0d-1a5c21eb436e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_52bcc8a6-cbff-4690-a778-0c20b548dac8" xlink:to="loc_us-gaap_NoninterestExpense_3eb79504-f451-47a7-af0d-1a5c21eb436e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_6265aaae-d140-4239-a4c4-a72e5c56455e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_52bcc8a6-cbff-4690-a778-0c20b548dac8" xlink:to="loc_us-gaap_NoninterestIncome_6265aaae-d140-4239-a4c4-a72e5c56455e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_bf6e873b-8982-46d0-9f74-a736389dea70" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_52bcc8a6-cbff-4690-a778-0c20b548dac8" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_bf6e873b-8982-46d0-9f74-a736389dea70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_cdee3b41-a3a4-4ebc-9e4a-cd2455fdba22" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquipmentExpense_89a8d7b2-65db-48b5-bfea-96fbf2c59734" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquipmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_cdee3b41-a3a4-4ebc-9e4a-cd2455fdba22" xlink:to="loc_us-gaap_EquipmentExpense_89a8d7b2-65db-48b5-bfea-96fbf2c59734" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_e5f76130-f58d-4a08-99b5-5140767ca747" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_cdee3b41-a3a4-4ebc-9e4a-cd2455fdba22" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_e5f76130-f58d-4a08-99b5-5140767ca747" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OccupancyNet_72ab210f-a8b4-4c05-97bf-51dc722a0f05" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OccupancyNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_cdee3b41-a3a4-4ebc-9e4a-cd2455fdba22" xlink:to="loc_us-gaap_OccupancyNet_72ab210f-a8b4-4c05-97bf-51dc722a0f05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_5fc8f37b-4875-4f84-a004-90625ce42f73" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalDepositInsuranceCorporationPremiumExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_cdee3b41-a3a4-4ebc-9e4a-cd2455fdba22" xlink:to="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_5fc8f37b-4875-4f84-a004-90625ce42f73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoninterestExpense_f6b3684e-fe75-41aa-9515-51a7f20b36f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNoninterestExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_cdee3b41-a3a4-4ebc-9e4a-cd2455fdba22" xlink:to="loc_us-gaap_OtherNoninterestExpense_f6b3684e-fe75-41aa-9515-51a7f20b36f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_7d3a3666-c02a-448f-9e95-6c6284574ab1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_cdee3b41-a3a4-4ebc-9e4a-cd2455fdba22" xlink:to="loc_us-gaap_LaborAndRelatedExpense_7d3a3666-c02a-448f-9e95-6c6284574ab1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_7de4db52-47e7-4fab-81f7-84f3db8d74f6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_2d717845-0ca4-4e1c-8dc6-fb4845b44759" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_7de4db52-47e7-4fab-81f7-84f3db8d74f6" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_2d717845-0ca4-4e1c-8dc6-fb4845b44759" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_10edecf3-066e-4bf7-90f4-e603f8a71958" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_7de4db52-47e7-4fab-81f7-84f3db8d74f6" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_10edecf3-066e-4bf7-90f4-e603f8a71958" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_CreditLossExpenseReversal_e56cb95d-3de8-499d-bbd4-0b835128f677" xlink:href="fnlc-20251231.xsd#fnlc_CreditLossExpenseReversal"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityCreditLossExpenseReversal_ec50bbab-afe5-4d63-ab83-49c337846097" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityCreditLossExpenseReversal"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_CreditLossExpenseReversal_e56cb95d-3de8-499d-bbd4-0b835128f677" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityCreditLossExpenseReversal_ec50bbab-afe5-4d63-ab83-49c337846097" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_0fe8a89d-8ecc-4a4a-9ede-9bf0edddce4a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_CreditLossExpenseReversal_e56cb95d-3de8-499d-bbd4-0b835128f677" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_0fe8a89d-8ecc-4a4a-9ede-9bf0edddce4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_ddb0c0b4-1121-44d7-937e-0e5f87e1f2e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_CreditLossExpenseReversal_e56cb95d-3de8-499d-bbd4-0b835128f677" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_ddb0c0b4-1121-44d7-937e-0e5f87e1f2e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_7c7c10ce-0043-4f43-bd24-439ef052e1a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_29476bd8-9cf6-45c2-8161-e4f4a82e9cc1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_7c7c10ce-0043-4f43-bd24-439ef052e1a9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_29476bd8-9cf6-45c2-8161-e4f4a82e9cc1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_56b74c61-4ffa-4169-bb17-79c66c46eb6c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_7c7c10ce-0043-4f43-bd24-439ef052e1a9" xlink:to="loc_us-gaap_NetIncomeLoss_56b74c61-4ffa-4169-bb17-79c66c46eb6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a5e4ebe4-e961-4f51-9b39-e8ae87187a0c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fda03ae9-b0ce-4780-90df-47c5bddaf0a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a5e4ebe4-e961-4f51-9b39-e8ae87187a0c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fda03ae9-b0ce-4780-90df-47c5bddaf0a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_2449723a-9c34-4878-b224-5d5e03ac0652" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a5e4ebe4-e961-4f51-9b39-e8ae87187a0c" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_2449723a-9c34-4878-b224-5d5e03ac0652" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_615350ad-9fd7-4281-b694-9e1639868596" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseBorrowings_0b8fec3a-cb6a-4a69-8c3b-cdeda8576381" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseBorrowings"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_615350ad-9fd7-4281-b694-9e1639868596" xlink:to="loc_us-gaap_InterestExpenseBorrowings_0b8fec3a-cb6a-4a69-8c3b-cdeda8576381" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDeposits_92dea525-81c3-470a-ab90-076a0048c17b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseDeposits"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_615350ad-9fd7-4281-b694-9e1639868596" xlink:to="loc_us-gaap_InterestExpenseDeposits_92dea525-81c3-470a-ab90-076a0048c17b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_1a49b56c-b94d-42ca-9d02-c40267775dbe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_2ad190f2-5dbe-404c-ad68-d3e6259f867f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_1a49b56c-b94d-42ca-9d02-c40267775dbe" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_2ad190f2-5dbe-404c-ad68-d3e6259f867f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_CreditLossExpenseReversal_b1d1edf1-d96e-4cd2-b200-7d0957dfb977" xlink:href="fnlc-20251231.xsd#fnlc_CreditLossExpenseReversal"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_1a49b56c-b94d-42ca-9d02-c40267775dbe" xlink:to="loc_fnlc_CreditLossExpenseReversal_b1d1edf1-d96e-4cd2-b200-7d0957dfb977" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="fnlc-20251231.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_605f6b99-e02d-492f-945d-ee40756067bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_605f6b99-e02d-492f-945d-ee40756067bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_RedemptionPurchaseOfRestrictedEquitySecurities_1684a0b1-8de8-4274-979a-2b8b3850bfc1" xlink:href="fnlc-20251231.xsd#fnlc_RedemptionPurchaseOfRestrictedEquitySecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:to="loc_fnlc_RedemptionPurchaseOfRestrictedEquitySecurities_1684a0b1-8de8-4274-979a-2b8b3850bfc1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_1d39842b-d64c-4b10-b96a-dfee41d99993" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_1d39842b-d64c-4b10-b96a-dfee41d99993" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_InterestBearingDepositsInOtherBanks_8a9297fd-36dd-4b94-a0a7-faa96783c763" xlink:href="fnlc-20251231.xsd#fnlc_InterestBearingDepositsInOtherBanks"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:to="loc_fnlc_InterestBearingDepositsInOtherBanks_8a9297fd-36dd-4b94-a0a7-faa96783c763" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_084e7dc2-61d8-4ab7-ba9a-9f765dcb4c9e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfOtherRealEstate"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_084e7dc2-61d8-4ab7-ba9a-9f765dcb4c9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_967a1c00-5dac-490a-9931-e9f6d3ebab51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireHeldToMaturitySecurities"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_967a1c00-5dac-490a-9931-e9f6d3ebab51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_f3cdfc80-3898-475e-852c-dff5e9caa8c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_f3cdfc80-3898-475e-852c-dff5e9caa8c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireFinanceReceivables_75afc7bf-27de-42df-b1ac-1e36b286cd4c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireFinanceReceivables"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:to="loc_us-gaap_PaymentsToAcquireFinanceReceivables_75afc7bf-27de-42df-b1ac-1e36b286cd4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_63a206d2-c678-4e0a-9a26-aeb34d7c0589" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_63a206d2-c678-4e0a-9a26-aeb34d7c0589" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_0765dd05-71d1-4c59-9745-a5ebd5df78a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_896f59cf-7afd-4649-898d-85bf5ad7ad6f" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_0765dd05-71d1-4c59-9745-a5ebd5df78a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_918c57e6-d35b-4fc8-b315-40daec961225" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_918c57e6-d35b-4fc8-b315-40daec961225" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_7a13af7b-5ee2-46ea-a746-fd0c1e7acea7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_7a13af7b-5ee2-46ea-a746-fd0c1e7acea7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_a4c263d3-f8b1-42c2-8a0e-5f1fa677e27e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_a4c263d3-f8b1-42c2-8a0e-5f1fa677e27e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_e6e0a306-b09d-44d1-a605-a3cf92f21fbc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_NetIncomeLoss_e6e0a306-b09d-44d1-a605-a3cf92f21fbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_189056ae-be7f-4d46-a1d9-859763c8201e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherDepreciationAndAmortization"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_189056ae-be7f-4d46-a1d9-859763c8201e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_dff85afa-f977-4502-9ca7-6b994c1c4419" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_dff85afa-f977-4502-9ca7-6b994c1c4419" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_4c854731-7b55-4cf1-8ada-a76cbde9cb85" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_4c854731-7b55-4cf1-8ada-a76cbde9cb85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfAcquisitionCosts_f4165eab-5257-474d-b143-629a5f4038fa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfAcquisitionCosts"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_AmortizationOfAcquisitionCosts_f4165eab-5257-474d-b143-629a5f4038fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_0e56eb6b-8b82-4264-bdcc-d3500f9b7a7b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_ShareBasedCompensation_0e56eb6b-8b82-4264-bdcc-d3500f9b7a7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_8099927f-c77c-4bc9-8214-4f6ab9ae4e93" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_8099927f-c77c-4bc9-8214-4f6ab9ae4e93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_f70a90bb-2ee8-4f13-9d7c-c4a384ea279b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_f70a90bb-2ee8-4f13-9d7c-c4a384ea279b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_CreditLossExpenseReversal_0fc0bf08-96b2-4368-9cac-074a03a9e552" xlink:href="fnlc-20251231.xsd#fnlc_CreditLossExpenseReversal"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_fnlc_CreditLossExpenseReversal_0fc0bf08-96b2-4368-9cac-074a03a9e552" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_54e448ca-593d-47b7-a32d-ced61238e8ba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_54e448ca-593d-47b7-a32d-ced61238e8ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_438b3b36-b26e-4e76-99bc-a7d552fd0bfb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnDispositionOfAssets"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_438b3b36-b26e-4e76-99bc-a7d552fd0bfb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_12ea644f-0e39-405c-bd10-18b81366ffe2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_us-gaap_Depreciation_12ea644f-0e39-405c-bd10-18b81366ffe2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_OtherRealEstateOwnedValuationAllowanceProvision_d62cd329-2cd4-4cf9-85f4-4728f2b86f4c" xlink:href="fnlc-20251231.xsd#fnlc_OtherRealEstateOwnedValuationAllowanceProvision"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8b20e822-4da9-4ca5-8f58-aeda46692052" xlink:to="loc_fnlc_OtherRealEstateOwnedValuationAllowanceProvision_d62cd329-2cd4-4cf9-85f4-4728f2b86f4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d1e2b79-253f-47a1-99ab-3899486c7e10" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfOtherLongTermDebt_7ee12a0a-6b2e-411a-b27c-361769d4bd35" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfOtherLongTermDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d1e2b79-253f-47a1-99ab-3899486c7e10" xlink:to="loc_us-gaap_RepaymentsOfOtherLongTermDebt_7ee12a0a-6b2e-411a-b27c-361769d4bd35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts_e8499069-1062-4b73-b745-8400685be91b" xlink:href="fnlc-20251231.xsd#fnlc_IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d1e2b79-253f-47a1-99ab-3899486c7e10" xlink:to="loc_fnlc_IncreaseDecreaseinDemandDepositsSavingsDepositsandMoneyMarketAccounts_e8499069-1062-4b73-b745-8400685be91b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInTimeDeposits_2bf82e4a-5e88-4634-a0d0-bebe4233857d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInTimeDeposits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d1e2b79-253f-47a1-99ab-3899486c7e10" xlink:to="loc_us-gaap_IncreaseDecreaseInTimeDeposits_2bf82e4a-5e88-4634-a0d0-bebe4233857d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_709433f5-1d6c-427a-80e8-ef0f9f81e8a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d1e2b79-253f-47a1-99ab-3899486c7e10" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_709433f5-1d6c-427a-80e8-ef0f9f81e8a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_2b962761-afe5-4e20-8375-ca6d6586aaf6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d1e2b79-253f-47a1-99ab-3899486c7e10" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_2b962761-afe5-4e20-8375-ca6d6586aaf6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_a690bc35-43ff-47fb-8f67-5c4002525fca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d1e2b79-253f-47a1-99ab-3899486c7e10" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_a690bc35-43ff-47fb-8f67-5c4002525fca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_46a719f3-c021-4176-aae4-1b5b04e271a1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d1e2b79-253f-47a1-99ab-3899486c7e10" xlink:to="loc_us-gaap_PaymentsOfDividends_46a719f3-c021-4176-aae4-1b5b04e271a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_2b3b7228-07f1-4bfa-8b70-f8dcc5493a18" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d1e2b79-253f-47a1-99ab-3899486c7e10" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_2b3b7228-07f1-4bfa-8b70-f8dcc5493a18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4a79215a-f180-4449-80d8-903a0840f0a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4bf8dfa3-e3a6-498b-b950-b810f4ab9a24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4a79215a-f180-4449-80d8-903a0840f0a6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4bf8dfa3-e3a6-498b-b950-b810f4ab9a24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_914c88cb-0c7f-4c02-9b7a-55435034af50" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4a79215a-f180-4449-80d8-903a0840f0a6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_914c88cb-0c7f-4c02-9b7a-55435034af50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f15da9b-8895-4cc0-a33b-7a8db5026ef2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4a79215a-f180-4449-80d8-903a0840f0a6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f15da9b-8895-4cc0-a33b-7a8db5026ef2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofAmortizedCostandEstimatedFairValueAFSDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#InvestmentSecuritiesScheduleofAmortizedCostandEstimatedFairValueAFSDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofAmortizedCostandEstimatedFairValueAFSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_3146253b-66fd-49d5-9f95-9dbb1a58ac41" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_62c0f8c1-7074-4ec2-93ca-82b9185251c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_3146253b-66fd-49d5-9f95-9dbb1a58ac41" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_62c0f8c1-7074-4ec2-93ca-82b9185251c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_2333adf6-95d3-4f0a-ba30-87c762ebbf31" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_3146253b-66fd-49d5-9f95-9dbb1a58ac41" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_2333adf6-95d3-4f0a-ba30-87c762ebbf31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_109a0552-e99c-4c43-92c7-f5e4b80acbf0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_3146253b-66fd-49d5-9f95-9dbb1a58ac41" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_109a0552-e99c-4c43-92c7-f5e4b80acbf0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#InvestmentSecuritiesScheduleofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofAmortizedCostandEstimatedFairValueHTMandRestrictedEquitySecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_84b12c79-ec47-403e-925b-ce5ce25a57aa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_4ea8a274-e678-44f3-905e-a35e7e54a329" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_84b12c79-ec47-403e-925b-ce5ce25a57aa" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_4ea8a274-e678-44f3-905e-a35e7e54a329" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_0c124d2d-0e2e-46b5-82b2-59388fed6c6e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_84b12c79-ec47-403e-925b-ce5ce25a57aa" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_0c124d2d-0e2e-46b5-82b2-59388fed6c6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_db546222-6cc8-439c-abe7-c0d1caeaa937" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_84b12c79-ec47-403e-925b-ce5ce25a57aa" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_db546222-6cc8-439c-abe7-c0d1caeaa937" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_1d855aea-be6f-40fd-9864-358139be5926" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest_ac0d4b13-fd5f-43d4-aedc-42215c2d3d36" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_1d855aea-be6f-40fd-9864-358139be5926" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest_ac0d4b13-fd5f-43d4-aedc-42215c2d3d36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_f19f51ac-eabd-4912-999e-fbdefb5123b5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_1d855aea-be6f-40fd-9864-358139be5926" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_f19f51ac-eabd-4912-999e-fbdefb5123b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock_65e2c534-0912-4618-a180-e4531a0b7b4e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankStock_ff8ae56c-ed61-419f-8fb7-be483307c71f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankStock"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock_65e2c534-0912-4618-a180-e4531a0b7b4e" xlink:to="loc_us-gaap_FederalHomeLoanBankStock_ff8ae56c-ed61-419f-8fb7-be483307c71f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalReserveBankStock_70052fa8-f60d-4daa-a38f-1037f98289f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalReserveBankStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock_65e2c534-0912-4618-a180-e4531a0b7b4e" xlink:to="loc_us-gaap_FederalReserveBankStock_70052fa8-f60d-4daa-a38f-1037f98289f1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofContractualMaturitiesofInvestmentSecuritiesDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#InvestmentSecuritiesScheduleofContractualMaturitiesofInvestmentSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofContractualMaturitiesofInvestmentSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_75f9f14a-c3b0-416c-9789-73eeb5d3dbcf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_c4f83294-8dba-47a9-939b-64f9501073b5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_75f9f14a-c3b0-416c-9789-73eeb5d3dbcf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_c4f83294-8dba-47a9-939b-64f9501073b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_9c191cd0-8e3e-44eb-8efa-3095e83312c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_75f9f14a-c3b0-416c-9789-73eeb5d3dbcf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_9c191cd0-8e3e-44eb-8efa-3095e83312c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_b1a6f1bd-5e76-4bea-aff7-2d975be24c38" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_75f9f14a-c3b0-416c-9789-73eeb5d3dbcf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_b1a6f1bd-5e76-4bea-aff7-2d975be24c38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_ee074018-d275-4897-9c73-7d6abcce7182" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_75f9f14a-c3b0-416c-9789-73eeb5d3dbcf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_ee074018-d275-4897-9c73-7d6abcce7182" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_f2391dea-21aa-4ed6-a3ff-1737d0fdfb00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_a576cf32-23d9-4dd1-8f52-6acdf535d75e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_f2391dea-21aa-4ed6-a3ff-1737d0fdfb00" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_a576cf32-23d9-4dd1-8f52-6acdf535d75e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_fbdb4a5b-0f1d-40e1-892f-460766c0524a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_f2391dea-21aa-4ed6-a3ff-1737d0fdfb00" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_fbdb4a5b-0f1d-40e1-892f-460766c0524a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_325477d1-e83f-445a-86a9-de1ba60815a4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_f2391dea-21aa-4ed6-a3ff-1737d0fdfb00" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_325477d1-e83f-445a-86a9-de1ba60815a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_ebea3c7f-fd61-4f45-a8de-3d591ecd1173" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_f2391dea-21aa-4ed6-a3ff-1737d0fdfb00" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_ebea3c7f-fd61-4f45-a8de-3d591ecd1173" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_77a7e204-c758-4e22-bed9-a0a7e67c99bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_aabdc3ea-4b3d-40d7-a76d-941eed4f63aa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_77a7e204-c758-4e22-bed9-a0a7e67c99bb" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_aabdc3ea-4b3d-40d7-a76d-941eed4f63aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_f0960528-c252-4004-8b29-f8150c1b8042" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_77a7e204-c758-4e22-bed9-a0a7e67c99bb" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_f0960528-c252-4004-8b29-f8150c1b8042" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_8dbf412d-c4ac-4e81-a5fd-3dc0fe6738b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_77a7e204-c758-4e22-bed9-a0a7e67c99bb" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_8dbf412d-c4ac-4e81-a5fd-3dc0fe6738b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_7d7174ac-647c-4d46-ad96-d84c79753f07" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_77a7e204-c758-4e22-bed9-a0a7e67c99bb" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_7d7174ac-647c-4d46-ad96-d84c79753f07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_dd1a97d4-a5c5-4258-bebf-72a1a985677e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_dad43d8d-3e55-48ff-a8dd-03f0620d577d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_dd1a97d4-a5c5-4258-bebf-72a1a985677e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_dad43d8d-3e55-48ff-a8dd-03f0620d577d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_6b035e55-0f07-4bdc-832d-285f77ed6911" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_dd1a97d4-a5c5-4258-bebf-72a1a985677e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_6b035e55-0f07-4bdc-832d-285f77ed6911" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_95bcc5a0-e73a-4fe2-bfd9-af49ed7f1b34" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_dd1a97d4-a5c5-4258-bebf-72a1a985677e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_95bcc5a0-e73a-4fe2-bfd9-af49ed7f1b34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_137bf9bf-3e4e-4822-90b8-6621d51c0c49" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_dd1a97d4-a5c5-4258-bebf-72a1a985677e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_137bf9bf-3e4e-4822-90b8-6621d51c0c49" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofTemporaryImpairmentLossesDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#InvestmentSecuritiesScheduleofTemporaryImpairmentLossesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesScheduleofTemporaryImpairmentLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_65d49ba1-a9f8-436b-a64c-ade2d041a9c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_2e07ea0f-ec0e-4738-9ea2-8199725d146b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_65d49ba1-a9f8-436b-a64c-ade2d041a9c8" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_2e07ea0f-ec0e-4738-9ea2-8199725d146b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_70c0beec-b617-4b3e-8f6a-8526c6decc83" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_65d49ba1-a9f8-436b-a64c-ade2d041a9c8" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_70c0beec-b617-4b3e-8f6a-8526c6decc83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_ad0d083c-dcf0-4f94-a8c2-6159047bde42" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_c6fc96d5-35f8-41c3-a8cf-7c4f44ebeac1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_ad0d083c-dcf0-4f94-a8c2-6159047bde42" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_c6fc96d5-35f8-41c3-a8cf-7c4f44ebeac1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_4c49c776-4f63-4b7f-8d80-250fe1dcf78a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_ad0d083c-dcf0-4f94-a8c2-6159047bde42" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_4c49c776-4f63-4b7f-8d80-250fe1dcf78a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/MortgageServicingRightsScheduleofMortgageServicingRightsDetails" xlink:type="simple" xlink:href="fnlc-20251231.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_04e5a543-51a9-4bdd-9575-e7275dcd3b0d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ServicingAssetAtAmortizedValueFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_AccumulatedAmortizationMortgageServicingRights_55c194df-b384-42b5-b16e-5f0b6cf69af8" xlink:href="fnlc-20251231.xsd#fnlc_AccumulatedAmortizationMortgageServicingRights"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ServicingAssetAtAmortizedValueFairValue_04e5a543-51a9-4bdd-9575-e7275dcd3b0d" xlink:to="loc_fnlc_AccumulatedAmortizationMortgageServicingRights_55c194df-b384-42b5-b16e-5f0b6cf69af8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_MortgageServicingRightsGross_955c4fab-4aa9-4ed1-a836-c7027e738ce2" xlink:href="fnlc-20251231.xsd#fnlc_MortgageServicingRightsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ServicingAssetAtAmortizedValueFairValue_04e5a543-51a9-4bdd-9575-e7275dcd3b0d" xlink:to="loc_fnlc_MortgageServicingRightsGross_955c4fab-4aa9-4ed1-a836-c7027e738ce2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansScheduleofNonaccrualLoansDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#LoansScheduleofNonaccrualLoansDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansScheduleofNonaccrualLoansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_4c75b072-2501-4a72-963f-6e629a9af839" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_FinancingReceivableNonaccrualWithAllowance_111df5f3-31b0-4ac4-9b46-484d237b3bf7" xlink:href="fnlc-20251231.xsd#fnlc_FinancingReceivableNonaccrualWithAllowance"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_4c75b072-2501-4a72-963f-6e629a9af839" xlink:to="loc_fnlc_FinancingReceivableNonaccrualWithAllowance_111df5f3-31b0-4ac4-9b46-484d237b3bf7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableNonaccrualNoAllowance_b119da0a-3519-4f08-99c5-11cc53f4eb70" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableNonaccrualNoAllowance"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus_4c75b072-2501-4a72-963f-6e629a9af839" xlink:to="loc_us-gaap_FinancingReceivableNonaccrualNoAllowance_b119da0a-3519-4f08-99c5-11cc53f4eb70" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/AllowanceforCreditLossesScheduleofCompositionofAllowanceforCreditLossesbyClassDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#AllowanceforCreditLossesScheduleofCompositionofAllowanceforCreditLossesbyClassDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/AllowanceforCreditLossesScheduleofCompositionofAllowanceforCreditLossesbyClassDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_c13f8c7b-d9b5-4934-8af3-f5c1d2f4e319" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_e2d44401-6114-4133-94f8-0cf8fcdc76cb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_c13f8c7b-d9b5-4934-8af3-f5c1d2f4e319" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_e2d44401-6114-4133-94f8-0cf8fcdc76cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_52c09e0e-8d6c-4897-a513-437ad8b019fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_c13f8c7b-d9b5-4934-8af3-f5c1d2f4e319" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_52c09e0e-8d6c-4897-a513-437ad8b019fc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/AllowanceforCreditLossesScheduleofCreditQualityRiskRatingsbySegmentDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#AllowanceforCreditLossesScheduleofCreditQualityRiskRatingsbySegmentDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/AllowanceforCreditLossesScheduleofCreditQualityRiskRatingsbySegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_1c370f30-64ca-458b-93ed-cbcbbf055a15" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_f6511409-3da2-40ad-9f68-57f4fe1ee782" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_1c370f30-64ca-458b-93ed-cbcbbf055a15" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_f6511409-3da2-40ad-9f68-57f4fe1ee782" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_8057ae78-29b9-44d2-97a6-b0c25376309a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_1c370f30-64ca-458b-93ed-cbcbbf055a15" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_8057ae78-29b9-44d2-97a6-b0c25376309a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_ef90816f-82cf-4eb5-9381-22602854a4e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_1c370f30-64ca-458b-93ed-cbcbbf055a15" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_ef90816f-82cf-4eb5-9381-22602854a4e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_96009396-6251-483f-9a2a-38d03244dc00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_1c370f30-64ca-458b-93ed-cbcbbf055a15" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_96009396-6251-483f-9a2a-38d03244dc00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_e98ad545-f334-4c54-aa04-b1c674295de7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_1c370f30-64ca-458b-93ed-cbcbbf055a15" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_e98ad545-f334-4c54-aa04-b1c674295de7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoanWriteoff_ca698ff4-4f2f-4d91-94ea-71b879741365" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoanWriteoff"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_1c370f30-64ca-458b-93ed-cbcbbf055a15" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoanWriteoff_ca698ff4-4f2f-4d91-94ea-71b879741365" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_431ad30d-ce88-4c3b-af64-dfffd2f2bac6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_1c370f30-64ca-458b-93ed-cbcbbf055a15" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_431ad30d-ce88-4c3b-af64-dfffd2f2bac6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_0559445c-4d9a-4493-a006-db3cd5312f96" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_1c370f30-64ca-458b-93ed-cbcbbf055a15" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_0559445c-4d9a-4493-a006-db3cd5312f96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_ea8a4320-d267-43c4-a17a-7737c2c357b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_10dce423-a9bb-4e70-ad4f-22e4acb28bb6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_ea8a4320-d267-43c4-a17a-7737c2c357b6" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_10dce423-a9bb-4e70-ad4f-22e4acb28bb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_e3bfa298-1214-4e7b-93a0-6d9730d1717a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_ea8a4320-d267-43c4-a17a-7737c2c357b6" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_e3bfa298-1214-4e7b-93a0-6d9730d1717a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_a76e4a1c-e580-44eb-9ff7-45d1e9bb8bef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_ea8a4320-d267-43c4-a17a-7737c2c357b6" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_a76e4a1c-e580-44eb-9ff7-45d1e9bb8bef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_111c1e23-83b0-40b5-9889-d26658c820f3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_ea8a4320-d267-43c4-a17a-7737c2c357b6" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_111c1e23-83b0-40b5-9889-d26658c820f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_0f69be36-2e1b-43db-9588-b4b13e4f180b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_ea8a4320-d267-43c4-a17a-7737c2c357b6" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_0f69be36-2e1b-43db-9588-b4b13e4f180b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_14ec7473-4b1e-4a10-b6e0-4863a79d48e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolving"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_ea8a4320-d267-43c4-a17a-7737c2c357b6" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_14ec7473-4b1e-4a10-b6e0-4863a79d48e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan_75043fcd-4fb4-4891-8527-7e956d7948be" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_ea8a4320-d267-43c4-a17a-7737c2c357b6" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan_75043fcd-4fb4-4891-8527-7e956d7948be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_07c1b0c4-a7e7-4b90-adf2-7de9d3ff5bf3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_ea8a4320-d267-43c4-a17a-7737c2c357b6" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_07c1b0c4-a7e7-4b90-adf2-7de9d3ff5bf3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#PremisesandEquipmentScheduleofPremisesandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization_ceab7743-90d3-4bd5-bca5-ceb370b1057b" xlink:href="fnlc-20251231.xsd#fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_b276b10f-75a4-4348-a242-6c242c7678ea" xlink:href="fnlc-20251231.xsd#fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization_ceab7743-90d3-4bd5-bca5-ceb370b1057b" xlink:to="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_b276b10f-75a4-4348-a242-6c242c7678ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_f1c8bdad-352b-4f07-bff7-c1547f819b91" xlink:href="fnlc-20251231.xsd#fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetNetOfAccumulatedDepreciationAndAmortization_ceab7743-90d3-4bd5-bca5-ceb370b1057b" xlink:to="loc_fnlc_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_f1c8bdad-352b-4f07-bff7-c1547f819b91" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/PremisesandEquipmentScheduleofFutureMinimumReceiptsUnderLeaseAgreementsDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#PremisesandEquipmentScheduleofFutureMinimumReceiptsUnderLeaseAgreementsDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/PremisesandEquipmentScheduleofFutureMinimumReceiptsUnderLeaseAgreementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bb48c328-9b49-4ebe-a078-a49edda40269" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingAfterYearFive_26e43088-12e0-4f50-93a3-f619aec98978" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingAfterYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bb48c328-9b49-4ebe-a078-a49edda40269" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingAfterYearFive_26e43088-12e0-4f50-93a3-f619aec98978" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearThree_51f55303-43c7-49ea-b202-ea3ee785b1c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bb48c328-9b49-4ebe-a078-a49edda40269" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearThree_51f55303-43c7-49ea-b202-ea3ee785b1c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInNextRollingTwelveMonths_5b0b8076-c837-4b28-a445-b878b866a674" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueInNextRollingTwelveMonths"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bb48c328-9b49-4ebe-a078-a49edda40269" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInNextRollingTwelveMonths_5b0b8076-c837-4b28-a445-b878b866a674" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearFour_19717d3d-02d8-4a30-a2f3-92df35c628d4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bb48c328-9b49-4ebe-a078-a49edda40269" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearFour_19717d3d-02d8-4a30-a2f3-92df35c628d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearFive_b5d38d8f-447c-481b-b1c4-78971375784c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bb48c328-9b49-4ebe-a078-a49edda40269" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearFive_b5d38d8f-447c-481b-b1c4-78971375784c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearTwo_dd2adfbf-ee31-47af-b7ec-d9d4095ca153" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearTwo"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_bb48c328-9b49-4ebe-a078-a49edda40269" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueInRollingYearTwo_dd2adfbf-ee31-47af-b7ec-d9d4095ca153" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/PremisesandEquipmentScheduleofFutureLeasePaymentsforOperatingLeasesDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#PremisesandEquipmentScheduleofFutureLeasePaymentsforOperatingLeasesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/PremisesandEquipmentScheduleofFutureLeasePaymentsforOperatingLeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_de88077c-31a2-48da-972e-23f42263beca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_cbe89627-e6fe-4f0f-aaf4-2bea832d08c1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_de88077c-31a2-48da-972e-23f42263beca" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_cbe89627-e6fe-4f0f-aaf4-2bea832d08c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_f4e913e8-62d1-4f0b-a1e5-2a99cd6cee6d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_de88077c-31a2-48da-972e-23f42263beca" xlink:to="loc_us-gaap_OperatingLeaseLiability_f4e913e8-62d1-4f0b-a1e5-2a99cd6cee6d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/PremisesandEquipmentScheduleofFutureLeasePaymentsforOperatingLeasesDetails_1" xlink:type="simple" xlink:href="fnlc-20251231.xsd#PremisesandEquipmentScheduleofFutureLeasePaymentsforOperatingLeasesDetails_1"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/PremisesandEquipmentScheduleofFutureLeasePaymentsforOperatingLeasesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aa4b0fbf-048f-4008-8c3f-7cd120439961" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_4b4ee04c-fe81-437d-a627-814505c3fd63" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aa4b0fbf-048f-4008-8c3f-7cd120439961" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_4b4ee04c-fe81-437d-a627-814505c3fd63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_3d0bf9a6-c89b-47bb-a48f-0ae918403a5e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aa4b0fbf-048f-4008-8c3f-7cd120439961" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_3d0bf9a6-c89b-47bb-a48f-0ae918403a5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_795e3feb-b874-4903-b62d-220a9a146592" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aa4b0fbf-048f-4008-8c3f-7cd120439961" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_795e3feb-b874-4903-b62d-220a9a146592" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_835b0c2c-fbf2-41e1-9603-1efa40988c27" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aa4b0fbf-048f-4008-8c3f-7cd120439961" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_835b0c2c-fbf2-41e1-9603-1efa40988c27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_12dc3ed9-f915-496f-ad28-fb67a34d1c29" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aa4b0fbf-048f-4008-8c3f-7cd120439961" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_12dc3ed9-f915-496f-ad28-fb67a34d1c29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_db3bb7bb-7580-401c-9111-b97e02bc9b4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aa4b0fbf-048f-4008-8c3f-7cd120439961" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_db3bb7bb-7580-401c-9111-b97e02bc9b4d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/IncomeTaxesScheduleofCurrentandDeferredComponentsofIncomeTaxExpenseDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#IncomeTaxesScheduleofCurrentandDeferredComponentsofIncomeTaxExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/IncomeTaxesScheduleofCurrentandDeferredComponentsofIncomeTaxExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations_9d96d05f-0227-4829-9ebf-0047a86ccde9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_6fe8c54b-b80b-406e-82a4-2bbe19885618" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations_9d96d05f-0227-4829-9ebf-0047a86ccde9" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_6fe8c54b-b80b-406e-82a4-2bbe19885618" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_fe74ff2f-70e1-44fc-90e5-4fd2838fb90e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations_9d96d05f-0227-4829-9ebf-0047a86ccde9" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_fe74ff2f-70e1-44fc-90e5-4fd2838fb90e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_d6ece166-cefc-4137-ab2a-7d59ba1a9eee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations_868172b0-6115-4468-8749-bc48d815b02e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_d6ece166-cefc-4137-ab2a-7d59ba1a9eee" xlink:to="loc_us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations_868172b0-6115-4468-8749-bc48d815b02e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalIncomeTaxExpenseBenefitContinuingOperations_138b526f-49e1-49f7-9fb3-10fab0fc07dd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StateAndLocalIncomeTaxExpenseBenefitContinuingOperations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_d6ece166-cefc-4137-ab2a-7d59ba1a9eee" xlink:to="loc_us-gaap_StateAndLocalIncomeTaxExpenseBenefitContinuingOperations_138b526f-49e1-49f7-9fb3-10fab0fc07dd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/IncomeTaxesScheduleofUSFederalCorporateIncomeTaxRatetoIncomeBeforeIncomeTaxesDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#IncomeTaxesScheduleofUSFederalCorporateIncomeTaxRatetoIncomeBeforeIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/IncomeTaxesScheduleofUSFederalCorporateIncomeTaxRatetoIncomeBeforeIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_019c0db5-c761-7d5e-ba8a-62923871d845" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_019c0db5-c761-7d5e-ba8a-62923871d845" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxExemptIncome_019c0db5-c761-7311-9317-644342a74f53" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationTaxExemptIncome"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxExemptIncome_019c0db5-c761-7311-9317-644342a74f53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EffectiveIncomeTaxRateReconciliationNondeductibleInterestExpenseAmount_019c0db5-c761-7512-8e7e-160cb3dc223d" xlink:href="fnlc-20251231.xsd#fnlc_EffectiveIncomeTaxRateReconciliationNondeductibleInterestExpenseAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_fnlc_EffectiveIncomeTaxRateReconciliationNondeductibleInterestExpenseAmount_019c0db5-c761-7512-8e7e-160cb3dc223d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther_019c0db5-c761-7e45-8572-92c2345906d8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther_019c0db5-c761-7e45-8572-92c2345906d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_019c0db5-c761-7cbe-a64e-2271a9f9cca3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_019c0db5-c761-7cbe-a64e-2271a9f9cca3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EffectiveIncomeTaxRateReconciliationHistoricalTaxCreditsAmount_019c0db5-c761-7056-9f44-8a86b5741c5b" xlink:href="fnlc-20251231.xsd#fnlc_EffectiveIncomeTaxRateReconciliationHistoricalTaxCreditsAmount"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_fnlc_EffectiveIncomeTaxRateReconciliationHistoricalTaxCreditsAmount_019c0db5-c761-7056-9f44-8a86b5741c5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EffectiveIncomeTaxRateReconciliationLowIncomeHousingTaxCreditsAmount_019c0db5-c761-7ec4-a086-ee262aecf6f1" xlink:href="fnlc-20251231.xsd#fnlc_EffectiveIncomeTaxRateReconciliationLowIncomeHousingTaxCreditsAmount"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_fnlc_EffectiveIncomeTaxRateReconciliationLowIncomeHousingTaxCreditsAmount_019c0db5-c761-7ec4-a086-ee262aecf6f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsOther_019c0db5-c761-778e-91a8-49483a6b959a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsOther"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsOther_019c0db5-c761-778e-91a8-49483a6b959a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EffectiveIncomeTaxRateReconciliationTaxCreditAmortizationOfTaxCreditInvestmentsAmount_019c9eb2-b283-7996-a079-8db4d378ff34" xlink:href="fnlc-20251231.xsd#fnlc_EffectiveIncomeTaxRateReconciliationTaxCreditAmortizationOfTaxCreditInvestmentsAmount"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_fnlc_EffectiveIncomeTaxRateReconciliationTaxCreditAmortizationOfTaxCreditInvestmentsAmount_019c9eb2-b283-7996-a079-8db4d378ff34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_019c75f7-39da-7bcc-bd23-8fee96541f9d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_019c75f7-39da-7bcc-bd23-8fee96541f9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_019c75f7-39da-72b0-9925-06f6f9b29e47" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_019c75f7-39da-72b0-9925-06f6f9b29e47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationChangeInEnactedTaxRate_019c75f7-39da-769c-94e8-e2dba7b7f8b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationChangeInEnactedTaxRate"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_IncomeTaxReconciliationChangeInEnactedTaxRate_019c75f7-39da-769c-94e8-e2dba7b7f8b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectAmount_019c75f7-39da-7511-a5f3-43bdd7165094" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectAmount"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectAmount_019c75f7-39da-7511-a5f3-43bdd7165094" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_019c75f7-39da-7c4b-8087-75264ba797fd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_019c75f7-39da-7c4b-8087-75264ba797fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxContingencies_019c75f7-39da-7e75-8a80-84eb7df79d85" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationTaxContingencies"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c0db5-c761-71d8-9ce0-ab0430154e03" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxContingencies_019c75f7-39da-7e75-8a80-84eb7df79d85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_019c0db3-6cc8-7a0a-89f5-3493af5d9524" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_019c0db3-6cc8-7a0a-89f5-3493af5d9524" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_019c0db3-6cc8-75b1-a02b-c96e07f445d0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_019c0db3-6cc8-75b1-a02b-c96e07f445d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EffectiveIncomeTaxRateReconciliationNondeductibleInterestExpensePercent_019c0db3-6cc8-77b5-b911-367fdaf50371" xlink:href="fnlc-20251231.xsd#fnlc_EffectiveIncomeTaxRateReconciliationNondeductibleInterestExpensePercent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_fnlc_EffectiveIncomeTaxRateReconciliationNondeductibleInterestExpensePercent_019c0db3-6cc8-77b5-b911-367fdaf50371" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_019c0db3-6cc8-7059-b0d8-39f637dc57cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_019c0db3-6cc8-7059-b0d8-39f637dc57cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_019c0db3-6cc8-721c-b1cb-65897dc79889" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_019c0db3-6cc8-721c-b1cb-65897dc79889" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EffectiveIncomeTaxRateReconciliationHistoricalTaxCreditsPercent_019c0db3-6cc8-7758-883a-8b515c6f229c" xlink:href="fnlc-20251231.xsd#fnlc_EffectiveIncomeTaxRateReconciliationHistoricalTaxCreditsPercent"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_fnlc_EffectiveIncomeTaxRateReconciliationHistoricalTaxCreditsPercent_019c0db3-6cc8-7758-883a-8b515c6f229c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EffectiveIncomeTaxRateReconciliationLowIncomeHousingTaxCreditsPercent_019c0db3-6cc8-7d51-89a9-723a8dc409a9" xlink:href="fnlc-20251231.xsd#fnlc_EffectiveIncomeTaxRateReconciliationLowIncomeHousingTaxCreditsPercent"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_fnlc_EffectiveIncomeTaxRateReconciliationLowIncomeHousingTaxCreditsPercent_019c0db3-6cc8-7d51-89a9-723a8dc409a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther_019c0db3-6cc8-7040-821e-5b991007366d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther_019c0db3-6cc8-7040-821e-5b991007366d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EffectiveIncomeTaxRateReconciliationTaxCreditAmortizationOfTaxCreditInvestmentsPercent_019c0db3-6cc8-71aa-9fd9-48bbacda377b" xlink:href="fnlc-20251231.xsd#fnlc_EffectiveIncomeTaxRateReconciliationTaxCreditAmortizationOfTaxCreditInvestmentsPercent"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_fnlc_EffectiveIncomeTaxRateReconciliationTaxCreditAmortizationOfTaxCreditInvestmentsPercent_019c0db3-6cc8-71aa-9fd9-48bbacda377b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_019c75fc-ae5e-7abf-8c26-61409551d01c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_019c75fc-ae5e-7abf-8c26-61409551d01c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_019c75fc-ae5e-7848-a137-ec549047a532" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_019c75fc-ae5e-7848-a137-ec549047a532" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_019c75fc-ae5e-79e3-adfa-ae59f0d40d90" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_019c75fc-ae5e-79e3-adfa-ae59f0d40d90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectPercent_019c75fc-ae5e-727c-aa56-a7f731ddaf2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectPercent"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectPercent_019c75fc-ae5e-727c-aa56-a7f731ddaf2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_019c75fc-ae5e-7f7a-8ac2-fd6298f9bce8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_019c75fc-ae5e-7f7a-8ac2-fd6298f9bce8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies_019c75fc-ae5e-72e8-bd92-be95667076e6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c0db3-6cc8-7269-a048-1e52b7f2a59a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies_019c75fc-ae5e-72e8-bd92-be95667076e6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/IncomeTaxesScheduleofIncomeTaxesPaidDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#IncomeTaxesScheduleofIncomeTaxesPaidDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/IncomeTaxesScheduleofIncomeTaxesPaidDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_019c75c8-2712-7d08-a89b-41bd591e2b7f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxesPaidNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019c75c8-2712-770a-a574-27715d7a7314" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidFederalAfterRefundReceived"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019c75c8-2712-7d08-a89b-41bd591e2b7f" xlink:to="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019c75c8-2712-770a-a574-27715d7a7314" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019c75c8-2712-77d1-b276-7b992ed9f247" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019c75c8-2712-7d08-a89b-41bd591e2b7f" xlink:to="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019c75c8-2712-77d1-b276-7b992ed9f247" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/IncomeTaxesScheduleofComponentsofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#IncomeTaxesScheduleofComponentsofDeferredTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/IncomeTaxesScheduleofComponentsofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_5fec34e9-c4ee-40ca-87a8-d58b948cac9d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_1ece11ef-1044-45b8-a923-3c3ba643366c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_5fec34e9-c4ee-40ca-87a8-d58b948cac9d" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_1ece11ef-1044-45b8-a923-3c3ba643366c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_838d73d4-7c20-4251-9025-03e7cf2b600e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_5fec34e9-c4ee-40ca-87a8-d58b948cac9d" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_838d73d4-7c20-4251-9025-03e7cf2b600e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_1bff6512-c006-407b-93e2-8951ef4755de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesFinancingArrangements_56b92b8d-4fc1-43b2-87f6-dbc4e6b20088" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesFinancingArrangements"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_1bff6512-c006-407b-93e2-8951ef4755de" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesFinancingArrangements_56b92b8d-4fc1-43b2-87f6-dbc4e6b20088" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_afaf9ee6-a12f-4644-b4f6-b78a71f64442" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_1bff6512-c006-407b-93e2-8951ef4755de" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_afaf9ee6-a12f-4644-b4f6-b78a71f64442" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsGoodwill_3b7d17d1-9cbd-4be8-8980-bf898ca2f646" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsGoodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_1bff6512-c006-407b-93e2-8951ef4755de" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsGoodwill_3b7d17d1-9cbd-4be8-8980-bf898ca2f646" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesMortgageServicingRights_4f83f8d4-e7c1-4283-9c24-adf9cb55ac8a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesMortgageServicingRights"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_1bff6512-c006-407b-93e2-8951ef4755de" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesMortgageServicingRights_4f83f8d4-e7c1-4283-9c24-adf9cb55ac8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesDerivatives_f5cadf08-b2b0-4c24-b887-d563c8be99b4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesDerivatives"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_1bff6512-c006-407b-93e2-8951ef4755de" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesDerivatives_f5cadf08-b2b0-4c24-b887-d563c8be99b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_8b08350a-d196-476b-be82-f9e98b76be38" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesPrepaidExpenses"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_1bff6512-c006-407b-93e2-8951ef4755de" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_8b08350a-d196-476b-be82-f9e98b76be38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_72271236-d507-4809-9a3c-7d4e4c19220f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_72271236-d507-4809-9a3c-7d4e4c19220f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_DeferredTaxAssetsOtherRealEstateOwned_7a1fa89b-72d7-470b-bf1b-a47cfb37eea5" xlink:href="fnlc-20251231.xsd#fnlc_DeferredTaxAssetsOtherRealEstateOwned"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:to="loc_fnlc_DeferredTaxAssetsOtherRealEstateOwned_7a1fa89b-72d7-470b-bf1b-a47cfb37eea5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefitsAndPension_863acc32-eee3-46d3-b283-bea0759b6395" xlink:href="fnlc-20251231.xsd#fnlc_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefitsAndPension"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:to="loc_fnlc_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefitsAndPension_863acc32-eee3-46d3-b283-bea0759b6395" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross_1cbbe942-e829-476b-9381-b91093bb449e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:to="loc_us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross_1cbbe942-e829-476b-9381-b91093bb449e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_61629a48-6399-4411-971c-b2c6413bfd0c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:to="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_61629a48-6399-4411-971c-b2c6413bfd0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_DeferredTaxAssetSecuritiesTransferedfromAFStoHTM_50b7fa56-a73b-4517-bde7-b3fabce49a6e" xlink:href="fnlc-20251231.xsd#fnlc_DeferredTaxAssetSecuritiesTransferedfromAFStoHTM"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:to="loc_fnlc_DeferredTaxAssetSecuritiesTransferedfromAFStoHTM_50b7fa56-a73b-4517-bde7-b3fabce49a6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_DeferredTaxAssetRestrictedStockGrants_2b19c94b-ebd6-4325-bb74-01452329cce5" xlink:href="fnlc-20251231.xsd#fnlc_DeferredTaxAssetRestrictedStockGrants"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:to="loc_fnlc_DeferredTaxAssetRestrictedStockGrants_2b19c94b-ebd6-4325-bb74-01452329cce5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_DeferredTaxAssetIntangibleLiabilities_fae9084f-2457-4234-9f3e-cb469e8690c4" xlink:href="fnlc-20251231.xsd#fnlc_DeferredTaxAssetIntangibleLiabilities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:to="loc_fnlc_DeferredTaxAssetIntangibleLiabilities_fae9084f-2457-4234-9f3e-cb469e8690c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_DeferredTaxAssetsInvestmentinLimitedPartnership_6f2e6273-1197-4dd6-8c4e-bdbe1b81a5f5" xlink:href="fnlc-20251231.xsd#fnlc_DeferredTaxAssetsInvestmentinLimitedPartnership"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:to="loc_fnlc_DeferredTaxAssetsInvestmentinLimitedPartnership_6f2e6273-1197-4dd6-8c4e-bdbe1b81a5f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_019b2114-c80f-7566-add4-0710d4a0ff81" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d5d7fe83-8a1f-455d-9f88-516ce14789c0" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_019b2114-c80f-7566-add4-0710d4a0ff81" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/CertificatesofDepositDetails" xlink:type="simple" xlink:href="fnlc-20251231.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_29e17586-70c0-4689-8acb-c0060882ead7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearOne_3829ccaa-87b9-4618-9cc6-a0d0f52247e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearOne"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_29e17586-70c0-4689-8acb-c0060882ead7" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearOne_3829ccaa-87b9-4618-9cc6-a0d0f52247e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearTwo_b249e8d0-c34a-4483-9054-06d8cff91aaf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_29e17586-70c0-4689-8acb-c0060882ead7" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearTwo_b249e8d0-c34a-4483-9054-06d8cff91aaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearThree_9e81ba04-5495-400f-a67f-4631065ec00d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_29e17586-70c0-4689-8acb-c0060882ead7" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearThree_9e81ba04-5495-400f-a67f-4631065ec00d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearFour_eca064e9-d156-4b72-b507-ae4c297c2507" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_29e17586-70c0-4689-8acb-c0060882ead7" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearFour_eca064e9-d156-4b72-b507-ae4c297c2507" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearFive_f2086002-0806-4c91-a6ec-2cf45dfbcacb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_29e17586-70c0-4689-8acb-c0060882ead7" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearFive_f2086002-0806-4c91-a6ec-2cf45dfbcacb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/CertificatesofDepositDetails_1" xlink:type="simple" xlink:href="fnlc-20251231.xsd#CertificatesofDepositDetails_1"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/CertificatesofDepositDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_2b4da044-b5fd-43a8-90a7-074c626f7e6d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositsLessThan100000_ef8ae458-4c0c-4b6e-a5c3-9a798e4ea580" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositsLessThan100000"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_2b4da044-b5fd-43a8-90a7-074c626f7e6d" xlink:to="loc_us-gaap_TimeDepositsLessThan100000_ef8ae458-4c0c-4b6e-a5c3-9a798e4ea580" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TimeDepositsGreaterThan100000AndLessThan250000_afa49115-5556-477c-88b5-89fe5a59f762" xlink:href="fnlc-20251231.xsd#fnlc_TimeDepositsGreaterThan100000AndLessThan250000"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_2b4da044-b5fd-43a8-90a7-074c626f7e6d" xlink:to="loc_fnlc_TimeDepositsGreaterThan100000AndLessThan250000_afa49115-5556-477c-88b5-89fe5a59f762" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TimeDeposits250000OrMore_d86fad3e-b483-44c8-8d6b-2f01c0434a41" xlink:href="fnlc-20251231.xsd#fnlc_TimeDeposits250000OrMore"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_2b4da044-b5fd-43a8-90a7-074c626f7e6d" xlink:to="loc_fnlc_TimeDeposits250000OrMore_d86fad3e-b483-44c8-8d6b-2f01c0434a41" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/BorrowedFundsDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#BorrowedFundsDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/BorrowedFundsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_14050701-689f-49d9-96e8-af21aaa3adcf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdvancesFromFederalHomeLoanBanks"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueWithinOneYearOfBalanceSheetDate_f0faa62d-0173-41a6-b5a5-064858f42e28" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueWithinOneYearOfBalanceSheetDate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_14050701-689f-49d9-96e8-af21aaa3adcf" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueWithinOneYearOfBalanceSheetDate_f0faa62d-0173-41a6-b5a5-064858f42e28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromFourToFiveYearsOfBalanceSheetDate_6fe7c043-6a0c-4f88-908a-566b6cef6dde" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromFourToFiveYearsOfBalanceSheetDate"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_14050701-689f-49d9-96e8-af21aaa3adcf" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromFourToFiveYearsOfBalanceSheetDate_6fe7c043-6a0c-4f88-908a-566b6cef6dde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromTwoToThreeYearsOfBalanceSheetDate_50ce1199-0379-474d-838b-bcc38c066527" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromTwoToThreeYearsOfBalanceSheetDate"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_14050701-689f-49d9-96e8-af21aaa3adcf" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromTwoToThreeYearsOfBalanceSheetDate_50ce1199-0379-474d-838b-bcc38c066527" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromThreeToFourYearsOfBalanceSheetDate_b3fceffb-eb6f-4597-b05d-0edf9bed67eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromThreeToFourYearsOfBalanceSheetDate"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_14050701-689f-49d9-96e8-af21aaa3adcf" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromThreeToFourYearsOfBalanceSheetDate_b3fceffb-eb6f-4597-b05d-0edf9bed67eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromOneToTwoYearsOfBalanceSheetDate_5dba33f0-5f47-4d3d-a078-f5b1061b6e90" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromOneToTwoYearsOfBalanceSheetDate"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_14050701-689f-49d9-96e8-af21aaa3adcf" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueFromOneToTwoYearsOfBalanceSheetDate_5dba33f0-5f47-4d3d-a078-f5b1061b6e90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_FederalHomeLoanBankAdvanceMaturityYearFiveAndThereafter_ecbd999e-d91c-4bf3-8669-a91420f7201f" xlink:href="fnlc-20251231.xsd#fnlc_FederalHomeLoanBankAdvanceMaturityYearFiveAndThereafter"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_14050701-689f-49d9-96e8-af21aaa3adcf" xlink:to="loc_fnlc_FederalHomeLoanBankAdvanceMaturityYearFiveAndThereafter_ecbd999e-d91c-4bf3-8669-a91420f7201f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements_9da104b9-2b5d-4732-b2c9-8d47d694f67c" xlink:href="fnlc-20251231.xsd#fnlc_TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_50f243ba-7c3e-44f5-ad1b-12d42798de3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdvancesFromFederalHomeLoanBanks"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements_9da104b9-2b5d-4732-b2c9-8d47d694f67c" xlink:to="loc_us-gaap_AdvancesFromFederalHomeLoanBanks_50f243ba-7c3e-44f5-ad1b-12d42798de3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchase_6f2c8c66-e4d4-40dc-a328-899f165768df" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchase"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements_9da104b9-2b5d-4732-b2c9-8d47d694f67c" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchase_6f2c8c66-e4d4-40dc-a328-899f165768df" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#EmployeeBenefitPlansScheduleofAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EmployeeBenefitPlansScheduleofAccumulatedPostRetirementBenefitObligationFundedStatusandNetPeriodicBenefitCostDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_1c31e829-09b3-4ac6-afe2-c70c39be7783" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_2a2f0a66-2236-4add-b22d-5d07623baf9c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_1c31e829-09b3-4ac6-afe2-c70c39be7783" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_2a2f0a66-2236-4add-b22d-5d07623baf9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_9f32f9f6-8bb2-4875-bca5-870988a138b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_1c31e829-09b3-4ac6-afe2-c70c39be7783" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_9f32f9f6-8bb2-4875-bca5-870988a138b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_DefinedBenefitPlanOtherSettlementExpense_019cb16a-a3f5-79fc-b3a3-7ab95ea2e50a" xlink:href="fnlc-20251231.xsd#fnlc_DefinedBenefitPlanOtherSettlementExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_1c31e829-09b3-4ac6-afe2-c70c39be7783" xlink:to="loc_fnlc_DefinedBenefitPlanOtherSettlementExpense_019cb16a-a3f5-79fc-b3a3-7ab95ea2e50a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/OtherComprehensiveIncomeLossScheduleofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#OtherComprehensiveIncomeLossScheduleofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/OtherComprehensiveIncomeLossScheduleofUnrealizedGainsandLossesonAvailableforSaleSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_432c3841-3652-4d0e-abcf-51c605028596" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_5f86f6ff-7c61-4ad9-adb0-26ab0c23b904" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_432c3841-3652-4d0e-abcf-51c605028596" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_5f86f6ff-7c61-4ad9-adb0-26ab0c23b904" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_2b05524a-62ba-4431-9a0d-3ff4b0845563" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_432c3841-3652-4d0e-abcf-51c605028596" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_2b05524a-62ba-4431-9a0d-3ff4b0845563" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/OtherComprehensiveIncomeLossScheduleofUnrealizedGainsandLossesonPostretirementBenefitsDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#OtherComprehensiveIncomeLossScheduleofUnrealizedGainsandLossesonPostretirementBenefitsDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/OtherComprehensiveIncomeLossScheduleofUnrealizedGainsandLossesonPostretirementBenefitsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_06bfa40d-3004-44de-a635-8d6158499c8e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_97a0d5e8-74b7-4eb0-98b1-43829be9dbe8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_06bfa40d-3004-44de-a635-8d6158499c8e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_97a0d5e8-74b7-4eb0-98b1-43829be9dbe8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_45a04504-e785-401b-b97a-6223c1dc152b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_06bfa40d-3004-44de-a635-8d6158499c8e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTax_45a04504-e785-401b-b97a-6223c1dc152b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/EarningsPerShareDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#EarningsPerShareDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_a9017701-2740-4f6d-8725-15b354b14a8f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_90f79036-8460-43e2-adda-1aba4113376c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_a9017701-2740-4f6d-8725-15b354b14a8f" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_90f79036-8460-43e2-adda-1aba4113376c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2f89f30c-8519-4f39-87fb-fe2381329bbf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_a9017701-2740-4f6d-8725-15b354b14a8f" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2f89f30c-8519-4f39-87fb-fe2381329bbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_17b6a52e-cd2a-4b32-ae1b-f82dcf593002" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_e441133b-406f-44d5-ae3a-b9afb611e5a0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_17b6a52e-cd2a-4b32-ae1b-f82dcf593002" xlink:to="loc_us-gaap_NetIncomeLoss_e441133b-406f-44d5-ae3a-b9afb611e5a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_019b20a1-4842-7df5-8812-60bdcf574530" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019b20a1-4842-7cfe-b8b1-aa6bcf5d290e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_019b20a1-4842-7df5-8812-60bdcf574530" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019b20a1-4842-7cfe-b8b1-aa6bcf5d290e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueDisclosuresScheduleofAssetsandLiabilitiesRecordedatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#FairValueDisclosuresScheduleofAssetsandLiabilitiesRecordedatFairValueonaRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueDisclosuresScheduleofAssetsandLiabilitiesRecordedatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_8178884a-90ab-4daa-8a09-b3a0eb4c0b23" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_0aa88a2c-69fd-44fb-a052-4ef40801e518" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_8178884a-90ab-4daa-8a09-b3a0eb4c0b23" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_0aa88a2c-69fd-44fb-a052-4ef40801e518" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_cb64591e-e8ea-4007-be9a-735035183746" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_8178884a-90ab-4daa-8a09-b3a0eb4c0b23" xlink:to="loc_us-gaap_DerivativeAssets_cb64591e-e8ea-4007-be9a-735035183746" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueDisclosuresScheduleofAssetsRecordedatFairValueonaNonRecurringBasisDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#FairValueDisclosuresScheduleofAssetsRecordedatFairValueonaNonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueDisclosuresScheduleofAssetsRecordedatFairValueonaNonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_66ae742f-c565-4557-8e17-7781702895e7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetAtFairValueAmount_48f57ad6-11c7-4c66-a260-454e1b0c8ccb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ServicingAssetAtFairValueAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_66ae742f-c565-4557-8e17-7781702895e7" xlink:to="loc_us-gaap_ServicingAssetAtFairValueAmount_48f57ad6-11c7-4c66-a260-454e1b0c8ccb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRealEstateAndForeclosedAssets_35796d83-d118-451d-aa5c-5ff43ce5d2ae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherRealEstateAndForeclosedAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_66ae742f-c565-4557-8e17-7781702895e7" xlink:to="loc_us-gaap_OtherRealEstateAndForeclosedAssets_35796d83-d118-451d-aa5c-5ff43ce5d2ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_ImpairedLoansFairValueDisclosure_019bba0e-9677-722e-a57e-94f9e63404f6" xlink:href="fnlc-20251231.xsd#fnlc_ImpairedLoansFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_66ae742f-c565-4557-8e17-7781702895e7" xlink:to="loc_fnlc_ImpairedLoansFairValueDisclosure_019bba0e-9677-722e-a57e-94f9e63404f6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueDisclosuresScheduleofCarryingAmountsandEstimatedFairValuesDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#FairValueDisclosuresScheduleofCarryingAmountsandEstimatedFairValuesDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueDisclosuresScheduleofCarryingAmountsandEstimatedFairValuesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_2fb746e4-b4d6-487f-8b8d-cf2611fcee67" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability_51302a99-12af-4265-8a8b-8e3c746cfe1c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_2fb746e4-b4d6-487f-8b8d-cf2611fcee67" xlink:to="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability_51302a99-12af-4265-8a8b-8e3c746cfe1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherBorrowings_96e65b08-8e34-4c5b-a7b1-e31a52a51fe4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherBorrowings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_2fb746e4-b4d6-487f-8b8d-cf2611fcee67" xlink:to="loc_us-gaap_OtherBorrowings_96e65b08-8e34-4c5b-a7b1-e31a52a51fe4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_fec4001e-946d-44d2-ad64-be196a5768db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Deposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_1c65b7a1-e143-4510-b423-7285e860bd8f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_fec4001e-946d-44d2-ad64-be196a5768db" xlink:to="loc_us-gaap_TimeDeposits_1c65b7a1-e143-4510-b423-7285e860bd8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_NationalCertificatesOfDeposit_972d9b69-09e0-41e1-b5a3-6e04a790cc50" xlink:href="fnlc-20251231.xsd#fnlc_NationalCertificatesOfDeposit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_fec4001e-946d-44d2-ad64-be196a5768db" xlink:to="loc_fnlc_NationalCertificatesOfDeposit_972d9b69-09e0-41e1-b5a3-6e04a790cc50" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/CondensedFinancialInformationofParentBalanceSheetsDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#CondensedFinancialInformationofParentBalanceSheetsDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/CondensedFinancialInformationofParentBalanceSheetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_ade04db6-ba2f-4b20-97a7-e7a6ac57a4a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndDueFromBanks_6c081071-2f87-4bd4-acf9-99422dfad640" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndDueFromBanks"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ade04db6-ba2f-4b20-97a7-e7a6ac57a4a2" xlink:to="loc_us-gaap_CashAndDueFromBanks_6c081071-2f87-4bd4-acf9-99422dfad640" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsReceivable_cb5eeed4-d871-4f4e-b513-0aa29eb59a8e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DividendsReceivable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ade04db6-ba2f-4b20-97a7-e7a6ac57a4a2" xlink:to="loc_us-gaap_DividendsReceivable_cb5eeed4-d871-4f4e-b513-0aa29eb59a8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestments_3d9fde5e-f01b-44ab-93a1-040066673f6d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityMethodInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ade04db6-ba2f-4b20-97a7-e7a6ac57a4a2" xlink:to="loc_us-gaap_EquityMethodInvestments_3d9fde5e-f01b-44ab-93a1-040066673f6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_edaafef0-7139-4c33-bfb1-b786b36a3106" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ade04db6-ba2f-4b20-97a7-e7a6ac57a4a2" xlink:to="loc_us-gaap_Goodwill_edaafef0-7139-4c33-bfb1-b786b36a3106" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_52bc7cc8-e1c6-42e0-876d-a1455ef7389c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ade04db6-ba2f-4b20-97a7-e7a6ac57a4a2" xlink:to="loc_us-gaap_OtherAssets_52bc7cc8-e1c6-42e0-876d-a1455ef7389c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_d8843db2-bab1-458c-beef-d9b519020e81" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPayableCurrentAndNoncurrent_8d54095a-3ccd-4a46-b8c7-e409a3206d0e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DividendsPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8843db2-bab1-458c-beef-d9b519020e81" xlink:to="loc_us-gaap_DividendsPayableCurrentAndNoncurrent_8d54095a-3ccd-4a46-b8c7-e409a3206d0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_dc3d5701-a94c-4994-8dfd-27cf8127492a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8843db2-bab1-458c-beef-d9b519020e81" xlink:to="loc_us-gaap_OtherLiabilities_dc3d5701-a94c-4994-8dfd-27cf8127492a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/CondensedFinancialInformationofParentStatementsofIncomeDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#CondensedFinancialInformationofParentStatementsofIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/CondensedFinancialInformationofParentStatementsofIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TotalIncome_6a04caf7-03de-4a6a-8cd2-35bc9ef2442a" xlink:href="fnlc-20251231.xsd#fnlc_TotalIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingIncome_ea668045-6226-488d-932d-a08ac1b8b864" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherOperatingIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_TotalIncome_6a04caf7-03de-4a6a-8cd2-35bc9ef2442a" xlink:to="loc_us-gaap_OtherOperatingIncome_ea668045-6226-488d-932d-a08ac1b8b864" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TotalExpense_1e7f3b74-a0e7-4e91-b06a-3792d0964903" xlink:href="fnlc-20251231.xsd#fnlc_TotalExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCostAndExpenseOperating_ceda4a8a-c9ab-4df6-8184-4aa5f1b02347" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherCostAndExpenseOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_TotalExpense_1e7f3b74-a0e7-4e91-b06a-3792d0964903" xlink:to="loc_us-gaap_OtherCostAndExpenseOperating_ceda4a8a-c9ab-4df6-8184-4aa5f1b02347" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d13f9d3f-9901-4b0b-a3a8-60e397544438" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TotalIncome_6ee26930-c281-41c6-8132-946ae90af143" xlink:href="fnlc-20251231.xsd#fnlc_TotalIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d13f9d3f-9901-4b0b-a3a8-60e397544438" xlink:to="loc_fnlc_TotalIncome_6ee26930-c281-41c6-8132-946ae90af143" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TotalExpense_3d949731-d567-436f-8503-0976bed95656" xlink:href="fnlc-20251231.xsd#fnlc_TotalExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d13f9d3f-9901-4b0b-a3a8-60e397544438" xlink:to="loc_fnlc_TotalExpense_3d949731-d567-436f-8503-0976bed95656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_b7010a26-1fa8-4b5b-9dac-2fbec8e408f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_IncomeLossBeforeBankEarnings_4933bb9e-0b9b-4abc-bc41-f172ff373d98" xlink:href="fnlc-20251231.xsd#fnlc_IncomeLossBeforeBankEarnings"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_b7010a26-1fa8-4b5b-9dac-2fbec8e408f1" xlink:to="loc_fnlc_IncomeLossBeforeBankEarnings_4933bb9e-0b9b-4abc-bc41-f172ff373d98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EquityInRemittedEarningsFromSubsidiary_3bf8cf75-b6e2-4536-9d96-778ad5f6160f" xlink:href="fnlc-20251231.xsd#fnlc_EquityInRemittedEarningsFromSubsidiary"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_b7010a26-1fa8-4b5b-9dac-2fbec8e408f1" xlink:to="loc_fnlc_EquityInRemittedEarningsFromSubsidiary_3bf8cf75-b6e2-4536-9d96-778ad5f6160f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EquityInUnremittedEarningsFromSubsidiary_5bf23d29-4759-455a-b54f-b785bb9c6e95" xlink:href="fnlc-20251231.xsd#fnlc_EquityInUnremittedEarningsFromSubsidiary"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_b7010a26-1fa8-4b5b-9dac-2fbec8e408f1" xlink:to="loc_fnlc_EquityInUnremittedEarningsFromSubsidiary_5bf23d29-4759-455a-b54f-b785bb9c6e95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_IncomeLossBeforeBankEarnings_2d5072d1-3d47-4915-87ee-1815697ae382" xlink:href="fnlc-20251231.xsd#fnlc_IncomeLossBeforeBankEarnings"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_b479c4c8-c4e1-4967-bb70-e7cfa118a74b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_IncomeLossBeforeBankEarnings_2d5072d1-3d47-4915-87ee-1815697ae382" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_b479c4c8-c4e1-4967-bb70-e7cfa118a74b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_12984967-f213-4167-88fd-3c9b7860cb93" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_IncomeLossBeforeBankEarnings_2d5072d1-3d47-4915-87ee-1815697ae382" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_12984967-f213-4167-88fd-3c9b7860cb93" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/CondensedFinancialInformationofParentStatementsofCashFlowsDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#CondensedFinancialInformationofParentStatementsofCashFlowsDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/CondensedFinancialInformationofParentStatementsofCashFlowsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_37fa7bbd-d09a-459c-bbb8-25f255258b3f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_000369aa-02ff-45a6-aaf3-5b600d76be65" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_37fa7bbd-d09a-459c-bbb8-25f255258b3f" xlink:to="loc_us-gaap_NetIncomeLoss_000369aa-02ff-45a6-aaf3-5b600d76be65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_63a594f0-fe8b-4a8d-a941-3adc32462ce7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_37fa7bbd-d09a-459c-bbb8-25f255258b3f" xlink:to="loc_us-gaap_ShareBasedCompensation_63a594f0-fe8b-4a8d-a941-3adc32462ce7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_6b86dc65-3323-4948-a28e-d513986ee774" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_37fa7bbd-d09a-459c-bbb8-25f255258b3f" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_6b86dc65-3323-4948-a28e-d513986ee774" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDividendsReceivable_94799a50-2744-4421-a02b-a3075508df43" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDividendsReceivable"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_37fa7bbd-d09a-459c-bbb8-25f255258b3f" xlink:to="loc_us-gaap_IncreaseDecreaseInDividendsReceivable_94799a50-2744-4421-a02b-a3075508df43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_Increasedecreasedividendspayable_d75cf64c-6ed8-4760-b412-f6388624ee3a" xlink:href="fnlc-20251231.xsd#fnlc_Increasedecreasedividendspayable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_37fa7bbd-d09a-459c-bbb8-25f255258b3f" xlink:to="loc_fnlc_Increasedecreasedividendspayable_d75cf64c-6ed8-4760-b412-f6388624ee3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_585df1d4-f1b9-481e-ab58-698db8dd81eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_37fa7bbd-d09a-459c-bbb8-25f255258b3f" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_585df1d4-f1b9-481e-ab58-698db8dd81eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_EquityInUnremittedEarningsFromSubsidiary_019cb169-e8a0-743c-b817-ee1e06212ad3" xlink:href="fnlc-20251231.xsd#fnlc_EquityInUnremittedEarningsFromSubsidiary"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_37fa7bbd-d09a-459c-bbb8-25f255258b3f" xlink:to="loc_fnlc_EquityInUnremittedEarningsFromSubsidiary_019cb169-e8a0-743c-b817-ee1e06212ad3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.thefirst.com/role/QuarterlyInformationDetails" xlink:type="simple" xlink:href="fnlc-20251231.xsd#QuarterlyInformationDetails"/>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/QuarterlyInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_ec6badbc-a7f3-45c5-abfe-eea80191a6c2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_6a742263-fd5f-46e4-a04e-1a68c17df7ba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Deposits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_ec6badbc-a7f3-45c5-abfe-eea80191a6c2" xlink:to="loc_us-gaap_Deposits_6a742263-fd5f-46e4-a04e-1a68c17df7ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements_119e5231-3504-4b05-a5ac-c005b2f1b6a1" xlink:href="fnlc-20251231.xsd#fnlc_TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_ec6badbc-a7f3-45c5-abfe-eea80191a6c2" xlink:to="loc_fnlc_TotalFederalHomeLoanBankAdvancesTreasuryTaxNotesAndRepurchaseAgreements_119e5231-3504-4b05-a5ac-c005b2f1b6a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_01d4812d-c215-4139-a0d5-f1fd8ab6481c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_ec6badbc-a7f3-45c5-abfe-eea80191a6c2" xlink:to="loc_us-gaap_OtherLiabilities_01d4812d-c215-4139-a0d5-f1fd8ab6481c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_91c620ed-a5e7-4d5c-8e06-15804c0b30e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_ec6badbc-a7f3-45c5-abfe-eea80191a6c2" xlink:to="loc_us-gaap_StockholdersEquity_91c620ed-a5e7-4d5c-8e06-15804c0b30e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_3ed60d71-60e4-42bf-bc9f-f818e4fa5085" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_c7b404f4-6a13-44d4-b2ec-13a265908de5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3ed60d71-60e4-42bf-bc9f-f818e4fa5085" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_c7b404f4-6a13-44d4-b2ec-13a265908de5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_07dbb464-04b7-4d14-a7a6-1ea178e1b880" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Investments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3ed60d71-60e4-42bf-bc9f-f818e4fa5085" xlink:to="loc_us-gaap_Investments_07dbb464-04b7-4d14-a7a6-1ea178e1b880" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_FederalHomeLoanBankAndFederalReserveBankStockAtCost_03f0714d-a4f5-4a5d-8577-4bf49dc35c9f" xlink:href="fnlc-20251231.xsd#fnlc_FederalHomeLoanBankAndFederalReserveBankStockAtCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3ed60d71-60e4-42bf-bc9f-f818e4fa5085" xlink:to="loc_fnlc_FederalHomeLoanBankAndFederalReserveBankStockAtCost_03f0714d-a4f5-4a5d-8577-4bf49dc35c9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_aad3d276-8e45-4dc8-ab8b-574faf16d63e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestBearingDepositsInBanks"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3ed60d71-60e4-42bf-bc9f-f818e4fa5085" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_aad3d276-8e45-4dc8-ab8b-574faf16d63e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnlc_LoansAndLeaseReceivableNet_09504bfa-e8db-4368-a2aa-573ce2591263" xlink:href="fnlc-20251231.xsd#fnlc_LoansAndLeaseReceivableNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3ed60d71-60e4-42bf-bc9f-f818e4fa5085" xlink:to="loc_fnlc_LoansAndLeaseReceivableNet_09504bfa-e8db-4368-a2aa-573ce2591263" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneous_9147a7b9-07e7-4aee-b767-3278cc66a7e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsMiscellaneous"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_3ed60d71-60e4-42bf-bc9f-f818e4fa5085" xlink:to="loc_us-gaap_OtherAssetsMiscellaneous_9147a7b9-07e7-4aee-b767-3278cc66a7e4" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
