<?xml version="1.0" encoding="us-ascii" standalone="yes"?>
<!--XBRL Document Created with XBRLMaster-->
<!--Version: 2.3.08-->
<!--Based on XBRL 2.1-->
<!--Date of creation: 08/13/2026-->
<!--Software architectural design and coding: A'c Dharmapremananda Avt.-->
<!--Copyright (c) 2026 I-NET Business Solutions, Inc. All Rights Reserved.-->
<link:linkbase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:link="http://www.xbrl.org/2003/linkbase" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://fmbm.com/role/Cover" xlink:href="fmbm-20260630.xsd#Cover" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/ConsolidatedBalanceSheets" xlink:href="fmbm-20260630.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="fmbm-20260630.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/ConsolidatedStatementsOfIncomeUnaudited" xlink:href="fmbm-20260630.xsd#ConsolidatedStatementsOfIncomeUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/ConsolidatedStatementsOfComprehensiveIncomeUnaudited" xlink:href="fmbm-20260630.xsd#ConsolidatedStatementsOfComprehensiveIncomeUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited" xlink:href="fmbm-20260630.xsd#ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/ConsolidatedStatementsOfCashFlowsUnaudited" xlink:href="fmbm-20260630.xsd#ConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/InsiderTradingArrangements" xlink:href="fmbm-20260630.xsd#InsiderTradingArrangements" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="fmbm-20260630.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SECURITIES" xlink:href="fmbm-20260630.xsd#SECURITIES" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/LOANS" xlink:href="fmbm-20260630.xsd#LOANS" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/AllowanceForCreditLosses" xlink:href="fmbm-20260630.xsd#AllowanceForCreditLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/LEASES" xlink:href="fmbm-20260630.xsd#LEASES" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/RegulatoryCapitalMatters" xlink:href="fmbm-20260630.xsd#RegulatoryCapitalMatters" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/FairValueMeasurements" xlink:href="fmbm-20260630.xsd#FairValueMeasurements" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SubsequentEvents" xlink:href="fmbm-20260630.xsd#SubsequentEvents" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="fmbm-20260630.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SecuritiesTables" xlink:href="fmbm-20260630.xsd#SecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/LoansTables" xlink:href="fmbm-20260630.xsd#LoansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/AllowanceForCreditLossesTables" xlink:href="fmbm-20260630.xsd#AllowanceForCreditLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/LeasesTables" xlink:href="fmbm-20260630.xsd#LeasesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/RegulatoryMattersTables" xlink:href="fmbm-20260630.xsd#RegulatoryMattersTables" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/FairValueMeasurementsTables" xlink:href="fmbm-20260630.xsd#FairValueMeasurementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:href="fmbm-20260630.xsd#SummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SecuritiesDetails" xlink:href="fmbm-20260630.xsd#SecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SecuritiesDetails1" xlink:href="fmbm-20260630.xsd#SecuritiesDetails1" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SecuritiesDetails2" xlink:href="fmbm-20260630.xsd#SecuritiesDetails2" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SecuritiesDetails3" xlink:href="fmbm-20260630.xsd#SecuritiesDetails3" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/SecuritiesDetailsNarrative" xlink:href="fmbm-20260630.xsd#SecuritiesDetailsNarrative" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/LoansDetails" xlink:href="fmbm-20260630.xsd#LoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/LoansDetailsNarrative" xlink:href="fmbm-20260630.xsd#LoansDetailsNarrative" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/AllowanceForCreditLossesDetails" xlink:href="fmbm-20260630.xsd#AllowanceForCreditLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/AllowanceForCreditLossesDetails1" xlink:href="fmbm-20260630.xsd#AllowanceForCreditLossesDetails1" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/AllowanceForCreditLossesDetails2" xlink:href="fmbm-20260630.xsd#AllowanceForCreditLossesDetails2" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/AllowanceForCreditLossesDetails3" xlink:href="fmbm-20260630.xsd#AllowanceForCreditLossesDetails3" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/AllowanceForCreditLossesDetails4" xlink:href="fmbm-20260630.xsd#AllowanceForCreditLossesDetails4" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/AllowanceForCreditLossesDetails5" xlink:href="fmbm-20260630.xsd#AllowanceForCreditLossesDetails5" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/AllowanceForCreditLossesDetails6" xlink:href="fmbm-20260630.xsd#AllowanceForCreditLossesDetails6" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/AllowanceForCreditLossesDetailsNarrative" xlink:href="fmbm-20260630.xsd#AllowanceForCreditLossesDetailsNarrative" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/LeasesDetails" xlink:href="fmbm-20260630.xsd#LeasesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/LeasesDetails1" xlink:href="fmbm-20260630.xsd#LeasesDetails1" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/RegulatoryMattersDetails" xlink:href="fmbm-20260630.xsd#RegulatoryMattersDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/FairValueMeasurementsDetails" xlink:href="fmbm-20260630.xsd#FairValueMeasurementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/FairValueMeasurementsDetails1" xlink:href="fmbm-20260630.xsd#FairValueMeasurementsDetails1" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/FairValueMeasurementsDetails2" xlink:href="fmbm-20260630.xsd#FairValueMeasurementsDetails2" xlink:type="simple" />
  <link:roleRef roleURI="http://fmbm.com/role/FairValueMeasurementsDetails3" xlink:href="fmbm-20260630.xsd#FairValueMeasurementsDetails3" xlink:type="simple" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/Cover" xlink:title="00000001 - Document - Document and Entity Information" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/ConsolidatedBalanceSheets" xlink:title="110200 - Statement - Consolidated Balance Sheets">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndDueFromBanks" xlink:label="loc_us-gaapCashAndDueFromBanks" />
    <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:to="loc_us-gaapCashAndDueFromBanks" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MoneyMarketFundsAtCarryingValue" xlink:label="loc_us-gaapMoneyMarketFundsAtCarryingValue" />
    <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:to="loc_us-gaapMoneyMarketFundsAtCarryingValue" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalFundsSold" xlink:label="loc_us-gaapFederalFundsSold" />
    <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:to="loc_us-gaapFederalFundsSold" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaapLoansAndLeasesReceivableNetReportedAmount" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_LoansHeldForInvestmentNetOfDeferredFeesAndCosts" xlink:label="loc_fmbmLoansHeldForInvestmentNetOfDeferredFeesAndCosts" />
    <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLoansAndLeasesReceivableNetReportedAmount" xlink:to="loc_fmbmLoansHeldForInvestmentNetOfDeferredFeesAndCosts" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_AllowanceForCreditLossesOnLoansHeldForInvestment" xlink:label="loc_fmbmAllowanceForCreditLossesOnLoansHeldForInvestment" />
    <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLoansAndLeasesReceivableNetReportedAmount" xlink:to="loc_fmbmAllowanceForCreditLossesOnLoansHeldForInvestment" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets" xlink:label="loc_us-gaapAssets" />
    <link:calculationArc order="7" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaapAvailableForSaleSecuritiesDebtSecurities" />
    <link:calculationArc order="8" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapAvailableForSaleSecuritiesDebtSecurities" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherInvestments" xlink:label="loc_us-gaapOtherInvestments" />
    <link:calculationArc order="9" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapOtherInvestments" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoansHeldForSaleFairValueDisclosure" xlink:label="loc_us-gaapLoansHeldForSaleFairValueDisclosure" />
    <link:calculationArc order="10" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapLoansHeldForSaleFairValueDisclosure" xlink:type="arc" weight="1" />
    <link:calculationArc order="11" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapLoansAndLeasesReceivableNetReportedAmount" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet" />
    <link:calculationArc order="12" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapPropertyPlantAndEquipmentNet" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaapInterestReceivable" />
    <link:calculationArc order="13" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapInterestReceivable" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaapGoodwill" />
    <link:calculationArc order="14" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapGoodwill" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BankOwnedLifeInsurance" xlink:label="loc_us-gaapBankOwnedLifeInsurance" />
    <link:calculationArc order="15" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapBankOwnedLifeInsurance" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxAssetsNet" xlink:label="loc_us-gaapDeferredIncomeTaxAssetsNet" />
    <link:calculationArc order="16" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapDeferredIncomeTaxAssetsNet" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaapOtherAssets" />
    <link:calculationArc order="17" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapOtherAssets" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Deposits" xlink:label="loc_us-gaapDeposits" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestBearingDepositLiabilities" xlink:label="loc_us-gaapNoninterestBearingDepositLiabilities" />
    <link:calculationArc order="18" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapDeposits" xlink:to="loc_us-gaapNoninterestBearingDepositLiabilities" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestBearingDepositLiabilities" xlink:label="loc_us-gaapInterestBearingDepositLiabilities" />
    <link:calculationArc order="19" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapDeposits" xlink:to="loc_us-gaapInterestBearingDepositLiabilities" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaapLiabilities" />
    <link:calculationArc order="20" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapDeposits" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaapLongTermDebt" />
    <link:calculationArc order="21" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapLongTermDebt" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaapOtherLiabilities" />
    <link:calculationArc order="22" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapOtherLiabilities" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaapStockholdersEquity" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesHeldInEmployeeTrust" xlink:label="loc_us-gaapCommonStockSharesHeldInEmployeeTrust" />
    <link:calculationArc order="23" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapCommonStockSharesHeldInEmployeeTrust" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaapAdditionalPaidInCapital" />
    <link:calculationArc order="24" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapAdditionalPaidInCapital" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_AdditionalPaidInCapitalAttributedToEmployeeCompensationTrust" xlink:label="loc_fmbmAdditionalPaidInCapitalAttributedToEmployeeCompensationTrust" />
    <link:calculationArc order="25" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_fmbmAdditionalPaidInCapitalAttributedToEmployeeCompensationTrust" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaapRetainedEarningsAccumulatedDeficit" />
    <link:calculationArc order="26" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapRetainedEarningsAccumulatedDeficit" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaapAccumulatedOtherComprehensiveIncomeLossNetOfTax" />
    <link:calculationArc order="27" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapAccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaapCommonStockValue" />
    <link:calculationArc order="28" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapCommonStockValue" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaapLiabilitiesAndStockholdersEquity" />
    <link:calculationArc order="29" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquity" xlink:to="loc_us-gaapLiabilities" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaapCommitmentsAndContingencies" />
    <link:calculationArc order="30" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquity" xlink:to="loc_us-gaapCommitmentsAndContingencies" xlink:type="arc" weight="1" />
    <link:calculationArc order="31" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquity" xlink:to="loc_us-gaapStockholdersEquity" xlink:type="arc" weight="1" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:title="110201 - Statement - Consolidated Balance Sheets (Parenthetical)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/ConsolidatedStatementsOfIncomeUnaudited" xlink:title="124100 - Statement - Consolidated Statements of Income (Unaudited)">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaapInterestAndDividendIncomeOperating" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeasesHeldInPortfolio" xlink:label="loc_us-gaapInterestAndFeeIncomeLoansAndLeasesHeldInPortfolio" />
    <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestAndDividendIncomeOperating" xlink:to="loc_us-gaapInterestAndFeeIncomeLoansAndLeasesHeldInPortfolio" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndFeeIncomeOtherLoansHeldForSale" xlink:label="loc_us-gaapInterestAndFeeIncomeOtherLoansHeldForSale" />
    <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestAndDividendIncomeOperating" xlink:to="loc_us-gaapInterestAndFeeIncomeOtherLoansHeldForSale" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeFederalFundsSold" xlink:label="loc_us-gaapInterestIncomeFederalFundsSold" />
    <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestAndDividendIncomeOperating" xlink:to="loc_us-gaapInterestIncomeFederalFundsSold" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeNet" xlink:label="loc_us-gaapInvestmentIncomeNet" />
    <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestAndDividendIncomeOperating" xlink:to="loc_us-gaapInvestmentIncomeNet" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndOtherIncome" xlink:label="loc_us-gaapInterestAndOtherIncome" />
    <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestAndDividendIncomeOperating" xlink:to="loc_us-gaapInterestAndOtherIncome" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaapInterestExpense" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseDeposits" xlink:label="loc_us-gaapInterestExpenseDeposits" />
    <link:calculationArc order="7" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestExpense" xlink:to="loc_us-gaapInterestExpenseDeposits" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseShortTermBorrowings" xlink:label="loc_us-gaapInterestExpenseShortTermBorrowings" />
    <link:calculationArc order="8" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestExpense" xlink:to="loc_us-gaapInterestExpenseShortTermBorrowings" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseLongTermDebt" xlink:label="loc_us-gaapInterestExpenseLongTermDebt" />
    <link:calculationArc order="9" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestExpense" xlink:to="loc_us-gaapInterestExpenseLongTermDebt" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaapInterestIncomeExpenseNet" />
    <link:calculationArc order="10" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestIncomeExpenseNet" xlink:to="loc_us-gaapInterestAndDividendIncomeOperating" xlink:type="arc" weight="1" />
    <link:calculationArc order="11" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestIncomeExpenseNet" xlink:to="loc_us-gaapInterestExpense" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaapProvisionForLoanLeaseAndOtherLosses" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProvisionForLoanAndLeaseLosses" xlink:label="loc_us-gaapProvisionForLoanAndLeaseLosses" />
    <link:calculationArc order="12" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapProvisionForLoanLeaseAndOtherLosses" xlink:to="loc_us-gaapProvisionForLoanAndLeaseLosses" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProvisionForOtherCreditLosses" xlink:label="loc_us-gaapProvisionForOtherCreditLosses" />
    <link:calculationArc order="13" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapProvisionForLoanLeaseAndOtherLosses" xlink:to="loc_us-gaapProvisionForOtherCreditLosses" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaapInterestIncomeExpenseAfterProvisionForLoanLoss" />
    <link:calculationArc order="14" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestIncomeExpenseAfterProvisionForLoanLoss" xlink:to="loc_us-gaapInterestIncomeExpenseNet" xlink:type="arc" weight="1" />
    <link:calculationArc order="15" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInterestIncomeExpenseAfterProvisionForLoanLoss" xlink:to="loc_us-gaapProvisionForLoanLeaseAndOtherLosses" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaapNoninterestIncome" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_NoninterestIncomeFromServiceChargesOnDeposits" xlink:label="loc_fmbmNoninterestIncomeFromServiceChargesOnDeposits" />
    <link:calculationArc order="16" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestIncome" xlink:to="loc_fmbmNoninterestIncomeFromServiceChargesOnDeposits" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_NoninterestIncomeFromWealthManagementIncome" xlink:label="loc_fmbmNoninterestIncomeFromWealthManagementIncome" />
    <link:calculationArc order="17" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestIncome" xlink:to="loc_fmbmNoninterestIncomeFromWealthManagementIncome" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FeesAndCommissionsMortgageBankingAndServicing" xlink:label="loc_us-gaapFeesAndCommissionsMortgageBankingAndServicing" />
    <link:calculationArc order="18" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestIncome" xlink:to="loc_us-gaapFeesAndCommissionsMortgageBankingAndServicing" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InsuranceInvestmentIncome" xlink:label="loc_us-gaapInsuranceInvestmentIncome" />
    <link:calculationArc order="19" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestIncome" xlink:to="loc_us-gaapInsuranceInvestmentIncome" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BankOwnedLifeInsuranceIncome" xlink:label="loc_us-gaapBankOwnedLifeInsuranceIncome" />
    <link:calculationArc order="20" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestIncome" xlink:to="loc_us-gaapBankOwnedLifeInsuranceIncome" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_NoninterestIncomeFromLowIncomeHousingPartnershipLosses" xlink:label="loc_fmbmNoninterestIncomeFromLowIncomeHousingPartnershipLosses" />
    <link:calculationArc order="21" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestIncome" xlink:to="loc_fmbmNoninterestIncomeFromLowIncomeHousingPartnershipLosses" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_NoninterestIncomeFromATMAndCheckCardFees" xlink:label="loc_fmbmNoninterestIncomeFromATMAndCheckCardFees" />
    <link:calculationArc order="22" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestIncome" xlink:to="loc_fmbmNoninterestIncomeFromATMAndCheckCardFees" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfInvestments" xlink:label="loc_us-gaapGainLossOnSaleOfInvestments" />
    <link:calculationArc order="23" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestIncome" xlink:to="loc_us-gaapGainLossOnSaleOfInvestments" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MarketableSecuritiesUnrealizedGainLoss" xlink:label="loc_us-gaapMarketableSecuritiesUnrealizedGainLoss" />
    <link:calculationArc order="24" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestIncome" xlink:to="loc_us-gaapMarketableSecuritiesUnrealizedGainLoss" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherOperatingIncome" xlink:label="loc_us-gaapOtherOperatingIncome" />
    <link:calculationArc order="25" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestIncome" xlink:to="loc_us-gaapOtherOperatingIncome" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaapNoninterestExpense" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SalariesWagesAndOfficersCompensation" xlink:label="loc_us-gaapSalariesWagesAndOfficersCompensation" />
    <link:calculationArc order="26" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestExpense" xlink:to="loc_us-gaapSalariesWagesAndOfficersCompensation" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeBenefitsAndShareBasedCompensation" xlink:label="loc_us-gaapEmployeeBenefitsAndShareBasedCompensation" />
    <link:calculationArc order="27" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestExpense" xlink:to="loc_us-gaapEmployeeBenefitsAndShareBasedCompensation" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OccupancyNet" xlink:label="loc_us-gaapOccupancyNet" />
    <link:calculationArc order="28" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestExpense" xlink:to="loc_us-gaapOccupancyNet" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquipmentExpense" xlink:label="loc_us-gaapEquipmentExpense" />
    <link:calculationArc order="29" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestExpense" xlink:to="loc_us-gaapEquipmentExpense" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalDepositInsuranceCorporationPremiumExpense" xlink:label="loc_us-gaapFederalDepositInsuranceCorporationPremiumExpense" />
    <link:calculationArc order="30" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestExpense" xlink:to="loc_us-gaapFederalDepositInsuranceCorporationPremiumExpense" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LegalFees" xlink:label="loc_us-gaapLegalFees" />
    <link:calculationArc order="31" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestExpense" xlink:to="loc_us-gaapLegalFees" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_NonInterestExpenseATMAndCheckCardFees" xlink:label="loc_fmbmNonInterestExpenseATMAndCheckCardFees" />
    <link:calculationArc order="32" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestExpense" xlink:to="loc_fmbmNonInterestExpenseATMAndCheckCardFees" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_NonInterestExpenseDataProcessingExpense" xlink:label="loc_fmbmNonInterestExpenseDataProcessingExpense" />
    <link:calculationArc order="33" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestExpense" xlink:to="loc_fmbmNonInterestExpenseDataProcessingExpense" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UtilitiesOperatingExpenseOther" xlink:label="loc_us-gaapUtilitiesOperatingExpenseOther" />
    <link:calculationArc order="34" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNoninterestExpense" xlink:to="loc_us-gaapUtilitiesOperatingExpenseOther" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" />
    <link:calculationArc order="35" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapInterestIncomeExpenseAfterProvisionForLoanLoss" xlink:type="arc" weight="1" />
    <link:calculationArc order="36" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapNoninterestIncome" xlink:type="arc" weight="1" />
    <link:calculationArc order="37" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapNoninterestExpense" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaapNetIncomeLoss" />
    <link:calculationArc order="38" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetIncomeLoss" xlink:to="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaapIncomeTaxExpenseBenefit" />
    <link:calculationArc order="39" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetIncomeLoss" xlink:to="loc_us-gaapIncomeTaxExpenseBenefit" xlink:type="arc" weight="-1" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/ConsolidatedStatementsOfComprehensiveIncomeUnaudited" xlink:title="148400 - Statement - Consolidated Statements of Comprehensive Income (Unaudited)">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaapOtherComprehensiveIncomeLossNetOfTax" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:label="loc_us-gaapOtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" />
    <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOtherComprehensiveIncomeLossNetOfTax" xlink:to="loc_us-gaapOtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaapOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" />
    <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOtherComprehensiveIncomeLossNetOfTax" xlink:to="loc_us-gaapOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTax" xlink:label="loc_us-gaapOtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTax" />
    <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOtherComprehensiveIncomeLossNetOfTax" xlink:to="loc_us-gaapOtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTax" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaapComprehensiveIncomeNetOfTax" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaapNetIncomeLoss" />
    <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapComprehensiveIncomeNetOfTax" xlink:to="loc_us-gaapNetIncomeLoss" xlink:type="arc" weight="1" />
    <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapComprehensiveIncomeNetOfTax" xlink:to="loc_us-gaapOtherComprehensiveIncomeLossNetOfTax" xlink:type="arc" weight="1" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited" xlink:title="148600 - Statement - Consolidated Statements of Changes in Shareholders Equity (Unaudited)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/ConsolidatedStatementsOfCashFlowsUnaudited" xlink:title="170000 - Statement - Consolidated Statements of Cash Flows (Unaudited)">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaapNetIncomeLoss" />
    <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapNetIncomeLoss" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationAndAmortization" xlink:label="loc_us-gaapDepreciationAndAmortization" />
    <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapDepreciationAndAmortization" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaapAmortizationOfIntangibleAssets" />
    <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapAmortizationOfIntangibleAssets" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_AmortizationOfSecurities" xlink:label="loc_fmbmAmortizationOfSecurities" />
    <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_fmbmAmortizationOfSecurities" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesGainLoss" xlink:label="loc_us-gaapDebtSecuritiesGainLoss" />
    <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapDebtSecuritiesGainLoss" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale" xlink:label="loc_us-gaapProceedsFromSaleOfLoansHeldForSale" />
    <link:calculationArc order="7" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapProceedsFromSaleOfLoansHeldForSale" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_LoansHeldForSaleOriginated" xlink:label="loc_fmbmLoansHeldForSaleOriginated" />
    <link:calculationArc order="8" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_fmbmLoansHeldForSaleOriginated" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_GainOnSaleOfLoansHeldForSaleOriginated" xlink:label="loc_fmbmGainOnSaleOfLoansHeldForSaleOriginated" />
    <link:calculationArc order="9" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_fmbmGainOnSaleOfLoansHeldForSaleOriginated" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaapProvisionForLoanLeaseAndOtherLosses" />
    <link:calculationArc order="10" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapProvisionForLoanLeaseAndOtherLosses" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInInterestAndDividendsReceivable" xlink:label="loc_us-gaapIncreaseDecreaseInInterestAndDividendsReceivable" />
    <link:calculationArc order="11" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInInterestAndDividendsReceivable" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDeferredIncomeTaxes" xlink:label="loc_us-gaapIncreaseDecreaseInDeferredIncomeTaxes" />
    <link:calculationArc order="12" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInDeferredIncomeTaxes" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssets" xlink:label="loc_us-gaapIncreaseDecreaseInOtherCurrentAssets" />
    <link:calculationArc order="13" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInOtherCurrentAssets" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities" xlink:label="loc_us-gaapIncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities" />
    <link:calculationArc order="14" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapIncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_AmortizationOfLimitedPartnershipInvestments" xlink:label="loc_fmbmAmortizationOfLimitedPartnershipInvestments" />
    <link:calculationArc order="15" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_fmbmAmortizationOfLimitedPartnershipInvestments" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts" xlink:label="loc_us-gaapAmortizationOfFinancingCostsAndDiscounts" />
    <link:calculationArc order="16" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapAmortizationOfFinancingCostsAndDiscounts" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_ProceedsFromIncomeFromLifeInsuranceInvestment" xlink:label="loc_fmbmProceedsFromIncomeFromLifeInsuranceInvestment" />
    <link:calculationArc order="17" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_fmbmProceedsFromIncomeFromLifeInsuranceInvestment" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfInvestments" xlink:label="loc_us-gaapGainLossOnSaleOfInvestments" />
    <link:calculationArc order="18" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapGainLossOnSaleOfInvestments" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_GainLossOnTheSaleOfAssetsHeldForSale" xlink:label="loc_fmbmGainLossOnTheSaleOfAssetsHeldForSale" />
    <link:calculationArc order="19" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_fmbmGainLossOnTheSaleOfAssetsHeldForSale" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_GainOnSaleOfOtherRealStateOwned" xlink:label="loc_fmbmGainOnSaleOfOtherRealStateOwned" />
    <link:calculationArc order="20" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_fmbmGainOnSaleOfOtherRealStateOwned" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaapShareBasedCompensation" />
    <link:calculationArc order="21" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:to="loc_us-gaapShareBasedCompensation" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments" xlink:label="loc_us-gaapProceedsFromSaleAndMaturityOfOtherInvestments" />
    <link:calculationArc order="22" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_us-gaapProceedsFromSaleAndMaturityOfOtherInvestments" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_PaymentsToAcquireInvestmentsAvailableForSale" xlink:label="loc_fmbmPaymentsToAcquireInvestmentsAvailableForSale" />
    <link:calculationArc order="23" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_fmbmPaymentsToAcquireInvestmentsAvailableForSale" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_ProceedsFromPaydownsOfMortgageBackedSecurities" xlink:label="loc_fmbmProceedsFromPaydownsOfMortgageBackedSecurities" />
    <link:calculationArc order="24" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_fmbmProceedsFromPaydownsOfMortgageBackedSecurities" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_PaymentsForProceedsFromRestrictedInvestments" xlink:label="loc_fmbmPaymentsForProceedsFromRestrictedInvestments" />
    <link:calculationArc order="25" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_fmbmPaymentsForProceedsFromRestrictedInvestments" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_ProceedsFromSaleOfBearingInsuranceInvestment" xlink:label="loc_fmbmProceedsFromSaleOfBearingInsuranceInvestment" />
    <link:calculationArc order="26" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_fmbmProceedsFromSaleOfBearingInsuranceInvestment" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForProceedsFromInvestments" xlink:label="loc_us-gaapPaymentsForProceedsFromInvestments" />
    <link:calculationArc order="27" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_us-gaapPaymentsForProceedsFromInvestments" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfOilAndGasPropertyAndEquipment" xlink:label="loc_us-gaapProceedsFromSaleOfOilAndGasPropertyAndEquipment" />
    <link:calculationArc order="28" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_us-gaapProceedsFromSaleOfOilAndGasPropertyAndEquipment" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfOtherRealEstate" xlink:label="loc_us-gaapProceedsFromSaleOfOtherRealEstate" />
    <link:calculationArc order="29" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_us-gaapProceedsFromSaleOfOtherRealEstate" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaapPaymentsToAcquirePropertyPlantAndEquipment" />
    <link:calculationArc order="30" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_us-gaapPaymentsToAcquirePropertyPlantAndEquipment" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_PurchasesOfInvestmentsAvailableForSale" xlink:label="loc_fmbmPurchasesOfInvestmentsAvailableForSale" />
    <link:calculationArc order="31" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:to="loc_fmbmPurchasesOfInvestmentsAvailableForSale" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_ProceedsFromChangeInDeposits" xlink:label="loc_fmbmProceedsFromChangeInDeposits" />
    <link:calculationArc order="32" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" xlink:to="loc_fmbmProceedsFromChangeInDeposits" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividends" xlink:label="loc_us-gaapPaymentsOfDividends" />
    <link:calculationArc order="33" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" xlink:to="loc_us-gaapPaymentsOfDividends" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaapProceedsFromIssuanceOfCommonStock" />
    <link:calculationArc order="34" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" xlink:to="loc_us-gaapProceedsFromIssuanceOfCommonStock" xlink:type="arc" weight="1" />
    <link:loc xlink:type="locator" xlink:href="fmbm-20260630.xsd#fmbm_RepurchaseOfSharesForTaxWithholding" xlink:label="loc_fmbmRepurchaseOfSharesForTaxWithholding" />
    <link:calculationArc order="35" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" xlink:to="loc_fmbmRepurchaseOfSharesForTaxWithholding" xlink:type="arc" weight="-1" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:label="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" />
    <link:calculationArc order="36" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="loc_us-gaapNetCashProvidedByUsedInOperatingActivities" xlink:type="arc" weight="1" />
    <link:calculationArc order="37" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="loc_us-gaapNetCashProvidedByUsedInInvestingActivities" xlink:type="arc" weight="1" />
    <link:calculationArc order="38" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:to="loc_us-gaapNetCashProvidedByUsedInFinancingActivities" xlink:type="arc" weight="1" />
  </link:calculationLink>
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/InsiderTradingArrangements" xlink:title="170001 - Disclosure - Insider Trading Arrangements" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SummaryOfSignificantAccountingPolicies" xlink:title="290000 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SECURITIES" xlink:title="330000 - Disclosure - SECURITIES" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/LOANS" xlink:title="330001 - Disclosure - LOANS" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/AllowanceForCreditLosses" xlink:title="330002 - Disclosure - ALLOWANCE FOR CREDIT LOSSES" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/LEASES" xlink:title="842000 - Disclosure - LEASES" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/RegulatoryCapitalMatters" xlink:title="842001 - Disclosure - REGULATORY CAPITAL MATTERS" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/FairValueMeasurements" xlink:title="842002 - Disclosure - FAIR VALUE MEASUREMENTS" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SubsequentEvents" xlink:title="870000 - Disclosure - SUBSEQUENT EVENTS" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:title="870001 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SecuritiesTables" xlink:title="870002 - Disclosure - SECURITIES (Tables)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/LoansTables" xlink:title="870003 - Disclosure - LOANS (Tables)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/AllowanceForCreditLossesTables" xlink:title="870004 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Tables)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/LeasesTables" xlink:title="870005 - Disclosure - LEASES (Tables)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/RegulatoryMattersTables" xlink:title="870006 - Disclosure - REGULATORY MATTERS (Tables)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/FairValueMeasurementsTables" xlink:title="870007 - Disclosure - FAIR VALUE MEASUREMENTS (Tables)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:title="870008 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details Narrative)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SecuritiesDetails" xlink:title="870009 - Disclosure - SECURITIES (Details)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SecuritiesDetails1" xlink:title="870010 - Disclosure - SECURITIES (Details 1)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SecuritiesDetails2" xlink:title="870011 - Disclosure - SECURITIES (Details 2)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SecuritiesDetails3" xlink:title="870012 - Disclosure - SECURITIES (Details 3)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/SecuritiesDetailsNarrative" xlink:title="870013 - Disclosure - SECURITIES (Details Narrative)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/LoansDetails" xlink:title="870014 - Disclosure - LOANS (Details)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/LoansDetailsNarrative" xlink:title="870015 - Disclosure - LOANS (Details Narrative)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/AllowanceForCreditLossesDetails" xlink:title="870016 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Details)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/AllowanceForCreditLossesDetails1" xlink:title="870017 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Details 1)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/AllowanceForCreditLossesDetails2" xlink:title="870018 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Details 2)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/AllowanceForCreditLossesDetails3" xlink:title="870019 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Details 3)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/AllowanceForCreditLossesDetails4" xlink:title="870020 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Details 4)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/AllowanceForCreditLossesDetails5" xlink:title="870021 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Details 5)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/AllowanceForCreditLossesDetails6" xlink:title="870022 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Details 6)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/AllowanceForCreditLossesDetailsNarrative" xlink:title="870023 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Details Narrative)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/LeasesDetails" xlink:title="870024 - Disclosure - LEASES (Details)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/LeasesDetails1" xlink:title="870025 - Disclosure - LEASES (Details 1)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/RegulatoryMattersDetails" xlink:title="870026 - Disclosure - REGULATORY MATTERS (Details)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/FairValueMeasurementsDetails" xlink:title="870027 - Disclosure - FAIR VALUE MEASUREMENTS (Details)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/FairValueMeasurementsDetails1" xlink:title="870028 - Disclosure - FAIR VALUE MEASUREMENTS (Details 1)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/FairValueMeasurementsDetails2" xlink:title="870029 - Disclosure - FAIR VALUE MEASUREMENTS (Details 2)" />
  <link:calculationLink xlink:type="extended" xlink:role="http://fmbm.com/role/FairValueMeasurementsDetails3" xlink:title="870030 - Disclosure - FAIR VALUE MEASUREMENTS (Details 3)" />
</link:linkbase>
