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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019caf6e-897d-781d-8759-42ef7d04286a,g:0fa2f34b-f1e8-4351-b8e7-115e7d658f34-->
<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-20260331.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_Assets_019caf6e-8e32-791c-bfba-7bdc7919c0da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019caf6e-8e32-78ea-846a-573a5df00915" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-791c-bfba-7bdc7919c0da" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019caf6e-8e32-78ea-846a-573a5df00915" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019caf6e-8e32-7ff4-8f0d-d11a94ead059" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019caf6e-8e32-791c-bfba-7bdc7919c0da" xlink:to="loc_us-gaap_DerivativeAssets_019caf6e-8e32-7ff4-8f0d-d11a94ead059" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_019caf6e-8e32-70fd-a31e-d45d5b78bcb9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-791c-bfba-7bdc7919c0da" xlink:to="loc_us-gaap_InterestReceivable_019caf6e-8e32-70fd-a31e-d45d5b78bcb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuarantyAssets_019caf6e-8e32-7fd2-b8a2-2852f197aa4a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-791c-bfba-7bdc7919c0da" xlink:to="loc_us-gaap_GuarantyAssets_019caf6e-8e32-7fd2-b8a2-2852f197aa4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_019caf6e-8e32-7077-9bb4-c566a242dcde" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-791c-bfba-7bdc7919c0da" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_019caf6e-8e32-7077-9bb4-c566a242dcde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssets_019caf6e-8e32-7378-b921-60ba55692303" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-791c-bfba-7bdc7919c0da" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssets_019caf6e-8e32-7378-b921-60ba55692303" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019caf6e-8e32-7e14-8805-1b1c1bc9f95f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-791c-bfba-7bdc7919c0da" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019caf6e-8e32-7e14-8805-1b1c1bc9f95f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019caf6e-8e32-71d8-b1a2-6697f26023da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-791c-bfba-7bdc7919c0da" xlink:to="loc_us-gaap_Investments_019caf6e-8e32-71d8-b1a2-6697f26023da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019caf6e-8e32-7187-8890-468186def749" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Investments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019caf6e-8e32-7f94-8160-66e1df2f8939" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_019caf6e-8e32-7187-8890-468186def749" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019caf6e-8e32-7f94-8160-66e1df2f8939" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019caf6e-8e32-747d-8c4f-c475250b657b" xlink:href="agm-20260331.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_019caf6e-8e32-7187-8890-468186def749" xlink:to="loc_agm_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019caf6e-8e32-747d-8c4f-c475250b657b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_019caf6e-8e32-7af2-88e0-d4b16b2f39f7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7187-8890-468186def749" xlink:to="loc_us-gaap_OtherInvestments_019caf6e-8e32-7af2-88e0-d4b16b2f39f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019caf6e-8e32-7a61-83ec-2e2080c86d32" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019caf6e-8e32-7c36-a9fd-850436e3fc42" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7a61-83ec-2e2080c86d32" xlink:to="loc_us-gaap_Liabilities_019caf6e-8e32-7c36-a9fd-850436e3fc42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019caf6e-8e32-7602-962d-2ca5921b83ed" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7a61-83ec-2e2080c86d32" xlink:to="loc_us-gaap_StockholdersEquity_019caf6e-8e32-7602-962d-2ca5921b83ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019caf6e-8e32-7eeb-815f-bc03809be4fa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019caf6e-8e32-7a61-83ec-2e2080c86d32" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019caf6e-8e32-7eeb-815f-bc03809be4fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019caf6e-8e32-7abc-bd49-9ce3396adf95" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019caf6e-8e32-77da-b604-e0cc1fbb4ad8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7abc-bd49-9ce3396adf95" xlink:to="loc_us-gaap_PreferredStockValue_019caf6e-8e32-77da-b604-e0cc1fbb4ad8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019caf6e-8e32-77bc-a465-6d1bb2fdb967" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7abc-bd49-9ce3396adf95" xlink:to="loc_us-gaap_CommonStockValue_019caf6e-8e32-77bc-a465-6d1bb2fdb967" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019caf6e-8e32-74fd-b23c-f48a1fb935b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7abc-bd49-9ce3396adf95" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019caf6e-8e32-74fd-b23c-f48a1fb935b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019caf6e-8e32-7aa4-bde5-043b25599fe7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7abc-bd49-9ce3396adf95" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019caf6e-8e32-7aa4-bde5-043b25599fe7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019caf6e-8e32-718a-8b7f-4721e3ae6e53" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7abc-bd49-9ce3396adf95" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019caf6e-8e32-718a-8b7f-4721e3ae6e53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019caf6e-8e32-7d8d-80d9-74101aff5559" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtNetOfHedgingAdjustments_019caf6e-8e32-745a-a7e8-c097cbe141c8" xlink:href="agm-20260331.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_019caf6e-8e32-7d8d-80d9-74101aff5559" xlink:to="loc_agm_LongTermDebtNetOfHedgingAdjustments_019caf6e-8e32-745a-a7e8-c097cbe141c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LiabilitiesHeldInTrust_019caf6e-8e32-7bdf-85c5-f936dca1c8bf" xlink:href="agm-20260331.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_019caf6e-8e32-7d8d-80d9-74101aff5559" xlink:to="loc_agm_LiabilitiesHeldInTrust_019caf6e-8e32-7bdf-85c5-f936dca1c8bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019caf6e-8e32-7703-a8d2-1ff11bbfcae5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7d8d-80d9-74101aff5559" xlink:to="loc_us-gaap_DerivativeLiabilities_019caf6e-8e32-7703-a8d2-1ff11bbfcae5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_019caf6e-8e32-7a24-8ad8-efefcc9a9be2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7d8d-80d9-74101aff5559" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_019caf6e-8e32-7a24-8ad8-efefcc9a9be2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuarantyLiabilities_019caf6e-8e32-7d9b-8b62-3dd17f8397d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7d8d-80d9-74101aff5559" xlink:to="loc_us-gaap_GuarantyLiabilities_019caf6e-8e32-7d9b-8b62-3dd17f8397d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_019caf6e-8e32-7129-8ad7-a816cb468efc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7d8d-80d9-74101aff5559" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_019caf6e-8e32-7129-8ad7-a816cb468efc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019caf6e-8e32-7986-bfcf-f1a233106f05" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019caf6e-8e32-7c92-861f-3bf8e47a84d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7986-bfcf-f1a233106f05" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019caf6e-8e32-7c92-861f-3bf8e47a84d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossHeldInTrust_019caf6e-8e32-79dd-99ea-5badb767e186" xlink:href="agm-20260331.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_019caf6e-8e32-7986-bfcf-f1a233106f05" xlink:to="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossHeldInTrust_019caf6e-8e32-79dd-99ea-5badb767e186" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019caf6e-8e32-78f5-87de-893961cda4cb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7986-bfcf-f1a233106f05" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019caf6e-8e32-78f5-87de-893961cda4cb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSunaudited" xlink:type="simple" xlink:href="agm-20260331.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_NoninterestIncome_019caf6e-8e32-7d4a-8792-495071510594" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions_019caf6e-8e32-7346-8766-8bbf903e645f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7d4a-8792-495071510594" xlink:to="loc_us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions_019caf6e-8e32-7346-8766-8bbf903e645f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_019caf6e-8e32-7543-9d50-9645a8e11461" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7d4a-8792-495071510594" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_019caf6e-8e32-7543-9d50-9645a8e11461" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019caf6e-8e32-7b56-9819-f2126a8fe07e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7d4a-8792-495071510594" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019caf6e-8e32-7b56-9819-f2126a8fe07e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019caf6e-8e32-7d8d-b31f-30800e489be5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019caf6e-8e32-7172-a651-557fa55d4582" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019caf6e-8e32-7d8d-b31f-30800e489be5" xlink:to="loc_us-gaap_NetIncomeLoss_019caf6e-8e32-7172-a651-557fa55d4582" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_019caf6e-8e32-7368-9776-b01ced5099d9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7d8d-b31f-30800e489be5" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_019caf6e-8e32-7368-9776-b01ced5099d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019caf6e-8e32-713b-a6c2-fb9002c170bd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019caf6e-8e32-7ac2-b4d6-29d28f1732ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-713b-a6c2-fb9002c170bd" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019caf6e-8e32-7ac2-b4d6-29d28f1732ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019caf6e-8e32-7bad-bb8b-087aa792968e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019caf6e-8e32-713b-a6c2-fb9002c170bd" xlink:to="loc_us-gaap_NoninterestIncome_019caf6e-8e32-7bad-bb8b-087aa792968e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_019caf6e-8e32-7d0d-90c8-bde00477277e" xlink:href="agm-20260331.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_019caf6e-8e32-713b-a6c2-fb9002c170bd" xlink:to="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_019caf6e-8e32-7d0d-90c8-bde00477277e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019caf6e-8e32-7c26-93a7-4c4d027a6139" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019caf6e-8e32-719f-ab93-7714d0c9a4c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019caf6e-8e32-7c26-93a7-4c4d027a6139" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_019caf6e-8e32-719f-ab93-7714d0c9a4c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_019caf6e-8e32-788a-8351-9b42e859eb89" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7c26-93a7-4c4d027a6139" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_019caf6e-8e32-788a-8351-9b42e859eb89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_019caf6e-8e32-7a50-819c-8db7a148493f" xlink:href="agm-20260331.xsd#agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_019caf6e-8e32-72d1-8577-db2f5e88933a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7a50-819c-8db7a148493f" xlink:to="loc_us-gaap_LaborAndRelatedExpense_019caf6e-8e32-72d1-8577-db2f5e88933a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_019caf6e-8e32-7ccc-bdda-02830cfcaf79" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7a50-819c-8db7a148493f" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_019caf6e-8e32-7ccc-bdda-02830cfcaf79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_RegulatoryFees_019caf6e-8e32-706c-a9f2-2d1ee3876b0c" xlink:href="agm-20260331.xsd#agm_RegulatoryFees"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses_019caf6e-8e32-7a50-819c-8db7a148493f" xlink:to="loc_agm_RegulatoryFees_019caf6e-8e32-706c-a9f2-2d1ee3876b0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019caf6e-8e32-706c-bcec-bdc36e8393c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019caf6e-8e32-7ce6-ab0a-f39f3cb74d04" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019caf6e-8e32-706c-bcec-bdc36e8393c4" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019caf6e-8e32-7ce6-ab0a-f39f3cb74d04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019caf6e-8e32-7fce-9870-f86f0c01448e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019caf6e-8e32-706c-bcec-bdc36e8393c4" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019caf6e-8e32-7fce-9870-f86f0c01448e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019caf6e-8e32-79c1-b5be-83f6735986a7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019caf6e-8e32-72e1-bbfc-49b272f5d6f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-79c1-b5be-83f6735986a7" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019caf6e-8e32-72e1-bbfc-49b272f5d6f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecurities_019caf6e-8e32-7b1f-8d93-b05a653e8a31" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-79c1-b5be-83f6735986a7" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecurities_019caf6e-8e32-7b1f-8d93-b05a653e8a31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019caf6e-8e32-72a7-b982-6f6cbf141cb9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019caf6e-8e32-73c6-86ff-43556341750c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-72a7-b982-6f6cbf141cb9" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_019caf6e-8e32-73c6-86ff-43556341750c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019caf6e-8e32-7599-b81d-df9e7ab67c2a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-72a7-b982-6f6cbf141cb9" xlink:to="loc_us-gaap_InterestExpenseOperating_019caf6e-8e32-7599-b81d-df9e7ab67c2a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEunaudited" xlink:type="simple" xlink:href="agm-20260331.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_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019caf6e-8e32-7ab0-9033-3cdc94c37e8c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_OtherComprehensiveIncomeLossHeldToMaturitySecuritiesBeforeTax_019caf6e-8e32-7b8b-816f-f77ad04bed7c" xlink:href="agm-20260331.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_019caf6e-8e32-7ab0-9033-3cdc94c37e8c" xlink:to="loc_agm_OtherComprehensiveIncomeLossHeldToMaturitySecuritiesBeforeTax_019caf6e-8e32-7b8b-816f-f77ad04bed7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_019caf6e-8e32-7770-b182-7386ccd25aa7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-7ab0-9033-3cdc94c37e8c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_019caf6e-8e32-7770-b182-7386ccd25aa7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_019caf6e-8e32-733d-9c43-ff1a2ff38c54" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019caf6e-8e32-7ab0-9033-3cdc94c37e8c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_019caf6e-8e32-733d-9c43-ff1a2ff38c54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019caf6e-8e32-75da-ab40-e4b9debe4958" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019caf6e-8e32-73e3-9195-01c4d92f2231" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-75da-ab40-e4b9debe4958" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019caf6e-8e32-73e3-9195-01c4d92f2231" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019caf6e-8e32-7a6d-8ff2-d5a45c494b12" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019caf6e-8e32-75da-ab40-e4b9debe4958" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019caf6e-8e32-7a6d-8ff2-d5a45c494b12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019caf6e-8e32-76e8-b370-5c41039deab1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019caf6e-8e32-7afc-a6d1-ca21a210164e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019caf6e-8e32-76e8-b370-5c41039deab1" xlink:to="loc_us-gaap_NetIncomeLoss_019caf6e-8e32-7afc-a6d1-ca21a210164e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019caf6e-8e32-7d74-b85c-b5e5782d019e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-76e8-b370-5c41039deab1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019caf6e-8e32-7d74-b85c-b5e5782d019e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSunaudited" xlink:type="simple" xlink:href="agm-20260331.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_NetCashProvidedByUsedInInvestingActivities_019caf6e-8ecc-7b51-8d55-cfa980b92d8c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019caf6e-8ecc-786e-8c52-edbe99d51415" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019caf6e-8ecc-7b51-8d55-cfa980b92d8c" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019caf6e-8ecc-786e-8c52-edbe99d51415" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_019caf6e-8ecc-77d0-b0c1-dee8a207d8f3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7b51-8d55-cfa980b92d8c" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_019caf6e-8ecc-77d0-b0c1-dee8a207d8f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireOtherInvestments_019caf6e-8ecc-767e-aa92-e77586d418be" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7b51-8d55-cfa980b92d8c" xlink:to="loc_us-gaap_PaymentsToAcquireOtherInvestments_019caf6e-8ecc-767e-aa92-e77586d418be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_019caf6e-8ecc-7d9c-8445-c97cc4e644e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7b51-8d55-cfa980b92d8c" xlink:to="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_019caf6e-8ecc-7d9c-8445-c97cc4e644e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireOtherLoansAndLeasesHeldForInvestment_019caf6e-8ecc-72fb-a98a-292386848b42" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireOtherLoansAndLeasesHeldForInvestment"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019caf6e-8ecc-7b51-8d55-cfa980b92d8c" xlink:to="loc_us-gaap_PaymentsToAcquireOtherLoansAndLeasesHeldForInvestment_019caf6e-8ecc-72fb-a98a-292386848b42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_019caf6e-8ecc-79b5-8db9-b631921379d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019caf6e-8ecc-7b51-8d55-cfa980b92d8c" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_019caf6e-8ecc-79b5-8db9-b631921379d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities_019caf6e-8ecc-7ccd-b912-01fd9e22a9cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019caf6e-8ecc-7b51-8d55-cfa980b92d8c" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities_019caf6e-8ecc-7ccd-b912-01fd9e22a9cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_019caf6e-8ecc-77f0-9b30-d52d8b3273b3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019caf6e-8ecc-7b51-8d55-cfa980b92d8c" xlink:to="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_019caf6e-8ecc-77f0-9b30-d52d8b3273b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_019caf6e-8ecc-7a3c-ba8d-7bc3d8d32f8e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfOtherRealEstate"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019caf6e-8ecc-7b51-8d55-cfa980b92d8c" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_019caf6e-8ecc-7a3c-ba8d-7bc3d8d32f8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019caf6e-8ecc-7a87-be32-fdb70373dc9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_NetIncomeLoss_019caf6e-8ecc-7a87-be32-fdb70373dc9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019caf6e-8ecc-75e6-8d56-9b81cb3ab2a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019caf6e-8ecc-75e6-8d56-9b81cb3ab2a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_019caf6e-8ecc-7189-b67e-c4af770eaa3e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_019caf6e-8ecc-7189-b67e-c4af770eaa3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NetChangeInFairValueTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale_019caf6e-8ecc-77ac-9b4d-0c6fc3ec56e8" xlink:href="agm-20260331.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_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_agm_NetChangeInFairValueTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale_019caf6e-8ecc-77ac-9b4d-0c6fc3ec56e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_ProvisionForLoanLeaseAndOtherLossesNoncash_019caf6e-8ecc-72c8-8c4f-b91c7e3181e2" xlink:href="agm-20260331.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_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_agm_ProvisionForLoanLeaseAndOtherLossesNoncash_019caf6e-8ecc-72c8-8c4f-b91c7e3181e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019caf6e-8ecc-727c-b88e-bc24bbb5d390" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_ShareBasedCompensation_019caf6e-8ecc-727c-b88e-bc24bbb5d390" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfLoansHeldForSale_019caf6e-8ecc-71bc-b3f8-52254c400942" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromCollectionOfLoansHeldForSale"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_ProceedsFromCollectionOfLoansHeldForSale_019caf6e-8ecc-71bc-b3f8-52254c400942" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_PaymentsToAcquireTaxCredits_019caf6e-8ecc-7f09-b4b7-d4a85da405fd" xlink:href="agm-20260331.xsd#agm_PaymentsToAcquireTaxCredits"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_agm_PaymentsToAcquireTaxCredits_019caf6e-8ecc-7f09-b4b7-d4a85da405fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_019caf6e-8ecc-74ce-bc91-69c0d947dc6f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_019caf6e-8ecc-74ce-bc91-69c0d947dc6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_019caf6e-8ecc-7448-9f9d-7df49dddaf32" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_019caf6e-8ecc-7448-9f9d-7df49dddaf32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherReceivables_019caf6e-8ecc-7fc2-a481-772a2b997153" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherReceivables"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherReceivables_019caf6e-8ecc-7fc2-a481-772a2b997153" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019caf6e-8ecc-70ec-8b98-154b4c92b7a7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019caf6e-8ecc-70ec-8b98-154b4c92b7a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_019caf6e-8ecc-780c-813a-32376c750fa4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_019caf6e-8ecc-780c-813a-32376c750fa4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019caf6e-8ecc-761a-a50d-e362fce454f7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019caf6e-8ecc-761a-a50d-e362fce454f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019caf6e-8ecc-7e5d-91e3-27559bb94488" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e88-a990-6d5089fd0a27" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019caf6e-8ecc-7e5d-91e3-27559bb94488" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019caf6e-8e32-78b8-918f-eade7b8e70c1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromNotesPayable_019caf6e-8e32-714a-84ac-84d22a0a670c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8e32-78b8-918f-eade7b8e70c1" xlink:to="loc_us-gaap_ProceedsFromNotesPayable_019caf6e-8e32-714a-84ac-84d22a0a670c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfNotesPayable_019caf6e-8e32-765c-9b48-88a6166dd8e1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfNotesPayable"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019caf6e-8e32-78b8-918f-eade7b8e70c1" xlink:to="loc_us-gaap_RepaymentsOfNotesPayable_019caf6e-8e32-765c-9b48-88a6166dd8e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts_019caf6e-8e32-71c7-8f86-8cb562fab46b" xlink:href="agm-20260331.xsd#agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019caf6e-8e32-78b8-918f-eade7b8e70c1" xlink:to="loc_agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts_019caf6e-8e32-71c7-8f86-8cb562fab46b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019caf6e-8e32-79e7-9e04-ec7ea029a2b0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019caf6e-8e32-78b8-918f-eade7b8e70c1" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019caf6e-8e32-79e7-9e04-ec7ea029a2b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019caf6e-8e32-71c4-9e9f-ff3bcec0b2ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019caf6e-8e32-78b8-918f-eade7b8e70c1" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019caf6e-8e32-71c4-9e9f-ff3bcec0b2ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019caf6e-8e32-7eda-aa84-7bc980d8ce1c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019caf6e-8e32-78b8-918f-eade7b8e70c1" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019caf6e-8e32-7eda-aa84-7bc980d8ce1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfOrdinaryDividends_019caf6e-8e32-7788-9747-0520e667cd17" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfOrdinaryDividends"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019caf6e-8e32-78b8-918f-eade7b8e70c1" xlink:to="loc_us-gaap_PaymentsOfOrdinaryDividends_019caf6e-8e32-7788-9747-0520e667cd17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019caf6e-8ecc-7dd9-be66-557e6cd682a7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e4a-ae99-867ac3b4ab60" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7dd9-be66-557e6cd682a7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019caf6e-8ecc-7e4a-ae99-867ac3b4ab60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019caf6e-8ecc-735f-8217-51510c7cb138" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019caf6e-8ecc-7dd9-be66-557e6cd682a7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019caf6e-8ecc-735f-8217-51510c7cb138" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019caf6e-8ecc-7607-88d1-e97a01d0f5ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7dd9-be66-557e6cd682a7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019caf6e-8ecc-7607-88d1-e97a01d0f5ab" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofEarningsPerCommonShareDetails" xlink:type="simple" xlink:href="agm-20260331.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_NetIncomeLossAvailableToCommonStockholdersDiluted_019caf6e-8ecc-7ecc-b695-60a8d3bce0f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019caf6e-8ecc-7ce0-90ca-de9e933223da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_019caf6e-8ecc-7ecc-b695-60a8d3bce0f1" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019caf6e-8ecc-7ce0-90ca-de9e933223da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019caf6e-8ecc-76e0-8c2a-f8da9727a77c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019caf6e-8ecc-733a-ac73-be4bb2a5f8b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-76e0-8c2a-f8da9727a77c" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019caf6e-8ecc-733a-ac73-be4bb2a5f8b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019caf6e-8ecc-788a-94df-ab8a11ee3f25" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-76e0-8c2a-f8da9727a77c" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019caf6e-8ecc-788a-94df-ab8a11ee3f25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_019caf6e-8ecc-7585-a36d-a4fa16492692" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_019caf6e-8ecc-72d7-b9e4-8cc6f4dfc5df" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7585-a36d-a4fa16492692" xlink:to="loc_us-gaap_EarningsPerShareBasic_019caf6e-8ecc-72d7-b9e4-8cc6f4dfc5df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019caf6e-8ecc-7caf-b36b-98a08e4f734e" xlink:href="agm-20260331.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_019caf6e-8ecc-7585-a36d-a4fa16492692" xlink:to="loc_agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019caf6e-8ecc-7caf-b36b-98a08e4f734e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofAccumulatedOtherComprehensiveIncomeNetofTaxDetails" xlink:type="simple" xlink:href="agm-20260331.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_019caf6e-8ecc-7b9d-b907-6a45d026f59b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019caf6e-8ecc-73a0-a3cb-5e8a0323e63c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7b9d-b907-6a45d026f59b" xlink:to="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019caf6e-8ecc-73a0-a3cb-5e8a0323e63c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019caf6e-8ecc-791b-926b-d672c04928ee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7b9d-b907-6a45d026f59b" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019caf6e-8ecc-791b-926b-d672c04928ee" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofReclassificationoutofAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" xlink:href="agm-20260331.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_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019caf6e-8ecc-766f-a60b-86fc16107abd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019caf6e-8ecc-796a-a536-da7e1126dcc3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019caf6e-8ecc-766f-a60b-86fc16107abd" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019caf6e-8ecc-796a-a536-da7e1126dcc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019caf6e-8ecc-7f3a-bd81-69d7d6115edb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-766f-a60b-86fc16107abd" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019caf6e-8ecc-7f3a-bd81-69d7d6115edb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019caf6e-8ecc-7bc7-b66b-d9d17db4e303" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019caf6e-8ecc-78cd-83c6-b7be10258af9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7bc7-b66b-d9d17db4e303" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_019caf6e-8ecc-78cd-83c6-b7be10258af9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_019caf6e-8ecc-728c-bbb6-8bf7675bbd33" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7bc7-b66b-d9d17db4e303" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_019caf6e-8ecc-728c-bbb6-8bf7675bbd33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019caf6e-8ecc-7e1e-929b-353e6ff50047" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019caf6e-8ecc-73e9-af6e-e1915a478b98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019caf6e-8ecc-7e1e-929b-353e6ff50047" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_019caf6e-8ecc-73e9-af6e-e1915a478b98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_019caf6e-8ecc-77cf-b1cb-99e856d61832" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7e1e-929b-353e6ff50047" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_019caf6e-8ecc-77cf-b1cb-99e856d61832" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019caf6e-8ecc-79af-b54e-3187b51ba0ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_019caf6e-8ecc-7a4a-9e8d-f961eaff438d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-79af-b54e-3187b51ba0ea" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_019caf6e-8ecc-7a4a-9e8d-f961eaff438d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_019caf6e-8ecc-7668-9edb-1e34c1a3debd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-79af-b54e-3187b51ba0ea" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_019caf6e-8ecc-7668-9edb-1e34c1a3debd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/INVESTMENTSECURITIESScheduleofAFSSecuritiesMaturitiesDetails" xlink:type="simple" xlink:href="agm-20260331.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_019caf6e-8ecc-7914-bffe-936397c6a5c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019caf6e-8ecc-700b-9b62-d04fefce5a95" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7914-bffe-936397c6a5c4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019caf6e-8ecc-700b-9b62-d04fefce5a95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019caf6e-8ecc-79cc-88e3-96a8e178b49d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7914-bffe-936397c6a5c4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019caf6e-8ecc-79cc-88e3-96a8e178b49d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019caf6e-8ecc-7f51-86e9-7ae65f599782" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7914-bffe-936397c6a5c4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019caf6e-8ecc-7f51-86e9-7ae65f599782" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019caf6e-8ecc-75e7-bdd6-d56ba0a4e13a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-7914-bffe-936397c6a5c4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019caf6e-8ecc-75e7-bdd6-d56ba0a4e13a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019caf6e-8ecc-70b2-a348-64a81ef071a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019caf6e-8ecc-7813-9627-ea4117c1f1c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-70b2-a348-64a81ef071a5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019caf6e-8ecc-7813-9627-ea4117c1f1c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019caf6e-8ecc-7560-967d-05268235a515" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-70b2-a348-64a81ef071a5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019caf6e-8ecc-7560-967d-05268235a515" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019caf6e-8ecc-71de-a6f7-c442c0282166" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-70b2-a348-64a81ef071a5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019caf6e-8ecc-71de-a6f7-c442c0282166" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019caf6e-8ecc-7d59-adf1-679b4325e56c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-70b2-a348-64a81ef071a5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019caf6e-8ecc-7d59-adf1-679b4325e56c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/INVESTMENTSECURITIESScheduleofHTMSecuritiesMaturitiesDetails" xlink:type="simple" xlink:href="agm-20260331.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_019dd4f0-94a6-7fe2-a24f-3f7767989c50" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDate"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne_019dd4f0-94a6-7a99-9dfd-33d085e5ca2b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019dd4f0-94a6-7fe2-a24f-3f7767989c50" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateYearOne_019dd4f0-94a6-7a99-9dfd-33d085e5ca2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive_019dd4f0-94a6-7c7e-b23f-22991ee7bed9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019dd4f0-94a6-7fe2-a24f-3f7767989c50" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYearOneThroughFive_019dd4f0-94a6-7c7e-b23f-22991ee7bed9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10_019dd4f0-94a6-71c0-91c7-a71e6a68be67" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019dd4f0-94a6-7fe2-a24f-3f7767989c50" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear5Through10_019dd4f0-94a6-71c0-91c7-a71e6a68be67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10_019dd4f0-94a6-7a2c-8af5-2ac5fc2e7a6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019dd4f0-94a6-7fe2-a24f-3f7767989c50" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossMaturityAllocatedAndSingleMaturityDateAfterYear10_019dd4f0-94a6-7a2c-8af5-2ac5fc2e7a6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019dd4f1-7d55-7d5c-beae-b51aec374017" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_019dd4f1-7d55-78d3-9ca7-0c84afe3839a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019dd4f1-7d55-7d5c-beae-b51aec374017" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_019dd4f1-7d55-78d3-9ca7-0c84afe3839a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019dd4f1-7d55-71a3-9831-86e5b7d48f2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019dd4f1-7d55-7d5c-beae-b51aec374017" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019dd4f1-7d55-71a3-9831-86e5b7d48f2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019dd4f1-7d55-792c-a490-71f59a94df59" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019dd4f1-7d55-7d5c-beae-b51aec374017" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019dd4f1-7d55-792c-a490-71f59a94df59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_019dd4f1-7d55-7809-b9a6-7c5a40c877e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019dd4f1-7d55-7d5c-beae-b51aec374017" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_019dd4f1-7d55-7809-b9a6-7c5a40c877e9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofNetIncomeExpenseRecognizedDetails" xlink:type="simple" xlink:href="agm-20260331.xsd#FINANCIALDERIVATIVESScheduleofNetIncomeExpenseRecognizedDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofNetIncomeExpenseRecognizedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_agm_IncomeExpenseInterestSettlementsFairValueHedges_019caf6e-8ecd-7a24-8a0d-b32dce775ec1" xlink:href="agm-20260331.xsd#agm_IncomeExpenseInterestSettlementsFairValueHedges"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_DerivativeNetInterestSettlements_019caf6e-8ecd-72c2-b056-2afa426c60d4" xlink:href="agm-20260331.xsd#agm_DerivativeNetInterestSettlements"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_IncomeExpenseInterestSettlementsFairValueHedges_019caf6e-8ecd-7a24-8a0d-b32dce775ec1" xlink:to="loc_agm_DerivativeNetInterestSettlements_019caf6e-8ecd-72c2-b056-2afa426c60d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_HedgedItemNetInterestSettlements_019caf6e-8ecd-7e82-9037-f486436a4f49" xlink:href="agm-20260331.xsd#agm_HedgedItemNetInterestSettlements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_IncomeExpenseInterestSettlementsFairValueHedges_019caf6e-8ecd-7a24-8a0d-b32dce775ec1" xlink:to="loc_agm_HedgedItemNetInterestSettlements_019caf6e-8ecd-7e82-9037-f486436a4f49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_PremiumDiscountRecognizedOnHedgedInstrument_019caf6e-8ecd-7eb7-8299-0c327a0fe090" xlink:href="agm-20260331.xsd#agm_PremiumDiscountRecognizedOnHedgedInstrument"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_IncomeExpenseInterestSettlementsFairValueHedges_019caf6e-8ecd-7a24-8a0d-b32dce775ec1" xlink:to="loc_agm_PremiumDiscountRecognizedOnHedgedInstrument_019caf6e-8ecd-7eb7-8299-0c327a0fe090" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_019caf6e-8ecc-77de-9023-63843b8f2584" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_019caf6e-8ecc-7fa7-8d0a-bc0b3df8891b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-77de-9023-63843b8f2584" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_019caf6e-8ecc-7fa7-8d0a-bc0b3df8891b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_019caf6e-8ecc-7f10-a174-8598b86180e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecc-77de-9023-63843b8f2584" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_019caf6e-8ecc-7f10-a174-8598b86180e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_019caf6e-8ecd-7885-bd4e-27a18913ed80" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem_019caf6e-8ecd-7533-9aae-2e270515cb39" xlink:href="agm-20260331.xsd#agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_019caf6e-8ecd-7885-bd4e-27a18913ed80" xlink:to="loc_agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem_019caf6e-8ecd-7533-9aae-2e270515cb39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_PremiumDiscountRecognizedOnHedgedInstrument_019caf6e-8ecd-793c-899b-c1e357cb7c2c" xlink:href="agm-20260331.xsd#agm_PremiumDiscountRecognizedOnHedgedInstrument"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_019caf6e-8ecd-7885-bd4e-27a18913ed80" xlink:to="loc_agm_PremiumDiscountRecognizedOnHedgedInstrument_019caf6e-8ecd-793c-899b-c1e357cb7c2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_019caf6e-8ecd-73fc-9a65-9413a9d7ffae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_019caf6e-8ecd-7885-bd4e-27a18913ed80" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_019caf6e-8ecd-73fc-9a65-9413a9d7ffae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome_019caf6e-8ecd-7f5e-b132-c7a88c418b77" xlink:href="agm-20260331.xsd#agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019caf6e-8ecd-7b09-85ec-ed9e20d9cf43" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome_019caf6e-8ecd-7f5e-b132-c7a88c418b77" xlink:to="loc_us-gaap_InterestExpenseOperating_019caf6e-8ecd-7b09-85ec-ed9e20d9cf43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_019caf6e-8ecd-7678-8f13-62dc1b22effc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7f5e-b132-c7a88c418b77" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_019caf6e-8ecd-7678-8f13-62dc1b22effc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019caf6e-8ecd-725a-a13e-117df2237c2a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome_019caf6e-8ecd-7f5e-b132-c7a88c418b77" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019caf6e-8ecd-725a-a13e-117df2237c2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecurities_019caf6e-8ecd-78b5-89c9-99d08966831d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7f5e-b132-c7a88c418b77" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecurities_019caf6e-8ecd-78b5-89c9-99d08966831d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofFairValueofFinancialAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="agm-20260331.xsd#FINANCIALDERIVATIVESScheduleofFairValueofFinancialAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofFairValueofFinancialAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_019caf6e-8ecd-74d1-a5e1-feb8d65a84cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_019caf6e-8ecd-725d-bc11-9ab43a526fc4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-74d1-a5e1-feb8d65a84cc" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_019caf6e-8ecd-725d-bc11-9ab43a526fc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019caf6e-8ecd-7f4e-a591-7a2971b51adc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-74d1-a5e1-feb8d65a84cc" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019caf6e-8ecd-7f4e-a591-7a2971b51adc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_019caf6e-8ecd-7a08-811e-84f794a0bde3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-74d1-a5e1-feb8d65a84cc" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_019caf6e-8ecd-7a08-811e-84f794a0bde3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_019caf6e-8ecd-702a-95a6-1587c56b6752" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-74d1-a5e1-feb8d65a84cc" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_019caf6e-8ecd-702a-95a6-1587c56b6752" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount_019caf6e-8ecd-7502-bab2-27ef6f888a9d" xlink:href="agm-20260331.xsd#agm_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_019caf6e-8ecd-7fc0-8b2a-d9a16495b88f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7502-bab2-27ef6f888a9d" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_019caf6e-8ecd-7fc0-8b2a-d9a16495b88f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019caf6e-8ecd-7990-8b0a-0d75ccd1205b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7502-bab2-27ef6f888a9d" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019caf6e-8ecd-7990-8b0a-0d75ccd1205b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_019caf6e-8ecd-7af0-858d-45127b08c84c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7502-bab2-27ef6f888a9d" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_019caf6e-8ecd-7af0-858d-45127b08c84c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_019caf6e-8ecd-7cc5-89a0-d309342897d6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7502-bab2-27ef6f888a9d" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_019caf6e-8ecd-7cc5-89a0-d309342897d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_019caf6e-8ecd-7a98-918a-384bf45f67e7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019caf6e-8ecd-75b5-a978-7418ac9291d9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7a98-918a-384bf45f67e7" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019caf6e-8ecd-75b5-a978-7418ac9291d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019caf6e-8ecd-7908-9ebc-1e0fd5c94336" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7a98-918a-384bf45f67e7" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019caf6e-8ecd-7908-9ebc-1e0fd5c94336" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_019caf6e-8ecd-7c7d-922a-809d2438fd30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019caf6e-8ecd-733c-bf08-b8c1f9639452" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7c7d-922a-809d2438fd30" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019caf6e-8ecd-733c-bf08-b8c1f9639452" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019caf6e-8ecd-74b4-bfb4-4e26a743a931" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7c7d-922a-809d2438fd30" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019caf6e-8ecd-74b4-bfb4-4e26a743a931" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/LOANSScheduleofCompositionofLoanBalancesDetails" xlink:type="simple" xlink:href="agm-20260331.xsd#LOANSScheduleofCompositionofLoanBalancesDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LOANSScheduleofCompositionofLoanBalancesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure_019caf6e-8ecd-73dd-a125-75170a91a9a9" xlink:href="agm-20260331.xsd#agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019caf6e-8ecd-770a-8f38-921ed656ef9e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-73dd-a125-75170a91a9a9" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019caf6e-8ecd-770a-8f38-921ed656ef9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount_019caf6e-8ecd-7917-b65a-c794671aea96" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-73dd-a125-75170a91a9a9" xlink:to="loc_us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount_019caf6e-8ecd-7917-b65a-c794671aea96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019caf6e-8ecd-76da-a28a-6d0f629ea3a4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019caf6e-8ecd-75b8-8e1a-4f1f5519f747" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019caf6e-8ecd-76da-a28a-6d0f629ea3a4" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019caf6e-8ecd-75b8-8e1a-4f1f5519f747" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure_019caf6e-8ecd-79ab-a09e-8ba2a5db5d8b" xlink:href="agm-20260331.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_019caf6e-8ecd-76da-a28a-6d0f629ea3a4" xlink:to="loc_agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure_019caf6e-8ecd-79ab-a09e-8ba2a5db5d8b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/LOANSScheduleofFinancingReceivablesCreditQualityIndicatorsDetails" xlink:type="simple" xlink:href="agm-20260331.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_019caf6e-8ecd-7178-b6a1-371478fb2339" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_019caf6e-8ecd-708c-9705-29be3098826b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7178-b6a1-371478fb2339" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_019caf6e-8ecd-708c-9705-29be3098826b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_019caf6e-8ecd-7ab3-8c57-1c4fe7fb287a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7178-b6a1-371478fb2339" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_019caf6e-8ecd-7ab3-8c57-1c4fe7fb287a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_019caf6e-8ecd-7794-88ef-e78a42c88f53" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7178-b6a1-371478fb2339" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_019caf6e-8ecd-7794-88ef-e78a42c88f53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_019caf6e-8ecd-7d38-a2b3-78207308ca18" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7178-b6a1-371478fb2339" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_019caf6e-8ecd-7d38-a2b3-78207308ca18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_019caf6e-8ecd-795a-9daf-bfadfe23a608" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7178-b6a1-371478fb2339" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_019caf6e-8ecd-795a-9daf-bfadfe23a608" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_019caf6e-8ecd-7640-ba74-6d2430c57915" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7178-b6a1-371478fb2339" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_019caf6e-8ecd-7640-ba74-6d2430c57915" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_019caf6e-8ecd-700e-89fa-9080a69efc50" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7178-b6a1-371478fb2339" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_019caf6e-8ecd-700e-89fa-9080a69efc50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019caf6e-8ecd-72d7-92f7-00514ac7c1c9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019caf6e-8ecd-7c10-876c-aaa463e2f71e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-72d7-92f7-00514ac7c1c9" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019caf6e-8ecd-7c10-876c-aaa463e2f71e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_019caf6e-8ecd-781b-9ddb-43f318dc9f58" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019caf6e-8ecd-72d7-92f7-00514ac7c1c9" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_019caf6e-8ecd-781b-9ddb-43f318dc9f58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_019caf6e-8ecd-78ad-a637-2385f1ab6fe9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-72d7-92f7-00514ac7c1c9" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_019caf6e-8ecd-78ad-a637-2385f1ab6fe9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_019caf6e-8ecd-7dfe-82bf-f09397c0052c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-72d7-92f7-00514ac7c1c9" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_019caf6e-8ecd-7dfe-82bf-f09397c0052c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_019caf6e-8ecd-7c88-90ea-2e2369b2d47b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-72d7-92f7-00514ac7c1c9" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_019caf6e-8ecd-7c88-90ea-2e2369b2d47b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019caf6e-8ecd-757e-b373-e742dc5498a1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-72d7-92f7-00514ac7c1c9" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019caf6e-8ecd-757e-b373-e742dc5498a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_019caf6e-8ecd-7306-a99f-d44f324f4383" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-72d7-92f7-00514ac7c1c9" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_019caf6e-8ecd-7306-a99f-d44f324f4383" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/NOTESPAYABLEBorrowingsDetails" xlink:type="simple" xlink:href="agm-20260331.xsd#NOTESPAYABLEBorrowingsDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/NOTESPAYABLEBorrowingsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019caf6e-8ecd-7aae-bba4-381ae68fd9e6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019caf6e-8ecd-7728-bdda-ca8ae8e832bf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7aae-bba4-381ae68fd9e6" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019caf6e-8ecd-7728-bdda-ca8ae8e832bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_019caf6e-8ecd-7b38-a781-4db8c021ca2a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7aae-bba4-381ae68fd9e6" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_019caf6e-8ecd-7b38-a781-4db8c021ca2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_019caf6e-8ecd-7729-9c1f-2159f131c7da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7aae-bba4-381ae68fd9e6" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_019caf6e-8ecd-7729-9c1f-2159f131c7da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_019caf6e-8ecd-7ad0-b111-3522a51c9439" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7aae-bba4-381ae68fd9e6" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_019caf6e-8ecd-7ad0-b111-3522a51c9439" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019caf6e-8ecd-736e-b12d-62fe4f62a7b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7aae-bba4-381ae68fd9e6" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019caf6e-8ecd-736e-b12d-62fe4f62a7b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtNetOfHedgingAdjustments_019caf6e-8ecd-7cc9-96ff-af6a6fa736a2" xlink:href="agm-20260331.xsd#agm_LongTermDebtNetOfHedgingAdjustments"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtHedgingAdjustments_019caf6e-8ecd-7f4b-8633-646325df88ce" xlink:href="agm-20260331.xsd#agm_LongTermDebtHedgingAdjustments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtNetOfHedgingAdjustments_019caf6e-8ecd-7cc9-96ff-af6a6fa736a2" xlink:to="loc_agm_LongTermDebtHedgingAdjustments_019caf6e-8ecd-7f4b-8633-646325df88ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019caf6e-8ecd-7813-b8bc-2267614ec91c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtNetOfHedgingAdjustments_019caf6e-8ecd-7cc9-96ff-af6a6fa736a2" xlink:to="loc_us-gaap_LongTermDebt_019caf6e-8ecd-7813-b8bc-2267614ec91c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019caf6e-8ecd-7081-9112-65dee829bb63" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019caf6e-8ecd-72eb-85be-ca43e14602c2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7081-9112-65dee829bb63" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019caf6e-8ecd-72eb-85be-ca43e14602c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019caf6e-8ecd-7d04-b275-f57377163eda" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-7081-9112-65dee829bb63" xlink:to="loc_us-gaap_LongTermDebtCurrent_019caf6e-8ecd-7d04-b275-f57377163eda" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/NOTESPAYABLECallableMediumTermNotesDetails" xlink:type="simple" xlink:href="agm-20260331.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_019caf6e-8ecd-778b-b72a-dc0fb1405d00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019caf6e-8ecd-77b1-80df-fef6f46107b3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-778b-b72a-dc0fb1405d00" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019caf6e-8ecd-77b1-80df-fef6f46107b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtMaturityAfterYearFour_019caf6e-8ecd-7d48-8d96-353fcf50d12a" xlink:href="agm-20260331.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_019caf6e-8ecd-778b-b72a-dc0fb1405d00" xlink:to="loc_agm_LongTermDebtMaturityAfterYearFour_019caf6e-8ecd-7d48-8d96-353fcf50d12a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_019caf6e-8ecd-72f6-93ec-21de92d82606" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-778b-b72a-dc0fb1405d00" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_019caf6e-8ecd-72f6-93ec-21de92d82606" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_019caf6e-8ecd-7ba5-95cc-e143a354b772" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-778b-b72a-dc0fb1405d00" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_019caf6e-8ecd-7ba5-95cc-e143a354b772" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019caf6e-8ecd-7e13-8f3f-ce18c34b6e49" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8ecd-778b-b72a-dc0fb1405d00" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019caf6e-8ecd-7e13-8f3f-ce18c34b6e49" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/NOTESPAYABLEEarliestInterestResetDateofBorrowingOutstandingDetails" xlink:type="simple" xlink:href="agm-20260331.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_019caf6e-8ecd-709c-b809-16a59cc1cc03" xlink:href="agm-20260331.xsd#agm_LongTermDebtWithInterestRateReset"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityReminderOfTheFiscalYear_019caf6e-8ecd-73aa-b2eb-f681b1b67640" xlink:href="agm-20260331.xsd#agm_LongTermDebtWithInterestRateResetMaturityReminderOfTheFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019caf6e-8ecd-709c-b809-16a59cc1cc03" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityReminderOfTheFiscalYear_019caf6e-8ecd-73aa-b2eb-f681b1b67640" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityYearOne_019caf6e-8ecd-7b5f-a81c-4866680a8241" xlink:href="agm-20260331.xsd#agm_LongTermDebtWithInterestRateResetMaturityYearOne"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019caf6e-8ecd-709c-b809-16a59cc1cc03" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityYearOne_019caf6e-8ecd-7b5f-a81c-4866680a8241" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityYearTwo_019caf6e-8ecd-716f-9116-5a2bd9f89cea" xlink:href="agm-20260331.xsd#agm_LongTermDebtWithInterestRateResetMaturityYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019caf6e-8ecd-709c-b809-16a59cc1cc03" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityYearTwo_019caf6e-8ecd-716f-9116-5a2bd9f89cea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityYearThree_019caf6e-8ecd-791d-95f0-b06b11e253c2" xlink:href="agm-20260331.xsd#agm_LongTermDebtWithInterestRateResetMaturityYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019caf6e-8ecd-709c-b809-16a59cc1cc03" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityYearThree_019caf6e-8ecd-791d-95f0-b06b11e253c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityYearFour_019caf6e-8ecd-7c85-b6d5-db3d01907730" xlink:href="agm-20260331.xsd#agm_LongTermDebtWithInterestRateResetMaturityYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019caf6e-8ecd-709c-b809-16a59cc1cc03" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityYearFour_019caf6e-8ecd-7c85-b6d5-db3d01907730" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_LongTermDebtWithInterestRateResetMaturityAfterYearFour_019caf6e-8ecd-7823-970e-193c83adf13c" xlink:href="agm-20260331.xsd#agm_LongTermDebtWithInterestRateResetMaturityAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_LongTermDebtWithInterestRateReset_019caf6e-8ecd-709c-b809-16a59cc1cc03" xlink:to="loc_agm_LongTermDebtWithInterestRateResetMaturityAfterYearFour_019caf6e-8ecd-7823-970e-193c83adf13c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/FAIRVALUEDISCLOSURESScheduleofFairValueMeasurementsDetails" xlink:type="simple" xlink:href="agm-20260331.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_019caf6e-8f6e-756b-9871-e3a0adfeacf0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019caf6e-8f6e-79dd-a6d2-1c214b0f5f88" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019caf6e-8f6e-756b-9871-e3a0adfeacf0" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019caf6e-8f6e-79dd-a6d2-1c214b0f5f88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019caf6e-8f6e-7f7c-8bb3-a2f67c0f7955" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019caf6e-8f6e-756b-9871-e3a0adfeacf0" xlink:to="loc_us-gaap_DerivativeAssets_019caf6e-8f6e-7f7c-8bb3-a2f67c0f7955" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_019caf6e-8f6e-722b-b17b-792d1b4eefe5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8f6e-756b-9871-e3a0adfeacf0" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_019caf6e-8f6e-722b-b17b-792d1b4eefe5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_019caf6e-8f6e-7637-b90d-fec8b796244e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019caf6e-8f6e-7fd0-aaad-69e5d708b4e1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8f6e-7637-b90d-fec8b796244e" xlink:to="loc_us-gaap_DerivativeLiabilities_019caf6e-8f6e-7fd0-aaad-69e5d708b4e1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.farmermac.com/role/BUSINESSSEGMENTREPORTINGScheduleofSegmentReportingInformationDetails" xlink:type="simple" xlink:href="agm-20260331.xsd#BUSINESSSEGMENTREPORTINGScheduleofSegmentReportingInformationDetails"/>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/BUSINESSSEGMENTREPORTINGScheduleofSegmentReportingInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_agm_NetEffectiveSpread_019caf6e-8f6e-7699-8cd0-b56045a7af74" xlink:href="agm-20260331.xsd#agm_NetEffectiveSpread"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_ReconcilingAdjustmentsFromNetInterestIncomeToNetEffectiveSpreadNet_019caf6e-8f6e-7e25-bd79-07cdde6dabb3" xlink:href="agm-20260331.xsd#agm_ReconcilingAdjustmentsFromNetInterestIncomeToNetEffectiveSpreadNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_NetEffectiveSpread_019caf6e-8f6e-7699-8cd0-b56045a7af74" xlink:to="loc_agm_ReconcilingAdjustmentsFromNetInterestIncomeToNetEffectiveSpreadNet_019caf6e-8f6e-7e25-bd79-07cdde6dabb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019caf6e-8f6e-714d-b332-9dd18fc9d9f7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_NetEffectiveSpread_019caf6e-8f6e-7699-8cd0-b56045a7af74" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_019caf6e-8f6e-714d-b332-9dd18fc9d9f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019caf6e-8f6e-7778-a2ca-1280a23f903e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8f6e-7699-8cd0-b56045a7af74" xlink:to="loc_us-gaap_InterestExpenseOperating_019caf6e-8f6e-7778-a2ca-1280a23f903e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019caf6e-8f6e-7a9d-979b-5853f92bc0e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_UnallocatedAssets_019caf6e-8f6e-79a2-a62d-bbb8e52eaab7" xlink:href="agm-20260331.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_019caf6e-8f6e-7a9d-979b-5853f92bc0e5" xlink:to="loc_agm_UnallocatedAssets_019caf6e-8f6e-79a2-a62d-bbb8e52eaab7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_OffBalanceSheetProgramAssets_019caf6e-8f6e-7d5d-a3c4-385afec80bd7" xlink:href="agm-20260331.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_019caf6e-8f6e-7a9d-979b-5853f92bc0e5" xlink:to="loc_agm_OffBalanceSheetProgramAssets_019caf6e-8f6e-7d5d-a3c4-385afec80bd7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_OnAndOffBalanceSheetProgramAssetsAtPrincipalBalance_019caf6e-8f6e-731c-8397-7cadba13c3a9" xlink:href="agm-20260331.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_019caf6e-8f6e-7a9d-979b-5853f92bc0e5" xlink:to="loc_agm_OnAndOffBalanceSheetProgramAssetsAtPrincipalBalance_019caf6e-8f6e-731c-8397-7cadba13c3a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019caf6e-8f6e-7988-ba6c-061807c010ae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingOtherItemAmount_019caf6e-8f6e-71f3-a422-de93af5909ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019caf6e-8f6e-7988-ba6c-061807c010ae" xlink:to="loc_us-gaap_SegmentReportingOtherItemAmount_019caf6e-8f6e-71f3-a422-de93af5909ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NetEffectsOfDerivativesAndTradingSecurities_019caf6e-8f6e-7a3b-b616-eca62991cf20" xlink:href="agm-20260331.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_019caf6e-8f6e-7988-ba6c-061807c010ae" xlink:to="loc_agm_NetEffectsOfDerivativesAndTradingSecurities_019caf6e-8f6e-7a3b-b616-eca62991cf20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_SegmentCoreEarnings_019caf6e-8f6e-74f8-9cc9-342d3ab6183d" xlink:href="agm-20260331.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_019caf6e-8f6e-7988-ba6c-061807c010ae" xlink:to="loc_agm_SegmentCoreEarnings_019caf6e-8f6e-74f8-9cc9-342d3ab6183d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_IncomeTaxEffectRelatedToReconcilingItems_019caf6e-8f6e-78ab-afa1-e4d58758d0e1" xlink:href="agm-20260331.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_019caf6e-8f6e-7988-ba6c-061807c010ae" xlink:to="loc_agm_IncomeTaxEffectRelatedToReconcilingItems_019caf6e-8f6e-78ab-afa1-e4d58758d0e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_SegmentCoreEarnings_019caf6e-8f6e-7255-89db-395bc376e07b" xlink:href="agm-20260331.xsd#agm_SegmentCoreEarnings"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversalAdjusted_019caf6e-8f6e-756b-9b8a-f71d925b84b5" xlink:href="agm-20260331.xsd#agm_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversalAdjusted"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019caf6e-8f6e-7255-89db-395bc376e07b" xlink:to="loc_agm_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversalAdjusted_019caf6e-8f6e-756b-9b8a-f71d925b84b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissionsAdjusted_019caf6e-8f6e-7965-b31e-9f284b0f0184" xlink:href="agm-20260331.xsd#agm_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissionsAdjusted"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019caf6e-8f6e-7255-89db-395bc376e07b" xlink:to="loc_agm_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissionsAdjusted_019caf6e-8f6e-7965-b31e-9f284b0f0184" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NetEffectiveSpread_019caf6e-8f6e-7cba-bf1c-b285ba1b7c39" xlink:href="agm-20260331.xsd#agm_NetEffectiveSpread"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019caf6e-8f6e-7255-89db-395bc376e07b" xlink:to="loc_agm_NetEffectiveSpread_019caf6e-8f6e-7cba-bf1c-b285ba1b7c39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLossesAdjusted_019caf6e-8f6e-7b05-a6e5-f63eb2605055" xlink:href="agm-20260331.xsd#agm_NoninterestExpenseExcludingLoanLeaseAndOtherLossesAdjusted"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019caf6e-8f6e-7255-89db-395bc376e07b" xlink:to="loc_agm_NoninterestExpenseExcludingLoanLeaseAndOtherLossesAdjusted_019caf6e-8f6e-7b05-a6e5-f63eb2605055" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_OtherNonInterestIncomeExpenseAdjusted_019caf6e-8f6e-7ea0-8a51-a6c47ac9250a" xlink:href="agm-20260331.xsd#agm_OtherNonInterestIncomeExpenseAdjusted"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019caf6e-8f6e-7255-89db-395bc376e07b" xlink:to="loc_agm_OtherNonInterestIncomeExpenseAdjusted_019caf6e-8f6e-7ea0-8a51-a6c47ac9250a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_agm_IncomeTaxExpenseBenefitAdjusted_019caf6e-8f6e-79bd-b56b-e72248e20c76" xlink:href="agm-20260331.xsd#agm_IncomeTaxExpenseBenefitAdjusted"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_019caf6e-8f6e-7255-89db-395bc376e07b" xlink:to="loc_agm_IncomeTaxExpenseBenefitAdjusted_019caf6e-8f6e-79bd-b56b-e72248e20c76" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
