<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" 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">
  <link:roleRef roleURI="http://www.thefirst.com/role/AllowanceForLoanLosses" xlink:href="fnlc-20170930.xsd#AllowanceForLoanLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/AllowanceForLoanLossesAllowanceForLoanLossActivityByClassDetails" xlink:href="fnlc-20170930.xsd#AllowanceForLoanLossesAllowanceForLoanLossActivityByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/AllowanceForLoanLossesFinancingReceivableAndAllowanceElementByClassDetails" xlink:href="fnlc-20170930.xsd#AllowanceForLoanLossesFinancingReceivableAndAllowanceElementByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/AllowanceForLoanLossesNarrativeDetails" xlink:href="fnlc-20170930.xsd#AllowanceForLoanLossesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/AllowanceForLoanLossesRiskRatingsBySegmentDetails" xlink:href="fnlc-20170930.xsd#AllowanceForLoanLossesRiskRatingsBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/AllowanceForLoanLossesTables" xlink:href="fnlc-20170930.xsd#AllowanceForLoanLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/BasisOfPresentation" xlink:href="fnlc-20170930.xsd#BasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/BasisOfPresentationPolicies" xlink:href="fnlc-20170930.xsd#BasisOfPresentationPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/CertificatesOfDeposit" xlink:href="fnlc-20170930.xsd#CertificatesOfDeposit" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/CertificatesOfDepositDetails" xlink:href="fnlc-20170930.xsd#CertificatesOfDepositDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/CertificatesOfDepositTables" xlink:href="fnlc-20170930.xsd#CertificatesOfDepositTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedBalanceSheetsUnaudited" xlink:href="fnlc-20170930.xsd#ConsolidatedBalanceSheetsUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedBalanceSheetsUnauditedParenthetical" xlink:href="fnlc-20170930.xsd#ConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsOfCashFlowsUnaudited" xlink:href="fnlc-20170930.xsd#ConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsOfCashFlowsUnauditedCalc2" xlink:href="fnlc-20170930.xsd#ConsolidatedStatementsOfCashFlowsUnauditedCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited" xlink:href="fnlc-20170930.xsd#ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical" xlink:href="fnlc-20170930.xsd#ConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited" xlink:href="fnlc-20170930.xsd#ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnauditedParenthetical" xlink:href="fnlc-20170930.xsd#ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnauditedParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/DocumentAndEntityInformation" xlink:href="fnlc-20170930.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/EarningsPerShare" xlink:href="fnlc-20170930.xsd#EarningsPerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/EarningsPerShareScheduleOfBasicAndDilutedEarningsPerShareDetails" xlink:href="fnlc-20170930.xsd#EarningsPerShareScheduleOfBasicAndDilutedEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/EarningsPerShareScheduleOfOptionsAndWarrantsOutstandingDetails" xlink:href="fnlc-20170930.xsd#EarningsPerShareScheduleOfOptionsAndWarrantsOutstandingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/EarningsPerShareTables" xlink:href="fnlc-20170930.xsd#EarningsPerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/EmployeeBenefitPlans" xlink:href="fnlc-20170930.xsd#EmployeeBenefitPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusAndNetPeriodicBenefitCostDetails" xlink:href="fnlc-20170930.xsd#EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusAndNetPeriodicBenefitCostDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/EmployeeBenefitPlansNarrativeDetails" xlink:href="fnlc-20170930.xsd#EmployeeBenefitPlansNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/EmployeeBenefitPlansScheduleOfNetPeriodicBenefitCostNotYetRecognizedDetails" xlink:href="fnlc-20170930.xsd#EmployeeBenefitPlansScheduleOfNetPeriodicBenefitCostNotYetRecognizedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/EmployeeBenefitPlansTables" xlink:href="fnlc-20170930.xsd#EmployeeBenefitPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValue" xlink:href="fnlc-20170930.xsd#FairValue" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueAdditionalInformationDetails" xlink:href="fnlc-20170930.xsd#FairValueAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueAssetsAndLiabilitiesAtFairValueDetails" xlink:href="fnlc-20170930.xsd#FairValueAssetsAndLiabilitiesAtFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueAssetsAndLiabilitiesAtFairValueDetailsCalc2" xlink:href="fnlc-20170930.xsd#FairValueAssetsAndLiabilitiesAtFairValueDetailsCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueAssetsRecordedAtFairValueOnNonRecurringBasisDetails" xlink:href="fnlc-20170930.xsd#FairValueAssetsRecordedAtFairValueOnNonRecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueAssetsRecordedAtFairValueOnRecurringBasisDetails" xlink:href="fnlc-20170930.xsd#FairValueAssetsRecordedAtFairValueOnRecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/FairValueTables" xlink:href="fnlc-20170930.xsd#FairValueTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/FinancialDerivativeInstruments" xlink:href="fnlc-20170930.xsd#FinancialDerivativeInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails" xlink:href="fnlc-20170930.xsd#FinancialDerivativeInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/FinancialDerivativeInstrumentsTables" xlink:href="fnlc-20170930.xsd#FinancialDerivativeInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/ImpactOfRecentlyIssuedAccountingStandards" xlink:href="fnlc-20170930.xsd#ImpactOfRecentlyIssuedAccountingStandards" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/IncomeTaxes" xlink:href="fnlc-20170930.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecurities" xlink:href="fnlc-20170930.xsd#InvestmentSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesAdditionalInformationDetails" xlink:href="fnlc-20170930.xsd#InvestmentSecuritiesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfAvailableForSaleSecuritiesDetails" xlink:href="fnlc-20170930.xsd#InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfAvailableForSaleSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfHeldToMaturitySecuritiesDetails" xlink:href="fnlc-20170930.xsd#InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfHeldToMaturitySecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfRestrictedEquitySecuritiesDetails" xlink:href="fnlc-20170930.xsd#InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfRestrictedEquitySecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesContractualMaturitiesOfInvestmentSecuritiesDetails" xlink:href="fnlc-20170930.xsd#InvestmentSecuritiesContractualMaturitiesOfInvestmentSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesGainsAndLossesDetails" xlink:href="fnlc-20170930.xsd#InvestmentSecuritiesGainsAndLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesTables" xlink:href="fnlc-20170930.xsd#InvestmentSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/InvestmentSecuritiesTemporarilyImpairedSecuritiesDetails" xlink:href="fnlc-20170930.xsd#InvestmentSecuritiesTemporarilyImpairedSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/Loans" xlink:href="fnlc-20170930.xsd#Loans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansImpairedLoansByClassDetails" xlink:href="fnlc-20170930.xsd#LoansImpairedLoansByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansLoanPortfolioDetails" xlink:href="fnlc-20170930.xsd#LoansLoanPortfolioDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansNarrativeDetails" xlink:href="fnlc-20170930.xsd#LoansNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansNonaccrualLoansDetails" xlink:href="fnlc-20170930.xsd#LoansNonaccrualLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansPastDueStatusOfLoansByClassDetails" xlink:href="fnlc-20170930.xsd#LoansPastDueStatusOfLoansByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansTables" xlink:href="fnlc-20170930.xsd#LoansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansTdrsByClassAndAssociatedSpecificReservesDetails" xlink:href="fnlc-20170930.xsd#LoansTdrsByClassAndAssociatedSpecificReservesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/LoansTdrsByClassAndSpecificReservesDetails" xlink:href="fnlc-20170930.xsd#LoansTdrsByClassAndSpecificReservesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/MortgageServicingRights" xlink:href="fnlc-20170930.xsd#MortgageServicingRights" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/MortgageServicingRightsNarrativeDetails" xlink:href="fnlc-20170930.xsd#MortgageServicingRightsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/MortgageServicingRightsScheduleOfMortgageServicingRightsDetails" xlink:href="fnlc-20170930.xsd#MortgageServicingRightsScheduleOfMortgageServicingRightsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/MortgageServicingRightsTables" xlink:href="fnlc-20170930.xsd#MortgageServicingRightsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/OtherComprehensiveIncomeLoss" xlink:href="fnlc-20170930.xsd#OtherComprehensiveIncomeLoss" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/OtherComprehensiveIncomeLossDerivativeInstrumentsIncludedInOtherComprehensiveIncomeLossDetails" xlink:href="fnlc-20170930.xsd#OtherComprehensiveIncomeLossDerivativeInstrumentsIncludedInOtherComprehensiveIncomeLossDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/OtherComprehensiveIncomeLossReclassificationOfAvailableForSaleSecuritiesToHeldToMaturitySecuritiesDetails" xlink:href="fnlc-20170930.xsd#OtherComprehensiveIncomeLossReclassificationOfAvailableForSaleSecuritiesToHeldToMaturitySecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/OtherComprehensiveIncomeLossReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails" xlink:href="fnlc-20170930.xsd#OtherComprehensiveIncomeLossReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryOfAvailableForSaleSecuritiesActivityDetails" xlink:href="fnlc-20170930.xsd#OtherComprehensiveIncomeLossSummaryOfAvailableForSaleSecuritiesActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/OtherComprehensiveIncomeLossTables" xlink:href="fnlc-20170930.xsd#OtherComprehensiveIncomeLossTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/PreferredAndCommonStock" xlink:href="fnlc-20170930.xsd#PreferredAndCommonStock" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/PreferredAndCommonStockDetails" xlink:href="fnlc-20170930.xsd#PreferredAndCommonStockDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/Reclassifications" xlink:href="fnlc-20170930.xsd#Reclassifications" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/StockBasedCompensation" xlink:href="fnlc-20170930.xsd#StockBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/StockBasedCompensationNarrativeDetails" xlink:href="fnlc-20170930.xsd#StockBasedCompensationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/StockBasedCompensationSharesOfRestrictedStockGrantedUnder2010PlanDetails" xlink:href="fnlc-20170930.xsd#StockBasedCompensationSharesOfRestrictedStockGrantedUnder2010PlanDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.thefirst.com/role/StockBasedCompensationTables" xlink:href="fnlc-20170930.xsd#StockBasedCompensationTables" xlink:type="simple" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/AllowanceForLoanLosses" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/AllowanceForLoanLossesAllowanceForLoanLossActivityByClassDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_99b7c0b8-78d1-c66a-eb0a-fb20f225718b" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_2728da51-6cce-af3e-5ce7-dffdc8662526" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_99b7c0b8-78d1-c66a-eb0a-fb20f225718b" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_2728da51-6cce-af3e-5ce7-dffdc8662526" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_85116712-b047-8f0c-ec82-a503d282893f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_99b7c0b8-78d1-c66a-eb0a-fb20f225718b" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_85116712-b047-8f0c-ec82-a503d282893f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansAndLeasesReceivableAllowance" xlink:label="loc_us-gaap_LoansAndLeasesReceivableAllowance_8e1c2ae9-243e-baf4-cc90-3e520d158505" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_2d64eba2-d0e8-c45b-dd29-fc9458833902" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableAllowance_8e1c2ae9-243e-baf4-cc90-3e520d158505" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_2d64eba2-d0e8-c45b-dd29-fc9458833902" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_aec103a3-1896-0ed9-655b-7cb3d159483f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableAllowance_8e1c2ae9-243e-baf4-cc90-3e520d158505" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_aec103a3-1896-0ed9-655b-7cb3d159483f" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/AllowanceForLoanLossesFinancingReceivableAndAllowanceElementByClassDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/AllowanceForLoanLossesNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/AllowanceForLoanLossesRiskRatingsBySegmentDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/AllowanceForLoanLossesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/BasisOfPresentation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/BasisOfPresentationPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/CertificatesOfDeposit" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/CertificatesOfDepositDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TimeDeposits" xlink:label="loc_us-gaap_TimeDeposits_dfb31fa0-410a-effc-39b9-3f990161d983" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TimeDepositsLessThan100000" xlink:label="loc_us-gaap_TimeDepositsLessThan100000_c9dab9d9-71d0-0595-ab9d-8a1bff0300a6" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_dfb31fa0-410a-effc-39b9-3f990161d983" xlink:to="loc_us-gaap_TimeDepositsLessThan100000_c9dab9d9-71d0-0595-ab9d-8a1bff0300a6" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_TimeDepositsGreaterThan100000AndLessThan250000" xlink:label="loc_fnlc_TimeDepositsGreaterThan100000AndLessThan250000_363b6168-7c4e-a269-4c9d-0a2aee773735" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_dfb31fa0-410a-effc-39b9-3f990161d983" xlink:to="loc_fnlc_TimeDepositsGreaterThan100000AndLessThan250000_363b6168-7c4e-a269-4c9d-0a2aee773735" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_TimeDeposits250000OrMore" xlink:label="loc_fnlc_TimeDeposits250000OrMore_52c55616-8184-3f49-3cb4-0a2aee892d2c" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_dfb31fa0-410a-effc-39b9-3f990161d983" xlink:to="loc_fnlc_TimeDeposits250000OrMore_52c55616-8184-3f49-3cb4-0a2aee892d2c" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/CertificatesOfDepositTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedBalanceSheetsUnaudited" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_cb56b01f-b9c5-ca9e-8988-e23b27fc7a20" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_OtherAssets_cb56b01f-b9c5-ca9e-8988-e23b27fc7a20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_93a64cae-271a-5e6b-8c83-5adf9f941142" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_Goodwill_93a64cae-271a-5e6b-8c83-5adf9f941142" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherRealEstateAndForeclosedAssets" xlink:label="loc_us-gaap_OtherRealEstateAndForeclosedAssets_981e6fe7-fa32-4b68-a956-d14acea056c4" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_OtherRealEstateAndForeclosedAssets_981e6fe7-fa32-4b68-a956-d14acea056c4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaap_InterestReceivable_2d49e658-e313-42db-0685-6fab7f379214" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_InterestReceivable_2d49e658-e313-42db-0685-6fab7f379214" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansAndLeasesReceivableAllowance" xlink:label="loc_us-gaap_LoansAndLeasesReceivableAllowance_8e1c2ae9-243e-baf4-cc90-3e520d158505" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:to="loc_us-gaap_LoansAndLeasesReceivableAllowance_8e1c2ae9-243e-baf4-cc90-3e520d158505" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_99b7c0b8-78d1-c66a-eb0a-fb20f225718b" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_99b7c0b8-78d1-c66a-eb0a-fb20f225718b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_42786bb9-6e3c-6b98-ae1f-cfea111c0df9" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_42786bb9-6e3c-6b98-ae1f-cfea111c0df9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="loc_us-gaap_HeldToMaturitySecurities_3bb8bc81-af51-9945-0a22-cc4527e07a17" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_HeldToMaturitySecurities_3bb8bc81-af51-9945-0a22-cc4527e07a17" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_RestrictedEquitySecuritiesAtCost" xlink:label="loc_fnlc_RestrictedEquitySecuritiesAtCost_0f9b3669-1311-8d1e-5520-0a2aeed8b85f" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_fnlc_RestrictedEquitySecuritiesAtCost_0f9b3669-1311-8d1e-5520-0a2aeed8b85f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:type="locator" />
    <link:calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestBearingDepositsInBanks" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_75c23f4c-57d7-1642-0f06-8805879e7b8d" xlink:type="locator" />
    <link:calculationArc order="11" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_75c23f4c-57d7-1642-0f06-8805879e7b8d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_07da1db4-2708-4446-4250-1fdd5956185e" xlink:type="locator" />
    <link:calculationArc order="12" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_07da1db4-2708-4446-4250-1fdd5956185e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_c3f7606a-e7e9-61d5-b60b-b4b059f68b26" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_CommonStockValue_c3f7606a-e7e9-61d5-b60b-b4b059f68b26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_2d1b9d27-8b19-82d9-2843-5b3d292b7fbb" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_AdditionalPaidInCapital_2d1b9d27-8b19-82d9-2843-5b3d292b7fbb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_065cb284-7fca-cc9b-5752-2feaf74d0011" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_065cb284-7fca-cc9b-5752-2feaf74d0011" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_e38d562c-e1dd-d525-b8c6-f86d8a100397" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_e38d562c-e1dd-d525-b8c6-f86d8a100397" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity" xlink:label="loc_fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity_549a4036-0023-552a-e019-0a2aee52a356" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_fnlc_OtherComprehensiveIncomeLossAccumulatedUnrealizedGainLossonTransferofAvailableforsaleSecuritiestoHeldtomaturity_549a4036-0023-552a-e019-0a2aee52a356" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax_e29c472a-465e-2c89-1ec3-faa641b16e0c" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax_e29c472a-465e-2c89-1ec3-faa641b16e0c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_81d717e1-3e46-8423-3e5f-d98aacc74856" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_OtherLiabilities_81d717e1-3e46-8423-3e5f-d98aacc74856" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_c4493b41-4418-ed41-2f06-05ff9c61369f" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_ShortTermBorrowings_c4493b41-4418-ed41-2f06-05ff9c61369f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Deposits" xlink:label="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DemandDepositAccounts" xlink:label="loc_us-gaap_DemandDepositAccounts_46e5ac8d-f1cd-eb14-2db6-553f0591d39f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_us-gaap_DemandDepositAccounts_46e5ac8d-f1cd-eb14-2db6-553f0591d39f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepositsNegotiableOrderOfWithdrawalNOW" xlink:label="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_c8ca63c0-979a-e0b4-f88c-2073d9d75746" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_c8ca63c0-979a-e0b4-f88c-2073d9d75746" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepositsMoneyMarketDeposits" xlink:label="loc_us-gaap_DepositsMoneyMarketDeposits_b8da1a0d-5473-9596-e9cc-b0f0c02b0bdd" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_us-gaap_DepositsMoneyMarketDeposits_b8da1a0d-5473-9596-e9cc-b0f0c02b0bdd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepositsSavingsDeposits" xlink:label="loc_us-gaap_DepositsSavingsDeposits_e2eebd17-91a3-03ac-15d7-5acaadde63c6" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_us-gaap_DepositsSavingsDeposits_e2eebd17-91a3-03ac-15d7-5acaadde63c6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TimeDeposits" xlink:label="loc_us-gaap_TimeDeposits_dfb31fa0-410a-effc-39b9-3f990161d983" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_us-gaap_TimeDeposits_dfb31fa0-410a-effc-39b9-3f990161d983" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_dd2e9db6-10f9-d78a-ba84-b18268245a83" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_dd2e9db6-10f9-d78a-ba84-b18268245a83" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInDeposits" xlink:label="loc_us-gaap_IncreaseDecreaseInDeposits_01379495-f364-e017-eca1-552db0d80389" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_IncreaseDecreaseInDeposits_01379495-f364-e017-eca1-552db0d80389" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInTimeDeposits" xlink:label="loc_us-gaap_IncreaseDecreaseInTimeDeposits_bdde7ba9-cc4d-7752-5914-dc1fdd6e8526" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_IncreaseDecreaseInTimeDeposits_bdde7ba9-cc4d-7752-5914-dc1fdd6e8526" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebt" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_27f3e695-baed-1adc-cc35-793c3b76e4f9" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebt_27f3e695-baed-1adc-cc35-793c3b76e4f9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_d491100b-7790-bdc4-d267-f70b221aaba4" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_d491100b-7790-bdc4-d267-f70b221aaba4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8a1490c4-32d9-5132-1fe2-2675a45abdae" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_8a1490c4-32d9-5132-1fe2-2675a45abdae" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_dbbd5d91-eb58-fa81-2753-d9ddf4ada4c1" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_dbbd5d91-eb58-fa81-2753-d9ddf4ada4c1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsOfDividends" xlink:label="loc_us-gaap_PaymentsOfDividends_11043fe8-215b-8e23-9bde-984dc82a0339" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_PaymentsOfDividends_11043fe8-215b-8e23-9bde-984dc82a0339" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfOtherLongTermDebt" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfOtherLongTermDebt_29550c2c-a38c-020e-eefe-8b4f4fff4b3f" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfOtherLongTermDebt_29550c2c-a38c-020e-eefe-8b4f4fff4b3f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_dd2e9db6-10f9-d78a-ba84-b18268245a83" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_PaymentsForInterestBearingDepositsInOtherBanks" xlink:label="loc_fnlc_PaymentsForInterestBearingDepositsInOtherBanks_df5875c6-a036-9c3c-d36c-0a2aee9cdadb" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_fnlc_PaymentsForInterestBearingDepositsInOtherBanks_df5875c6-a036-9c3c-d36c-0a2aee9cdadb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecurities" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecurities_d3d89aab-5be8-f6a4-66e9-41f55e0839cd" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecurities_d3d89aab-5be8-f6a4-66e9-41f55e0839cd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_b49c7a2f-2986-824d-e7cb-bc082ac0e888" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_b49c7a2f-2986-824d-e7cb-bc082ac0e888" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_0de8de13-3824-9d0d-a270-12d0f2fbdb58" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_0de8de13-3824-9d0d-a270-12d0f2fbdb58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromSaleOfOtherRealEstate" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_a2048c05-1a21-5ddf-3a39-18126a9ba584" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_a2048c05-1a21-5ddf-3a39-18126a9ba584" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecurities" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecurities_9cebbd9b-269e-5a19-54b8-1c32e2660d83" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecurities_9cebbd9b-269e-5a19-54b8-1c32e2660d83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquireHeldToMaturitySecurities" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_3a5a60fd-6807-00fa-b758-39b7b6e16f8a" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_3a5a60fd-6807-00fa-b758-39b7b6e16f8a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsForProceedsFromLoansAndLeases" xlink:label="loc_us-gaap_PaymentsForProceedsFromLoansAndLeases_c84002e7-fa43-cc52-024d-b47cc02aa671" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_PaymentsForProceedsFromLoansAndLeases_c84002e7-fa43-cc52-024d-b47cc02aa671" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_fee12b15-6b42-6245-2e2f-ff030b98332c" xlink:type="locator" />
    <link:calculationArc order="9" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_fee12b15-6b42-6245-2e2f-ff030b98332c" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_RedemptionOfRestrictedEquitySecurities" xlink:label="loc_fnlc_RedemptionOfRestrictedEquitySecurities_70525385-ff05-8ee9-8caa-0a2aee7091c7" xlink:type="locator" />
    <link:calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_fnlc_RedemptionOfRestrictedEquitySecurities_70525385-ff05-8ee9-8caa-0a2aee7091c7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_dd2e9db6-10f9-d78a-ba84-b18268245a83" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProvisionForOtherLosses" xlink:label="loc_us-gaap_ProvisionForOtherLosses_ccbbc894-a2aa-f40e-8330-e7260681f5b1" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ProvisionForOtherLosses_ccbbc894-a2aa-f40e-8330-e7260681f5b1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_95be95e4-0ed3-e1e8-0c63-33a490947570" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_95be95e4-0ed3-e1e8-0c63-33a490947570" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaap_Depreciation_b4463f01-8926-c348-9c78-89e2ab0ed145" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_Depreciation_b4463f01-8926-c348-9c78-89e2ab0ed145" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_e0ca8321-ebf3-2764-9c0e-6cfd763aef57" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_e0ca8321-ebf3-2764-9c0e-6cfd763aef57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale" xlink:label="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_eb3d1f57-8afc-4e17-e4c5-077b3a40ad0f" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale_eb3d1f57-8afc-4e17-e4c5-077b3a40ad0f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_52a8d5c3-309b-28e2-6ae4-483ba7502c0b" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_52a8d5c3-309b-28e2-6ae4-483ba7502c0b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GainLossOnSalesOfLoansNet" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_ea91341e-361d-c0f7-cf49-b928bb2b8c92" xlink:type="locator" />
    <link:calculationArc order="9" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_ea91341e-361d-c0f7-cf49-b928bb2b8c92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GainLossOnSaleOfSecuritiesNet" xlink:label="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_6798b2b8-2a12-21fe-9e3a-22ffb8e8a140" xlink:type="locator" />
    <link:calculationArc order="10" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_6798b2b8-2a12-21fe-9e3a-22ffb8e8a140" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_ee12cc29-63c9-040c-19f2-17921f90c9bb" xlink:type="locator" />
    <link:calculationArc order="11" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_ee12cc29-63c9-040c-19f2-17921f90c9bb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_64e6ffc2-2e49-1f95-1346-70fd1dbe1fe6" xlink:type="locator" />
    <link:calculationArc order="12" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_64e6ffc2-2e49-1f95-1346-70fd1dbe1fe6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_e3eecf87-b290-4567-8a59-5b0a8e27c85b" xlink:type="locator" />
    <link:calculationArc order="13" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ShareBasedCompensation_e3eecf87-b290-4567-8a59-5b0a8e27c85b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ExcessTaxBenefitFromShareBasedCompensationOperatingActivities" xlink:label="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationOperatingActivities_94d761b7-b8f1-3ba3-90b8-1443c3232b73" xlink:type="locator" />
    <link:calculationArc order="14" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationOperatingActivities_94d761b7-b8f1-3ba3-90b8-1443c3232b73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_ac9066b4-6e40-13ed-8628-1a20304926d8" xlink:type="locator" />
    <link:calculationArc order="15" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_ac9066b4-6e40-13ed-8628-1a20304926d8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_7e3bb724-19f9-7fc7-d3fb-60f34a11e15a" xlink:type="locator" />
    <link:calculationArc order="16" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_7e3bb724-19f9-7fc7-d3fb-60f34a11e15a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherDepreciationAndAmortization" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_af035d49-0557-cd02-3338-ff26f027fd0d" xlink:type="locator" />
    <link:calculationArc order="17" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_af035d49-0557-cd02-3338-ff26f027fd0d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AmortizationOfAcquisitionCosts" xlink:label="loc_us-gaap_AmortizationOfAcquisitionCosts_99ae3a86-45a7-70dd-c13f-b221ec1cfe4e" xlink:type="locator" />
    <link:calculationArc order="18" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_AmortizationOfAcquisitionCosts_99ae3a86-45a7-70dd-c13f-b221ec1cfe4e" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsOfCashFlowsUnauditedCalc2" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:to="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_57e8ae74-d8b6-c629-9bee-2d0929cd3999" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_57e8ae74-d8b6-c629-9bee-2d0929cd3999" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesNetOfTax_cc7c59d2-21ac-163e-0898-1c1f212ef02b" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesNetOfTax_cc7c59d2-21ac-163e-0898-1c1f212ef02b" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss" xlink:label="loc_fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_003de818-4778-785c-1c23-0a2aeea074f6" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:to="loc_fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_003de818-4778-785c-1c23-0a2aeea074f6" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnaudited" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_0eb47183-f513-314d-ceda-ee2412d9eee8" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_0eb47183-f513-314d-ceda-ee2412d9eee8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_0eb47183-f513-314d-ceda-ee2412d9eee8" xlink:to="loc_us-gaap_NoninterestExpense_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_02adc972-ee35-2b4e-07cf-dcb0252789fc" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:to="loc_us-gaap_OtherNoninterestExpense_02adc972-ee35-2b4e-07cf-dcb0252789fc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_ae796c5c-1c01-d654-6a3c-3b5dd2c89517" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_ae796c5c-1c01-d654-6a3c-3b5dd2c89517" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FederalDepositInsuranceCorporationPremiumExpense" xlink:label="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_4d8e78ed-960e-d86f-088f-ddede10ab4c8" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:to="loc_us-gaap_FederalDepositInsuranceCorporationPremiumExpense_4d8e78ed-960e-d86f-088f-ddede10ab4c8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EquipmentExpense" xlink:label="loc_us-gaap_EquipmentExpense_68010612-5547-1da2-3601-ba9069d4962a" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:to="loc_us-gaap_EquipmentExpense_68010612-5547-1da2-3601-ba9069d4962a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OccupancyNet" xlink:label="loc_us-gaap_OccupancyNet_dcfa93d8-21b7-f135-13ea-2a15d58dda33" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:to="loc_us-gaap_OccupancyNet_dcfa93d8-21b7-f135-13ea-2a15d58dda33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_f279d790-3f69-6bb0-bf56-02597d072677" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:to="loc_us-gaap_LaborAndRelatedExpense_f279d790-3f69-6bb0-bf56-02597d072677" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_0eb47183-f513-314d-ceda-ee2412d9eee8" xlink:to="loc_us-gaap_NoninterestIncome_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_bbc2d8f2-839a-169c-6677-9e1bd2a87a11" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_bbc2d8f2-839a-169c-6677-9e1bd2a87a11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FeesAndCommissionsMortgageBanking" xlink:label="loc_us-gaap_FeesAndCommissionsMortgageBanking_1dad8197-bb1a-112c-18dc-ed6b864c03a5" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:to="loc_us-gaap_FeesAndCommissionsMortgageBanking_1dad8197-bb1a-112c-18dc-ed6b864c03a5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GainLossOnSaleOfSecuritiesNet" xlink:label="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_6798b2b8-2a12-21fe-9e3a-22ffb8e8a140" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:to="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_6798b2b8-2a12-21fe-9e3a-22ffb8e8a140" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FeesAndCommissionsDepositorAccounts" xlink:label="loc_us-gaap_FeesAndCommissionsDepositorAccounts_a4fbc5df-70a9-e2bd-ec71-0fe6359f2eee" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:to="loc_us-gaap_FeesAndCommissionsDepositorAccounts_a4fbc5df-70a9-e2bd-ec71-0fe6359f2eee" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FeesAndCommissionsFiduciaryAndTrustActivities" xlink:label="loc_us-gaap_FeesAndCommissionsFiduciaryAndTrustActivities_a0a09439-f676-5b44-5d17-fb305f94c8ad" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:to="loc_us-gaap_FeesAndCommissionsFiduciaryAndTrustActivities_a0a09439-f676-5b44-5d17-fb305f94c8ad" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_4b7a9f96-e361-95dc-567f-7c30db8e2c0d" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_0eb47183-f513-314d-ceda-ee2412d9eee8" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_4b7a9f96-e361-95dc-567f-7c30db8e2c0d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_e0ca8321-ebf3-2764-9c0e-6cfd763aef57" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_4b7a9f96-e361-95dc-567f-7c30db8e2c0d" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_e0ca8321-ebf3-2764-9c0e-6cfd763aef57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_1df5100d-c7c3-27c8-1405-81abbd3827e1" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_4b7a9f96-e361-95dc-567f-7c30db8e2c0d" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_1df5100d-c7c3-27c8-1405-81abbd3827e1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_1df5100d-c7c3-27c8-1405-81abbd3827e1" xlink:to="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestExpenseBorrowings" xlink:label="loc_us-gaap_InterestExpenseBorrowings_e1350110-0ab0-e3d3-11df-192dceb7e187" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:to="loc_us-gaap_InterestExpenseBorrowings_e1350110-0ab0-e3d3-11df-192dceb7e187" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestExpenseDeposits" xlink:label="loc_us-gaap_InterestExpenseDeposits_1b3f3aad-0663-6434-2e85-258ef2ba8cf4" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:to="loc_us-gaap_InterestExpenseDeposits_1b3f3aad-0663-6434-2e85-258ef2ba8cf4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_4477516e-3843-f1b4-8a61-de669ff8f0e0" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_1df5100d-c7c3-27c8-1405-81abbd3827e1" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_4477516e-3843-f1b4-8a61-de669ff8f0e0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestAndDividendIncomeSecurities" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecurities_1829174e-cfff-643a-37e6-4fac48f6d3ea" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_4477516e-3843-f1b4-8a61-de669ff8f0e0" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecurities_1829174e-cfff-643a-37e6-4fac48f6d3ea" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestIncomeDepositsWithFinancialInstitutions" xlink:label="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_2350e0aa-e6ca-7616-e114-d3e4fd7ae6f2" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_4477516e-3843-f1b4-8a61-de669ff8f0e0" xlink:to="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_2350e0aa-e6ca-7616-e114-d3e4fd7ae6f2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_73eb116a-244c-faca-8f1b-fa72559b1ebe" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_4477516e-3843-f1b4-8a61-de669ff8f0e0" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_73eb116a-244c-faca-8f1b-fa72559b1ebe" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_57e8ae74-d8b6-c629-9bee-2d0929cd3999" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_57e8ae74-d8b6-c629-9bee-2d0929cd3999" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss" xlink:label="loc_fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_003de818-4778-785c-1c23-0a2aeea074f6" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_fnlc_AvailableforsaleSecuritiesTransferredtoHeldtomaturitySecuritiesUnrealizedGainLoss_003de818-4778-785c-1c23-0a2aeea074f6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments" xlink:label="loc_us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments_58042c42-6c7f-8fa8-9c69-5967860fd137" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments_58042c42-6c7f-8fa8-9c69-5967860fd137" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ConsolidatedStatementsOfIncomeAndComprehensiveIncomeUnauditedParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EarningsPerShare" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EarningsPerShareScheduleOfBasicAndDilutedEarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_223fd9c8-68e8-e433-7c40-f98b238e79de" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_7b1369dd-f813-fe00-b292-96e275568f1b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_223fd9c8-68e8-e433-7c40-f98b238e79de" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_7b1369dd-f813-fe00-b292-96e275568f1b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_86e61cf2-b7b2-e230-65f1-5a2b152f3a30" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_223fd9c8-68e8-e433-7c40-f98b238e79de" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_86e61cf2-b7b2-e230-65f1-5a2b152f3a30" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_3d9b4bd2-957e-ddb5-7841-6a572de70646" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_3d9b4bd2-957e-ddb5-7841-6a572de70646" xlink:to="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EarningsPerShareScheduleOfOptionsAndWarrantsOutstandingDetails" xlink:type="extended">
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_TotalDilutiveSecurities" xlink:label="loc_fnlc_TotalDilutiveSecurities_4c4172ee-a6f7-bdc0-93e1-0a2aeebdb259" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" xlink:label="loc_us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights_d7562fcc-7aee-665e-7359-41be10b5f13c" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_TotalDilutiveSecurities_4c4172ee-a6f7-bdc0-93e1-0a2aeebdb259" xlink:to="loc_us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights_d7562fcc-7aee-665e-7359-41be10b5f13c" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EarningsPerShareTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EmployeeBenefitPlans" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EmployeeBenefitPlansAccumulatedPostRetirementBenefitObligationFundedStatusAndNetPeriodicBenefitCostDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_74863991-8c55-6a17-996a-9c2a561db4af" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_71a21154-406e-18d7-9aeb-e2619e08dbf7" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_74863991-8c55-6a17-996a-9c2a561db4af" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_71a21154-406e-18d7-9aeb-e2619e08dbf7" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_UnamortizedPriorServiceCost" xlink:label="loc_fnlc_UnamortizedPriorServiceCost_efa9c68c-035c-4747-410a-0a2aee7cc4ca" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_74863991-8c55-6a17-996a-9c2a561db4af" xlink:to="loc_fnlc_UnamortizedPriorServiceCost_efa9c68c-035c-4747-410a-0a2aee7cc4ca" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_50406d00-3746-2e05-3a50-4b2bf529ff14" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_bae25320-9d69-b27b-4684-0b60368d617f" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_50406d00-3746-2e05-3a50-4b2bf529ff14" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EmployeeBenefitPlansNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EmployeeBenefitPlansScheduleOfNetPeriodicBenefitCostNotYetRecognizedDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" xlink:type="locator" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit" xlink:label="loc_fnlc_AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit_d9e707fa-35b6-1158-4ee1-0a2aeee4e8ab" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" xlink:to="loc_fnlc_AccumulatedOtherComprehensiveIncomeDefinedBenefitPlansTaxDeferredTaxBenefit_d9e707fa-35b6-1158-4ee1-0a2aeee4e8ab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_6d1344ee-d174-0072-f9ea-7a14f4f5b932" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_6d1344ee-d174-0072-f9ea-7a14f4f5b932" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/EmployeeBenefitPlansTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValue" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueAssetsAndLiabilitiesAtFairValueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_c63917e8-031d-3018-e68e-e4b72c6d04b8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability" xlink:label="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability_97ca18ba-f209-9184-2db3-7542449562bb" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_c63917e8-031d-3018-e68e-e4b72c6d04b8" xlink:to="loc_us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability_97ca18ba-f209-9184-2db3-7542449562bb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesLongTerm" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesLongTerm_f6e099c2-be97-4ced-a364-3f9f83c27746" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_c63917e8-031d-3018-e68e-e4b72c6d04b8" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesLongTerm_f6e099c2-be97-4ced-a364-3f9f83c27746" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Deposits" xlink:label="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DemandDepositAccounts" xlink:label="loc_us-gaap_DemandDepositAccounts_46e5ac8d-f1cd-eb14-2db6-553f0591d39f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_us-gaap_DemandDepositAccounts_46e5ac8d-f1cd-eb14-2db6-553f0591d39f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepositsNegotiableOrderOfWithdrawalNOW" xlink:label="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_c8ca63c0-979a-e0b4-f88c-2073d9d75746" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_us-gaap_DepositsNegotiableOrderOfWithdrawalNOW_c8ca63c0-979a-e0b4-f88c-2073d9d75746" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepositsMoneyMarketDeposits" xlink:label="loc_us-gaap_DepositsMoneyMarketDeposits_b8da1a0d-5473-9596-e9cc-b0f0c02b0bdd" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_us-gaap_DepositsMoneyMarketDeposits_b8da1a0d-5473-9596-e9cc-b0f0c02b0bdd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepositsSavingsDeposits" xlink:label="loc_us-gaap_DepositsSavingsDeposits_e2eebd17-91a3-03ac-15d7-5acaadde63c6" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_us-gaap_DepositsSavingsDeposits_e2eebd17-91a3-03ac-15d7-5acaadde63c6" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_LocalCertificatesofDeposit" xlink:label="loc_fnlc_LocalCertificatesofDeposit_1a3dc9d0-b9d8-dfd3-4317-0a2aee6d1f45" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_fnlc_LocalCertificatesofDeposit_1a3dc9d0-b9d8-dfd3-4317-0a2aee6d1f45" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_NationalCertificatesOfDeposit" xlink:label="loc_fnlc_NationalCertificatesOfDeposit_200ce673-9984-31b8-ed01-0a2aee7e427d" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_20926415-8452-ba54-f959-6378e08cdab1" xlink:to="loc_fnlc_NationalCertificatesOfDeposit_200ce673-9984-31b8-ed01-0a2aee7e427d" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueAssetsAndLiabilitiesAtFairValueDetailsCalc2" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueAssetsRecordedAtFairValueOnNonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherRealEstateAndForeclosedAssets" xlink:label="loc_us-gaap_OtherRealEstateAndForeclosedAssets_981e6fe7-fa32-4b68-a956-d14acea056c4" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_us-gaap_OtherRealEstateAndForeclosedAssets_981e6fe7-fa32-4b68-a956-d14acea056c4" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_ImpairedLoansFairValueDisclosure" xlink:label="loc_fnlc_ImpairedLoansFairValueDisclosure_1e5ef641-0351-d0a4-96a2-0a2aee862e6b" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_fnlc_ImpairedLoansFairValueDisclosure_1e5ef641-0351-d0a4-96a2-0a2aee862e6b" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueAssetsRecordedAtFairValueOnRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_us-gaap_DerivativeAssets_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FairValueTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FinancialDerivativeInstruments" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FinancialDerivativeInstrumentsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/FinancialDerivativeInstrumentsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/ImpactOfRecentlyIssuedAccountingStandards" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/IncomeTaxes" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecurities" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfAvailableForSaleSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_30dc6014-97a8-c9af-5d13-c233c1983f7f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_1932fd43-f07d-5e04-493b-eca2ebb13c97" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_30dc6014-97a8-c9af-5d13-c233c1983f7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_1932fd43-f07d-5e04-493b-eca2ebb13c97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_e96beffd-8ab7-62f8-402b-cfa1adccd68f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_30dc6014-97a8-c9af-5d13-c233c1983f7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_e96beffd-8ab7-62f8-402b-cfa1adccd68f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_30dc6014-97a8-c9af-5d13-c233c1983f7f" xlink:to="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfHeldToMaturitySecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_46f75f3f-4ced-36de-04ea-a031e3d4605c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_034611ea-64e8-e6ac-6b57-530c530d2463" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_46f75f3f-4ced-36de-04ea-a031e3d4605c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_034611ea-64e8-e6ac-6b57-530c530d2463" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_04cbaa59-5eb0-e143-0a21-a553da1ab158" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_46f75f3f-4ced-36de-04ea-a031e3d4605c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_04cbaa59-5eb0-e143-0a21-a553da1ab158" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_317678d5-aa75-7221-6f7e-512a1e9594ce" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_46f75f3f-4ced-36de-04ea-a031e3d4605c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_317678d5-aa75-7221-6f7e-512a1e9594ce" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesAmortizedCostAndEstimatedFairValueOfRestrictedEquitySecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_RestrictedEquitySecuritiesAmortizedCost" xlink:label="loc_fnlc_RestrictedEquitySecuritiesAmortizedCost_f91a3ba6-51e3-5c08-bb08-0a2aee56cd98" xlink:type="locator" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_RestrictedEquitySecuritiesUnrealizedGains" xlink:label="loc_fnlc_RestrictedEquitySecuritiesUnrealizedGains_c9c4bb66-a4a4-8949-3252-0a2aee46bd9f" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_RestrictedEquitySecuritiesAmortizedCost_f91a3ba6-51e3-5c08-bb08-0a2aee56cd98" xlink:to="loc_fnlc_RestrictedEquitySecuritiesUnrealizedGains_c9c4bb66-a4a4-8949-3252-0a2aee46bd9f" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_RestrictedEquitySecuritiesUnrealizedLosses" xlink:label="loc_fnlc_RestrictedEquitySecuritiesUnrealizedLosses_43767add-5ddb-e921-1f95-0a2aee84eb51" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_RestrictedEquitySecuritiesAmortizedCost_f91a3ba6-51e3-5c08-bb08-0a2aee56cd98" xlink:to="loc_fnlc_RestrictedEquitySecuritiesUnrealizedLosses_43767add-5ddb-e921-1f95-0a2aee84eb51" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_RestrictedEquitySecuritiesFairValueEstimated" xlink:label="loc_fnlc_RestrictedEquitySecuritiesFairValueEstimated_27a62859-a42e-96e6-9438-0a2aeeb58fb4" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnlc_RestrictedEquitySecuritiesAmortizedCost_f91a3ba6-51e3-5c08-bb08-0a2aee56cd98" xlink:to="loc_fnlc_RestrictedEquitySecuritiesFairValueEstimated_27a62859-a42e-96e6-9438-0a2aeeb58fb4" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesContractualMaturitiesOfInvestmentSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_30dc6014-97a8-c9af-5d13-c233c1983f7f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_065ac417-143a-3361-82a5-1e59ffd9749a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_30dc6014-97a8-c9af-5d13-c233c1983f7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_065ac417-143a-3361-82a5-1e59ffd9749a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_6806c6da-7794-6cc2-dea6-0fe1f4c6a026" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_30dc6014-97a8-c9af-5d13-c233c1983f7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_6806c6da-7794-6cc2-dea6-0fe1f4c6a026" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_c1571bda-5b61-dcae-c5bf-c051d205fcb0" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_30dc6014-97a8-c9af-5d13-c233c1983f7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_c1571bda-5b61-dcae-c5bf-c051d205fcb0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_ff34ba87-e8d3-6e7f-88aa-c1d3f9f922ea" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_30dc6014-97a8-c9af-5d13-c233c1983f7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_ff34ba87-e8d3-6e7f-88aa-c1d3f9f922ea" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleEquitySecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleEquitySecuritiesAmortizedCostBasis_316574c4-b982-725f-6fa7-d7a29d080d9f" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_30dc6014-97a8-c9af-5d13-c233c1983f7f" xlink:to="loc_us-gaap_AvailableForSaleEquitySecuritiesAmortizedCostBasis_316574c4-b982-725f-6fa7-d7a29d080d9f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="loc_us-gaap_HeldToMaturitySecurities_3bb8bc81-af51-9945-0a22-cc4527e07a17" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_01f5fca0-0070-5249-0eb7-1cb84a39b7e6" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecurities_3bb8bc81-af51-9945-0a22-cc4527e07a17" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_01f5fca0-0070-5249-0eb7-1cb84a39b7e6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_12128751-e7de-aad7-24b3-5ab9e63f309b" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecurities_3bb8bc81-af51-9945-0a22-cc4527e07a17" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_12128751-e7de-aad7-24b3-5ab9e63f309b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_9b0a2925-c38c-2c54-df67-7b5d234b8836" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecurities_3bb8bc81-af51-9945-0a22-cc4527e07a17" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_9b0a2925-c38c-2c54-df67-7b5d234b8836" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_991033c0-c528-5d4a-c165-d7ea56370526" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecurities_3bb8bc81-af51-9945-0a22-cc4527e07a17" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_991033c0-c528-5d4a-c165-d7ea56370526" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_317678d5-aa75-7221-6f7e-512a1e9594ce" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_837d1260-daa2-488c-64c8-2e7be5aee8de" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_317678d5-aa75-7221-6f7e-512a1e9594ce" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_837d1260-daa2-488c-64c8-2e7be5aee8de" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_2c901eb8-b331-77d7-037a-709db533c963" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_317678d5-aa75-7221-6f7e-512a1e9594ce" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_2c901eb8-b331-77d7-037a-709db533c963" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_45b1bcf4-633a-aca2-3c30-423160f2a118" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_317678d5-aa75-7221-6f7e-512a1e9594ce" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_45b1bcf4-633a-aca2-3c30-423160f2a118" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_54df4125-09a5-7d47-a86b-6d3b4b7ba2f9" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_317678d5-aa75-7221-6f7e-512a1e9594ce" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_54df4125-09a5-7d47-a86b-6d3b4b7ba2f9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_4836856d-11b6-313b-8616-6a2c8b77e26f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_4836856d-11b6-313b-8616-6a2c8b77e26f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_c92402e9-bd0b-d11c-b52e-45b5c23d49be" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_c92402e9-bd0b-d11c-b52e-45b5c23d49be" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_4e9a5751-649f-39a9-c9ec-844be0df352b" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_4e9a5751-649f-39a9-c9ec-844be0df352b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_e94acabe-050f-59b3-6024-05630a9bf579" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_e94acabe-050f-59b3-6024-05630a9bf579" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesEquitySecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesEquitySecurities_ebbe04c5-6b0f-d508-a12a-6227d70adfce" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesEquitySecurities_ebbe04c5-6b0f-d508-a12a-6227d70adfce" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesGainsAndLossesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GainLossOnSaleOfSecuritiesNet" xlink:label="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_6798b2b8-2a12-21fe-9e3a-22ffb8e8a140" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossRealizedGains" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGains_0c3203dd-4b24-5624-3641-9ab08b1db8c0" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_6798b2b8-2a12-21fe-9e3a-22ffb8e8a140" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGains_0c3203dd-4b24-5624-3641-9ab08b1db8c0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses_0172551e-b356-9857-889b-d8d2ba876247" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_6798b2b8-2a12-21fe-9e3a-22ffb8e8a140" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses_0172551e-b356-9857-889b-d8d2ba876247" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/InvestmentSecuritiesTemporarilyImpairedSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_2e09f20d-7547-1a18-6f83-8a0ce6a75ae4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_80d8afbb-83ba-fc94-42ba-ea8166197445" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_2e09f20d-7547-1a18-6f83-8a0ce6a75ae4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_80d8afbb-83ba-fc94-42ba-ea8166197445" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_aaf3e830-a5d9-ffa3-4995-c9e738f331db" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_2e09f20d-7547-1a18-6f83-8a0ce6a75ae4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_aaf3e830-a5d9-ffa3-4995-c9e738f331db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_00e7a94b-1ec9-6499-7f0a-2050ff159115" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_7b1de9af-f23a-d7bf-8a2c-7efccf28ddba" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_00e7a94b-1ec9-6499-7f0a-2050ff159115" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_7b1de9af-f23a-d7bf-8a2c-7efccf28ddba" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_a1dd3f1b-4c24-2372-1a98-24b25891a665" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_00e7a94b-1ec9-6499-7f0a-2050ff159115" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_a1dd3f1b-4c24-2372-1a98-24b25891a665" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/Loans" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansImpairedLoansByClassDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_ca37a9dd-c284-285c-ef7c-6fd13d2d1f07" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_6c5d17c5-8bf9-32e4-45d8-0c81f3d83e11" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_ca37a9dd-c284-285c-ef7c-6fd13d2d1f07" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_6c5d17c5-8bf9-32e4-45d8-0c81f3d83e11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_363cf147-7020-38c5-2ad2-e05d16e99e50" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_ca37a9dd-c284-285c-ef7c-6fd13d2d1f07" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_363cf147-7020-38c5-2ad2-e05d16e99e50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_26d01b6b-31e5-49ea-86b2-b00c93649ee1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_6634bf7e-e8ef-60fa-1b4e-d64872870daa" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_26d01b6b-31e5-49ea-86b2-b00c93649ee1" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_6634bf7e-e8ef-60fa-1b4e-d64872870daa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_e0e4c04b-a7cc-02ef-23f6-318ae3c05959" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_26d01b6b-31e5-49ea-86b2-b00c93649ee1" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_e0e4c04b-a7cc-02ef-23f6-318ae3c05959" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_15a0be6e-6399-7796-5a21-351d6bdf38c0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_cc47adb0-1bde-8a7e-893c-e21dfd67fbcc" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_15a0be6e-6399-7796-5a21-351d6bdf38c0" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_cc47adb0-1bde-8a7e-893c-e21dfd67fbcc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_be7a8a02-ce08-c29c-f736-c19574a96602" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_15a0be6e-6399-7796-5a21-351d6bdf38c0" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_be7a8a02-ce08-c29c-f736-c19574a96602" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_86ff7c24-8ecf-720e-c150-39c99b44c49d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_9cb5f76f-ebfb-bfa3-fab3-12a41aa41227" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_86ff7c24-8ecf-720e-c150-39c99b44c49d" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_9cb5f76f-ebfb-bfa3-fab3-12a41aa41227" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_5085a4f0-5287-c9f5-336b-e45e85e0d2de" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_86ff7c24-8ecf-720e-c150-39c99b44c49d" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_5085a4f0-5287-c9f5-336b-e45e85e0d2de" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansLoanPortfolioDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansNonaccrualLoansDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansPastDueStatusOfLoansByClassDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_99b7c0b8-78d1-c66a-eb0a-fb20f225718b" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_a2853db1-cebd-a17c-f6ff-3ade2a726584" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_99b7c0b8-78d1-c66a-eb0a-fb20f225718b" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_a2853db1-cebd-a17c-f6ff-3ade2a726584" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_38a9b0f0-99cf-7bf1-a2e9-09df10077c91" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome_99b7c0b8-78d1-c66a-eb0a-fb20f225718b" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_38a9b0f0-99cf-7bf1-a2e9-09df10077c91" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansTdrsByClassAndAssociatedSpecificReservesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/LoansTdrsByClassAndSpecificReservesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/MortgageServicingRights" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/MortgageServicingRightsNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/MortgageServicingRightsScheduleOfMortgageServicingRightsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ServicingAssetAtAmortizedValueFairValue" xlink:label="loc_us-gaap_ServicingAssetAtAmortizedValueFairValue_2ddd2bdf-0627-f180-0ba7-4de641e4fa71" xlink:type="locator" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_MortgageServicingRightsGross" xlink:label="loc_fnlc_MortgageServicingRightsGross_207da228-8907-d8e9-dc6c-0a2aeed78390" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ServicingAssetAtAmortizedValueFairValue_2ddd2bdf-0627-f180-0ba7-4de641e4fa71" xlink:to="loc_fnlc_MortgageServicingRightsGross_207da228-8907-d8e9-dc6c-0a2aeed78390" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_AccumulatedAmortizationMortgageServicingRights" xlink:label="loc_fnlc_AccumulatedAmortizationMortgageServicingRights_a1ad860e-2ddc-c71b-72af-0a2aee72866b" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ServicingAssetAtAmortizedValueFairValue_2ddd2bdf-0627-f180-0ba7-4de641e4fa71" xlink:to="loc_fnlc_AccumulatedAmortizationMortgageServicingRights_a1ad860e-2ddc-c71b-72af-0a2aee72866b" xlink:type="arc" />
    <link:loc xlink:href="fnlc-20170930.xsd#fnlc_ReserveForImpairmentOfMortgageServicingRights" xlink:label="loc_fnlc_ReserveForImpairmentOfMortgageServicingRights_759bac55-bab4-83a9-580f-0a2aeedcd535" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ServicingAssetAtAmortizedValueFairValue_2ddd2bdf-0627-f180-0ba7-4de641e4fa71" xlink:to="loc_fnlc_ReserveForImpairmentOfMortgageServicingRights_759bac55-bab4-83a9-580f-0a2aeedcd535" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/MortgageServicingRightsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/OtherComprehensiveIncomeLoss" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/OtherComprehensiveIncomeLossDerivativeInstrumentsIncludedInOtherComprehensiveIncomeLossDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/OtherComprehensiveIncomeLossReclassificationOfAvailableForSaleSecuritiesToHeldToMaturitySecuritiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/OtherComprehensiveIncomeLossReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/OtherComprehensiveIncomeLossSummaryOfAvailableForSaleSecuritiesActivityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_b674c110-7812-0dc8-8cc2-4f91aba944fc" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_b674c110-7812-0dc8-8cc2-4f91aba944fc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_7ca9750b-5cc8-aa85-3585-a06b9895ebbb" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_7ca9750b-5cc8-aa85-3585-a06b9895ebbb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_fd5fd01d-ccd5-2fe2-e9ee-a9a84a842378" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTax_fd5fd01d-ccd5-2fe2-e9ee-a9a84a842378" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.thefirst.com/role/OtherComprehensiveIncomeLossTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/PreferredAndCommonStock" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/PreferredAndCommonStockDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/Reclassifications" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/StockBasedCompensation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/StockBasedCompensationNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/StockBasedCompensationSharesOfRestrictedStockGrantedUnder2010PlanDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.thefirst.com/role/StockBasedCompensationTables" xlink:type="extended" />
</link:linkbase>
