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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019fd855-04ca-7c8a-9bbb-809bd3577884,g:012ba39e-94e9-4346-9546-e8783f6b88d5-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.farmermac.com/role/CONSOLIDATEDBALANCESHEETSunaudited" xlink:type="simple" xlink:href="agm-20260930.xsd#CONSOLIDATEDBALANCESHEETSunaudited"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/CONSOLIDATEDBALANCESHEETSunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019fd855-0a24-7a28-9be8-02f110a863a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd855-0a24-75e0-8960-4b8afa1549f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_019fd855-0a24-7a28-9be8-02f110a863a2" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd855-0a24-75e0-8960-4b8afa1549f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0a24-7c6d-adc0-8a47155ab772" xlink:href="agm-20260930.xsd#agm_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_019fd855-0a24-7a28-9be8-02f110a863a2" xlink:to="loc_agm_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0a24-7c6d-adc0-8a47155ab772" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_019fd855-0a24-76b1-b013-3bef90de9420" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_019fd855-0a24-7a28-9be8-02f110a863a2" xlink:to="loc_us-gaap_OtherInvestments_019fd855-0a24-76b1-b013-3bef90de9420" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019fd855-0a24-78ad-b4a8-62d8d5ea9cc5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtNetOfHedgingAdjustments_019fd855-0a24-7ab8-a988-5bc4467a1f02" xlink:href="agm-20260930.xsd#agm_LongTermDebtNetOfHedgingAdjustments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd855-0a24-78ad-b4a8-62d8d5ea9cc5" xlink:to="loc_agm_LongTermDebtNetOfHedgingAdjustments_019fd855-0a24-7ab8-a988-5bc4467a1f02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LiabilitiesHeldInTrust_019fd855-0a24-77fb-a9f3-7902257635f1" xlink:href="agm-20260930.xsd#agm_LiabilitiesHeldInTrust"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd855-0a24-78ad-b4a8-62d8d5ea9cc5" xlink:to="loc_agm_LiabilitiesHeldInTrust_019fd855-0a24-77fb-a9f3-7902257635f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019fd855-0a24-7ada-ad77-a9598e9b6520" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd855-0a24-78ad-b4a8-62d8d5ea9cc5" xlink:to="loc_us-gaap_DerivativeLiabilities_019fd855-0a24-7ada-ad77-a9598e9b6520" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_019fd855-0a24-7300-b7ba-d1903b96e1e9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd855-0a24-78ad-b4a8-62d8d5ea9cc5" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_019fd855-0a24-7300-b7ba-d1903b96e1e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuarantyLiabilities_019fd855-0a24-78e5-9e8e-8ffca9632eb6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuarantyLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd855-0a24-78ad-b4a8-62d8d5ea9cc5" xlink:to="loc_us-gaap_GuarantyLiabilities_019fd855-0a24-78e5-9e8e-8ffca9632eb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_019fd855-0a24-72c2-a6b7-2210c658d140" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd855-0a24-78ad-b4a8-62d8d5ea9cc5" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_019fd855-0a24-72c2-a6b7-2210c658d140" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a24-7a0c-ac34-19ef659225c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0a24-7a23-8ff9-4d214086c400" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a24-7a0c-ac34-19ef659225c2" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0a24-7a23-8ff9-4d214086c400" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossHeldInTrust_019fd855-0a24-7577-b9ad-502d5c82b10f" xlink:href="agm-20260930.xsd#agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossHeldInTrust"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a24-7a0c-ac34-19ef659225c2" xlink:to="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossHeldInTrust_019fd855-0a24-7577-b9ad-502d5c82b10f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_01a15e14-68b2-7522-ad3f-778520961b61" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a24-7a0c-ac34-19ef659225c2" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_01a15e14-68b2-7522-ad3f-778520961b61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019fd855-0a24-7718-8764-4901519b99a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019fd855-0a24-71d5-b8ac-c3126f47c907" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd855-0a24-7718-8764-4901519b99a9" xlink:to="loc_us-gaap_PreferredStockValue_019fd855-0a24-71d5-b8ac-c3126f47c907" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019fd855-0a24-76db-b1ca-758251133bca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd855-0a24-7718-8764-4901519b99a9" xlink:to="loc_us-gaap_CommonStockValue_019fd855-0a24-76db-b1ca-758251133bca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019fd855-0a24-7196-8036-61c4e092245e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd855-0a24-7718-8764-4901519b99a9" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019fd855-0a24-7196-8036-61c4e092245e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019fd855-0a24-7a0f-a57a-bc2e18ab0b06" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd855-0a24-7718-8764-4901519b99a9" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019fd855-0a24-7a0f-a57a-bc2e18ab0b06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019fd855-0a24-7bb9-8247-0d2f66afdd6d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd855-0a24-7718-8764-4901519b99a9" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019fd855-0a24-7bb9-8247-0d2f66afdd6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd855-0a24-72d8-8bb6-9c8976492968" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019fd855-0a24-7398-a924-cd80b17fbe73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd855-0a24-72d8-8bb6-9c8976492968" xlink:to="loc_us-gaap_Liabilities_019fd855-0a24-7398-a924-cd80b17fbe73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019fd855-0a24-745e-8d8e-d86c6bb6b288" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd855-0a24-72d8-8bb6-9c8976492968" xlink:to="loc_us-gaap_StockholdersEquity_019fd855-0a24-745e-8d8e-d86c6bb6b288" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019fd855-0a24-7a7a-bc65-7fc0e1a38825" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd855-0a24-72d8-8bb6-9c8976492968" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019fd855-0a24-7a7a-bc65-7fc0e1a38825" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019fd855-0a24-779a-9815-15fd9f1017f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a24-7e1a-9e8c-24c75af2aa1e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0a24-779a-9815-15fd9f1017f6" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a24-7e1a-9e8c-24c75af2aa1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019fd855-0a24-7930-b21a-9d373f058a1b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0a24-779a-9815-15fd9f1017f6" xlink:to="loc_us-gaap_DerivativeAssets_019fd855-0a24-7930-b21a-9d373f058a1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_019fd855-0a24-72dd-afdf-5a7756b19853" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestReceivable"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0a24-779a-9815-15fd9f1017f6" xlink:to="loc_us-gaap_InterestReceivable_019fd855-0a24-72dd-afdf-5a7756b19853" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuarantyAssets_019fd855-0a24-7f2b-a9ed-71b4fa9ec365" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuarantyAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0a24-779a-9815-15fd9f1017f6" xlink:to="loc_us-gaap_GuarantyAssets_019fd855-0a24-7f2b-a9ed-71b4fa9ec365" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_019fd855-0a24-7caf-85f2-1893d8ddadeb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0a24-779a-9815-15fd9f1017f6" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_019fd855-0a24-7caf-85f2-1893d8ddadeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssets_019fd855-0a24-7475-8f44-390cc57b9fcf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidExpenseAndOtherAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0a24-779a-9815-15fd9f1017f6" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssets_019fd855-0a24-7475-8f44-390cc57b9fcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019fd855-0a24-7c61-9157-83c6d8d83dca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0a24-779a-9815-15fd9f1017f6" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019fd855-0a24-7c61-9157-83c6d8d83dca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019fd855-0a24-79d8-bd39-e81d7dfd7d54" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0a24-779a-9815-15fd9f1017f6" xlink:to="loc_us-gaap_Investments_019fd855-0a24-79d8-bd39-e81d7dfd7d54" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSunaudited" xlink:type="simple" xlink:href="agm-20260930.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONSunaudited"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019fd855-0a24-7766-b25a-6961fc38ded4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019fd855-0a24-7aed-90b6-21879c1694d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019fd855-0a24-7766-b25a-6961fc38ded4" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_019fd855-0a24-7aed-90b6-21879c1694d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_019fd855-0a24-7c6e-8acd-5a1243236be2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019fd855-0a24-7766-b25a-6961fc38ded4" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_019fd855-0a24-7c6e-8acd-5a1243236be2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019fd855-0a24-77e9-a61a-561d94a6e800" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019fd855-0a24-7bcb-8528-a86d7fd509a1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019fd855-0a24-77e9-a61a-561d94a6e800" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019fd855-0a24-7bcb-8528-a86d7fd509a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecurities_019fd855-0a24-7043-aa1c-6e39ca645211" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019fd855-0a24-77e9-a61a-561d94a6e800" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecurities_019fd855-0a24-7043-aa1c-6e39ca645211" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019fd855-0a24-771a-bec6-69a74c04144f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019fd855-0a24-7321-a6d4-a757fce31398" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019fd855-0a24-771a-bec6-69a74c04144f" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_019fd855-0a24-7321-a6d4-a757fce31398" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019fd855-0a24-76ca-840d-3e0735af5d44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019fd855-0a24-771a-bec6-69a74c04144f" xlink:to="loc_us-gaap_InterestExpenseOperating_019fd855-0a24-76ca-840d-3e0735af5d44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019fd855-0a24-75e2-8bb1-ca74b6f7eb7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd855-0a24-7dac-be48-dd7b0163588a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019fd855-0a24-75e2-8bb1-ca74b6f7eb7b" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd855-0a24-7dac-be48-dd7b0163588a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019fd855-0a24-730e-8c91-a37f717d95d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019fd855-0a24-75e2-8bb1-ca74b6f7eb7b" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019fd855-0a24-730e-8c91-a37f717d95d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd855-0a24-7b7b-ba6d-d55929a2d4aa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019fd855-0a24-71f2-baef-d9ea03e1a6e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd855-0a24-7b7b-ba6d-d55929a2d4aa" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019fd855-0a24-71f2-baef-d9ea03e1a6e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019fd855-0a24-7d90-8bbd-34a15ff4cad8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd855-0a24-7b7b-ba6d-d55929a2d4aa" xlink:to="loc_us-gaap_NoninterestIncome_019fd855-0a24-7d90-8bbd-34a15ff4cad8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_019fd855-0a24-7da5-9fc1-790880ac4252" xlink:href="agm-20260930.xsd#agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd855-0a24-7b7b-ba6d-d55929a2d4aa" xlink:to="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_019fd855-0a24-7da5-9fc1-790880ac4252" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_019fd855-0a24-71e9-b723-e267b4f783c2" xlink:href="agm-20260930.xsd#agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_019fd855-0a24-7c10-950c-1e636d911eda" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_019fd855-0a24-71e9-b723-e267b4f783c2" xlink:to="loc_us-gaap_LaborAndRelatedExpense_019fd855-0a24-7c10-950c-1e636d911eda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_019fd855-0a24-7a87-8a3c-c7af4e425e0b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_019fd855-0a24-71e9-b723-e267b4f783c2" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_019fd855-0a24-7a87-8a3c-c7af4e425e0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_RegulatoryFees_019fd855-0a24-789c-92e5-8cbe79653a5b" xlink:href="agm-20260930.xsd#agm_RegulatoryFees"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_019fd855-0a24-71e9-b723-e267b4f783c2" xlink:to="loc_agm_RegulatoryFees_019fd855-0a24-789c-92e5-8cbe79653a5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019fd855-0a24-7b42-8c4c-99e28da5be15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019fd855-0a24-7ff1-96d8-490e6b0fa5df" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019fd855-0a24-7b42-8c4c-99e28da5be15" xlink:to="loc_us-gaap_NetIncomeLoss_019fd855-0a24-7ff1-96d8-490e6b0fa5df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_019fd855-0a24-7376-8433-10f051030b52" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019fd855-0a24-7b42-8c4c-99e28da5be15" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_019fd855-0a24-7376-8433-10f051030b52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019fd855-0a24-71e3-8cf6-ea61b44ac86f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions_019fd855-0a24-75eb-86c2-31f0de53ff8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019fd855-0a24-71e3-8cf6-ea61b44ac86f" xlink:to="loc_us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions_019fd855-0a24-75eb-86c2-31f0de53ff8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_019fd855-0a24-7cb4-9236-af8ff54b79c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019fd855-0a24-71e3-8cf6-ea61b44ac86f" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_019fd855-0a24-7cb4-9236-af8ff54b79c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019fd855-0a24-75ef-b435-540480a82700" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019fd855-0a24-71e3-8cf6-ea61b44ac86f" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019fd855-0a24-75ef-b435-540480a82700" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEunaudited" xlink:type="simple" xlink:href="agm-20260930.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEunaudited"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd855-0a24-74fa-9951-b7acf84e2bda" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd855-0a24-7e93-a51c-396030caccba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd855-0a24-74fa-9951-b7acf84e2bda" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd855-0a24-7e93-a51c-396030caccba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019fd855-0a24-7b5d-90ad-699d410e04ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd855-0a24-74fa-9951-b7acf84e2bda" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019fd855-0a24-7b5d-90ad-699d410e04ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd855-0a24-7274-81bc-4e47daa6b177" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_OtherComprehensiveIncomeLossHeldToMaturitySecuritiesBeforeTax_019fd855-0a24-7b84-b9d5-b217e2c5ecc0" xlink:href="agm-20260930.xsd#agm_OtherComprehensiveIncomeLossHeldToMaturitySecuritiesBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd855-0a24-7274-81bc-4e47daa6b177" xlink:to="loc_agm_OtherComprehensiveIncomeLossHeldToMaturitySecuritiesBeforeTax_019fd855-0a24-7b84-b9d5-b217e2c5ecc0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_019fd855-0a24-766e-b806-98e6355097f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd855-0a24-7274-81bc-4e47daa6b177" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_019fd855-0a24-766e-b806-98e6355097f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_019fd855-0a24-72ca-ad75-fa5df6123f65" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd855-0a24-7274-81bc-4e47daa6b177" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_019fd855-0a24-72ca-ad75-fa5df6123f65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019fd855-0a24-7f08-984e-cdf1f56b5fcf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019fd855-0a24-73fc-aa9d-f90a20e0402e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019fd855-0a24-7f08-984e-cdf1f56b5fcf" xlink:to="loc_us-gaap_NetIncomeLoss_019fd855-0a24-73fc-aa9d-f90a20e0402e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd855-0a24-739b-8e64-8d6e004553af" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019fd855-0a24-7f08-984e-cdf1f56b5fcf" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd855-0a24-739b-8e64-8d6e004553af" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSunaudited" xlink:type="simple" xlink:href="agm-20260930.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWSunaudited"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019fd855-0a24-7be6-9d05-22846ff075f8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_NetIncomeLoss_019fd855-0a24-7be6-9d05-22846ff075f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019fd855-0a24-7651-9720-e2b376ec8e4a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019fd855-0a24-7651-9720-e2b376ec8e4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_019fd855-0a24-78c5-afae-1fe79d39f682" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_019fd855-0a24-78c5-afae-1fe79d39f682" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NetChangeInFairValueTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale_019fd855-0a24-7a99-9d4c-85a5a5745e2a" xlink:href="agm-20260930.xsd#agm_NetChangeInFairValueTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_agm_NetChangeInFairValueTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale_019fd855-0a24-7a99-9d4c-85a5a5745e2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_ProvisionForLoanLeaseAndOtherLossesNoncash_019fd855-0a24-7169-8deb-b4065ddede1b" xlink:href="agm-20260930.xsd#agm_ProvisionForLoanLeaseAndOtherLossesNoncash"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_agm_ProvisionForLoanLeaseAndOtherLossesNoncash_019fd855-0a24-7169-8deb-b4065ddede1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019fd855-0a24-720b-90ae-e15dc0596f92" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_ShareBasedCompensation_019fd855-0a24-720b-90ae-e15dc0596f92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToPurchaseLoansHeldForSale_019fd855-0a24-7c99-acae-5d596572396f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToPurchaseLoansHeldForSale"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_PaymentsToPurchaseLoansHeldForSale_019fd855-0a24-7c99-acae-5d596572396f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_019fd855-0a24-7bce-a4a4-a86f1ddcb08a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_019fd855-0a24-7bce-a4a4-a86f1ddcb08a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfLoansHeldForSale_019fd855-0a24-77a9-980f-00c39c58ea52" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromCollectionOfLoansHeldForSale"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_ProceedsFromCollectionOfLoansHeldForSale_019fd855-0a24-77a9-980f-00c39c58ea52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_PaymentsToAcquireTaxCredits_019fd855-0a24-7d5b-8d03-37ff617399ef" xlink:href="agm-20260930.xsd#agm_PaymentsToAcquireTaxCredits"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_agm_PaymentsToAcquireTaxCredits_019fd855-0a24-7d5b-8d03-37ff617399ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_019fd855-0a24-73ad-b485-ac5dc391dabb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_019fd855-0a24-73ad-b485-ac5dc391dabb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_019fd855-0a24-746e-9b0b-c9d5c924f3cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_019fd855-0a24-746e-9b0b-c9d5c924f3cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherReceivables_019fd855-0a24-7e21-97d1-075d77ac9620" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherReceivables"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherReceivables_019fd855-0a24-7e21-97d1-075d77ac9620" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019fd855-0a24-79ad-9a1a-764bfe402678" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019fd855-0a24-79ad-9a1a-764bfe402678" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_019fd855-0a24-7d53-bb09-a659ffdce597" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_019fd855-0a24-7d53-bb09-a659ffdce597" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019fd855-0a24-783a-8806-ee06bc48b0e2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019fd855-0a24-783a-8806-ee06bc48b0e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_01a08ecb-79d7-70da-abe3-6a5934e35090" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7575-9695-0034d9ae48ff" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_01a08ecb-79d7-70da-abe3-6a5934e35090" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019fd855-0a24-73b0-aa65-8a9739faefe9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7c6a-9c0d-0497e43e4c2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019fd855-0a24-73b0-aa65-8a9739faefe9" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd855-0a24-7c6a-9c0d-0497e43e4c2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-7c46-b7b8-cfb536a75c81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019fd855-0a24-73b0-aa65-8a9739faefe9" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-7c46-b7b8-cfb536a75c81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-7612-a9ef-1fe91a6b6dd5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019fd855-0a24-73b0-aa65-8a9739faefe9" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-7612-a9ef-1fe91a6b6dd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-77d8-bb36-8e1d6c3f7ea2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromNotesPayable_019fd855-0a24-7abf-a027-f8e7e2ecf34e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromNotesPayable"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-77d8-bb36-8e1d6c3f7ea2" xlink:to="loc_us-gaap_ProceedsFromNotesPayable_019fd855-0a24-7abf-a027-f8e7e2ecf34e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfTrustPreferredSecurities_019fd855-0a24-788c-b76b-b31056cd28dc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfTrustPreferredSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-77d8-bb36-8e1d6c3f7ea2" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfTrustPreferredSecurities_019fd855-0a24-788c-b76b-b31056cd28dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfNotesPayable_019fd855-0a24-775b-b959-cdf414fa11e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfNotesPayable"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-77d8-bb36-8e1d6c3f7ea2" xlink:to="loc_us-gaap_RepaymentsOfNotesPayable_019fd855-0a24-775b-b959-cdf414fa11e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts_019fd855-0a24-7bab-83a1-b49be144726e" xlink:href="agm-20260930.xsd#agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-77d8-bb36-8e1d6c3f7ea2" xlink:to="loc_agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts_019fd855-0a24-7bab-83a1-b49be144726e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019fd855-0a24-746d-a486-6d2cec2ebcd1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-77d8-bb36-8e1d6c3f7ea2" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019fd855-0a24-746d-a486-6d2cec2ebcd1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019fd855-0a24-7a05-9df1-c3210dfc3af3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-77d8-bb36-8e1d6c3f7ea2" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019fd855-0a24-7a05-9df1-c3210dfc3af3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_019fd855-0a24-701b-8a94-9a8b7f3f0626" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-77d8-bb36-8e1d6c3f7ea2" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_019fd855-0a24-701b-8a94-9a8b7f3f0626" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019fd855-0a24-7df5-9c38-88e7cd434790" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-77d8-bb36-8e1d6c3f7ea2" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019fd855-0a24-7df5-9c38-88e7cd434790" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfOrdinaryDividends_019fd855-0a24-7cf4-9a8d-eeffb28460d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfOrdinaryDividends"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd855-0a24-77d8-bb36-8e1d6c3f7ea2" xlink:to="loc_us-gaap_PaymentsOfOrdinaryDividends_019fd855-0a24-7cf4-9a8d-eeffb28460d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019fd855-0a24-773e-8381-eeb6109b6ac7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019fd855-0a24-773e-8381-eeb6109b6ac7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_019fd855-0a24-7e34-9236-d3877a314512" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireHeldToMaturitySecurities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_019fd855-0a24-7e34-9236-d3877a314512" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireOtherInvestments_019fd855-0a24-79e1-9aea-e9da32291638" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireOtherInvestments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:to="loc_us-gaap_PaymentsToAcquireOtherInvestments_019fd855-0a24-79e1-9aea-e9da32291638" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_019fd855-0a24-7df6-86db-01a701b68612" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireLoansHeldForInvestment"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:to="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_019fd855-0a24-7df6-86db-01a701b68612" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_019fd855-0a24-7852-ab4f-ee547508288c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_019fd855-0a24-7852-ab4f-ee547508288c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities_019fd855-0a24-7f1a-b697-169ef400b801" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities_019fd855-0a24-7f1a-b697-169ef400b801" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_019fd855-0a24-74a1-9786-fd05afb09edf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:to="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_019fd855-0a24-74a1-9786-fd05afb09edf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireLoansReceivable_019fd855-0a24-75c3-8a38-a2f4889e3edc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireLoansReceivable"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:to="loc_us-gaap_PaymentsToAcquireLoansReceivable_019fd855-0a24-75c3-8a38-a2f4889e3edc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromMortgageServicingRights_019fd855-0a24-761d-b304-b193c71cd975" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForProceedsFromMortgageServicingRights"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:to="loc_us-gaap_PaymentsForProceedsFromMortgageServicingRights_019fd855-0a24-761d-b304-b193c71cd975" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_01a17707-bddf-71c9-a75c-8348b0d4c211" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd855-0a24-76dd-a424-9476dde329a6" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_01a17707-bddf-71c9-a75c-8348b0d4c211" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofEarningsPerCommonShareDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofEarningsPerCommonShareDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofEarningsPerCommonShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019fd855-0a24-74ed-ac46-22f194d63b9d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019fd855-0a24-7d53-a6bc-401186a96417" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019fd855-0a24-74ed-ac46-22f194d63b9d" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019fd855-0a24-7d53-a6bc-401186a96417" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019fd855-0a24-74be-9292-a97d4943dff4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019fd855-0a24-74ed-ac46-22f194d63b9d" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019fd855-0a24-74be-9292-a97d4943dff4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_019fd855-0a24-7a48-b5c4-efca00d9ba96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_019fd855-0a24-7472-9666-4c8d0e484445" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_019fd855-0a24-7a48-b5c4-efca00d9ba96" xlink:to="loc_us-gaap_EarningsPerShareBasic_019fd855-0a24-7472-9666-4c8d0e484445" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019fd855-0a24-75e9-aff0-5e91588cd535" xlink:href="agm-20260930.xsd#agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_019fd855-0a24-7a48-b5c4-efca00d9ba96" xlink:to="loc_agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019fd855-0a24-75e9-aff0-5e91588cd535" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_019fd855-0a24-7e8c-9a73-36e158026951" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019fd855-0a24-71b8-9092-734318cba866" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_019fd855-0a24-7e8c-9a73-36e158026951" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019fd855-0a24-71b8-9092-734318cba866" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofAccumulatedOtherComprehensiveIncomeNetofTaxDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofAccumulatedOtherComprehensiveIncomeNetofTaxDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofAccumulatedOtherComprehensiveIncomeNetofTaxDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd855-0a24-7bfe-9ed5-5b7c4ccf666b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019fd855-0a24-7607-82c5-b6f065cbd92a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd855-0a24-7bfe-9ed5-5b7c4ccf666b" xlink:to="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019fd855-0a24-7607-82c5-b6f065cbd92a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019fd855-0a24-7d4d-adbb-032de212c7f7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd855-0a24-7bfe-9ed5-5b7c4ccf666b" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019fd855-0a24-7d4d-adbb-032de212c7f7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofReclassificationoutofAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofReclassificationoutofAccumulatedOtherComprehensiveIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofReclassificationoutofAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019fd855-0a24-7bda-bcb9-cb9bafd60e5c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019fd855-0a24-754a-9288-17a22b0d35ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019fd855-0a24-7bda-bcb9-cb9bafd60e5c" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019fd855-0a24-754a-9288-17a22b0d35ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_019fd855-0a24-732c-bea2-a1969c3c1b5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019fd855-0a24-7bda-bcb9-cb9bafd60e5c" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_019fd855-0a24-732c-bea2-a1969c3c1b5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019fd855-0a24-7e96-a2a1-4fbd549771f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_019fd855-0a24-7dd6-bdc9-c1d60313af40" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019fd855-0a24-7e96-a2a1-4fbd549771f3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_019fd855-0a24-7dd6-bdc9-c1d60313af40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_019fd855-0a24-70f9-8c89-0a504c737e06" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019fd855-0a24-7e96-a2a1-4fbd549771f3" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_019fd855-0a24-70f9-8c89-0a504c737e06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd855-0a24-7f74-a89d-da0241a487f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019fd855-0a24-7ead-8d27-6888de5d3919" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd855-0a24-7f74-a89d-da0241a487f3" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019fd855-0a24-7ead-8d27-6888de5d3919" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019fd855-0a24-7bdb-8fb3-859feca09a5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd855-0a24-7f74-a89d-da0241a487f3" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019fd855-0a24-7bdb-8fb3-859feca09a5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019fd855-0a24-74c1-8171-038de0ccacd0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019fd855-0a24-7caa-b283-07b822b7926e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019fd855-0a24-74c1-8171-038de0ccacd0" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019fd855-0a24-7caa-b283-07b822b7926e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_019fd855-0a24-76f5-9d83-3ea7d2682a7c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019fd855-0a24-74c1-8171-038de0ccacd0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_019fd855-0a24-76f5-9d83-3ea7d2682a7c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/INVESTMENTSECURITIESScheduleofAFSSecuritiesMaturitiesDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#INVESTMENTSECURITIESScheduleofAFSSecuritiesMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/INVESTMENTSECURITIESScheduleofAFSSecuritiesMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd855-0a24-71a7-b4cc-c66a62b9bce6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019fd855-0a24-7854-b698-b7c49b895f3a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd855-0a24-71a7-b4cc-c66a62b9bce6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019fd855-0a24-7854-b698-b7c49b895f3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019fd855-0a24-7f96-b3c0-3c984c42f080" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd855-0a24-71a7-b4cc-c66a62b9bce6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019fd855-0a24-7f96-b3c0-3c984c42f080" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019fd855-0a24-78d7-97af-70b20d115d7c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd855-0a24-71a7-b4cc-c66a62b9bce6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019fd855-0a24-78d7-97af-70b20d115d7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019fd855-0a24-7534-b0a7-5b822f658c6a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd855-0a24-71a7-b4cc-c66a62b9bce6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019fd855-0a24-7534-b0a7-5b822f658c6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0a24-7d6e-89e8-e1e5766b3881" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019fd855-0a24-72d9-b548-4a2a76b550b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0a24-7d6e-89e8-e1e5766b3881" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019fd855-0a24-72d9-b548-4a2a76b550b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019fd855-0a24-7b46-8904-29abe17b768f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0a24-7d6e-89e8-e1e5766b3881" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019fd855-0a24-7b46-8904-29abe17b768f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019fd855-0a24-7ccc-935f-ea5cac5bbae4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0a24-7d6e-89e8-e1e5766b3881" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019fd855-0a24-7ccc-935f-ea5cac5bbae4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019fd855-0a24-7ff1-a8fd-42c45939361b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0a24-7d6e-89e8-e1e5766b3881" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019fd855-0a24-7ff1-a8fd-42c45939361b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/INVESTMENTSECURITIESScheduleofHTMSecuritiesMaturitiesDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#INVESTMENTSECURITIESScheduleofHTMSecuritiesMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/INVESTMENTSECURITIESScheduleofHTMSecuritiesMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDate_019fd855-0a25-7a68-9d61-2c94781768bb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDate"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne_019fd855-0a25-78c2-9666-0d2809c5d646" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDate_019fd855-0a25-7a68-9d61-2c94781768bb" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne_019fd855-0a25-78c2-9666-0d2809c5d646" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive_019fd855-0a25-7539-aa36-a11df41a6739" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDate_019fd855-0a25-7a68-9d61-2c94781768bb" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive_019fd855-0a25-7539-aa36-a11df41a6739" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10_019fd855-0a25-71c5-8ad4-60a4b188792e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDate_019fd855-0a25-7a68-9d61-2c94781768bb" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10_019fd855-0a25-71c5-8ad4-60a4b188792e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10_019fd855-0a25-7678-8441-a788d4d85b21" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDate_019fd855-0a25-7a68-9d61-2c94781768bb" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10_019fd855-0a25-7678-8441-a788d4d85b21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a25-76c0-bd18-45847de7320c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_019fd855-0a25-720a-982a-35a0f49deb98" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a25-76c0-bd18-45847de7320c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_019fd855-0a25-720a-982a-35a0f49deb98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019fd855-0a25-7ae8-9d71-dd2f3e3d4bec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a25-76c0-bd18-45847de7320c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019fd855-0a25-7ae8-9d71-dd2f3e3d4bec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019fd855-0a25-71a8-a28d-1e47415863f5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a25-76c0-bd18-45847de7320c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019fd855-0a25-71a8-a28d-1e47415863f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_019fd855-0a25-76de-b68a-5d6f2be01716" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a25-76c0-bd18-45847de7320c" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_019fd855-0a25-76de-b68a-5d6f2be01716" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofNetIncomeExpenseRecognizedDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#FINANCIALDERIVATIVESScheduleofNetIncomeExpenseRecognizedDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofNetIncomeExpenseRecognizedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_019fd855-0a25-73b7-93db-97ddb693bbaf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_019fd855-0a25-7d0d-baa9-414d682db655" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_019fd855-0a25-73b7-93db-97ddb693bbaf" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_019fd855-0a25-7d0d-baa9-414d682db655" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_019fd855-0a25-70a6-b599-c54dae63f8b9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_019fd855-0a25-73b7-93db-97ddb693bbaf" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_019fd855-0a25-70a6-b599-c54dae63f8b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_GainLossOnFairValueHedgesDerivativeInterestSettlements_019fd855-0a25-7924-948b-e0841247cabe" xlink:href="agm-20260930.xsd#agm_GainLossOnFairValueHedgesDerivativeInterestSettlements"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_019fd855-0a25-73b7-93db-97ddb693bbaf" xlink:to="loc_agm_GainLossOnFairValueHedgesDerivativeInterestSettlements_019fd855-0a25-7924-948b-e0841247cabe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_019fd855-0a25-78a5-a1ca-d79e47d66b2d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_019fd855-0a25-7182-af05-0e08643969e5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_019fd855-0a25-78a5-a1ca-d79e47d66b2d" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_019fd855-0a25-7182-af05-0e08643969e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome_019fd855-0a25-7f51-b180-f95ef7fdd6ae" xlink:href="agm-20260930.xsd#agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019fd855-0a25-7693-add7-48d3ce905af7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome_019fd855-0a25-7f51-b180-f95ef7fdd6ae" xlink:to="loc_us-gaap_InterestExpenseOperating_019fd855-0a25-7693-add7-48d3ce905af7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_019fd855-0a25-7f0f-bdb9-0c6b36deaf61" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome_019fd855-0a25-7f51-b180-f95ef7fdd6ae" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_019fd855-0a25-7f0f-bdb9-0c6b36deaf61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019fd855-0a25-7cc5-a4ec-e424ec469786" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome_019fd855-0a25-7f51-b180-f95ef7fdd6ae" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019fd855-0a25-7cc5-a4ec-e424ec469786" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecurities_019fd855-0a25-7528-b53e-5e941befdefd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome_019fd855-0a25-7f51-b180-f95ef7fdd6ae" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecurities_019fd855-0a25-7528-b53e-5e941befdefd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofFairValueofFinancialAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#FINANCIALDERIVATIVESScheduleofFairValueofFinancialAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofFairValueofFinancialAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_agm_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount_019fd855-0a25-7c46-97ab-ede9b34b8022" xlink:href="agm-20260930.xsd#agm_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_019fd855-0a25-75dc-a1bd-2a94a43e303b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount_019fd855-0a25-7c46-97ab-ede9b34b8022" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_019fd855-0a25-75dc-a1bd-2a94a43e303b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019fd855-0a25-72cf-b003-6b07c93d72e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeCollateralRightToReclaimCash"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount_019fd855-0a25-7c46-97ab-ede9b34b8022" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019fd855-0a25-72cf-b003-6b07c93d72e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_019fd855-0a25-78f2-8dde-389b7d1d3d60" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount_019fd855-0a25-7c46-97ab-ede9b34b8022" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_019fd855-0a25-78f2-8dde-389b7d1d3d60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_019fd855-0a25-7ac3-94cd-1359f73a1e59" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount_019fd855-0a25-7c46-97ab-ede9b34b8022" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_019fd855-0a25-7ac3-94cd-1359f73a1e59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_019fd855-0a25-72b6-81e4-7b0c7a3e1b62" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019fd855-0a25-79c0-933d-27e35ee7e365" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_019fd855-0a25-72b6-81e4-7b0c7a3e1b62" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019fd855-0a25-79c0-933d-27e35ee7e365" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019fd855-0a25-7426-b2fd-2d17e3d55d1c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_019fd855-0a25-72b6-81e4-7b0c7a3e1b62" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019fd855-0a25-7426-b2fd-2d17e3d55d1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_019fd855-0a25-77f1-ab26-81211112236f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019fd855-0a25-7b1c-a248-5506e89a3e11" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_019fd855-0a25-77f1-ab26-81211112236f" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019fd855-0a25-7b1c-a248-5506e89a3e11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019fd855-0a25-7d02-a7b4-723549d2cdc5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_019fd855-0a25-77f1-ab26-81211112236f" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019fd855-0a25-7d02-a7b4-723549d2cdc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_019fd855-0a25-737b-b0a7-f815f9125c66" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_019fd855-0a25-7c2a-8feb-e23c91fb585a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_019fd855-0a25-737b-b0a7-f815f9125c66" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_019fd855-0a25-7c2a-8feb-e23c91fb585a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019fd855-0a25-7734-8784-ef7362bb1da1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeCollateralObligationToReturnCash"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_019fd855-0a25-737b-b0a7-f815f9125c66" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019fd855-0a25-7734-8784-ef7362bb1da1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_019fd855-0a25-7603-b38f-e34fafb1381b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_019fd855-0a25-737b-b0a7-f815f9125c66" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_019fd855-0a25-7603-b38f-e34fafb1381b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_019fd855-0a25-7f2e-a99b-a3842540c783" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_019fd855-0a25-737b-b0a7-f815f9125c66" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_019fd855-0a25-7f2e-a99b-a3842540c783" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/LOANSScheduleofCompositionofLoanBalancesDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#LOANSScheduleofCompositionofLoanBalancesDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LOANSScheduleofCompositionofLoanBalancesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a25-7c70-8e4d-e8b2fb4a35d6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019fd855-0a25-744d-a80d-c0e9162e9362" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a25-7c70-8e4d-e8b2fb4a35d6" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019fd855-0a25-744d-a80d-c0e9162e9362" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure_019fd855-0a25-7665-8cf6-7a5986aa2c2c" xlink:href="agm-20260930.xsd#agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd855-0a25-7c70-8e4d-e8b2fb4a35d6" xlink:to="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure_019fd855-0a25-7665-8cf6-7a5986aa2c2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure_019fd855-0a25-7b02-add8-ebbdfee1bb37" xlink:href="agm-20260930.xsd#agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019fd855-0a25-74bc-a73b-d8aee3680797" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure_019fd855-0a25-7b02-add8-ebbdfee1bb37" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019fd855-0a25-74bc-a73b-d8aee3680797" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount_019fd855-0a25-7d96-a636-f83806dcde96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure_019fd855-0a25-7b02-add8-ebbdfee1bb37" xlink:to="loc_us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount_019fd855-0a25-7d96-a636-f83806dcde96" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/LOANSScheduleofFinancingReceivablesCreditQualityIndicatorsDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#LOANSScheduleofFinancingReceivablesCreditQualityIndicatorsDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LOANSScheduleofFinancingReceivablesCreditQualityIndicatorsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019fd855-0ade-73fa-9a83-3f2e1dabc304" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_019fd855-0ade-7ae4-870c-3e013690896e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019fd855-0ade-73fa-9a83-3f2e1dabc304" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_019fd855-0ade-7ae4-870c-3e013690896e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_019fd855-0ade-7a66-a137-85af07bba084" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019fd855-0ade-73fa-9a83-3f2e1dabc304" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_019fd855-0ade-7a66-a137-85af07bba084" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_019fd855-0ade-7456-b8ea-13ec3c58e3fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019fd855-0ade-73fa-9a83-3f2e1dabc304" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_019fd855-0ade-7456-b8ea-13ec3c58e3fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_019fd855-0ade-746d-b4a8-c5b860fec4fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019fd855-0ade-73fa-9a83-3f2e1dabc304" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_019fd855-0ade-746d-b4a8-c5b860fec4fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_019fd855-0ade-7cd0-a268-e37bb7788dd7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019fd855-0ade-73fa-9a83-3f2e1dabc304" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_019fd855-0ade-7cd0-a268-e37bb7788dd7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_019fd855-0ade-7d5d-a9c1-64a0b8446d9b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019fd855-0ade-73fa-9a83-3f2e1dabc304" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_019fd855-0ade-7d5d-a9c1-64a0b8446d9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_019fd855-0ade-7be2-be96-ed8a73598231" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019fd855-0ade-73fa-9a83-3f2e1dabc304" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_019fd855-0ade-7be2-be96-ed8a73598231" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0ade-745c-9e5b-033164798855" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019fd855-0ade-7ce7-8c7a-fb9da9942cce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0ade-745c-9e5b-033164798855" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019fd855-0ade-7ce7-8c7a-fb9da9942cce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_019fd855-0ade-7271-886c-996e5b7fba75" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0ade-745c-9e5b-033164798855" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_019fd855-0ade-7271-886c-996e5b7fba75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_019fd855-0ade-727d-810e-cb1eb8ec2665" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolving"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0ade-745c-9e5b-033164798855" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_019fd855-0ade-727d-810e-cb1eb8ec2665" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_019fd855-0ade-7c37-b3ef-df19729b4304" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0ade-745c-9e5b-033164798855" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_019fd855-0ade-7c37-b3ef-df19729b4304" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_019fd855-0ade-7a34-a0dd-6a41d9cc0bdc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0ade-745c-9e5b-033164798855" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_019fd855-0ade-7a34-a0dd-6a41d9cc0bdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019fd855-0ade-73b1-845d-a5f7adab9913" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0ade-745c-9e5b-033164798855" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019fd855-0ade-73b1-845d-a5f7adab9913" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_019fd855-0ade-76e7-8c0c-f163a1597340" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd855-0ade-745c-9e5b-033164798855" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_019fd855-0ade-76e7-8c0c-f163a1597340" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/NOTESPAYABLEBorrowingsDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#NOTESPAYABLEBorrowingsDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/NOTESPAYABLEBorrowingsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtNetOfHedgingAdjustments_019fd855-0ade-757a-917a-ff5817525ade" xlink:href="agm-20260930.xsd#agm_LongTermDebtNetOfHedgingAdjustments"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtHedgingAdjustments_019fd855-0ade-743f-a392-648a1dd312e5" xlink:href="agm-20260930.xsd#agm_LongTermDebtHedgingAdjustments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtNetOfHedgingAdjustments_019fd855-0ade-757a-917a-ff5817525ade" xlink:to="loc_agm_LongTermDebtHedgingAdjustments_019fd855-0ade-743f-a392-648a1dd312e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019fd855-0ade-7128-8de4-5b2c55aa5c36" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtNetOfHedgingAdjustments_019fd855-0ade-757a-917a-ff5817525ade" xlink:to="loc_us-gaap_LongTermDebt_019fd855-0ade-7128-8de4-5b2c55aa5c36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019fd855-0ade-77b4-a12b-2678d0ca03c8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019fd855-0ade-7d86-93d4-12cf5be28e99" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019fd855-0ade-77b4-a12b-2678d0ca03c8" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019fd855-0ade-7d86-93d4-12cf5be28e99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019fd855-0ade-7333-8aa2-b4e86afc6149" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019fd855-0ade-77b4-a12b-2678d0ca03c8" xlink:to="loc_us-gaap_LongTermDebtCurrent_019fd855-0ade-7333-8aa2-b4e86afc6149" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019fd855-0ade-7ca4-be96-d44121823ad6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019fd855-0ade-7a89-a0dd-f6212cf6ff94" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtNoncurrent_019fd855-0ade-7ca4-be96-d44121823ad6" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019fd855-0ade-7a89-a0dd-f6212cf6ff94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_019fd855-0ade-75bc-85f2-91f27b89916e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtNoncurrent_019fd855-0ade-7ca4-be96-d44121823ad6" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_019fd855-0ade-75bc-85f2-91f27b89916e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_019fd855-0ade-7ce2-ad10-669624e26a9f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtNoncurrent_019fd855-0ade-7ca4-be96-d44121823ad6" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_019fd855-0ade-7ce2-ad10-669624e26a9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_019fd855-0ade-7fb1-99f4-9ceeabd76f0b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtNoncurrent_019fd855-0ade-7ca4-be96-d44121823ad6" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_019fd855-0ade-7fb1-99f4-9ceeabd76f0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019fd855-0ade-7e59-a799-b528d7710aef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtNoncurrent_019fd855-0ade-7ca4-be96-d44121823ad6" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019fd855-0ade-7e59-a799-b528d7710aef" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/NOTESPAYABLECallableMediumTermNotesDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#NOTESPAYABLECallableMediumTermNotesDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/NOTESPAYABLECallableMediumTermNotesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019fd855-0ade-7097-9eda-dfc02f98204f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019fd855-0ade-7d6f-83e8-4b59d92f96b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019fd855-0ade-7097-9eda-dfc02f98204f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019fd855-0ade-7d6f-83e8-4b59d92f96b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtMaturityAfterYearFour_019fd855-0ade-7cd1-a56f-92877cd31f47" xlink:href="agm-20260930.xsd#agm_LongTermDebtMaturityAfterYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019fd855-0ade-7097-9eda-dfc02f98204f" xlink:to="loc_agm_LongTermDebtMaturityAfterYearFour_019fd855-0ade-7cd1-a56f-92877cd31f47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_019fd855-0ade-7ec0-8829-091a7c112608" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019fd855-0ade-7097-9eda-dfc02f98204f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_019fd855-0ade-7ec0-8829-091a7c112608" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_019fd855-0ade-776d-9271-54783c609e5f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019fd855-0ade-7097-9eda-dfc02f98204f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_019fd855-0ade-776d-9271-54783c609e5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019fd855-0ade-7b77-a7dc-d339add128bc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019fd855-0ade-7097-9eda-dfc02f98204f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019fd855-0ade-7b77-a7dc-d339add128bc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/NOTESPAYABLEEarliestInterestResetDateofBorrowingOutstandingDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#NOTESPAYABLEEarliestInterestResetDateofBorrowingOutstandingDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/NOTESPAYABLEEarliestInterestResetDateofBorrowingOutstandingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateReset_019fd855-0ade-716d-a821-b85c75a58516" xlink:href="agm-20260930.xsd#agm_LongTermDebtWithInterestRateReset"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityReminderOfTheFiscalYear_019fd855-0ade-7f3e-80bd-f576e6d4a1d5" xlink:href="agm-20260930.xsd#agm_LongTermDebtWithInterestRateResetMaturityReminderOfTheFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019fd855-0ade-716d-a821-b85c75a58516" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityReminderOfTheFiscalYear_019fd855-0ade-7f3e-80bd-f576e6d4a1d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityYearOne_019fd855-0ade-7654-be80-f7334db0cc59" xlink:href="agm-20260930.xsd#agm_LongTermDebtWithInterestRateResetMaturityYearOne"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019fd855-0ade-716d-a821-b85c75a58516" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityYearOne_019fd855-0ade-7654-be80-f7334db0cc59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityYearTwo_019fd855-0ade-7553-b68a-777d6f3dc0ff" xlink:href="agm-20260930.xsd#agm_LongTermDebtWithInterestRateResetMaturityYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019fd855-0ade-716d-a821-b85c75a58516" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityYearTwo_019fd855-0ade-7553-b68a-777d6f3dc0ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityYearThree_019fd855-0ade-795b-bc1e-5e46005101a9" xlink:href="agm-20260930.xsd#agm_LongTermDebtWithInterestRateResetMaturityYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019fd855-0ade-716d-a821-b85c75a58516" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityYearThree_019fd855-0ade-795b-bc1e-5e46005101a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityYearFour_019fd855-0ade-7889-a952-00a3513d4b6c" xlink:href="agm-20260930.xsd#agm_LongTermDebtWithInterestRateResetMaturityYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019fd855-0ade-716d-a821-b85c75a58516" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityYearFour_019fd855-0ade-7889-a952-00a3513d4b6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityAfterYearFour_019fd855-0ade-7a4c-8cc4-67100d0bf70c" xlink:href="agm-20260930.xsd#agm_LongTermDebtWithInterestRateResetMaturityAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019fd855-0ade-716d-a821-b85c75a58516" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityAfterYearFour_019fd855-0ade-7a4c-8cc4-67100d0bf70c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/FAIRVALUEDISCLOSURESScheduleofFairValueMeasurementsDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#FAIRVALUEDISCLOSURESScheduleofFairValueMeasurementsDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FAIRVALUEDISCLOSURESScheduleofFairValueMeasurementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019fd855-0adf-7002-9564-c536c6a58a5f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd855-0adf-767a-8490-48987f89d951" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019fd855-0adf-7002-9564-c536c6a58a5f" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd855-0adf-767a-8490-48987f89d951" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019fd855-0adf-73c9-9c50-903d39690ab2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019fd855-0adf-7002-9564-c536c6a58a5f" xlink:to="loc_us-gaap_DerivativeAssets_019fd855-0adf-73c9-9c50-903d39690ab2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_019fd855-0adf-75a8-9102-43b7d153dd81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019fd855-0adf-7002-9564-c536c6a58a5f" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_019fd855-0adf-75a8-9102-43b7d153dd81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_019fd855-0adf-734a-918a-7b4552880a31" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019fd855-0adf-7602-9981-00aeb49ab07b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_019fd855-0adf-734a-918a-7b4552880a31" xlink:to="loc_us-gaap_DerivativeLiabilities_019fd855-0adf-7602-9981-00aeb49ab07b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/BUSINESSSEGMENTREPORTINGScheduleofSegmentReportingInformationDetails" xlink:type="simple" xlink:href="agm-20260930.xsd#BUSINESSSEGMENTREPORTINGScheduleofSegmentReportingInformationDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/BUSINESSSEGMENTREPORTINGScheduleofSegmentReportingInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019fd855-0adf-7dad-b957-3aff5ad82773" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_UnallocatedAssets_019fd855-0adf-7d3c-b399-10b8b6ccf5fb" xlink:href="agm-20260930.xsd#agm_UnallocatedAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0adf-7dad-b957-3aff5ad82773" xlink:to="loc_agm_UnallocatedAssets_019fd855-0adf-7d3c-b399-10b8b6ccf5fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_OffBalanceSheetProgramAssets_019fd855-0adf-70b8-b90a-c5c6b0981ab3" xlink:href="agm-20260930.xsd#agm_OffBalanceSheetProgramAssets"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0adf-7dad-b957-3aff5ad82773" xlink:to="loc_agm_OffBalanceSheetProgramAssets_019fd855-0adf-70b8-b90a-c5c6b0981ab3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_OnAndOffBalanceSheetProgramAssetsAtPrincipalBalance_019fd855-0adf-70bc-97bb-6689cb69ecac" xlink:href="agm-20260930.xsd#agm_OnAndOffBalanceSheetProgramAssetsAtPrincipalBalance"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd855-0adf-7dad-b957-3aff5ad82773" xlink:to="loc_agm_OnAndOffBalanceSheetProgramAssetsAtPrincipalBalance_019fd855-0adf-70bc-97bb-6689cb69ecac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NetEffectiveSpread_019fd855-0adf-778d-a8ab-263fcbf5ac1a" xlink:href="agm-20260930.xsd#agm_NetEffectiveSpread"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_ReconcilingAdjustmentsFromNetInterestIncomeToNetEffectiveSpreadNet_019fd855-0adf-70c1-9369-5e63a1e5363b" xlink:href="agm-20260930.xsd#agm_ReconcilingAdjustmentsFromNetInterestIncomeToNetEffectiveSpreadNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_NetEffectiveSpread_019fd855-0adf-778d-a8ab-263fcbf5ac1a" xlink:to="loc_agm_ReconcilingAdjustmentsFromNetInterestIncomeToNetEffectiveSpreadNet_019fd855-0adf-70c1-9369-5e63a1e5363b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019fd855-0adf-7182-ad5c-ade565669ffe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_NetEffectiveSpread_019fd855-0adf-778d-a8ab-263fcbf5ac1a" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_019fd855-0adf-7182-ad5c-ade565669ffe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019fd855-0adf-7e86-ac5a-bb1cc61fca46" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_NetEffectiveSpread_019fd855-0adf-778d-a8ab-263fcbf5ac1a" xlink:to="loc_us-gaap_InterestExpenseOperating_019fd855-0adf-7e86-ac5a-bb1cc61fca46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019fd855-0adf-7447-965a-dd63fb61302c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingOtherItemAmount_019fd855-0adf-7a79-94b3-19783376766f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingOtherItemAmount"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019fd855-0adf-7447-965a-dd63fb61302c" xlink:to="loc_us-gaap_SegmentReportingOtherItemAmount_019fd855-0adf-7a79-94b3-19783376766f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NetEffectsOfDerivativesAndTradingSecurities_019fd855-0adf-7167-9571-065a7d741300" xlink:href="agm-20260930.xsd#agm_NetEffectsOfDerivativesAndTradingSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019fd855-0adf-7447-965a-dd63fb61302c" xlink:to="loc_agm_NetEffectsOfDerivativesAndTradingSecurities_019fd855-0adf-7167-9571-065a7d741300" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_SegmentCoreEarnings_019fd855-0adf-7300-9f25-64626fbbe650" xlink:href="agm-20260930.xsd#agm_SegmentCoreEarnings"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019fd855-0adf-7447-965a-dd63fb61302c" xlink:to="loc_agm_SegmentCoreEarnings_019fd855-0adf-7300-9f25-64626fbbe650" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_IncomeTaxEffectRelatedToReconcilingItems_019fd855-0adf-7db7-a209-51721bd70c0d" xlink:href="agm-20260930.xsd#agm_IncomeTaxEffectRelatedToReconcilingItems"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019fd855-0adf-7447-965a-dd63fb61302c" xlink:to="loc_agm_IncomeTaxEffectRelatedToReconcilingItems_019fd855-0adf-7db7-a209-51721bd70c0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_SegmentCoreEarnings_019fd855-0adf-7235-9ff1-b228e1fc1e44" xlink:href="agm-20260930.xsd#agm_SegmentCoreEarnings"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversalAdjusted_019fd855-0adf-7b80-b66d-c7a506ea2ce8" xlink:href="agm-20260930.xsd#agm_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversalAdjusted"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019fd855-0adf-7235-9ff1-b228e1fc1e44" xlink:to="loc_agm_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversalAdjusted_019fd855-0adf-7b80-b66d-c7a506ea2ce8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissionsAdjusted_019fd855-0adf-7750-b98c-27777e1730e9" xlink:href="agm-20260930.xsd#agm_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissionsAdjusted"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019fd855-0adf-7235-9ff1-b228e1fc1e44" xlink:to="loc_agm_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissionsAdjusted_019fd855-0adf-7750-b98c-27777e1730e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NetEffectiveSpread_019fd855-0adf-7e66-8971-728e591577bb" xlink:href="agm-20260930.xsd#agm_NetEffectiveSpread"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019fd855-0adf-7235-9ff1-b228e1fc1e44" xlink:to="loc_agm_NetEffectiveSpread_019fd855-0adf-7e66-8971-728e591577bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLossesAdjusted_019fd855-0adf-778c-8b3a-0e242e1e7161" xlink:href="agm-20260930.xsd#agm_NoninterestExpenseExcludingLoanLeaseAndOtherLossesAdjusted"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019fd855-0adf-7235-9ff1-b228e1fc1e44" xlink:to="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLossesAdjusted_019fd855-0adf-778c-8b3a-0e242e1e7161" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_OtherNonInterestIncomeExpenseAdjusted_019fd855-0adf-7ffa-aaa4-e1e36c9fe07d" xlink:href="agm-20260930.xsd#agm_OtherNonInterestIncomeExpenseAdjusted"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019fd855-0adf-7235-9ff1-b228e1fc1e44" xlink:to="loc_agm_OtherNonInterestIncomeExpenseAdjusted_019fd855-0adf-7ffa-aaa4-e1e36c9fe07d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_IncomeTaxExpenseBenefitAdjusted_019fd855-0adf-7f97-b900-6b75fc2259c0" xlink:href="agm-20260930.xsd#agm_IncomeTaxExpenseBenefitAdjusted"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019fd855-0adf-7235-9ff1-b228e1fc1e44" xlink:to="loc_agm_IncomeTaxExpenseBenefitAdjusted_019fd855-0adf-7f97-b900-6b75fc2259c0" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
