<?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.fanniemae.com/role/AllowanceForLoanLosses" xlink:href="fnm-20191231.xsd#AllowanceForLoanLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesAllowanceForLoanLossesPolicies" xlink:href="fnm-20191231.xsd#AllowanceForLoanLossesAllowanceForLoanLossesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesAndTotalRecordedInvestmentInHfiLoansDetails" xlink:href="fnm-20191231.xsd#AllowanceForLoanLossesAndTotalRecordedInvestmentInHfiLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesRollforwardBySegmentDetails" xlink:href="fnm-20191231.xsd#AllowanceForLoanLossesRollforwardBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesTables" xlink:href="fnm-20191231.xsd#AllowanceForLoanLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingencies" xlink:href="fnm-20191231.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesDetails" xlink:href="fnm-20191231.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesFiscalYearMaturityScheduleDetails" xlink:href="fnm-20191231.xsd#CommitmentsAndContingenciesFiscalYearMaturityScheduleDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesPolicies" xlink:href="fnm-20191231.xsd#CommitmentsAndContingenciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesTables" xlink:href="fnm-20191231.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRisk" xlink:href="fnm-20191231.xsd#ConcentrationsOfCreditRisk" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskGeographicConcentrationDetails" xlink:href="fnm-20191231.xsd#ConcentrationsOfCreditRiskGeographicConcentrationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskMfRiskCharacteristicsDetails" xlink:href="fnm-20191231.xsd#ConcentrationsOfCreditRiskMfRiskCharacteristicsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskOtherConcentrationsDetails" xlink:href="fnm-20191231.xsd#ConcentrationsOfCreditRiskOtherConcentrationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskSfRiskCharacteristicsDetails" xlink:href="fnm-20191231.xsd#ConcentrationsOfCreditRiskSfRiskCharacteristicsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskTables" xlink:href="fnm-20191231.xsd#ConcentrationsOfCreditRiskTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedBalanceSheets" xlink:href="fnm-20191231.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="fnm-20191231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="fnm-20191231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquityDeficit" xlink:href="fnm-20191231.xsd#ConsolidatedStatementsOfChangesInEquityDeficit" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquityDeficitParenthetical" xlink:href="fnm-20191231.xsd#ConsolidatedStatementsOfChangesInEquityDeficitParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:href="fnm-20191231.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncomeParenthetical" xlink:href="fnm-20191231.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssets" xlink:href="fnm-20191231.xsd#ConsolidationsAndTransfersOfFinancialAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsManagedLoansDetails" xlink:href="fnm-20191231.xsd#ConsolidationsAndTransfersOfFinancialAssetsManagedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsPolicies" xlink:href="fnm-20191231.xsd#ConsolidationsAndTransfersOfFinancialAssetsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTables" xlink:href="fnm-20191231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTransfersOfFinancialAssetsDetails" xlink:href="fnm-20191231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTransfersOfFinancialAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTypesOfViesDetails" xlink:href="fnm-20191231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTypesOfViesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsUnconsolidatedViesDetails" xlink:href="fnm-20191231.xsd#ConsolidationsAndTransfersOfFinancialAssetsUnconsolidatedViesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CoverPage" xlink:href="fnm-20191231.xsd#CoverPage" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstruments" xlink:href="fnm-20191231.xsd#DerivativeInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives1NotionalAndFvPositionDetails" xlink:href="fnm-20191231.xsd#DerivativeInstrumentsDerivatives1NotionalAndFvPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives2FvGainsAndLossesDetails" xlink:href="fnm-20191231.xsd#DerivativeInstrumentsDerivatives2FvGainsAndLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsNarrativesDetails" xlink:href="fnm-20191231.xsd#DerivativeInstrumentsNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsPolicies" xlink:href="fnm-20191231.xsd#DerivativeInstrumentsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsTables" xlink:href="fnm-20191231.xsd#DerivativeInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/Equity" xlink:href="fnm-20191231.xsd#Equity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityAccumulatedOtherComprehensiveIncomeDetails" xlink:href="fnm-20191231.xsd#EquityAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityChangesInAociDetails" xlink:href="fnm-20191231.xsd#EquityChangesInAociDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityNarrativesDetails" xlink:href="fnm-20191231.xsd#EquityNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityScheduleOfStockByClassDetails" xlink:href="fnm-20191231.xsd#EquityScheduleOfStockByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityTables" xlink:href="fnm-20191231.xsd#EquityTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValue" xlink:href="fnm-20191231.xsd#FairValue" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueChangesInFvUnderFvOptionDetails" xlink:href="fnm-20191231.xsd#FairValueChangesInFvUnderFvOptionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3RollforwardDetails" xlink:href="fnm-20191231.xsd#FairValueLevel3RollforwardDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3ValuationInputsRecurringDetails" xlink:href="fnm-20191231.xsd#FairValueLevel3ValuationInputsRecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3ValuationNonrecurringDetails" xlink:href="fnm-20191231.xsd#FairValueLevel3ValuationNonrecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevelsHierarchyDetails" xlink:href="fnm-20191231.xsd#FairValueLevelsHierarchyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueOfFinancialInstrumentsDetails" xlink:href="fnm-20191231.xsd#FairValueOfFinancialInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueOptionDetails" xlink:href="fnm-20191231.xsd#FairValueOptionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValuePolicies" xlink:href="fnm-20191231.xsd#FairValuePolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueTables" xlink:href="fnm-20191231.xsd#FairValueTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuarantees" xlink:href="fnm-20191231.xsd#FinancialGuarantees" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuaranteesAndMaximumRecoveryDetails" xlink:href="fnm-20191231.xsd#FinancialGuaranteesAndMaximumRecoveryDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuaranteesTables" xlink:href="fnm-20191231.xsd#FinancialGuaranteesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxPolicies" xlink:href="fnm-20191231.xsd#IncomeTaxPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxes" xlink:href="fnm-20191231.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:href="fnm-20191231.xsd#IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesProvisionBenefitForIncomeTaxesDetails" xlink:href="fnm-20191231.xsd#IncomeTaxesProvisionBenefitForIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesTables" xlink:href="fnm-20191231.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:href="fnm-20191231.xsd#IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecurities" xlink:href="fnm-20191231.xsd#InvestmentsInSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities1Details" xlink:href="fnm-20191231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities2Details" xlink:href="fnm-20191231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities3Details" xlink:href="fnm-20191231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities3Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesMaturityInformationDetails" xlink:href="fnm-20191231.xsd#InvestmentsInSecuritiesMaturityInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesOtherThanTemporaryImpairments1Details" xlink:href="fnm-20191231.xsd#InvestmentsInSecuritiesOtherThanTemporaryImpairments1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesPolicies" xlink:href="fnm-20191231.xsd#InvestmentsInSecuritiesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTables" xlink:href="fnm-20191231.xsd#InvestmentsInSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTrading1Details" xlink:href="fnm-20191231.xsd#InvestmentsInSecuritiesTrading1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTrading2Details" xlink:href="fnm-20191231.xsd#InvestmentsInSecuritiesTrading2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/LoansInMortgagePortfolioDetails" xlink:href="fnm-20191231.xsd#LoansInMortgagePortfolioDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/LongTermDebtDetails" xlink:href="fnm-20191231.xsd#LongTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoans" xlink:href="fnm-20191231.xsd#MortgageLoans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansAgingDetails" xlink:href="fnm-20191231.xsd#MortgageLoansAgingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsMfDetails" xlink:href="fnm-20191231.xsd#MortgageLoansCreditQualityIndicatorsMfDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsSfDetails" xlink:href="fnm-20191231.xsd#MortgageLoansCreditQualityIndicatorsSfDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoans2Details" xlink:href="fnm-20191231.xsd#MortgageLoansIndividuallyImpairedLoans2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoansDetails" xlink:href="fnm-20191231.xsd#MortgageLoansIndividuallyImpairedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansPolicies" xlink:href="fnm-20191231.xsd#MortgageLoansPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTables" xlink:href="fnm-20191231.xsd#MortgageLoansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTdrsDetails" xlink:href="fnm-20191231.xsd#MortgageLoansTdrsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTdrsWithSubDefaultsDetails" xlink:href="fnm-20191231.xsd#MortgageLoansTdrsWithSubDefaultsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangements" xlink:href="fnm-20191231.xsd#NettingArrangements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsDetails" xlink:href="fnm-20191231.xsd#NettingArrangementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsDetailsCalc2" xlink:href="fnm-20191231.xsd#NettingArrangementsDetailsCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsNarrativesDetails" xlink:href="fnm-20191231.xsd#NettingArrangementsNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsPolicies" xlink:href="fnm-20191231.xsd#NettingArrangementsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsTables" xlink:href="fnm-20191231.xsd#NettingArrangementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirements" xlink:href="fnm-20191231.xsd#RegulatoryCapitalRequirements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsDetails" xlink:href="fnm-20191231.xsd#RegulatoryCapitalRequirementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsTables" xlink:href="fnm-20191231.xsd#RegulatoryCapitalRequirementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReporting" xlink:href="fnm-20191231.xsd#SegmentReporting" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingAssetsDetails" xlink:href="fnm-20191231.xsd#SegmentReportingAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingDetails" xlink:href="fnm-20191231.xsd#SegmentReportingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingNarrativeDetails" xlink:href="fnm-20191231.xsd#SegmentReportingNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingPolicies" xlink:href="fnm-20191231.xsd#SegmentReportingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingTables" xlink:href="fnm-20191231.xsd#SegmentReportingTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnaudited" xlink:href="fnm-20191231.xsd#SelectedQuarterlyFinancialInformationUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:href="fnm-20191231.xsd#SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedDetailsCalc2" xlink:href="fnm-20191231.xsd#SelectedQuarterlyFinancialInformationUnauditedDetailsCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedTables" xlink:href="fnm-20191231.xsd#SelectedQuarterlyFinancialInformationUnauditedTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermAndLongTermDebt" xlink:href="fnm-20191231.xsd#ShortTermAndLongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermAndLongTermDebtCharacteristicsOfDebtDetails" xlink:href="fnm-20191231.xsd#ShortTermAndLongTermDebtCharacteristicsOfDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermAndLongTermDebtTables" xlink:href="fnm-20191231.xsd#ShortTermAndLongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermDebtDetails" xlink:href="fnm-20191231.xsd#ShortTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="fnm-20191231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesNewAccountingGuidanceDetails" xlink:href="fnm-20191231.xsd#SummaryOfSignificantAccountingPoliciesNewAccountingGuidanceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="fnm-20191231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesRelatedPartiesDetails" xlink:href="fnm-20191231.xsd#SummaryOfSignificantAccountingPoliciesRelatedPartiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesSeniorPreferredStockPurchaseAgreementDetails" xlink:href="fnm-20191231.xsd#SummaryOfSignificantAccountingPoliciesSeniorPreferredStockPurchaseAgreementDetails" xlink:type="simple" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceForLoanLosses" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceForLoanLossesAllowanceForLoanLossesPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceForLoanLossesAndTotalRecordedInvestmentInHfiLoansDetails" xlink:type="extended">
    <link:loc xlink:href="fnm-20191231.xsd#fnm_RecordedInvestmentMortgageLoansHeldForInvestment" xlink:label="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_82afb051-af03-759f-51b1-2c3cf93cf6de" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_c00c2fd4-3786-d090-a83a-648d5b7163d1" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_82afb051-af03-759f-51b1-2c3cf93cf6de" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_c00c2fd4-3786-d090-a83a-648d5b7163d1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_24223fe2-be24-eaf2-3dd6-5556dbeb1405" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_82afb051-af03-759f-51b1-2c3cf93cf6de" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_24223fe2-be24-eaf2-3dd6-5556dbeb1405" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_0112693b-b0b8-4be7-7b63-365d8d4e3448" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_604426e3-b956-f456-b7e3-eed43d239417" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_0112693b-b0b8-4be7-7b63-365d8d4e3448" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_604426e3-b956-f456-b7e3-eed43d239417" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_20c5e6e7-1b55-5d96-0d54-b1ad997144c6" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_0112693b-b0b8-4be7-7b63-365d8d4e3448" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_20c5e6e7-1b55-5d96-0d54-b1ad997144c6" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceForLoanLossesRollforwardBySegmentDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceForLoanLossesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CommitmentsAndContingenciesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CommitmentsAndContingenciesFiscalYearMaturityScheduleDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligation" xlink:label="loc_us-gaap_PurchaseObligation_4564c1c7-74ed-d1ef-d481-b41fec1cdc52" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_ca947a9b-1239-ecd7-3a7f-c3f32443b0a3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_4564c1c7-74ed-d1ef-d481-b41fec1cdc52" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_ca947a9b-1239-ecd7-3a7f-c3f32443b0a3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueInSecondYear" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_42fc29ea-4dbf-56f2-28dd-112702fcedfc" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_4564c1c7-74ed-d1ef-d481-b41fec1cdc52" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_42fc29ea-4dbf-56f2-28dd-112702fcedfc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueInThirdYear" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_4cca6e26-7515-5daa-0b53-abe06279b0ca" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_4564c1c7-74ed-d1ef-d481-b41fec1cdc52" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_4cca6e26-7515-5daa-0b53-abe06279b0ca" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueInFourthYear" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_d335caf5-a9b0-842c-0349-de0ef3a84f0c" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_4564c1c7-74ed-d1ef-d481-b41fec1cdc52" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_d335caf5-a9b0-842c-0349-de0ef3a84f0c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueInFifthYear" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_8fd3b711-9dae-3407-aa0c-985f128f2a69" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_4564c1c7-74ed-d1ef-d481-b41fec1cdc52" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_8fd3b711-9dae-3407-aa0c-985f128f2a69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseObligationDueAfterFifthYear" xlink:label="loc_us-gaap_PurchaseObligationDueAfterFifthYear_ed2e70a2-8771-b9be-0796-aada5a6a82d3" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_4564c1c7-74ed-d1ef-d481-b41fec1cdc52" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_ed2e70a2-8771-b9be-0796-aada5a6a82d3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_4cf71329-74d6-54f3-cadb-acb7f1063f36" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_4cf71329-74d6-54f3-cadb-acb7f1063f36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_f2a573e7-27e5-db11-63c6-c460733b5ea3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_f2a573e7-27e5-db11-63c6-c460733b5ea3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_398384fb-b756-b11a-1ea4-5a5cd4372c82" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_398384fb-b756-b11a-1ea4-5a5cd4372c82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_832fb73d-9886-a0dd-5905-8e2ec54304d6" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_832fb73d-9886-a0dd-5905-8e2ec54304d6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_1f2c68db-a374-1412-5f1f-4edca1431bbb" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_1f2c68db-a374-1412-5f1f-4edca1431bbb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_e71cbb67-0324-15b7-66dc-376e90f3ca60" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_e71cbb67-0324-15b7-66dc-376e90f3ca60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitment" xlink:label="loc_us-gaap_OtherCommitment_f2359d5f-2a6e-8344-310d-7e609237efcd" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentDueInNextTwelveMonths" xlink:label="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_2b314461-98e6-c904-3ff9-2d867b2ed1f4" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_f2359d5f-2a6e-8344-310d-7e609237efcd" xlink:to="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_2b314461-98e6-c904-3ff9-2d867b2ed1f4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentDueInSecondYear" xlink:label="loc_us-gaap_OtherCommitmentDueInSecondYear_88012b25-daf6-23f8-c89e-72ce685d62db" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_f2359d5f-2a6e-8344-310d-7e609237efcd" xlink:to="loc_us-gaap_OtherCommitmentDueInSecondYear_88012b25-daf6-23f8-c89e-72ce685d62db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentDueInThirdYear" xlink:label="loc_us-gaap_OtherCommitmentDueInThirdYear_129c6adb-6b99-5ddc-4781-110fa4545700" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_f2359d5f-2a6e-8344-310d-7e609237efcd" xlink:to="loc_us-gaap_OtherCommitmentDueInThirdYear_129c6adb-6b99-5ddc-4781-110fa4545700" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentDueInFourthYear" xlink:label="loc_us-gaap_OtherCommitmentDueInFourthYear_6326a825-48e1-35e6-9ce1-d0a3f4141436" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_f2359d5f-2a6e-8344-310d-7e609237efcd" xlink:to="loc_us-gaap_OtherCommitmentDueInFourthYear_6326a825-48e1-35e6-9ce1-d0a3f4141436" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentDueInFifthYear" xlink:label="loc_us-gaap_OtherCommitmentDueInFifthYear_71249d22-900f-ba1d-c23d-4fb9c722cebc" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_f2359d5f-2a6e-8344-310d-7e609237efcd" xlink:to="loc_us-gaap_OtherCommitmentDueInFifthYear_71249d22-900f-ba1d-c23d-4fb9c722cebc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentDueAfterFifthYear" xlink:label="loc_us-gaap_OtherCommitmentDueAfterFifthYear_0718f18b-75fe-6371-3043-ac27c38a35ff" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_f2359d5f-2a6e-8344-310d-7e609237efcd" xlink:to="loc_us-gaap_OtherCommitmentDueAfterFifthYear_0718f18b-75fe-6371-3043-ac27c38a35ff" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CommitmentsAndContingenciesPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsOfCreditRisk" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskGeographicConcentrationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskMfRiskCharacteristicsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskOtherConcentrationsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskSfRiskCharacteristicsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" 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_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:to="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_4d934b0d-59bc-ae5c-ffb9-b6ced82ff9f8" 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_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:to="loc_us-gaap_CommitmentsAndContingencies_4d934b0d-59bc-ae5c-ffb9-b6ced82ff9f8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" 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_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:to="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_dca7a301-7b9b-bf9f-8832-b75fdb3bd6ce" 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_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_dca7a301-7b9b-bf9f-8832-b75fdb3bd6ce" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_2c6ef9ce-a886-ed19-8544-f0004ce97e8b" 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_dca7a301-7b9b-bf9f-8832-b75fdb3bd6ce" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_2c6ef9ce-a886-ed19-8544-f0004ce97e8b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesReceivableGross" xlink:label="loc_us-gaap_NotesReceivableGross_e796d0cf-da81-3204-03ae-99409acba65b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_2c6ef9ce-a886-ed19-8544-f0004ce97e8b" xlink:to="loc_us-gaap_NotesReceivableGross_e796d0cf-da81-3204-03ae-99409acba65b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_0112693b-b0b8-4be7-7b63-365d8d4e3448" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_2c6ef9ce-a886-ed19-8544-f0004ce97e8b" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_0112693b-b0b8-4be7-7b63-365d8d4e3448" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LoansReceivableHeldForSaleAmount" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleAmount_b6371875-0290-ffea-295c-43ba725c6ea5" 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_dca7a301-7b9b-bf9f-8832-b75fdb3bd6ce" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleAmount_b6371875-0290-ffea-295c-43ba725c6ea5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_e6f5d9f5-2430-5e17-896c-5e4d69815366" 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_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_e6f5d9f5-2430-5e17-896c-5e4d69815366" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaap_InterestReceivable_8eb5ba9c-6255-7778-c2b7-baf0389ade91" 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_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_InterestReceivable_8eb5ba9c-6255-7778-c2b7-baf0389ade91" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RealEstateAcquiredThroughForeclosure" xlink:label="loc_us-gaap_RealEstateAcquiredThroughForeclosure_f6d1b246-0a09-250d-bee7-62033d049f30" 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_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_RealEstateAcquiredThroughForeclosure_f6d1b246-0a09-250d-bee7-62033d049f30" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_53a34e15-d375-c4e0-c5cf-68e055eee5e5" 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_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_OtherAssets_53a34e15-d375-c4e0-c5cf-68e055eee5e5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1de780cc-9607-daa3-0bed-03c88ae94769" 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_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1de780cc-9607-daa3-0bed-03c88ae94769" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_ae11e3b1-839b-d0b0-a04b-b35611528b8c" 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_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_ae11e3b1-839b-d0b0-a04b-b35611528b8c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell" xlink:label="loc_us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_1ef85c01-85f1-1047-a586-53945e3b90ef" 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_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_1ef85c01-85f1-1047-a586-53945e3b90ef" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MarketableSecurities" xlink:label="loc_us-gaap_MarketableSecurities_86486b7b-7daf-2fff-5062-52b9f6fcac42" 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_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_MarketableSecurities_86486b7b-7daf-2fff-5062-52b9f6fcac42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_9c5a3d13-80f5-6ac1-a1b0-912f20b46987" 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_86486b7b-7daf-2fff-5062-52b9f6fcac42" xlink:to="loc_us-gaap_TradingSecuritiesDebt_9c5a3d13-80f5-6ac1-a1b0-912f20b46987" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" 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_86486b7b-7daf-2fff-5062-52b9f6fcac42" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_834a7bf3-d1ec-a251-04d2-cec093e0f492" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_834a7bf3-d1ec-a251-04d2-cec093e0f492" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_d5ae164f-89db-07ae-0a46-cadc0b06ba60" 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_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_d5ae164f-89db-07ae-0a46-cadc0b06ba60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfDebt" xlink:label="loc_us-gaap_RepaymentsOfDebt_1292ec45-46d1-e31e-9b88-8085df9cd4b2" 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_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_RepaymentsOfDebt_1292ec45-46d1-e31e-9b88-8085df9cd4b2" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_PaymentOfCashDividendsOnSeniorPreferredStockToTreasury" xlink:label="loc_fnm_PaymentOfCashDividendsOnSeniorPreferredStockToTreasury_27d588cd-4111-390c-6a99-2c3cf8d51ffe" 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_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_fnm_PaymentOfCashDividendsOnSeniorPreferredStockToTreasury_27d588cd-4111-390c-6a99-2c3cf8d51ffe" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_ProceedsFromSeniorPreferredStockAgreementWithUsTreasury" xlink:label="loc_fnm_ProceedsFromSeniorPreferredStockAgreementWithUsTreasury_24926dbf-bf5b-3adb-f9e0-2c3cf8da75b1" 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_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_fnm_ProceedsFromSeniorPreferredStockAgreementWithUsTreasury_24926dbf-bf5b-3adb-f9e0-2c3cf8da75b1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_3ddd0290-3d1a-2e62-5161-428d280d3fb6" 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_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_3ddd0290-3d1a-2e62-5161-428d280d3fb6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_834a7bf3-d1ec-a251-04d2-cec093e0f492" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_834a7bf3-d1ec-a251-04d2-cec093e0f492" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_8b582348-a62e-cdfb-bc53-d5894b42e091" 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_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_ProfitLoss_8b582348-a62e-cdfb-bc53-d5894b42e091" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationAmortizationAndAccretionNet" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_f8d3390c-1850-b76f-7062-99d566a4ad4a" 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_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_f8d3390c-1850-b76f-7062-99d566a4ad4a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_fb9b10b1-d4d8-bf51-0524-f2efda24b93a" 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_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_fb9b10b1-d4d8-bf51-0524-f2efda24b93a" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_ValuationLossGain" xlink:label="loc_fnm_ValuationLossGain_5ea51459-82da-bd0e-3c07-3a17f0849788" 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_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_fnm_ValuationLossGain_5ea51459-82da-bd0e-3c07-3a17f0849788" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_04a19824-751b-472f-ae2c-9a8e73a625b4" 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_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_04a19824-751b-472f-ae2c-9a8e73a625b4" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements" xlink:label="loc_fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements_0f41d307-baa2-b807-40a4-3a17f1125f92" 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_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements_0f41d307-baa2-b807-40a4-3a17f1125f92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_1571e7d6-d666-48e2-395f-6e58ea563df3" 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_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_1571e7d6-d666-48e2-395f-6e58ea563df3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInTradingSecurities" xlink:label="loc_us-gaap_IncreaseDecreaseInTradingSecurities_aebbb56b-e18c-4437-870f-44eea3891780" 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_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInTradingSecurities_aebbb56b-e18c-4437-870f-44eea3891780" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestPaidNet" xlink:label="loc_us-gaap_InterestPaidNet_5a090289-540c-5f63-3928-08b896f3194d" 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_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_InterestPaidNet_5a090289-540c-5f63-3928-08b896f3194d" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquityDeficit" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_c4761fa8-dc2a-e270-4b5c-921deca83ad0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_dea146b3-6d50-c215-7c85-641051f14bf2" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_c4761fa8-dc2a-e270-4b5c-921deca83ad0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_dea146b3-6d50-c215-7c85-641051f14bf2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_e1e60c39-90e7-c5f0-a5c5-7efe9c31a1b9" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_c4761fa8-dc2a-e270-4b5c-921deca83ad0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_e1e60c39-90e7-c5f0-a5c5-7efe9c31a1b9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_e88bd855-1cc4-7d92-7586-c29e344f0391" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_c4761fa8-dc2a-e270-4b5c-921deca83ad0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_e88bd855-1cc4-7d92-7586-c29e344f0391" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_c4761fa8-dc2a-e270-4b5c-921deca83ad0" xlink:to="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_bfbc3edc-1edc-bfc6-c7b6-fb403917e31e" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_c4761fa8-dc2a-e270-4b5c-921deca83ad0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_bfbc3edc-1edc-bfc6-c7b6-fb403917e31e" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquityDeficitParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" 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_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:to="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" 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_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" 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_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1ed26a82-dd4b-490f-d61a-b04c5d44793e" 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_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_1ed26a82-dd4b-490f-d61a-b04c5d44793e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_06dfb931-62f3-bab4-4c41-dbf77bf8befd" 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_1ed26a82-dd4b-490f-d61a-b04c5d44793e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_06dfb931-62f3-bab4-4c41-dbf77bf8befd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_e1e60c39-90e7-c5f0-a5c5-7efe9c31a1b9" 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_1ed26a82-dd4b-490f-d61a-b04c5d44793e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_e1e60c39-90e7-c5f0-a5c5-7efe9c31a1b9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_58462a12-ec5e-da2d-89ad-2d8b2ce76259" 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_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_58462a12-ec5e-da2d-89ad-2d8b2ce76259" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_9ce4ddd7-88de-0c7f-0c68-70aef9a19b78" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GeneralAndAdministrativeExpense_58462a12-ec5e-da2d-89ad-2d8b2ce76259" xlink:to="loc_us-gaap_LaborAndRelatedExpense_9ce4ddd7-88de-0c7f-0c68-70aef9a19b78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfessionalAndContractServicesExpense" xlink:label="loc_us-gaap_ProfessionalAndContractServicesExpense_e9391905-d4fc-dcfd-d80b-db7e0751a71d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GeneralAndAdministrativeExpense_58462a12-ec5e-da2d-89ad-2d8b2ce76259" xlink:to="loc_us-gaap_ProfessionalAndContractServicesExpense_e9391905-d4fc-dcfd-d80b-db7e0751a71d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_OtherGeneralAndAdministrativeExpense_63c45013-c856-b140-4b50-9a285f07d56a" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GeneralAndAdministrativeExpense_58462a12-ec5e-da2d-89ad-2d8b2ce76259" xlink:to="loc_us-gaap_OtherGeneralAndAdministrativeExpense_63c45013-c856-b140-4b50-9a285f07d56a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeclosedRealEstateExpense" xlink:label="loc_us-gaap_ForeclosedRealEstateExpense_56490227-67fa-164a-1342-6dfdb41feb67" 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_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_ForeclosedRealEstateExpense_56490227-67fa-164a-1342-6dfdb41feb67" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011" xlink:label="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_b4c2e706-604c-86ff-76bb-2c3cf931a33c" 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_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_b4c2e706-604c-86ff-76bb-2c3cf931a33c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_60e0cfc8-9d1d-c126-3203-c33be400af36" 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_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_OtherNoninterestExpense_60e0cfc8-9d1d-c126-3203-c33be400af36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_07ff5c90-0c78-bcc6-b6d9-b6f38c1f082c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_17d6fb00-d8ca-12a7-45aa-c9b702218c16" 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_07ff5c90-0c78-bcc6-b6d9-b6f38c1f082c" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_17d6fb00-d8ca-12a7-45aa-c9b702218c16" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" 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_17d6fb00-d8ca-12a7-45aa-c9b702218c16" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_d7a59012-67ff-823e-6f43-08bdfea15e49" 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_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_d7a59012-67ff-823e-6f43-08bdfea15e49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_d71040f2-c598-ed1d-3fb6-01291a7f2f2f" 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_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_d71040f2-c598-ed1d-3fb6-01291a7f2f2f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_41d4b64f-36ed-fc2b-44be-f667d024d8c2" 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_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_41d4b64f-36ed-fc2b-44be-f667d024d8c2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherInterestAndDividendIncome" xlink:label="loc_us-gaap_OtherInterestAndDividendIncome_1ec84035-0a53-ba69-f782-e72a56dbb344" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:to="loc_us-gaap_OtherInterestAndDividendIncome_1ec84035-0a53-ba69-f782-e72a56dbb344" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell" xlink:label="loc_us-gaap_InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_9b369364-1996-a392-43ce-1fae0fbfd8cb" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_623d1e10-c4e7-6a0a-be2a-ef2b024027b6" xlink:to="loc_us-gaap_InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_9b369364-1996-a392-43ce-1fae0fbfd8cb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" 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_17d6fb00-d8ca-12a7-45aa-c9b702218c16" xlink:to="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseShortTermBorrowings" xlink:label="loc_us-gaap_InterestExpenseShortTermBorrowings_6eb80ace-55b2-7391-299c-837532396b69" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:to="loc_us-gaap_InterestExpenseShortTermBorrowings_6eb80ace-55b2-7391-299c-837532396b69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseLongTermDebt" xlink:label="loc_us-gaap_InterestExpenseLongTermDebt_77659a1d-5e89-4a8e-1e20-fa16a432d564" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_16e9f6a6-5524-a7b1-7e7c-73ee97610ec6" xlink:to="loc_us-gaap_InterestExpenseLongTermDebt_77659a1d-5e89-4a8e-1e20-fa16a432d564" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_fb9b10b1-d4d8-bf51-0524-f2efda24b93a" 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_07ff5c90-0c78-bcc6-b6d9-b6f38c1f082c" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_fb9b10b1-d4d8-bf51-0524-f2efda24b93a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_976d3954-a813-87e0-3f10-9f88f38c5886" 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_976d3954-a813-87e0-3f10-9f88f38c5886" xlink:to="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_250f992c-a034-44f0-8fab-ddee98e0f409" 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_976d3954-a813-87e0-3f10-9f88f38c5886" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_250f992c-a034-44f0-8fab-ddee98e0f409" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_315eb9df-a895-f713-c268-9c6813436750" xlink:type="locator" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_InvestmentGainsLossNet1" xlink:label="loc_fnm_InvestmentGainsLossNet1_576a19ab-5079-8e3f-937f-2c3cf9679aff" 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_315eb9df-a895-f713-c268-9c6813436750" xlink:to="loc_fnm_InvestmentGainsLossNet1_576a19ab-5079-8e3f-937f-2c3cf9679aff" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_FairValueGainsLossesNet" xlink:label="loc_fnm_FairValueGainsLossesNet_494ac11e-7d56-27fe-7156-2c3cf9d7f2db" 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_315eb9df-a895-f713-c268-9c6813436750" xlink:to="loc_fnm_FairValueGainsLossesNet_494ac11e-7d56-27fe-7156-2c3cf9d7f2db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_01b7d5f2-fc91-1ead-8a30-0937d23b7e70" 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_315eb9df-a895-f713-c268-9c6813436750" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_01b7d5f2-fc91-1ead-8a30-0937d23b7e70" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncomeParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssets" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsManagedLoansDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTransfersOfFinancialAssetsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTypesOfViesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsUnconsolidatedViesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet" xlink:label="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_fd747b02-5bc0-adfd-5413-976fc3fbf065" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_9c5a3d13-80f5-6ac1-a1b0-912f20b46987" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_fd747b02-5bc0-adfd-5413-976fc3fbf065" xlink:to="loc_us-gaap_TradingSecuritiesDebt_9c5a3d13-80f5-6ac1-a1b0-912f20b46987" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_fd747b02-5bc0-adfd-5413-976fc3fbf065" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_53a34e15-d375-c4e0-c5cf-68e055eee5e5" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_fd747b02-5bc0-adfd-5413-976fc3fbf065" xlink:to="loc_us-gaap_OtherAssets_53a34e15-d375-c4e0-c5cf-68e055eee5e5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_ff0e0b1b-b140-8889-cbc7-6f0d76651556" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_fd747b02-5bc0-adfd-5413-976fc3fbf065" xlink:to="loc_us-gaap_OtherLiabilities_ff0e0b1b-b140-8889-cbc7-6f0d76651556" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CoverPage" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstruments" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives1NotionalAndFvPositionDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_c498d065-e002-c8b0-aba8-6aaec8302ba7" xlink:type="locator" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives" xlink:label="loc_fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives_5906761c-4e90-90e7-9a9e-2c3cf943822b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_c498d065-e002-c8b0-aba8-6aaec8302ba7" xlink:to="loc_fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives_5906761c-4e90-90e7-9a9e-2c3cf943822b" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DerivativeLiabilityInterestPayable" xlink:label="loc_fnm_DerivativeLiabilityInterestPayable_fd3bdb57-997c-f47d-b798-2c3cf8f2c554" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_c498d065-e002-c8b0-aba8-6aaec8302ba7" xlink:to="loc_fnm_DerivativeLiabilityInterestPayable_fd3bdb57-997c-f47d-b798-2c3cf8f2c554" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_93b8afa1-df44-72a3-bafe-6e432f14f5b9" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_c498d065-e002-c8b0-aba8-6aaec8302ba7" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_93b8afa1-df44-72a3-bafe-6e432f14f5b9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_05d1a9f5-40b5-5876-afca-b2b8e7f078c9" xlink:type="locator" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DerivativeAssetsInterestReceivable" xlink:label="loc_fnm_DerivativeAssetsInterestReceivable_b17f60f4-90f0-8ac3-b27c-2c3cf9170d78" 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_05d1a9f5-40b5-5876-afca-b2b8e7f078c9" xlink:to="loc_fnm_DerivativeAssetsInterestReceivable_b17f60f4-90f0-8ac3-b27c-2c3cf9170d78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_72917570-227a-8bdb-1e78-6463f6305512" 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_05d1a9f5-40b5-5876-afca-b2b8e7f078c9" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_72917570-227a-8bdb-1e78-6463f6305512" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DerivativeFairValueGrossAssetAllDerivatives" xlink:label="loc_fnm_DerivativeFairValueGrossAssetAllDerivatives_1463442e-df0b-85af-81fb-2c3cf93f3f7e" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_05d1a9f5-40b5-5876-afca-b2b8e7f078c9" xlink:to="loc_fnm_DerivativeFairValueGrossAssetAllDerivatives_1463442e-df0b-85af-81fb-2c3cf93f3f7e" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives2FvGainsAndLossesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstrumentsNarrativesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstrumentsPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstrumentsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/Equity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_988c1346-b444-a867-fe80-f3aec1443d54" xlink:type="locator" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded" xlink:label="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded_8552700a-5620-93a3-9a03-2c3cfaaa4d9f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_988c1346-b444-a867-fe80-f3aec1443d54" xlink:to="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded_8552700a-5620-93a3-9a03-2c3cfaaa4d9f" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded" xlink:label="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded_2c801139-b57e-499a-c933-2c3cfa6070c0" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_988c1346-b444-a867-fe80-f3aec1443d54" xlink:to="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded_2c801139-b57e-499a-c933-2c3cfa6070c0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_39b41dd7-e18e-f7b7-a9b1-8d77b8bbb39c" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_988c1346-b444-a867-fe80-f3aec1443d54" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_39b41dd7-e18e-f7b7-a9b1-8d77b8bbb39c" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityChangesInAociDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityNarrativesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityScheduleOfStockByClassDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValue" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueChangesInFvUnderFvOptionDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueLevel3RollforwardDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueLevel3ValuationInputsRecurringDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueLevel3ValuationNonrecurringDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueLevelsHierarchyDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_554f95d2-cb4f-eb2c-68b3-7e12c8578a72" 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_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_554f95d2-cb4f-eb2c-68b3-7e12c8578a72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_cbc3cbda-1fb1-af8e-0097-b56de43893a0" 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_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_TradingSecurities_cbc3cbda-1fb1-af8e-0097-b56de43893a0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_6f3a57ea-5dc8-2042-ec7d-a8820e571190" 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_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_AvailableForSaleSecurities_6f3a57ea-5dc8-2042-ec7d-a8820e571190" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_c2d49fdf-2cef-2342-8314-d1b307fc59df" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_c2d49fdf-2cef-2342-8314-d1b307fc59df" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_05d1a9f5-40b5-5876-afca-b2b8e7f078c9" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_DerivativeAssets_05d1a9f5-40b5-5876-afca-b2b8e7f078c9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_d2b58163-9b70-93d8-8da6-4d47d94fdd3f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_8291da11-47f6-273c-298b-c5749924ed52" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d2b58163-9b70-93d8-8da6-4d47d94fdd3f" xlink:to="loc_us-gaap_LongTermDebtFairValue_8291da11-47f6-273c-298b-c5749924ed52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_c498d065-e002-c8b0-aba8-6aaec8302ba7" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d2b58163-9b70-93d8-8da6-4d47d94fdd3f" xlink:to="loc_us-gaap_DerivativeLiabilities_c498d065-e002-c8b0-aba8-6aaec8302ba7" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueOfFinancialInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_d2b58163-9b70-93d8-8da6-4d47d94fdd3f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_8291da11-47f6-273c-298b-c5749924ed52" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d2b58163-9b70-93d8-8da6-4d47d94fdd3f" xlink:to="loc_us-gaap_LongTermDebtFairValue_8291da11-47f6-273c-298b-c5749924ed52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MortgagesHeldForSaleFairValueDisclosure" xlink:label="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_3c001e7c-6685-db2b-5c44-b2b7e62482f4" 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_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_3c001e7c-6685-db2b-5c44-b2b7e62482f4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_6f3a57ea-5dc8-2042-ec7d-a8820e571190" 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_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_AvailableForSaleSecurities_6f3a57ea-5dc8-2042-ec7d-a8820e571190" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_cbc3cbda-1fb1-af8e-0097-b56de43893a0" 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_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_TradingSecurities_cbc3cbda-1fb1-af8e-0097-b56de43893a0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure" xlink:label="loc_us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure_fec20a23-c4d8-1568-c49a-33a603c6b393" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure_fec20a23-c4d8-1568-c49a-33a603c6b393" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure" xlink:label="loc_fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure_87e57ead-0a51-4719-e301-2c3cf9d90174" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure_87e57ead-0a51-4719-e301-2c3cf9d90174" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_c2d49fdf-2cef-2342-8314-d1b307fc59df" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_c2d49fdf-2cef-2342-8314-d1b307fc59df" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_AdvancesToLendersFairValueDisclosure" xlink:label="loc_fnm_AdvancesToLendersFairValueDisclosure_ff0c7a00-70d0-56bd-8ca0-2c3cf9a0aa45" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_fnm_AdvancesToLendersFairValueDisclosure_ff0c7a00-70d0-56bd-8ca0-2c3cf9a0aa45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_05d1a9f5-40b5-5876-afca-b2b8e7f078c9" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_DerivativeAssets_05d1a9f5-40b5-5876-afca-b2b8e7f078c9" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure" xlink:label="loc_fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure_3a71e62e-efb9-751c-4a60-2c3cf94095a8" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure_3a71e62e-efb9-751c-4a60-2c3cf94095a8" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueOptionDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValuePolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FinancialGuarantees" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FinancialGuaranteesAndMaximumRecoveryDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FinancialGuaranteesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxes" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans" xlink:label="loc_fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans_0aadc697-c823-f7dd-cc5a-3a17ef8a8cf2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:to="loc_fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans_0aadc697-c823-f7dd-cc5a-3a17ef8a8cf2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_fe21be56-1913-e3d4-d726-e782af57be73" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_fe21be56-1913-e3d4-d726-e782af57be73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments" xlink:label="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_6514ac48-3983-aa80-ceca-70754e132167" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:to="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_6514ac48-3983-aa80-ceca-70754e132167" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_2d1c8ed9-b097-b87a-4ac4-efe9a659cbff" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_2d1c8ed9-b097-b87a-4ac4-efe9a659cbff" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsEquityMethodInvestments" xlink:label="loc_us-gaap_DeferredTaxAssetsEquityMethodInvestments_3a5eb694-ff37-e546-59ac-ee71db551a0d" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:to="loc_us-gaap_DeferredTaxAssetsEquityMethodInvestments_3a5eb694-ff37-e546-59ac-ee71db551a0d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsInvestments" xlink:label="loc_us-gaap_DeferredTaxAssetsInvestments_8238b72a-9466-2c8c-af2e-800965722912" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:to="loc_us-gaap_DeferredTaxAssetsInvestments_8238b72a-9466-2c8c-af2e-800965722912" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_a87b79d6-1ed8-a71d-1843-5c0769713f28" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_a87b79d6-1ed8-a71d-1843-5c0769713f28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_15e17ec2-d527-455f-b2cd-0be7f92a9fd5" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_15e17ec2-d527-455f-b2cd-0be7f92a9fd5" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross" xlink:label="loc_fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross_60b1aaee-948c-1e19-8726-3a17ef2dc897" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_15e17ec2-d527-455f-b2cd-0be7f92a9fd5" xlink:to="loc_fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross_60b1aaee-948c-1e19-8726-3a17ef2dc897" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxLiabilitiesOther" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_4c5a1085-469a-cd6c-e26f-53287b62aa26" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_15e17ec2-d527-455f-b2cd-0be7f92a9fd5" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_4c5a1085-469a-cd6c-e26f-53287b62aa26" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxesProvisionBenefitForIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_ad87dc87-7206-5d76-a1ae-6cecdf90521c" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_ad87dc87-7206-5d76-a1ae-6cecdf90521c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_3421bed6-296e-da4e-f0e9-a2a8fa1f6d19" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_3421bed6-296e-da4e-f0e9-a2a8fa1f6d19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_5ef0c8c5-04c5-1c10-a59e-3eaa9cf923b4" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_5ef0c8c5-04c5-1c10-a59e-3eaa9cf923b4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_fd7019be-c6f8-9cda-d3ab-209d7d140083" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_fd7019be-c6f8-9cda-d3ab-209d7d140083" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_dde8ff73-3704-2d19-f167-45cf9c0efbb7" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_dde8ff73-3704-2d19-f167-45cf9c0efbb7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxSettlements" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxSettlements_7f1b47ec-bf33-9e4a-93c6-533c5b05a200" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxSettlements_7f1b47ec-bf33-9e4a-93c6-533c5b05a200" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_c16a0eb3-02da-6ea0-91e7-3203372f71fd" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_c16a0eb3-02da-6ea0-91e7-3203372f71fd" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecurities" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities1Details" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities2Details" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" 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_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a23ab896-034e-8e96-1a84-63ffb40e496e" 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_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a23ab896-034e-8e96-1a84-63ffb40e496e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_9fbaf9cb-468f-3b91-9cf2-18d26152173d" 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_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_9fbaf9cb-468f-3b91-9cf2-18d26152173d" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities3Details" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecuritiesMaturityInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_3236f48e-532a-ae2d-b897-bd8fd74c8d03" 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_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_3236f48e-532a-ae2d-b897-bd8fd74c8d03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_09d0ad3a-64ce-e3ac-3d9b-3e70c137428b" 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_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_09d0ad3a-64ce-e3ac-3d9b-3e70c137428b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_d5cfc42a-3860-19e9-685c-3fc78165df90" 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_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_d5cfc42a-3860-19e9-685c-3fc78165df90" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_02e25e67-4b1e-99f6-e382-e425a2674758" 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_27940abc-0cb4-eab4-8ef0-df4a4c0bb415" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_02e25e67-4b1e-99f6-e382-e425a2674758" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_e9ed7e10-c501-7ec9-8552-73691e4cf343" 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_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_e9ed7e10-c501-7ec9-8552-73691e4cf343" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_b0130380-1653-56f4-a85f-544c3e28f959" 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_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_b0130380-1653-56f4-a85f-544c3e28f959" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_047f1b3e-7ef7-08b8-99cc-f0920e498347" 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_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_047f1b3e-7ef7-08b8-99cc-f0920e498347" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_3ebc0e35-5195-af06-3a24-8278482a42cd" 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_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_3ebc0e35-5195-af06-3a24-8278482a42cd" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecuritiesOtherThanTemporaryImpairments1Details" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecuritiesPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecuritiesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecuritiesTrading1Details" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecuritiesTrading2Details" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/LoansInMortgagePortfolioDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_dca7a301-7b9b-bf9f-8832-b75fdb3bd6ce" xlink:type="locator" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance" xlink:label="loc_fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance_890e6f65-5435-86cf-89e3-2c3cf91886ce" 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_dca7a301-7b9b-bf9f-8832-b75fdb3bd6ce" xlink:to="loc_fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance_890e6f65-5435-86cf-89e3-2c3cf91886ce" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet" xlink:label="loc_fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet_2b5cdb40-3e4b-6a7b-f743-2c3cf987ef71" 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_dca7a301-7b9b-bf9f-8832-b75fdb3bd6ce" xlink:to="loc_fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet_2b5cdb40-3e4b-6a7b-f743-2c3cf987ef71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_0112693b-b0b8-4be7-7b63-365d8d4e3448" 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_dca7a301-7b9b-bf9f-8832-b75fdb3bd6ce" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_0112693b-b0b8-4be7-7b63-365d8d4e3448" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/LongTermDebtDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoans" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansAgingDetails" xlink:type="extended">
    <link:loc xlink:href="fnm-20191231.xsd#fnm_RecordedInvestmentMortgageLoansHeldForInvestment" xlink:label="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_82afb051-af03-759f-51b1-2c3cf93cf6de" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_237f5632-95a9-3802-43df-2ff16ba46a11" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_82afb051-af03-759f-51b1-2c3cf93cf6de" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_237f5632-95a9-3802-43df-2ff16ba46a11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_06586565-6cb8-0c2d-2918-46c33c36a989" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_82afb051-af03-759f-51b1-2c3cf93cf6de" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_06586565-6cb8-0c2d-2918-46c33c36a989" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsMfDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsSfDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoans2Details" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_B0E3444D65865C8387B27A509F42A788" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_C3893557932154B38DDC7675F718D457" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_B0E3444D65865C8387B27A509F42A788" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_C3893557932154B38DDC7675F718D457" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_36E33C44B1DD59A7993E3110D1D6C921" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_B0E3444D65865C8387B27A509F42A788" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_36E33C44B1DD59A7993E3110D1D6C921" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_B2CA30D8BCFB52D68418139DA56AB384" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_12718425F7E2537FB5D727CF37149DFD" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_B2CA30D8BCFB52D68418139DA56AB384" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_12718425F7E2537FB5D727CF37149DFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_B6767CD0811C572596B11692CC20C1E4" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_B2CA30D8BCFB52D68418139DA56AB384" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_B6767CD0811C572596B11692CC20C1E4" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoansDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_67684764B65B576184DCD188D10803CC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_74CED6C4375F58188EABCBF173B55AA8" 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_67684764B65B576184DCD188D10803CC" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_74CED6C4375F58188EABCBF173B55AA8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_E76CA0E4BDA35E3BAD5C03203838E243" 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_67684764B65B576184DCD188D10803CC" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_E76CA0E4BDA35E3BAD5C03203838E243" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_E87D9362DD4F5C3694C12D0B4E610808" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_DBF97F40AD975F3884F3681081CF398B" 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_E87D9362DD4F5C3694C12D0B4E610808" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_DBF97F40AD975F3884F3681081CF398B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_83CFF29891A059C89E65C033B7C38FBB" 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_E87D9362DD4F5C3694C12D0B4E610808" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_83CFF29891A059C89E65C033B7C38FBB" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansTdrsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansTdrsWithSubDefaultsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangements" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_b0ba86b5-f585-9041-828e-1bdb8d2c4ad6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_6fa3a097-5251-77f2-6636-1c0c36a4db94" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_b0ba86b5-f585-9041-828e-1bdb8d2c4ad6" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_6fa3a097-5251-77f2-6636-1c0c36a4db94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_5993b54b-b754-5ec4-bfe4-b04ef43218d6" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_b0ba86b5-f585-9041-828e-1bdb8d2c4ad6" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_5993b54b-b754-5ec4-bfe4-b04ef43218d6" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_31b43cc4-ae37-dc1b-3de2-2c3cfa8d3534" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_3523dd27-750a-8fd2-2d08-9ff019c396c2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_31b43cc4-ae37-dc1b-3de2-2c3cfa8d3534" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_3523dd27-750a-8fd2-2d08-9ff019c396c2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_6cb66114-bf63-d028-2d01-3d66f917fa7d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_3523dd27-750a-8fd2-2d08-9ff019c396c2" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_6cb66114-bf63-d028-2d01-3d66f917fa7d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_6dc0e0e4-8220-3a8f-e156-39b78bcf2cd8" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_3523dd27-750a-8fd2-2d08-9ff019c396c2" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_6dc0e0e4-8220-3a8f-e156-39b78bcf2cd8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_ebb680c4-96d6-831b-10a5-d87a079106c9" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_31b43cc4-ae37-dc1b-3de2-2c3cfa8d3534" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_ebb680c4-96d6-831b-10a5-d87a079106c9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_72917570-227a-8bdb-1e78-6463f6305512" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_ebb680c4-96d6-831b-10a5-d87a079106c9" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_72917570-227a-8bdb-1e78-6463f6305512" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_093f4cac-6c26-7ef2-076f-138d9a06eb99" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_ebb680c4-96d6-831b-10a5-d87a079106c9" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_093f4cac-6c26-7ef2-076f-138d9a06eb99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_fb018ba0-2f6c-6118-56fa-3489233892d1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_e71ae707-eb75-3d79-5329-2d57b55cdf39" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_fb018ba0-2f6c-6118-56fa-3489233892d1" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_e71ae707-eb75-3d79-5329-2d57b55cdf39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_93b8afa1-df44-72a3-bafe-6e432f14f5b9" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_e71ae707-eb75-3d79-5329-2d57b55cdf39" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_93b8afa1-df44-72a3-bafe-6e432f14f5b9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_0078bdbb-290f-5ef0-62d2-056ec95a2492" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_e71ae707-eb75-3d79-5329-2d57b55cdf39" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_0078bdbb-290f-5ef0-62d2-056ec95a2492" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_4d2ae53e-5cb3-e263-64b1-0fa0831fcd7f" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_fb018ba0-2f6c-6118-56fa-3489233892d1" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_4d2ae53e-5cb3-e263-64b1-0fa0831fcd7f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_d1ca3b6b-2c96-5299-529a-aa51edb7c767" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_fb018ba0-2f6c-6118-56fa-3489233892d1" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_d1ca3b6b-2c96-5299-529a-aa51edb7c767" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_97d4a272-a587-c5f4-f9bf-30ec7489658d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_98e02148-066a-a48e-c8ae-d004272ef99e" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_97d4a272-a587-c5f4-f9bf-30ec7489658d" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_98e02148-066a-a48e-c8ae-d004272ef99e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_c82360c5-eba3-fc2c-e3c9-227b956c69fd" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_98e02148-066a-a48e-c8ae-d004272ef99e" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_c82360c5-eba3-fc2c-e3c9-227b956c69fd" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_c82360c5-eba3-fc2c-e3c9-227b956c69fd" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_6cb66114-bf63-d028-2d01-3d66f917fa7d" xlink:type="arc" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_c82360c5-eba3-fc2c-e3c9-227b956c69fd" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_72917570-227a-8bdb-1e78-6463f6305512" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_ecc874de-a1d3-fd36-40f0-6c36c747f171" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_98e02148-066a-a48e-c8ae-d004272ef99e" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_ecc874de-a1d3-fd36-40f0-6c36c747f171" xlink:type="arc" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_98e02148-066a-a48e-c8ae-d004272ef99e" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_6fa3a097-5251-77f2-6636-1c0c36a4db94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_eee64b54-74a0-d244-f500-1c28873c696a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_97d4a272-a587-c5f4-f9bf-30ec7489658d" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_eee64b54-74a0-d244-f500-1c28873c696a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_fa00f18b-9fb4-6508-d390-816c3b349ee9" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_eee64b54-74a0-d244-f500-1c28873c696a" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_fa00f18b-9fb4-6508-d390-816c3b349ee9" xlink:type="arc" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_eee64b54-74a0-d244-f500-1c28873c696a" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_5993b54b-b754-5ec4-bfe4-b04ef43218d6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_9734e207-2370-4bd9-92a8-1d5d26502b85" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_eee64b54-74a0-d244-f500-1c28873c696a" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_9734e207-2370-4bd9-92a8-1d5d26502b85" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_679d365d-9a57-e2d2-6329-3304a14311b1" xlink:type="locator" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_97ea8982-7141-e87d-a49a-2c3cf954ee49" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_679d365d-9a57-e2d2-6329-3304a14311b1" xlink:to="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_97ea8982-7141-e87d-a49a-2c3cf954ee49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_21e9be3e-0fe3-3151-0ebd-57f99a5c5227" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_97ea8982-7141-e87d-a49a-2c3cf954ee49" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_21e9be3e-0fe3-3151-0ebd-57f99a5c5227" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_21e9be3e-0fe3-3151-0ebd-57f99a5c5227" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_0078bdbb-290f-5ef0-62d2-056ec95a2492" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_42305379-e544-0d0f-f014-bccb1a84d502" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_21e9be3e-0fe3-3151-0ebd-57f99a5c5227" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_42305379-e544-0d0f-f014-bccb1a84d502" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_f10c6c28-0fe7-5d1c-cc0f-c43cc8191f39" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_97ea8982-7141-e87d-a49a-2c3cf954ee49" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_f10c6c28-0fe7-5d1c-cc0f-c43cc8191f39" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_f10c6c28-0fe7-5d1c-cc0f-c43cc8191f39" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_93b8afa1-df44-72a3-bafe-6e432f14f5b9" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c69fb206-6119-fab5-71cd-2c3cf8ce3079" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_679d365d-9a57-e2d2-6329-3304a14311b1" xlink:to="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c69fb206-6119-fab5-71cd-2c3cf8ce3079" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c69fb206-6119-fab5-71cd-2c3cf8ce3079" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_4d2ae53e-5cb3-e263-64b1-0fa0831fcd7f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_0f84f8bc-b075-dc40-f34d-b32013f037cc" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_679d365d-9a57-e2d2-6329-3304a14311b1" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_0f84f8bc-b075-dc40-f34d-b32013f037cc" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_0f84f8bc-b075-dc40-f34d-b32013f037cc" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_d1ca3b6b-2c96-5299-529a-aa51edb7c767" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseCollateralRightToReclaimSecurities_93ca002e-5a61-f856-4fcc-22fb5866cb67" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_0f84f8bc-b075-dc40-f34d-b32013f037cc" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseCollateralRightToReclaimSecurities_93ca002e-5a61-f856-4fcc-22fb5866cb67" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c790959e-c61c-af21-f240-2c3cf92d6c0b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c790959e-c61c-af21-f240-2c3cf92d6c0b" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_ecc874de-a1d3-fd36-40f0-6c36c747f171" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c790959e-c61c-af21-f240-2c3cf92d6c0b" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_fa00f18b-9fb4-6508-d390-816c3b349ee9" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsDetailsCalc2" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_138E0146BCCD98802EE11CEDD26A6A25_97d4a272-a587-c5f4-f9bf-30ec7489658d" xlink:type="locator" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_138E0146BCCD98802EE11CEDD26A6A25_31b43cc4-ae37-dc1b-3de2-2c3cfa8d3534" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_138E0146BCCD98802EE11CEDD26A6A25_97d4a272-a587-c5f4-f9bf-30ec7489658d" xlink:to="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_138E0146BCCD98802EE11CEDD26A6A25_31b43cc4-ae37-dc1b-3de2-2c3cfa8d3534" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_138E0146BCCD98802EE11CEDD26A6A25_c82360c5-eba3-fc2c-e3c9-227b956c69fd" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_138E0146BCCD98802EE11CEDD26A6A25_31b43cc4-ae37-dc1b-3de2-2c3cfa8d3534" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_138E0146BCCD98802EE11CEDD26A6A25_c82360c5-eba3-fc2c-e3c9-227b956c69fd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_138E0146BCCD98802EE11CEDD26A6A25_9734e207-2370-4bd9-92a8-1d5d26502b85" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_138E0146BCCD98802EE11CEDD26A6A25_31b43cc4-ae37-dc1b-3de2-2c3cfa8d3534" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_138E0146BCCD98802EE11CEDD26A6A25_9734e207-2370-4bd9-92a8-1d5d26502b85" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_138E0146BCCD98802EE11CEDD26A6A25_c790959e-c61c-af21-f240-2c3cf92d6c0b" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_138E0146BCCD98802EE11CEDD26A6A25_97d4a272-a587-c5f4-f9bf-30ec7489658d" xlink:to="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_138E0146BCCD98802EE11CEDD26A6A25_c790959e-c61c-af21-f240-2c3cf92d6c0b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_138E0146BCCD98802EE11CEDD26A6A25_b0ba86b5-f585-9041-828e-1bdb8d2c4ad6" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_138E0146BCCD98802EE11CEDD26A6A25_97d4a272-a587-c5f4-f9bf-30ec7489658d" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_138E0146BCCD98802EE11CEDD26A6A25_b0ba86b5-f585-9041-828e-1bdb8d2c4ad6" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsNarrativesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/RegulatoryCapitalRequirements" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsDetails" xlink:type="extended">
    <link:loc xlink:href="fnm-20191231.xsd#fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement" xlink:label="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_7389f66a-a420-8793-c1e9-2c3cfab2f3c9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Capital" xlink:label="loc_us-gaap_Capital_934f4a13-cd6e-3fde-c056-b3fd0db0ab18" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_7389f66a-a420-8793-c1e9-2c3cfab2f3c9" xlink:to="loc_us-gaap_Capital_934f4a13-cd6e-3fde-c056-b3fd0db0ab18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CapitalRequiredForCapitalAdequacy" xlink:label="loc_us-gaap_CapitalRequiredForCapitalAdequacy_24fcff4e-828a-4dcc-c8e4-09447dd531b6" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_7389f66a-a420-8793-c1e9-2c3cfab2f3c9" xlink:to="loc_us-gaap_CapitalRequiredForCapitalAdequacy_24fcff4e-828a-4dcc-c8e4-09447dd531b6" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReporting" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReportingAssetsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReportingDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReportingNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReportingPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReportingTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnaudited" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_8b582348-a62e-cdfb-bc53-d5894b42e091" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_8b582348-a62e-cdfb-bc53-d5894b42e091" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_8b582348-a62e-cdfb-bc53-d5894b42e091" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_58462a12-ec5e-da2d-89ad-2d8b2ce76259" 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_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_58462a12-ec5e-da2d-89ad-2d8b2ce76259" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_ForeclosedRealEstateExpenseIncome" xlink:label="loc_fnm_ForeclosedRealEstateExpenseIncome_3c93a307-bedd-cc7a-0ad8-2c3cfa769f05" 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_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_fnm_ForeclosedRealEstateExpenseIncome_3c93a307-bedd-cc7a-0ad8-2c3cfa769f05" xlink:type="arc" />
    <link:loc xlink:href="fnm-20191231.xsd#fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011" xlink:label="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_b4c2e706-604c-86ff-76bb-2c3cf931a33c" 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_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_b4c2e706-604c-86ff-76bb-2c3cf931a33c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_60e0cfc8-9d1d-c126-3203-c33be400af36" 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_8e4fe756-aff6-3f3d-e18c-a95055b1a60d" xlink:to="loc_us-gaap_OtherNoninterestExpense_60e0cfc8-9d1d-c126-3203-c33be400af36" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedDetailsCalc2" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_C7D6FE4FD936543F23472559E78806DC_976d3954-a813-87e0-3f10-9f88f38c5886" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_C7D6FE4FD936543F23472559E78806DC_8b582348-a62e-cdfb-bc53-d5894b42e091" 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_C7D6FE4FD936543F23472559E78806DC_976d3954-a813-87e0-3f10-9f88f38c5886" xlink:to="loc_us-gaap_ProfitLoss_C7D6FE4FD936543F23472559E78806DC_8b582348-a62e-cdfb-bc53-d5894b42e091" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_C7D6FE4FD936543F23472559E78806DC_250f992c-a034-44f0-8fab-ddee98e0f409" 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_C7D6FE4FD936543F23472559E78806DC_976d3954-a813-87e0-3f10-9f88f38c5886" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_C7D6FE4FD936543F23472559E78806DC_250f992c-a034-44f0-8fab-ddee98e0f409" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermAndLongTermDebt" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermAndLongTermDebtCharacteristicsOfDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_a2f199ce-3001-c200-d488-633bc54206dc" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_b14a8305-c528-44ac-6db7-45b0f6f6ddc6" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_a2f199ce-3001-c200-d488-633bc54206dc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_b14a8305-c528-44ac-6db7-45b0f6f6ddc6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_ce3ac95b-761b-7fbc-3779-1bdfd056c71f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_a2f199ce-3001-c200-d488-633bc54206dc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_ce3ac95b-761b-7fbc-3779-1bdfd056c71f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_d39bb101-f79f-a162-9929-01083e9d64b5" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_a2f199ce-3001-c200-d488-633bc54206dc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_d39bb101-f79f-a162-9929-01083e9d64b5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_73238937-86a2-9126-69f0-c70629155ebe" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_a2f199ce-3001-c200-d488-633bc54206dc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_73238937-86a2-9126-69f0-c70629155ebe" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_a170264f-50ba-a4bb-6d22-ec86b5249633" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_a2f199ce-3001-c200-d488-633bc54206dc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_a170264f-50ba-a4bb-6d22-ec86b5249633" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_da82f4c2-6e6f-ccde-a6bf-f559322a3267" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_a2f199ce-3001-c200-d488-633bc54206dc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_da82f4c2-6e6f-ccde-a6bf-f559322a3267" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermAndLongTermDebtTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermDebtDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesNewAccountingGuidanceDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesRelatedPartiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesSeniorPreferredStockPurchaseAgreementDetails" xlink:type="extended" />
</link:linkbase>
