<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva, formerly WebFilings-->
<!-- -->
<linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <roleRef roleURI="http://www.farmermac.com/role/AccountingPolicies" xlink:href="agm-20150331.xsd#AccountingPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/AccountingPoliciesAccountingPoliciesPolicies" xlink:href="agm-20150331.xsd#AccountingPoliciesAccountingPoliciesPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/AccountingPoliciesAccountingPoliciesTables" xlink:href="agm-20150331.xsd#AccountingPoliciesAccountingPoliciesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/AccountingPoliciesCashAndCashEquivalentsAndStatementsOfCashFlowsDetails" xlink:href="agm-20150331.xsd#AccountingPoliciesCashAndCashEquivalentsAndStatementsOfCashFlowsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/AccountingPoliciesEarningsPerShareAntiDilutiveDetails" xlink:href="agm-20150331.xsd#AccountingPoliciesEarningsPerShareAntiDilutiveDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/AccountingPoliciesEarningsPerShareDetails" xlink:href="agm-20150331.xsd#AccountingPoliciesEarningsPerShareDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/AccountingPoliciesPrinciplesOfConsolidationDetails" xlink:href="agm-20150331.xsd#AccountingPoliciesPrinciplesOfConsolidationDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/AccountingPoliciesReclassificationsDetails" xlink:href="agm-20150331.xsd#AccountingPoliciesReclassificationsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/BusinessSegmentReporting" xlink:href="agm-20150331.xsd#BusinessSegmentReporting" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/BusinessSegmentReportingBusinessSegmentReportingTables" xlink:href="agm-20150331.xsd#BusinessSegmentReportingBusinessSegmentReportingTables" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/BusinessSegmentReportingCoreEarningsBusinessSegmentsDetails" xlink:href="agm-20150331.xsd#BusinessSegmentReportingCoreEarningsBusinessSegmentsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/BusinessSegmentReportingNarrativeDetails" xlink:href="agm-20150331.xsd#BusinessSegmentReportingNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/ConsolidatedBalanceSheets" xlink:href="agm-20150331.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="agm-20150331.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementOfComprehensiveIncome" xlink:href="agm-20150331.xsd#ConsolidatedStatementOfComprehensiveIncome" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="agm-20150331.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfEquity" xlink:href="agm-20150331.xsd#ConsolidatedStatementsOfEquity" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfEquityParenthetical" xlink:href="agm-20150331.xsd#ConsolidatedStatementsOfEquityParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/ConsolidatedStatementsOfOperations" xlink:href="agm-20150331.xsd#ConsolidatedStatementsOfOperations" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/DocumentAndEntityInformationDocumentAndEntityInformation" xlink:href="agm-20150331.xsd#DocumentAndEntityInformationDocumentAndEntityInformation" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/Equity" xlink:href="agm-20150331.xsd#Equity" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/EquityCapitalRequirementsDetails" xlink:href="agm-20150331.xsd#EquityCapitalRequirementsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/EquityNonControllingInterestDetails" xlink:href="agm-20150331.xsd#EquityNonControllingInterestDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosures" xlink:href="agm-20150331.xsd#FairValueDisclosures" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresFairValueDisclosuresTables" xlink:href="agm-20150331.xsd#FairValueDisclosuresFairValueDisclosuresTables" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetails" xlink:href="agm-20150331.xsd#FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresNarrativeDetails" xlink:href="agm-20150331.xsd#FairValueDisclosuresNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresQuantitativeInformationDetails" xlink:href="agm-20150331.xsd#FairValueDisclosuresQuantitativeInformationDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresSummaryOfCarryingValueAndFairValueDetails" xlink:href="agm-20150331.xsd#FairValueDisclosuresSummaryOfCarryingValueAndFairValueDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FairValueDisclosuresUnobservableInputReconciliationDetails" xlink:href="agm-20150331.xsd#FairValueDisclosuresUnobservableInputReconciliationDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecurities" xlink:href="agm-20150331.xsd#FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecurities" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesDetails" xlink:href="agm-20150331.xsd#FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables" xlink:href="agm-20150331.xsd#FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesScheduleOfAvailableForSaleSecuritiesDetails" xlink:href="agm-20150331.xsd#FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesScheduleOfAvailableForSaleSecuritiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesScheduleOfHeldToMaturitySecuritiesDetails" xlink:href="agm-20150331.xsd#FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesScheduleOfHeldToMaturitySecuritiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesTradingSecuritiesDetails" xlink:href="agm-20150331.xsd#FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesTradingSecuritiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesUnrealizedLossPositionDetails" xlink:href="agm-20150331.xsd#FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesUnrealizedLossPositionDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FinancialDerivatives" xlink:href="agm-20150331.xsd#FinancialDerivatives" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesFinancialDerivativesTables" xlink:href="agm-20150331.xsd#FinancialDerivativesFinancialDerivativesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesNarrativeDetails" xlink:href="agm-20150331.xsd#FinancialDerivativesNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesScheduleOfDerivativeInstrumentsImpactOnResultsOfOperationsDetails" xlink:href="agm-20150331.xsd#FinancialDerivativesScheduleOfDerivativeInstrumentsImpactOnResultsOfOperationsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/FinancialDerivativesScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionDetails" xlink:href="agm-20150331.xsd#FinancialDerivativesScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/InvestmentSecurities" xlink:href="agm-20150331.xsd#InvestmentSecurities" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesDebtMaturitiesDetails" xlink:href="agm-20150331.xsd#InvestmentSecuritiesDebtMaturitiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesInvestmentSecuritiesTables" xlink:href="agm-20150331.xsd#InvestmentSecuritiesInvestmentSecuritiesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesNarrativeDetails" xlink:href="agm-20150331.xsd#InvestmentSecuritiesNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetails" xlink:href="agm-20150331.xsd#InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesTradingSecuritiesDetails" xlink:href="agm-20150331.xsd#InvestmentSecuritiesTradingSecuritiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/InvestmentSecuritiesUnrealizedLossPositionDetails" xlink:href="agm-20150331.xsd#InvestmentSecuritiesUnrealizedLossPositionDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRisk" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRisk" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskAllowanceForCreditLossesRollForwardDetails" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskAllowanceForCreditLossesRollForwardDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskAllowanceForLossesByImpairmentMethodAndCommodityDetails" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskAllowanceForLossesByImpairmentMethodAndCommodityDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskCertainLoansAcquiredDelinquenciesAndNetCreditLossesDetails" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskCertainLoansAcquiredDelinquenciesAndNetCreditLossesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskCertainLoansAcquiredInTransferDetails" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskCertainLoansAcquiredInTransferDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskConcentrationsOfCreditRiskDetails" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskConcentrationsOfCreditRiskDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskFinancingReceivablesCreditQualityIndicatorsDetails" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskFinancingReceivablesCreditQualityIndicatorsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskImpairedFinancingReceivablesDetails" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskImpairedFinancingReceivablesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskLoanDetails" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskLoanDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskLoansAndAllowanceForLossesAndConcentrationsTables" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskLoansAndAllowanceForLossesAndConcentrationsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskTroubledDebtRestructuringsDetails" xlink:href="agm-20150331.xsd#LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskTroubledDebtRestructuringsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitments" xlink:href="agm-20150331.xsd#OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitments" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsCashFlowsFromOffBalanceSheetGuaranteedSecuritiesDetails" xlink:href="agm-20150331.xsd#OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsCashFlowsFromOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsLongTermStandbyPurchaseCommitmentsDetails" xlink:href="agm-20150331.xsd#OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsLongTermStandbyPurchaseCommitmentsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteedSecuritiesDetails" xlink:href="agm-20150331.xsd#OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.farmermac.com/role/OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsTables" xlink:href="agm-20150331.xsd#OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsTables" xlink:type="simple" />
  <calculationLink xlink:role="http://www.farmermac.com/role/AccountingPolicies" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/AccountingPoliciesAccountingPoliciesPolicies" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/AccountingPoliciesAccountingPoliciesTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/AccountingPoliciesCashAndCashEquivalentsAndStatementsOfCashFlowsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/AccountingPoliciesEarningsPerShareAntiDilutiveDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/AccountingPoliciesEarningsPerShareDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_c6154111-d29f-1f1b-046a-af7cb3003062" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_0f40104d-c144-6dd5-056b-98f95661c23e" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_c6154111-d29f-1f1b-046a-af7cb3003062" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_0f40104d-c144-6dd5-056b-98f95661c23e" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_9f5e56ff-4bcb-0366-e02d-528f3927d0cf" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_c6154111-d29f-1f1b-046a-af7cb3003062" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_9f5e56ff-4bcb-0366-e02d-528f3927d0cf" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_541ecaed-2e92-b15b-92de-5d0d2574df5c" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_ff703a61-adfc-9c6b-101d-59051209f285" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_541ecaed-2e92-b15b-92de-5d0d2574df5c" xlink:to="loc_us-gaap_EarningsPerShareBasic_ff703a61-adfc-9c6b-101d-59051209f285" xlink:type="arc" />
    <loc xlink:href="agm-20150331.xsd#agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements_c254cc44-7d1b-d38c-9115-16bee492832e" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EarningsPerShareDiluted_541ecaed-2e92-b15b-92de-5d0d2574df5c" xlink:to="loc_agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements_c254cc44-7d1b-d38c-9115-16bee492832e" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.farmermac.com/role/AccountingPoliciesPrinciplesOfConsolidationDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/AccountingPoliciesReclassificationsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/BusinessSegmentReporting" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/BusinessSegmentReportingBusinessSegmentReportingTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/BusinessSegmentReportingCoreEarningsBusinessSegmentsDetails" xlink:type="extended">
    <loc xlink:href="agm-20150331.xsd#agm_SegmentCoreEarnings" xlink:label="loc_agm_SegmentCoreEarnings_fde26bb4-bd29-d2fa-d4cf-16bee54de719" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PreferredStockRedemptionPremium" xlink:label="loc_us-gaap_PreferredStockRedemptionPremium_d4971e06-a648-1946-8cdd-18c408cd62d7" xlink:type="locator" />
    <calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_fde26bb4-bd29-d2fa-d4cf-16bee54de719" xlink:to="loc_us-gaap_PreferredStockRedemptionPremium_d4971e06-a648-1946-8cdd-18c408cd62d7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_432e9926-335c-2ed5-af4e-1b628e023987" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_fde26bb4-bd29-d2fa-d4cf-16bee54de719" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_432e9926-335c-2ed5-af4e-1b628e023987" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_462424c6-386a-c74c-dc6d-82040ccbf9e0" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_fde26bb4-bd29-d2fa-d4cf-16bee54de719" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_462424c6-386a-c74c-dc6d-82040ccbf9e0" xlink:type="arc" />
    <loc xlink:href="agm-20150331.xsd#agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends" xlink:label="loc_agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends_1ac074c3-46e7-9a23-b2e1-16bee51f0eab" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarnings_fde26bb4-bd29-d2fa-d4cf-16bee54de719" xlink:to="loc_agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends_1ac074c3-46e7-9a23-b2e1-16bee51f0eab" xlink:type="arc" />
    <loc xlink:href="agm-20150331.xsd#agm_SegmentCoreEarningsBeforeIncomeTaxes" xlink:label="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_001d294e-e5f9-493e-4545-16bee50fcf44" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends_1ac074c3-46e7-9a23-b2e1-16bee51f0eab" xlink:to="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_001d294e-e5f9-493e-4545-16bee50fcf44" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_a12c4ccc-a50c-b165-5045-f74bbea2c47f" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_001d294e-e5f9-493e-4545-16bee50fcf44" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_a12c4ccc-a50c-b165-5045-f74bbea2c47f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_0cf75854-018d-d7e6-f878-f028d8530dea" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_a12c4ccc-a50c-b165-5045-f74bbea2c47f" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_0cf75854-018d-d7e6-f878-f028d8530dea" xlink:type="arc" />
    <loc xlink:href="agm-20150331.xsd#agm_InterestIncomeReclassification" xlink:label="loc_agm_InterestIncomeReclassification_9b95d944-7d8c-d508-bd7b-16bee34b158f" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_a12c4ccc-a50c-b165-5045-f74bbea2c47f" xlink:to="loc_agm_InterestIncomeReclassification_9b95d944-7d8c-d508-bd7b-16bee34b158f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_cefe1779-647b-11ee-28a9-2740d86c056b" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_a12c4ccc-a50c-b165-5045-f74bbea2c47f" xlink:to="loc_us-gaap_InterestExpense_cefe1779-647b-11ee-28a9-2740d86c056b" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_7a9bbb74-e804-0bb8-2b97-549224b9d56f" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_001d294e-e5f9-493e-4545-16bee50fcf44" xlink:to="loc_us-gaap_NoninterestIncome_7a9bbb74-e804-0bb8-2b97-549224b9d56f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_b8b07996-42ca-f7bc-efa7-87d6b488a56e" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_001d294e-e5f9-493e-4545-16bee50fcf44" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_b8b07996-42ca-f7bc-efa7-87d6b488a56e" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_7519966a-4619-2a1e-a512-1960c0748526" xlink:type="locator" />
    <calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarningsBeforeIncomeTaxes_001d294e-e5f9-493e-4545-16bee50fcf44" xlink:to="loc_us-gaap_NoninterestExpense_7519966a-4619-2a1e-a512-1960c0748526" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttibutionOfIncomeToNonControllingInterestPreferredStockDividends_1ac074c3-46e7-9a23-b2e1-16bee51f0eab" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.farmermac.com/role/BusinessSegmentReportingNarrativeDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_906b19de-be7d-5eab-13e4-c657d4ae0c51" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LoansAndLeasesReceivableGrossCarryingAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_ce13a12e-f6d1-7828-b5e5-66e3d8c7d928" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_906b19de-be7d-5eab-13e4-c657d4ae0c51" xlink:to="loc_us-gaap_LoansAndLeasesReceivableGrossCarryingAmount_ce13a12e-f6d1-7828-b5e5-66e3d8c7d928" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets" xlink:label="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets_1dfb0f28-d906-42cf-f16d-5ace3254f28f" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_906b19de-be7d-5eab-13e4-c657d4ae0c51" xlink:to="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets_1dfb0f28-d906-42cf-f16d-5ace3254f28f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_e82295a3-b144-c0ec-f7d4-ef1d1738de8d" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_906b19de-be7d-5eab-13e4-c657d4ae0c51" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_e82295a3-b144-c0ec-f7d4-ef1d1738de8d" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_ae9fd5e7-8741-dfbd-241e-1460ec6c786e" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_16ce0436-3b82-55c5-d896-5cba4c9023bd" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_ae9fd5e7-8741-dfbd-241e-1460ec6c786e" xlink:to="loc_us-gaap_Liabilities_16ce0436-3b82-55c5-d896-5cba4c9023bd" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_ca98941f-0671-3689-5a7c-b43efffaee86" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_16ce0436-3b82-55c5-d896-5cba4c9023bd" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_ca98941f-0671-3689-5a7c-b43efffaee86" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_667bd152-c443-a676-8a21-03fdb12d9bf1" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_ca98941f-0671-3689-5a7c-b43efffaee86" xlink:to="loc_us-gaap_ShortTermBorrowings_667bd152-c443-a676-8a21-03fdb12d9bf1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_8aeb26df-09df-f3e3-fe25-1f144575031f" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_ca98941f-0671-3689-5a7c-b43efffaee86" xlink:to="loc_us-gaap_LongTermDebt_8aeb26df-09df-f3e3-fe25-1f144575031f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities" xlink:label="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities_e9370b98-2ece-5453-f80a-7129f1100f98" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_16ce0436-3b82-55c5-d896-5cba4c9023bd" xlink:to="loc_us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities_e9370b98-2ece-5453-f80a-7129f1100f98" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_154f7fc3-e24d-7b8e-fa8a-96db846c2f4d" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_16ce0436-3b82-55c5-d896-5cba4c9023bd" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_154f7fc3-e24d-7b8e-fa8a-96db846c2f4d" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_cb5682c9-f996-28d2-b9a0-b47cb4ed5d66" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_16ce0436-3b82-55c5-d896-5cba4c9023bd" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_cb5682c9-f996-28d2-b9a0-b47cb4ed5d66" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GuarantyLiabilities" xlink:label="loc_us-gaap_GuarantyLiabilities_3790a58c-5604-15ae-42a5-c7459ce1a944" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_16ce0436-3b82-55c5-d896-5cba4c9023bd" xlink:to="loc_us-gaap_GuarantyLiabilities_3790a58c-5604-15ae-42a5-c7459ce1a944" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilities" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_df09fea7-98f8-0c32-faf0-05dab65eb906" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_16ce0436-3b82-55c5-d896-5cba4c9023bd" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_df09fea7-98f8-0c32-faf0-05dab65eb906" xlink:type="arc" />
    <loc xlink:href="agm-20150331.xsd#agm_ReserveForLosses" xlink:label="loc_agm_ReserveForLosses_5e8dcb07-afb1-dbf5-7850-16bee3e76522" xlink:type="locator" />
    <calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_16ce0436-3b82-55c5-d896-5cba4c9023bd" xlink:to="loc_agm_ReserveForLosses_5e8dcb07-afb1-dbf5-7850-16bee3e76522" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_0238306b-d9b2-65ce-a791-9c164638ef5a" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_ae9fd5e7-8741-dfbd-241e-1460ec6c786e" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_0238306b-d9b2-65ce-a791-9c164638ef5a" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_26e56c7a-24ab-e869-809a-0509ccbe86d9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_0238306b-d9b2-65ce-a791-9c164638ef5a" xlink:to="loc_us-gaap_StockholdersEquity_26e56c7a-24ab-e869-809a-0509ccbe86d9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_d7dba534-246e-8f06-b738-63cb32eb781c" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_0238306b-d9b2-65ce-a791-9c164638ef5a" xlink:to="loc_us-gaap_MinorityInterest_d7dba534-246e-8f06-b738-63cb32eb781c" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementOfComprehensiveIncome" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_375e0d17-4818-4239-a370-aada0b6ca8eb" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_e60ce6f6-99c9-966b-fd6a-aa6bbb9e1d29" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_375e0d17-4818-4239-a370-aada0b6ca8eb" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_e60ce6f6-99c9-966b-fd6a-aa6bbb9e1d29" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_cbba277b-de6d-ba1c-e7dd-3f818dbec387" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_375e0d17-4818-4239-a370-aada0b6ca8eb" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_cbba277b-de6d-ba1c-e7dd-3f818dbec387" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_46b895b2-8ff5-9e37-d4c3-5b75649cbcba" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_46b895b2-8ff5-9e37-d4c3-5b75649cbcba" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_25c27778-3634-0405-2ad7-97f542e360cf" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_ProfitLoss_25c27778-3634-0405-2ad7-97f542e360cf" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_0ebc37cd-1d67-57aa-9366-675adbe5d926" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_0ebc37cd-1d67-57aa-9366-675adbe5d926" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_cad4dd20-f895-7d13-fef5-2f2bffdf14ac" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_cad4dd20-f895-7d13-fef5-2f2bffdf14ac" xlink:type="arc" />
    <loc xlink:href="agm-20150331.xsd#agm_NetChangeInFairValueOfTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale" xlink:label="loc_agm_NetChangeInFairValueOfTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale_cc660e76-f944-bfe1-1e71-16bee2afc34d" xlink:type="locator" />
    <calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_agm_NetChangeInFairValueOfTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale_cc660e76-f944-bfe1-1e71-16bee2afc34d" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GainLossOnSaleOfSecuritiesNet" xlink:label="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_785a2440-2a67-8b86-ebcb-120a26e68651" xlink:type="locator" />
    <calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_785a2440-2a67-8b86-ebcb-120a26e68651" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_9c844398-12ba-6ad3-34c6-9f2690377d07" xlink:type="locator" />
    <calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_9c844398-12ba-6ad3-34c6-9f2690377d07" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_303fcd90-705f-84f2-c6fb-89b3a03b9762" xlink:type="locator" />
    <calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_303fcd90-705f-84f2-c6fb-89b3a03b9762" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_b14e4ab6-e003-13d4-eacd-26899afc8b93" xlink:type="locator" />
    <calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_b14e4ab6-e003-13d4-eacd-26899afc8b93" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_aa7a0bc5-86c6-13a8-3676-9960bad8007f" xlink:type="locator" />
    <calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_ShareBasedCompensation_aa7a0bc5-86c6-13a8-3676-9960bad8007f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProceedsFromPaymentsForTradingSecurities" xlink:label="loc_us-gaap_ProceedsFromPaymentsForTradingSecurities_f4e62e8a-1d67-b69f-d541-2e2406dc0a2a" xlink:type="locator" />
    <calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_ProceedsFromPaymentsForTradingSecurities_f4e62e8a-1d67-b69f-d541-2e2406dc0a2a" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale_db5bf888-112c-69b4-58fe-aa69ace7edd7" xlink:type="locator" />
    <calculationArc order="11" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfLoansHeldforsale_db5bf888-112c-69b4-58fe-aa69ace7edd7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_ade83bb7-7084-e1b0-3a66-90d6edc0ac60" xlink:type="locator" />
    <calculationArc order="12" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_ade83bb7-7084-e1b0-3a66-90d6edc0ac60" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInOtherReceivables" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherReceivables_70981603-0a50-076c-5bc1-c35afa6fb923" xlink:type="locator" />
    <calculationArc order="13" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherReceivables_70981603-0a50-076c-5bc1-c35afa6fb923" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_dd041a01-1df8-a5e2-f301-eb34433bea02" xlink:type="locator" />
    <calculationArc order="14" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_dd041a01-1df8-a5e2-f301-eb34433bea02" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_5cb9a7e8-dd26-27c7-9313-c478703eadea" xlink:type="locator" />
    <calculationArc order="15" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_5cb9a7e8-dd26-27c7-9313-c478703eadea" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_1cad8493-0a39-874e-a6b0-6d35514a892c" xlink:type="locator" />
    <calculationArc order="16" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b6b5c2f7-2ab7-a264-6d06-119dda52768c" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_1cad8493-0a39-874e-a6b0-6d35514a892c" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fb013d5f-7e0c-1a40-5a42-42bd8c3a1d51" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_46b895b2-8ff5-9e37-d4c3-5b75649cbcba" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fb013d5f-7e0c-1a40-5a42-42bd8c3a1d51" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6d7b73b6-0db7-23f7-377e-417fa8fc8e27" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_46b895b2-8ff5-9e37-d4c3-5b75649cbcba" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6d7b73b6-0db7-23f7-377e-417fa8fc8e27" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfEquity" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfEquityParenthetical" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/ConsolidatedStatementsOfOperations" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_26d32ed1-5af3-4218-f177-31c9b3d51d7f" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_26d32ed1-5af3-4218-f177-31c9b3d51d7f" xlink:to="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_25c27778-3634-0405-2ad7-97f542e360cf" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:to="loc_us-gaap_ProfitLoss_25c27778-3634-0405-2ad7-97f542e360cf" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_25c27778-3634-0405-2ad7-97f542e360cf" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_be2d96c1-1873-215b-3955-7c0adc56ee06" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_be2d96c1-1873-215b-3955-7c0adc56ee06" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_a12c4ccc-a50c-b165-5045-f74bbea2c47f" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_be2d96c1-1873-215b-3955-7c0adc56ee06" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_a12c4ccc-a50c-b165-5045-f74bbea2c47f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_b8b07996-42ca-f7bc-efa7-87d6b488a56e" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_be2d96c1-1873-215b-3955-7c0adc56ee06" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_b8b07996-42ca-f7bc-efa7-87d6b488a56e" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_7a9bbb74-e804-0bb8-2b97-549224b9d56f" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:to="loc_us-gaap_NoninterestIncome_7a9bbb74-e804-0bb8-2b97-549224b9d56f" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GuarantyFeeIncome" xlink:label="loc_us-gaap_GuarantyFeeIncome_3e5fc207-9f61-4fc5-c711-07ba20e8f158" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_7a9bbb74-e804-0bb8-2b97-549224b9d56f" xlink:to="loc_us-gaap_GuarantyFeeIncome_3e5fc207-9f61-4fc5-c711-07ba20e8f158" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_a91e5c31-e632-5fc6-cffd-e7e5459709ae" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_7a9bbb74-e804-0bb8-2b97-549224b9d56f" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_a91e5c31-e632-5fc6-cffd-e7e5459709ae" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_TradingGainsLosses" xlink:label="loc_us-gaap_TradingGainsLosses_e8ef2eb4-df8d-f4f6-ea0b-c9bedbb6df72" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_7a9bbb74-e804-0bb8-2b97-549224b9d56f" xlink:to="loc_us-gaap_TradingGainsLosses_e8ef2eb4-df8d-f4f6-ea0b-c9bedbb6df72" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GainLossOnSaleOfSecuritiesNet" xlink:label="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_785a2440-2a67-8b86-ebcb-120a26e68651" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_7a9bbb74-e804-0bb8-2b97-549224b9d56f" xlink:to="loc_us-gaap_GainLossOnSaleOfSecuritiesNet_785a2440-2a67-8b86-ebcb-120a26e68651" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GainsLossesOnSalesOfOtherRealEstate" xlink:label="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_9c844398-12ba-6ad3-34c6-9f2690377d07" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_7a9bbb74-e804-0bb8-2b97-549224b9d56f" xlink:to="loc_us-gaap_GainsLossesOnSalesOfOtherRealEstate_9c844398-12ba-6ad3-34c6-9f2690377d07" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_1b837d8e-6345-57b8-eaff-af928cdddc73" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_7a9bbb74-e804-0bb8-2b97-549224b9d56f" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_1b837d8e-6345-57b8-eaff-af928cdddc73" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_7519966a-4619-2a1e-a512-1960c0748526" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_10afc0e9-1faa-0be3-fc32-15d128e46f3f" xlink:to="loc_us-gaap_NoninterestExpense_7519966a-4619-2a1e-a512-1960c0748526" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_eb103849-f025-1fe3-81bd-380370967ba1" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_7519966a-4619-2a1e-a512-1960c0748526" xlink:to="loc_us-gaap_LaborAndRelatedExpense_eb103849-f025-1fe3-81bd-380370967ba1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_7c6d12de-ee49-8fea-ba36-2f44ccb8dae4" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_7519966a-4619-2a1e-a512-1960c0748526" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_7c6d12de-ee49-8fea-ba36-2f44ccb8dae4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_OtherGeneralAndAdministrativeExpense_338de02a-7d8e-4135-b52e-fd9ce7e495e0" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_7519966a-4619-2a1e-a512-1960c0748526" xlink:to="loc_us-gaap_OtherGeneralAndAdministrativeExpense_338de02a-7d8e-4135-b52e-fd9ce7e495e0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ForeclosedRealEstateExpense" xlink:label="loc_us-gaap_ForeclosedRealEstateExpense_c6e9a8a3-1240-445e-589b-bd9859ed96ee" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_7519966a-4619-2a1e-a512-1960c0748526" xlink:to="loc_us-gaap_ForeclosedRealEstateExpense_c6e9a8a3-1240-445e-589b-bd9859ed96ee" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ProvisionForOtherCreditLosses" xlink:label="loc_us-gaap_ProvisionForOtherCreditLosses_484702b8-732d-0307-c928-9d2a23b97102" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_7519966a-4619-2a1e-a512-1960c0748526" xlink:to="loc_us-gaap_ProvisionForOtherCreditLosses_484702b8-732d-0307-c928-9d2a23b97102" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_25c27778-3634-0405-2ad7-97f542e360cf" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_3a83e980-c99b-5657-79fd-300643b7fa11" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_432e9926-335c-2ed5-af4e-1b628e023987" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_faecc408-4bea-6e13-83bd-71b4c2ddf64c" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_432e9926-335c-2ed5-af4e-1b628e023987" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_462424c6-386a-c74c-dc6d-82040ccbf9e0" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_26d32ed1-5af3-4218-f177-31c9b3d51d7f" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_462424c6-386a-c74c-dc6d-82040ccbf9e0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PreferredStockRedemptionPremium" xlink:label="loc_us-gaap_PreferredStockRedemptionPremium_d4971e06-a648-1946-8cdd-18c408cd62d7" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_26d32ed1-5af3-4218-f177-31c9b3d51d7f" xlink:to="loc_us-gaap_PreferredStockRedemptionPremium_d4971e06-a648-1946-8cdd-18c408cd62d7" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.farmermac.com/role/DocumentAndEntityInformationDocumentAndEntityInformation" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/Equity" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/EquityCapitalRequirementsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/EquityNonControllingInterestDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosures" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresFairValueDisclosuresTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresNarrativeDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresQuantitativeInformationDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresSummaryOfCarryingValueAndFairValueDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FairValueDisclosuresUnobservableInputReconciliationDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecurities" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesScheduleOfAvailableForSaleSecuritiesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesScheduleOfHeldToMaturitySecuritiesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesTradingSecuritiesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaGuaranteedSecuritiesUnrealizedLossPositionDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivatives" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesFinancialDerivativesTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesNarrativeDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesScheduleOfDerivativeInstrumentsImpactOnResultsOfOperationsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/FinancialDerivativesScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecurities" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesDebtMaturitiesDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_181eb207-24a2-d4cc-f2e5-ac567c0506af" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_f3045cc5-a50b-cd7f-fdc5-ac56bad328a3" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecurities_181eb207-24a2-d4cc-f2e5-ac567c0506af" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_f3045cc5-a50b-cd7f-fdc5-ac56bad328a3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_cb26fadf-298e-23fe-382b-178ad5234a52" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecurities_181eb207-24a2-d4cc-f2e5-ac567c0506af" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_cb26fadf-298e-23fe-382b-178ad5234a52" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_8919bb16-6dd5-63ca-51c0-f62df0d9d82e" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecurities_181eb207-24a2-d4cc-f2e5-ac567c0506af" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_8919bb16-6dd5-63ca-51c0-f62df0d9d82e" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_8972091d-ea44-ce9b-59da-7cfd54604146" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecurities_181eb207-24a2-d4cc-f2e5-ac567c0506af" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_8972091d-ea44-ce9b-59da-7cfd54604146" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesInvestmentSecuritiesTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesNarrativeDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesTradingSecuritiesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/InvestmentSecuritiesUnrealizedLossPositionDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRisk" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskAllowanceForCreditLossesRollForwardDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskAllowanceForLossesByImpairmentMethodAndCommodityDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskCertainLoansAcquiredDelinquenciesAndNetCreditLossesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskCertainLoansAcquiredInTransferDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskConcentrationsOfCreditRiskDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskFinancingReceivablesCreditQualityIndicatorsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskImpairedFinancingReceivablesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskLoanDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskLoansAndAllowanceForLossesAndConcentrationsTables" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/LoansAndAllowanceForLossesAndConcentrationsOfCreditRiskTroubledDebtRestructuringsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitments" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsCashFlowsFromOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsLongTermStandbyPurchaseCommitmentsDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteedSecuritiesDetails" xlink:type="extended" />
  <calculationLink xlink:role="http://www.farmermac.com/role/OffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteesAndLongTermStandbyPurchaseCommitmentsTables" xlink:type="extended" />
</linkbase>


