<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.farmermac.com/role/BusinessSegmentReporting" xlink:href="agm-20190930.xsd#BusinessSegmentReporting" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/BusinessSegmentReportingCoreEarningsBusinessSegmentsDetails" xlink:href="agm-20190930.xsd#BusinessSegmentReportingCoreEarningsBusinessSegmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/BusinessSegmentReportingTables" xlink:href="agm-20190930.xsd#BusinessSegmentReportingTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedBalanceSheets" xlink:href="agm-20190930.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="agm-20190930.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="agm-20190930.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="agm-20190930.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfEquity" xlink:href="agm-20190930.xsd#ConsolidatedStatementsOfEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfEquityParenthetical" xlink:href="agm-20190930.xsd#ConsolidatedStatementsOfEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfOperations" xlink:href="agm-20190930.xsd#ConsolidatedStatementsOfOperations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/CoverPage" xlink:href="agm-20190930.xsd#CoverPage" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/Equity" xlink:href="agm-20190930.xsd#Equity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/EquityCapitalRequirementsDetails" xlink:href="agm-20190930.xsd#EquityCapitalRequirementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/EquityNarrativeDetails" xlink:href="agm-20190930.xsd#EquityNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosures" xlink:href="agm-20190930.xsd#FairValueDisclosures" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetails" xlink:href="agm-20190930.xsd#FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetailsCalc2" xlink:href="agm-20190930.xsd#FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetailsCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresNarrativeDetails" xlink:href="agm-20190930.xsd#FairValueDisclosuresNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresQuantitativeInformationDetails" xlink:href="agm-20190930.xsd#FairValueDisclosuresQuantitativeInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresSummaryOfCarryingValueAndFairValueDetails" xlink:href="agm-20190930.xsd#FairValueDisclosuresSummaryOfCarryingValueAndFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresTables" xlink:href="agm-20190930.xsd#FairValueDisclosuresTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresUnobservableInputReconciliationDetails" xlink:href="agm-20190930.xsd#FairValueDisclosuresUnobservableInputReconciliationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecurities" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesDetails" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesNarrativeDetails" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfAvailableForSaleSecuritiesDetails" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfAvailableForSaleSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfHeldToMaturitySecuritiesDetails" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfHeldToMaturitySecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesUnrealizedLossPositionDetails" xlink:href="agm-20190930.xsd#FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesUnrealizedLossPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivatives" xlink:href="agm-20190930.xsd#FinancialDerivatives" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesHedgedItemsInFairValueHedgingRelationshipsDetails" xlink:href="agm-20190930.xsd#FinancialDerivativesHedgedItemsInFairValueHedgingRelationshipsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesNarrativeDetails" xlink:href="agm-20190930.xsd#FinancialDerivativesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesScheduleOfCreditExposureToInterestRateSwapCounterpartiesDetails" xlink:href="agm-20190930.xsd#FinancialDerivativesScheduleOfCreditExposureToInterestRateSwapCounterpartiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionDetails" xlink:href="agm-20190930.xsd#FinancialDerivativesScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesScheduleOfNetIncomeExpenseRecognizedDetails" xlink:href="agm-20190930.xsd#FinancialDerivativesScheduleOfNetIncomeExpenseRecognizedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesTables" xlink:href="agm-20190930.xsd#FinancialDerivativesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitments" xlink:href="agm-20190930.xsd#GuaranteesAndLongTermStandbyPurchaseCommitments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsCashFlowsFromOffBalanceSheetGuaranteedSecuritiesDetails" xlink:href="agm-20190930.xsd#GuaranteesAndLongTermStandbyPurchaseCommitmentsCashFlowsFromOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsLongTermStandbyPurchaseCommitmentsDetails" xlink:href="agm-20190930.xsd#GuaranteesAndLongTermStandbyPurchaseCommitmentsLongTermStandbyPurchaseCommitmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteedSecuritiesDetails" xlink:href="agm-20190930.xsd#GuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsTables" xlink:href="agm-20190930.xsd#GuaranteesAndLongTermStandbyPurchaseCommitmentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecurities" xlink:href="agm-20190930.xsd#InvestmentSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesDebtMaturitiesDetails" xlink:href="agm-20190930.xsd#InvestmentSecuritiesDebtMaturitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesNarrativeDetails" xlink:href="agm-20190930.xsd#InvestmentSecuritiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetails" xlink:href="agm-20190930.xsd#InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetailsCalc2" xlink:href="agm-20190930.xsd#InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetailsCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesTables" xlink:href="agm-20190930.xsd#InvestmentSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesUnrealizedLossPositionDetails" xlink:href="agm-20190930.xsd#InvestmentSecuritiesUnrealizedLossPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLosses" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesNarrativeDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfAllowanceForCreditLossesDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfAllowanceForCreditLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfAllowanceForLossesByImpairmentMethodAndCommodityDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfAllowanceForLossesByImpairmentMethodAndCommodityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfCompositonOfLoanBalancesDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfCompositonOfLoanBalancesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfConcentrationsOfRiskByRiskFactorDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfConcentrationsOfRiskByRiskFactorDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfFinancingReceivablesCreditQualityIndicatorsDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfFinancingReceivablesCreditQualityIndicatorsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfImpairedFinancingReceivablesDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfImpairedFinancingReceivablesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfPastDueFinancingReceivablesDetails" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesScheduleOfPastDueFinancingReceivablesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesTables" xlink:href="agm-20190930.xsd#LoansAndAllowanceForLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesConsolidationOfVariableInterestEntitiesDetails" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesConsolidationOfVariableInterestEntitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerCommonShareDetails" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesEarningsPerCommonShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfAccumulatedOtherComprehensiveIncomeNetOfTaxDetails" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesScheduleOfAccumulatedOtherComprehensiveIncomeNetOfTaxDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesScheduleOfReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="agm-20190930.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/BusinessSegmentReporting" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/BusinessSegmentReportingCoreEarningsBusinessSegmentsDetails" xlink:type="extended">
    <link:loc xlink:href="agm-20190930.xsd#agm_SegmentCoreEarningsBeforeIncomeTaxes" xlink:label="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_b55923b2-8261-264a-96fa-e21863174d42" xlink:type="locator" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NetEffectiveSpread" xlink:label="loc_agm_NetEffectiveSpread_7cf63c55-020c-cc31-581d-e2186481a75b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_b55923b2-8261-264a-96fa-e21863174d42" xlink:to="loc_agm_NetEffectiveSpread_7cf63c55-020c-cc31-581d-e2186481a75b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_NetEffectiveSpread_7cf63c55-020c-cc31-581d-e2186481a75b" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ReconcilingAdjustmentsFromNetInterestIncometoNetEffectiveSpreadNet" xlink:label="loc_agm_ReconcilingAdjustmentsFromNetInterestIncometoNetEffectiveSpreadNet_cef4484c-8f2d-4b3d-6186-e21863b78580" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_NetEffectiveSpread_7cf63c55-020c-cc31-581d-e2186481a75b" xlink:to="loc_agm_ReconcilingAdjustmentsFromNetInterestIncometoNetEffectiveSpreadNet_cef4484c-8f2d-4b3d-6186-e21863b78580" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_b55923b2-8261-264a-96fa-e21863174d42" xlink:to="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions" xlink:label="loc_us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions_275ab957-10c9-7fd2-a458-483a9fdf7ede" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions_275ab957-10c9-7fd2-a458-483a9fdf7ede" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OtherNonInterestIncomeExpenseExcludingGuaranteeAndCommitmentFees" xlink:label="loc_agm_OtherNonInterestIncomeExpenseExcludingGuaranteeAndCommitmentFees_193b3937-85c8-acf5-38c4-e21863a57b8a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_agm_OtherNonInterestIncomeExpenseExcludingGuaranteeAndCommitmentFees_193b3937-85c8-acf5-38c4-e21863a57b8a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_4487fcf4-b7ec-a7a8-ae9b-0f17fd8bcea8" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_b55923b2-8261-264a-96fa-e21863174d42" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_4487fcf4-b7ec-a7a8-ae9b-0f17fd8bcea8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_b55923b2-8261-264a-96fa-e21863174d42" xlink:to="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_SegmentCoreEarnings" xlink:label="loc_agm_SegmentCoreEarnings_e94359dc-1806-266e-3f04-e21862c055f3" xlink:type="locator" />
    <link:loc xlink:href="agm-20190930.xsd#agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends" xlink:label="loc_agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends_907fbb6d-f203-5309-5ce7-e21862dc54ba" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_e94359dc-1806-266e-3f04-e21862c055f3" xlink:to="loc_agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends_907fbb6d-f203-5309-5ce7-e21862dc54ba" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_63184a46-2bac-760c-5a30-fe8e316dca8f" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_e94359dc-1806-266e-3f04-e21862c055f3" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_63184a46-2bac-760c-5a30-fe8e316dca8f" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_WriteOffOfStockIssuanceCostsPreferredStock" xlink:label="loc_agm_WriteOffOfStockIssuanceCostsPreferredStock_CE08861722702680E05700EDF3A0EB61" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_e94359dc-1806-266e-3f04-e21862c055f3" xlink:to="loc_agm_WriteOffOfStockIssuanceCostsPreferredStock_CE08861722702680E05700EDF3A0EB61" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/BusinessSegmentReportingTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_7af59755-3d0e-afb6-d02a-69abd398a504" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_7af59755-3d0e-afb6-d02a-69abd398a504" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_422d7c41-753d-7765-5880-50978d071d31" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_7af59755-3d0e-afb6-d02a-69abd398a504" xlink:to="loc_us-gaap_ShortTermBorrowings_422d7c41-753d-7765-5880-50978d071d31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_7af59755-3d0e-afb6-d02a-69abd398a504" xlink:to="loc_us-gaap_LongTermDebt_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities" xlink:label="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities_6217a7c6-5c9a-be0b-f338-c7daf18c0fde" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities_6217a7c6-5c9a-be0b-f338-c7daf18c0fde" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_c526cec7-2a96-da82-2b5c-b252c3ef64fd" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_c526cec7-2a96-da82-2b5c-b252c3ef64fd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_6c99b575-18e1-e272-0304-f63a5e5a998b" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_6c99b575-18e1-e272-0304-f63a5e5a998b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuarantyLiabilities" xlink:label="loc_us-gaap_GuarantyLiabilities_bbb17785-56e3-a970-d269-c3980fe056bb" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_GuarantyLiabilities_bbb17785-56e3-a970-d269-c3980fe056bb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilities" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_de577786-1529-5960-9bfe-0d2437bb27f5" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_de577786-1529-5960-9bfe-0d2437bb27f5" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ReserveForLosses" xlink:label="loc_agm_ReserveForLosses_f988ae4e-05f1-13f2-18d7-e2186469e910" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:to="loc_agm_ReserveForLosses_f988ae4e-05f1-13f2-18d7-e2186469e910" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_ea289a9d-deba-2cde-21e4-3d0ae7a1f011" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:to="loc_us-gaap_PreferredStockValue_ea289a9d-deba-2cde-21e4-3d0ae7a1f011" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_aefe3f0c-abe4-5b83-9a64-da77d8e253dd" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:to="loc_us-gaap_CommonStockValue_aefe3f0c-abe4-5b83-9a64-da77d8e253dd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_6dca832a-861c-478d-b1a0-396533beb40d" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:to="loc_us-gaap_AdditionalPaidInCapital_6dca832a-861c-478d-b1a0-396533beb40d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_798442bf-12e1-d944-3fa1-8b797b67482e" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_798442bf-12e1-d944-3fa1-8b797b67482e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a59bc5ae-63a0-c9bc-32f7-e2bd9f32bd26" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e0c0480e-e6f5-c4df-ce25-1ffa4a8c827a" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a59bc5ae-63a0-c9bc-32f7-e2bd9f32bd26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_f0c68f4f-7ec1-d447-8ba7-0f2766abbe67" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_CommitmentsAndContingencies_f0c68f4f-7ec1-d447-8ba7-0f2766abbe67" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateAcquiredThroughForeclosure" xlink:label="loc_us-gaap_RealEstateAcquiredThroughForeclosure_46b50f97-e3d9-8e5e-8897-15420d515b6a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_RealEstateAcquiredThroughForeclosure_46b50f97-e3d9-8e5e-8897-15420d515b6a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_039063f0-a070-e7c0-00b9-9f969b70b0e3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_039063f0-a070-e7c0-00b9-9f969b70b0e3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaap_InterestReceivable_1b69c830-bc0e-9c5b-41c9-e13cffc645fa" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_InterestReceivable_1b69c830-bc0e-9c5b-41c9-e13cffc645fa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GuarantyAssets" xlink:label="loc_us-gaap_GuarantyAssets_3bba641c-f792-5bed-fc94-88d5d7cc2d82" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_GuarantyAssets_3bba641c-f792-5bed-fc94-88d5d7cc2d82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_c003e837-c7c9-cd10-ae74-916131fdc333" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_c003e837-c7c9-cd10-ae74-916131fdc333" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssets" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssets_8bd31a3b-6afe-4de8-d7da-ee2d28da8cbe" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssets_8bd31a3b-6afe-4de8-d7da-ee2d28da8cbe" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableGrossCarryingAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_4cbb843e-5652-0c37-ca7e-5d0dafc6ebdb" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:to="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_4cbb843e-5652-0c37-ca7e-5d0dafc6ebdb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets" xlink:label="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets_5f4b6ba3-5f97-cea0-7f6d-47f2315bc5b5" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:to="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets_5f4b6ba3-5f97-cea0-7f6d-47f2315bc5b5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_df7af0b2-43e2-2ab7-2db2-c01524cee08f" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_df7af0b2-43e2-2ab7-2db2-c01524cee08f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_32f41ea9-05c6-e713-464b-586a571d1c1f" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_32f41ea9-05c6-e713-464b-586a571d1c1f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketableSecurities" xlink:label="loc_us-gaap_MarketableSecurities_b0d2564e-70dc-1aa5-5410-b2c63a94f027" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_MarketableSecurities_b0d2564e-70dc-1aa5-5410-b2c63a94f027" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="loc_us-gaap_HeldToMaturitySecurities_70d0d4df-f8d1-cf12-e04c-edcdce30731a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MarketableSecurities_b0d2564e-70dc-1aa5-5410-b2c63a94f027" xlink:to="loc_us-gaap_HeldToMaturitySecurities_70d0d4df-f8d1-cf12-e04c-edcdce30731a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MarketableSecurities_b0d2564e-70dc-1aa5-5410-b2c63a94f027" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_ef1bb5a1-dc20-9776-a20e-84958101e83f" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MarketableSecurities_b0d2564e-70dc-1aa5-5410-b2c63a94f027" xlink:to="loc_us-gaap_TradingSecurities_ef1bb5a1-dc20-9776-a20e-84958101e83f" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9743d583-dfae-6ae9-f133-a1e331df792c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9743d583-dfae-6ae9-f133-a1e331df792c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_4f3832d5-e2fd-470b-5e04-ece38e7ab02d" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_4f3832d5-e2fd-470b-5e04-ece38e7ab02d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_1b3da715-8d28-869a-fc9e-cb75bcd8d652" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_1b3da715-8d28-869a-fc9e-cb75bcd8d652" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_NetChangeInFairValueOfTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale" xlink:label="loc_agm_NetChangeInFairValueOfTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale_755f19e0-9054-8990-af00-e218643013f2" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_agm_NetChangeInFairValueOfTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale_755f19e0-9054-8990-af00-e218643013f2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_4a6a38da-b7a6-954f-0e6d-0c7a078f2f07" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_4a6a38da-b7a6-954f-0e6d-0c7a078f2f07" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_ExcessTaxBenefitsfromShareBasedCompensation" xlink:label="loc_agm_ExcessTaxBenefitsfromShareBasedCompensation_e37af96b-62df-3d2f-bfa0-e21863440497" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_agm_ExcessTaxBenefitsfromShareBasedCompensation_e37af96b-62df-3d2f-bfa0-e21863440497" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_e8a9abf2-38d3-77d1-fb6b-693fef632294" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_e8a9abf2-38d3-77d1-fb6b-693fef632294" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_90cbc3ab-f555-6407-b3b4-b2bfa84c9f18" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_ShareBasedCompensation_90cbc3ab-f555-6407-b3b4-b2bfa84c9f18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale_ad0efcf4-a8cd-47e2-3170-754b8d2936d6" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale_ad0efcf4-a8cd-47e2-3170-754b8d2936d6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_21b2374f-ed59-409a-8c93-50623e6a6908" xlink:type="locator" />
    <link:calculationArc order="10" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_21b2374f-ed59-409a-8c93-50623e6a6908" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherReceivables" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherReceivables_5c03a9d6-b8ac-bbf3-746c-c7ea8b29c405" xlink:type="locator" />
    <link:calculationArc order="11" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherReceivables_5c03a9d6-b8ac-bbf3-746c-c7ea8b29c405" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_d54a644c-3d3c-bcc1-da30-2f136651f90f" xlink:type="locator" />
    <link:calculationArc order="12" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_d54a644c-3d3c-bcc1-da30-2f136651f90f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_2d76eef5-dce5-0152-632e-9bab39da698c" xlink:type="locator" />
    <link:calculationArc order="13" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_2d76eef5-dce5-0152-632e-9bab39da698c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_a039d388-4db8-a076-4618-28899f6ce801" xlink:type="locator" />
    <link:calculationArc order="14" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_a039d388-4db8-a076-4618-28899f6ce801" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_7051af50-65b8-3377-3a03-896140e3a07f" xlink:type="locator" />
    <link:calculationArc order="15" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_7051af50-65b8-3377-3a03-896140e3a07f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9743d583-dfae-6ae9-f133-a1e331df792c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_5a6cca43-79c5-34f3-6172-5859b13486b1" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_5a6cca43-79c5-34f3-6172-5859b13486b1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireLoansHeldForInvestment" xlink:label="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_9f1bac14-26fb-308e-3748-ed5eb6ac02c9" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_9f1bac14-26fb-308e-3748-ed5eb6ac02c9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireOtherLoansAndLeasesHeldForInvestment" xlink:label="loc_us-gaap_PaymentsToAcquireOtherLoansAndLeasesHeldForInvestment_b3522f90-986c-59b7-d204-3a33b03c1045" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_PaymentsToAcquireOtherLoansAndLeasesHeldForInvestment_b3522f90-986c-59b7-d204-3a33b03c1045" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_b2d1473c-d06a-7053-5039-5cb1510f932e" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_b2d1473c-d06a-7053-5039-5cb1510f932e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment" xlink:label="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_bd5ab5f0-a264-b4d5-ddd3-4ced9c0ad473" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_bd5ab5f0-a264-b4d5-ddd3-4ced9c0ad473" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfOtherInvestments" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherInvestments_9f709144-b7dd-5955-b719-be794f06106a" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherInvestments_9f709144-b7dd-5955-b719-be794f06106a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfForeclosedAssets" xlink:label="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_f7a05dd0-d1a9-4315-39bd-0a10a3074473" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:to="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_f7a05dd0-d1a9-4315-39bd-0a10a3074473" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9743d583-dfae-6ae9-f133-a1e331df792c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_51c81063-9b68-dd0f-b2a1-9bda45041695" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_51c81063-9b68-dd0f-b2a1-9bda45041695" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RepaymentsOfDebt" xlink:label="loc_us-gaap_RepaymentsOfDebt_7d42c724-e395-d9cd-4d02-38341e761dae" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_RepaymentsOfDebt_7d42c724-e395-d9cd-4d02-38341e761dae" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts" xlink:label="loc_agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts_86cc5dab-e44c-4915-6414-e2186400b5b8" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts_86cc5dab-e44c-4915-6414-e2186400b5b8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_6ec8bc8e-bcd9-36ad-d8ae-2c2fa1dfd920" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_6ec8bc8e-bcd9-36ad-d8ae-2c2fa1dfd920" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock_4e920c46-9ad8-afac-c8fe-0476c8405ce6" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock_4e920c46-9ad8-afac-c8fe-0476c8405ce6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_486e1bb1-051d-da73-b755-2d2d43da1fe2" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_486e1bb1-051d-da73-b755-2d2d43da1fe2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_43305c85-41ff-3d0f-c464-dc8983363bce" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_43305c85-41ff-3d0f-c464-dc8983363bce" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsOfOrdinaryDividends" xlink:label="loc_us-gaap_PaymentsOfOrdinaryDividends_51dc3979-8c2d-8f2b-5d40-e3533f460bb4" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:to="loc_us-gaap_PaymentsOfOrdinaryDividends_51dc3979-8c2d-8f2b-5d40-e3533f460bb4" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_fd048371-7ae9-878a-d401-982ff73ca2e8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_fd048371-7ae9-878a-d401-982ff73ca2e8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_9e072cec-4fcb-d083-f0ab-2b83cce1f9d0" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_fd048371-7ae9-878a-d401-982ff73ca2e8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_9e072cec-4fcb-d083-f0ab-2b83cce1f9d0" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_OtherComprehensiveIncomeLossHeldtoMaturitySecuritiesbeforetax" xlink:label="loc_agm_OtherComprehensiveIncomeLossHeldtoMaturitySecuritiesbeforetax_fd1c9914-e73d-69d5-62cd-e21863fd79e5" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_fd048371-7ae9-878a-d401-982ff73ca2e8" xlink:to="loc_agm_OtherComprehensiveIncomeLossHeldtoMaturitySecuritiesbeforetax_fd1c9914-e73d-69d5-62cd-e21863fd79e5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesBeforeTax_48affc1d-1d93-b02c-d36f-6fb2e4d5af12" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_fd048371-7ae9-878a-d401-982ff73ca2e8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesBeforeTax_48affc1d-1d93-b02c-d36f-6fb2e4d5af12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_aa6d7695-3c9c-a820-1c3c-0e977db4a781" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTax_aa6d7695-3c9c-a820-1c3c-0e977db4a781" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:to="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfEquity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfEquityParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfOperations" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:to="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_43276f52-64d7-633b-1383-000dbf34adbf" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_43276f52-64d7-633b-1383-000dbf34adbf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_43276f52-64d7-633b-1383-000dbf34adbf" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeSecurities" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecurities_6a791a49-811e-f511-9d45-2a5de1111fba" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecurities_6a791a49-811e-f511-9d45-2a5de1111fba" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeOperating" xlink:label="loc_us-gaap_InterestIncomeOperating_49a20539-5304-2297-96e1-4142f54e0b45" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestIncomeOperating_49a20539-5304-2297-96e1-4142f54e0b45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_5e280e98-99c6-f098-f4f9-65bce8235b66" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_5e280e98-99c6-f098-f4f9-65bce8235b66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:to="loc_us-gaap_InterestExpense_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_4487fcf4-b7ec-a7a8-ae9b-0f17fd8bcea8" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_43276f52-64d7-633b-1383-000dbf34adbf" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_4487fcf4-b7ec-a7a8-ae9b-0f17fd8bcea8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:to="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions" xlink:label="loc_us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions_275ab957-10c9-7fd2-a458-483a9fdf7ede" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions_275ab957-10c9-7fd2-a458-483a9fdf7ede" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_21e1e17d-8548-ebf7-18c6-2b0715714390" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_21e1e17d-8548-ebf7-18c6-2b0715714390" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingGainsLosses" xlink:label="loc_us-gaap_TradingGainsLosses_f7eed12f-1a9c-b4d6-61c6-c4e8d1bb15fa" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_us-gaap_TradingGainsLosses_f7eed12f-1a9c-b4d6-61c6-c4e8d1bb15fa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_3757e0a1-8c93-5316-53c9-8f3b34503211" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_3757e0a1-8c93-5316-53c9-8f3b34503211" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_7051af50-65b8-3377-3a03-896140e3a07f" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_7051af50-65b8-3377-3a03-896140e3a07f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:to="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_1283cb92-0ae2-bdeb-f803-6d5e502ce8d9" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_LaborAndRelatedExpense_1283cb92-0ae2-bdeb-f803-6d5e502ce8d9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_a698662c-5d68-9b87-98fe-02485cda58f8" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_a698662c-5d68-9b87-98fe-02485cda58f8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_OtherGeneralAndAdministrativeExpense_b0900f4c-cf87-dac5-5867-06d700305f08" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_OtherGeneralAndAdministrativeExpense_b0900f4c-cf87-dac5-5867-06d700305f08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForOtherCreditLosses" xlink:label="loc_us-gaap_ProvisionForOtherCreditLosses_99f6c05c-bede-0cec-8a38-4b1231e3c0b1" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_ProvisionForOtherCreditLosses_99f6c05c-bede-0cec-8a38-4b1231e3c0b1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeclosedRealEstateExpense" xlink:label="loc_us-gaap_ForeclosedRealEstateExpense_afec8d05-1755-81c6-89c0-2f3ac23e342e" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_ForeclosedRealEstateExpense_afec8d05-1755-81c6-89c0-2f3ac23e342e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_97bbae57-7f84-4da9-acab-610e56204929" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_97bbae57-7f84-4da9-acab-610e56204929" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_63184a46-2bac-760c-5a30-fe8e316dca8f" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_63184a46-2bac-760c-5a30-fe8e316dca8f" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_WriteOffOfStockIssuanceCostsPreferredStock" xlink:label="loc_agm_WriteOffOfStockIssuanceCostsPreferredStock_CE08861722702680E05700EDF3A0EB61" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:to="loc_agm_WriteOffOfStockIssuanceCostsPreferredStock_CE08861722702680E05700EDF3A0EB61" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/CoverPage" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/Equity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/EquityCapitalRequirementsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/EquityNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosures" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:type="locator" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetailsCalc2" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_92012D7186273CCC0660BD83A8E75D1E_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentsFairValueDisclosure" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_92012D7186273CCC0660BD83A8E75D1E_a786ac72-7b36-d915-a262-d97f0559057f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_92012D7186273CCC0660BD83A8E75D1E_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_92012D7186273CCC0660BD83A8E75D1E_a786ac72-7b36-d915-a262-d97f0559057f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_92012D7186273CCC0660BD83A8E75D1E_dcb44336-c712-7a1a-d111-e88d6c1679df" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_92012D7186273CCC0660BD83A8E75D1E_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_TradingSecuritiesDebt_92012D7186273CCC0660BD83A8E75D1E_dcb44336-c712-7a1a-d111-e88d6c1679df" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_92012D7186273CCC0660BD83A8E75D1E_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_92012D7186273CCC0660BD83A8E75D1E_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_DerivativeAssets_92012D7186273CCC0660BD83A8E75D1E_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresQuantitativeInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresSummaryOfCarryingValueAndFairValueDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresUnobservableInputReconciliationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecurities" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfAvailableForSaleSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_037D365633E35895A51682DE72FDD6ED" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6A7E63D4C73352B389210A84BFC1095B" xlink:type="locator" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfHeldToMaturitySecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_35075CEC15835427A27677F3D4F611D6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_B2A23C18108B504F9FD512AB15FA6C64" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_35075CEC15835427A27677F3D4F611D6" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_B2A23C18108B504F9FD512AB15FA6C64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_74247365D26A510CA414BE70D175AD9B" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_35075CEC15835427A27677F3D4F611D6" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_74247365D26A510CA414BE70D175AD9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_6089392202F2502DBD1E68AC8AED2FCC" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_35075CEC15835427A27677F3D4F611D6" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_6089392202F2502DBD1E68AC8AED2FCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_D67CCF99B33E50AAA2947F76E0A059DA" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_35075CEC15835427A27677F3D4F611D6" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount_D67CCF99B33E50AAA2947F76E0A059DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_671B65CD4DF45EE0B0F913072DE7C697" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_31967287E87052A09F075149E1D2CAB6" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_671B65CD4DF45EE0B0F913072DE7C697" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue_31967287E87052A09F075149E1D2CAB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_BE8EEA82EF31511C8EB9BF5D4E39AFAE" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_671B65CD4DF45EE0B0F913072DE7C697" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_BE8EEA82EF31511C8EB9BF5D4E39AFAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_6D294937509C5E1DB6F18019E00E198A" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_671B65CD4DF45EE0B0F913072DE7C697" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_6D294937509C5E1DB6F18019E00E198A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_32368EA7AF935A99A3E962F84CED068C" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_671B65CD4DF45EE0B0F913072DE7C697" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue_32368EA7AF935A99A3E962F84CED068C" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesUnrealizedLossPositionDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivatives" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesHedgedItemsInFairValueHedgingRelationshipsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesScheduleOfCreditExposureToInterestRateSwapCounterpartiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_039063f0-a070-e7c0-00b9-9f969b70b0e3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_039063f0-a070-e7c0-00b9-9f969b70b0e3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetFairValueOfCollateral" xlink:label="loc_us-gaap_DerivativeAssetFairValueOfCollateral_ff92273d-2682-26b3-600b-606897413ca0" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" xlink:to="loc_us-gaap_DerivativeAssetFairValueOfCollateral_ff92273d-2682-26b3-600b-606897413ca0" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesScheduleOfNetIncomeExpenseRecognizedDetails" xlink:type="extended">
    <link:loc xlink:href="agm-20190930.xsd#agm_Income_Expenserelatedtointerestsettlementsonfairvaluehedges" xlink:label="loc_agm_Income_Expenserelatedtointerestsettlementsonfairvaluehedges_652cf9d0-00ee-420f-6608-e21864113102" xlink:type="locator" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DerivativeNetInterestSettlements" xlink:label="loc_agm_DerivativeNetInterestSettlements_e40154d7-1d12-2419-3a7a-e21862a3742d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_Income_Expenserelatedtointerestsettlementsonfairvaluehedges_652cf9d0-00ee-420f-6608-e21864113102" xlink:to="loc_agm_DerivativeNetInterestSettlements_e40154d7-1d12-2419-3a7a-e21862a3742d" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_HedgedItemNetInterestSettlements" xlink:label="loc_agm_HedgedItemNetInterestSettlements_f452af02-6685-a3bf-b24a-e218631f9501" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_Income_Expenserelatedtointerestsettlementsonfairvaluehedges_652cf9d0-00ee-420f-6608-e21864113102" xlink:to="loc_agm_HedgedItemNetInterestSettlements_f452af02-6685-a3bf-b24a-e218631f9501" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_Premium_Discountrecognizedonhedgeditem" xlink:label="loc_agm_Premium_Discountrecognizedonhedgeditem_227ee7e6-4fd8-bde9-6b8f-e218640b1ccd" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_Income_Expenserelatedtointerestsettlementsonfairvaluehedges_652cf9d0-00ee-420f-6608-e21864113102" xlink:to="loc_agm_Premium_Discountrecognizedonhedgeditem_227ee7e6-4fd8-bde9-6b8f-e218640b1ccd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings" xlink:label="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_91092db5-22d5-6486-3c93-60cbb23cd623" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_1e182c7c-e85a-93ab-42e0-001b8680b5f2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_91092db5-22d5-6486-3c93-60cbb23cd623" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_1e182c7c-e85a-93ab-42e0-001b8680b5f2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_797c9dce-ec81-80c0-26ea-11f8cc2534bd" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_91092db5-22d5-6486-3c93-60cbb23cd623" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_797c9dce-ec81-80c0-26ea-11f8cc2534bd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments" xlink:label="loc_us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments_87f4c460-c47b-c399-bd38-bf40a00237a5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_19a9882d-ffc5-f60a-48da-a57a1ebf19e9" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments_87f4c460-c47b-c399-bd38-bf40a00237a5" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_19a9882d-ffc5-f60a-48da-a57a1ebf19e9" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem" xlink:label="loc_agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem_10bba173-32a7-d21e-fc42-e218641d8fb3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments_87f4c460-c47b-c399-bd38-bf40a00237a5" xlink:to="loc_agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem_10bba173-32a7-d21e-fc42-e218641d8fb3" xlink:type="arc" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments_87f4c460-c47b-c399-bd38-bf40a00237a5" xlink:to="loc_agm_Premium_Discountrecognizedonhedgeditem_227ee7e6-4fd8-bde9-6b8f-e218640b1ccd" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitments" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsCashFlowsFromOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsLongTermStandbyPurchaseCommitmentsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecurities" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesDebtMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6A7E63D4C73352B389210A84BFC1095B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_A3143DE4746A57BDBC1EFF9578812C78" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6A7E63D4C73352B389210A84BFC1095B" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_A3143DE4746A57BDBC1EFF9578812C78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_AE40F42DEF4458DC932580048B7EF0FA" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6A7E63D4C73352B389210A84BFC1095B" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_AE40F42DEF4458DC932580048B7EF0FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_36F4F93405EF52558C950E5D56E5F91B" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6A7E63D4C73352B389210A84BFC1095B" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_36F4F93405EF52558C950E5D56E5F91B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_E631823063CA5ACA9A1C440BED43E93E" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6A7E63D4C73352B389210A84BFC1095B" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_E631823063CA5ACA9A1C440BED43E93E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_037D365633E35895A51682DE72FDD6ED" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_CE7907E51D4B5B05BC320F6361B484FB" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_037D365633E35895A51682DE72FDD6ED" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_CE7907E51D4B5B05BC320F6361B484FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_D35CE917E8AE5B46982343C13A99C479" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_037D365633E35895A51682DE72FDD6ED" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_D35CE917E8AE5B46982343C13A99C479" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_6859F20414975398BDE46FE223591B44" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_037D365633E35895A51682DE72FDD6ED" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_6859F20414975398BDE46FE223591B44" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_1CA3E0BDED8150399295E79685B82E65" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_037D365633E35895A51682DE72FDD6ED" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_1CA3E0BDED8150399295E79685B82E65" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_35075CEC15835427A27677F3D4F611D6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_501D3F09943C5AF29B29D9BBD63C0760" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_35075CEC15835427A27677F3D4F611D6" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_501D3F09943C5AF29B29D9BBD63C0760" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_96E48305FE075A01A2B480B93D54D429" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_35075CEC15835427A27677F3D4F611D6" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_96E48305FE075A01A2B480B93D54D429" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_671B65CD4DF45EE0B0F913072DE7C697" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_35075CEC15835427A27677F3D4F611D6" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesFairValue_671B65CD4DF45EE0B0F913072DE7C697" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_037D365633E35895A51682DE72FDD6ED" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_8128D8890DD25AEC9914079BC84CC9FC" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_037D365633E35895A51682DE72FDD6ED" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_8128D8890DD25AEC9914079BC84CC9FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_DB3A0990E1F05F57B3E97CF9CDC7BAD8" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_037D365633E35895A51682DE72FDD6ED" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_DB3A0990E1F05F57B3E97CF9CDC7BAD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6A7E63D4C73352B389210A84BFC1095B" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_037D365633E35895A51682DE72FDD6ED" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6A7E63D4C73352B389210A84BFC1095B" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MarketableSecuritiesAmortizedCostBasis" xlink:label="loc_agm_MarketableSecuritiesAmortizedCostBasis_554CE23743C652109E3C848915A272DA" xlink:type="locator" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MarketableSecuritiesGrossUnrealizedGains" xlink:label="loc_agm_MarketableSecuritiesGrossUnrealizedGains_DC81271798EA5FE8AD9A449C52C5C0FE" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_MarketableSecuritiesAmortizedCostBasis_554CE23743C652109E3C848915A272DA" xlink:to="loc_agm_MarketableSecuritiesGrossUnrealizedGains_DC81271798EA5FE8AD9A449C52C5C0FE" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_MarketableSecuritiesGrossUnrealizedLosses" xlink:label="loc_agm_MarketableSecuritiesGrossUnrealizedLosses_E812201C0E245A84A8DE8BE235D1E85E" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_MarketableSecuritiesAmortizedCostBasis_554CE23743C652109E3C848915A272DA" xlink:to="loc_agm_MarketableSecuritiesGrossUnrealizedLosses_E812201C0E245A84A8DE8BE235D1E85E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity_4E72B805B07B559C916490C6F1F9071D" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_MarketableSecuritiesAmortizedCostBasis_554CE23743C652109E3C848915A272DA" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity_4E72B805B07B559C916490C6F1F9071D" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetailsCalc2" xlink:type="extended">
    <link:loc xlink:href="agm-20190930.xsd#agm_MarketableSecuritiesAmortizedCostBasis" xlink:label="loc_agm_MarketableSecuritiesAmortizedCostBasis_AC065576E1F276C71DAB2F61CCD71219_554CE23743C652109E3C848915A272DA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_AC065576E1F276C71DAB2F61CCD71219_037D365633E35895A51682DE72FDD6ED" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_MarketableSecuritiesAmortizedCostBasis_AC065576E1F276C71DAB2F61CCD71219_554CE23743C652109E3C848915A272DA" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_AC065576E1F276C71DAB2F61CCD71219_037D365633E35895A51682DE72FDD6ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_AC065576E1F276C71DAB2F61CCD71219_35075CEC15835427A27677F3D4F611D6" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_MarketableSecuritiesAmortizedCostBasis_AC065576E1F276C71DAB2F61CCD71219_554CE23743C652109E3C848915A272DA" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment_AC065576E1F276C71DAB2F61CCD71219_35075CEC15835427A27677F3D4F611D6" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesUnrealizedLossPositionDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLosses" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfAllowanceForCreditLossesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfAllowanceForLossesByImpairmentMethodAndCommodityDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfCompositonOfLoanBalancesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableGrossCarryingAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_4cbb843e-5652-0c37-ca7e-5d0dafc6ebdb" xlink:type="locator" />
    <link:loc xlink:href="agm-20190930.xsd#agm_LoansandLeaseReceivableUnpaidPrincipalBalance" xlink:label="loc_agm_LoansandLeaseReceivableUnpaidPrincipalBalance_81d6129d-4ae0-7016-b058-e21864399602" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_4cbb843e-5652-0c37-ca7e-5d0dafc6ebdb" xlink:to="loc_agm_LoansandLeaseReceivableUnpaidPrincipalBalance_81d6129d-4ae0-7016-b058-e21864399602" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums" xlink:label="loc_us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums_f3e8cd58-3d3d-6bc2-7a91-19e6a74dce1b" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_4cbb843e-5652-0c37-ca7e-5d0dafc6ebdb" xlink:to="loc_us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums_f3e8cd58-3d3d-6bc2-7a91-19e6a74dce1b" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfConcentrationsOfRiskByRiskFactorDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfFinancingReceivablesCreditQualityIndicatorsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfImpairedFinancingReceivablesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_0362da20-7d90-1628-e096-21887e95da71" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_3fbd33df-781c-1c81-a98e-83d9634fee2e" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_0362da20-7d90-1628-e096-21887e95da71" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_3fbd33df-781c-1c81-a98e-83d9634fee2e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_b5c2eb06-9ee0-c453-b5d1-9a70aea3ee44" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_0362da20-7d90-1628-e096-21887e95da71" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_b5c2eb06-9ee0-c453-b5d1-9a70aea3ee44" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_7fe2fb9a-d4a5-c40c-5fda-872a4762476e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_d55eb292-11ba-3ba1-09df-1e6bc4b784c8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_7fe2fb9a-d4a5-c40c-5fda-872a4762476e" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_d55eb292-11ba-3ba1-09df-1e6bc4b784c8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_894e98ed-a0c1-54bf-656f-b8d7234fa885" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_7fe2fb9a-d4a5-c40c-5fda-872a4762476e" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_894e98ed-a0c1-54bf-656f-b8d7234fa885" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfPastDueFinancingReceivablesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesConsolidationOfVariableInterestEntitiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerCommonShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_40f1fc5c-8b65-4746-cdb0-c2a06553cc3f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_2e12b455-2439-5ef9-0bdd-e47924f55d69" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_40f1fc5c-8b65-4746-cdb0-c2a06553cc3f" xlink:to="loc_us-gaap_EarningsPerShareBasic_2e12b455-2439-5ef9-0bdd-e47924f55d69" xlink:type="arc" />
    <link:loc xlink:href="agm-20190930.xsd#agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements_065c0a94-c5c7-0a60-280f-e21862a8a117" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_40f1fc5c-8b65-4746-cdb0-c2a06553cc3f" xlink:to="loc_agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements_065c0a94-c5c7-0a60-280f-e21862a8a117" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_21ce4f2f-397c-6c02-8635-7c94146a06a0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2dd9a981-e559-d141-f1c2-4db79f71a7ef" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_21ce4f2f-397c-6c02-8635-7c94146a06a0" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2dd9a981-e559-d141-f1c2-4db79f71a7ef" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_e52bef3f-d63a-d129-8b6a-48192f5d97b3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_21ce4f2f-397c-6c02-8635-7c94146a06a0" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_e52bef3f-d63a-d129-8b6a-48192f5d97b3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_f27e61aa-de51-6911-da01-3636b1aa7e02" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_f27e61aa-de51-6911-da01-3636b1aa7e02" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfAccumulatedOtherComprehensiveIncomeNetOfTaxDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_EEA78BAE487D586680B735F2C0DCE776" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_89E7318AE69254D5819685691F0DC8CF" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_EEA78BAE487D586680B735F2C0DCE776" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_89E7318AE69254D5819685691F0DC8CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_857C0A53DCE65252AA5E7DA4F0C4C074" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_EEA78BAE487D586680B735F2C0DCE776" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_857C0A53DCE65252AA5E7DA4F0C4C074" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_6df44786-4260-4fa4-e123-591abd5e882d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_426e7037-e52e-6d57-8593-8389365a6ce7" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_6df44786-4260-4fa4-e123-591abd5e882d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_426e7037-e52e-6d57-8593-8389365a6ce7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_ab8c2fc6-1521-82fd-e60d-3dd83346ddee" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_6df44786-4260-4fa4-e123-591abd5e882d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_ab8c2fc6-1521-82fd-e60d-3dd83346ddee" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_aa6d7695-3c9c-a820-1c3c-0e977db4a781" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodTax" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_41fedcfc-16d1-4fa1-3e6c-cadfee11fe94" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_aa6d7695-3c9c-a820-1c3c-0e977db4a781" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_41fedcfc-16d1-4fa1-3e6c-cadfee11fe94" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_aa6d7695-3c9c-a820-1c3c-0e977db4a781" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_ab8c2fc6-1521-82fd-e60d-3dd83346ddee" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_3d99831a-ebd4-5b79-0782-1b1eabd6a9c8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_3abb3548-5c4d-f7e9-ec84-657c5af7d43a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_3d99831a-ebd4-5b79-0782-1b1eabd6a9c8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_3abb3548-5c4d-f7e9-ec84-657c5af7d43a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_a61429d7-b03e-55db-d324-cd80005c65f9" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_3d99831a-ebd4-5b79-0782-1b1eabd6a9c8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_a61429d7-b03e-55db-d324-cd80005c65f9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_370db1e9-72b2-d2e9-181c-90ae6fba7f8b" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_19a9882d-ffc5-f60a-48da-a57a1ebf19e9" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_370db1e9-72b2-d2e9-181c-90ae6fba7f8b" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_19a9882d-ffc5-f60a-48da-a57a1ebf19e9" xlink:type="arc" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_370db1e9-72b2-d2e9-181c-90ae6fba7f8b" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_41fedcfc-16d1-4fa1-3e6c-cadfee11fe94" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
</link:linkbase>
