<?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-20181231.xsd#AllowanceForLoanLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesAllowanceForLoanLossesPolicies" xlink:href="fnm-20181231.xsd#AllowanceForLoanLossesAllowanceForLoanLossesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesAndTotalRecordedInvestmentInHfiLoansDetails" xlink:href="fnm-20181231.xsd#AllowanceForLoanLossesAndTotalRecordedInvestmentInHfiLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesRollforwardBySegmentDetails" xlink:href="fnm-20181231.xsd#AllowanceForLoanLossesRollforwardBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesTables" xlink:href="fnm-20181231.xsd#AllowanceForLoanLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingencies" xlink:href="fnm-20181231.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesDetails" xlink:href="fnm-20181231.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesFiscalYearMaturityScheduleDetails" xlink:href="fnm-20181231.xsd#CommitmentsAndContingenciesFiscalYearMaturityScheduleDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesPolicies" xlink:href="fnm-20181231.xsd#CommitmentsAndContingenciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesTables" xlink:href="fnm-20181231.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRisk" xlink:href="fnm-20181231.xsd#ConcentrationsOfCreditRisk" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskGeographicConcentrationDetails" xlink:href="fnm-20181231.xsd#ConcentrationsOfCreditRiskGeographicConcentrationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskMfRiskCharacteristicsDetails" xlink:href="fnm-20181231.xsd#ConcentrationsOfCreditRiskMfRiskCharacteristicsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskOtherConcentrationsDetails" xlink:href="fnm-20181231.xsd#ConcentrationsOfCreditRiskOtherConcentrationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskSfRiskCharacteristicsDetails" xlink:href="fnm-20181231.xsd#ConcentrationsOfCreditRiskSfRiskCharacteristicsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskTables" xlink:href="fnm-20181231.xsd#ConcentrationsOfCreditRiskTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedBalanceSheets" xlink:href="fnm-20181231.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="fnm-20181231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="fnm-20181231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquityDeficit" xlink:href="fnm-20181231.xsd#ConsolidatedStatementsOfChangesInEquityDeficit" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquityDeficitParenthetical" xlink:href="fnm-20181231.xsd#ConsolidatedStatementsOfChangesInEquityDeficitParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:href="fnm-20181231.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncomeParenthetical" xlink:href="fnm-20181231.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssets" xlink:href="fnm-20181231.xsd#ConsolidationsAndTransfersOfFinancialAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsManagedLoansDetails" xlink:href="fnm-20181231.xsd#ConsolidationsAndTransfersOfFinancialAssetsManagedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsPolicies" xlink:href="fnm-20181231.xsd#ConsolidationsAndTransfersOfFinancialAssetsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTables" xlink:href="fnm-20181231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTransfersOfFinancialAssetsDetails" xlink:href="fnm-20181231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTransfersOfFinancialAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTypesOfViesDetails" xlink:href="fnm-20181231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTypesOfViesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsUnconsolidatedViesDetails" xlink:href="fnm-20181231.xsd#ConsolidationsAndTransfersOfFinancialAssetsUnconsolidatedViesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstruments" xlink:href="fnm-20181231.xsd#DerivativeInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives1NotionalAndFvPositionDetails" xlink:href="fnm-20181231.xsd#DerivativeInstrumentsDerivatives1NotionalAndFvPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives2FvGainsAndLossesDetails" xlink:href="fnm-20181231.xsd#DerivativeInstrumentsDerivatives2FvGainsAndLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsNarrativesDetails" xlink:href="fnm-20181231.xsd#DerivativeInstrumentsNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsPolicies" xlink:href="fnm-20181231.xsd#DerivativeInstrumentsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsTables" xlink:href="fnm-20181231.xsd#DerivativeInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DocumentAndEntityInformation" xlink:href="fnm-20181231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficit" xlink:href="fnm-20181231.xsd#EquityDeficit" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficitAccumulatedOtherComprehensiveIncomeDetails" xlink:href="fnm-20181231.xsd#EquityDeficitAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficitChangesInAociDetails" xlink:href="fnm-20181231.xsd#EquityDeficitChangesInAociDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficitNarrativesDetails" xlink:href="fnm-20181231.xsd#EquityDeficitNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficitScheduleOfStockByClassDetails" xlink:href="fnm-20181231.xsd#EquityDeficitScheduleOfStockByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficitTables" xlink:href="fnm-20181231.xsd#EquityDeficitTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValue" xlink:href="fnm-20181231.xsd#FairValue" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueChangesInFvUnderFvOptionDetails" xlink:href="fnm-20181231.xsd#FairValueChangesInFvUnderFvOptionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3RollforwardDetails" xlink:href="fnm-20181231.xsd#FairValueLevel3RollforwardDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3ValuationInputsRecurringDetails" xlink:href="fnm-20181231.xsd#FairValueLevel3ValuationInputsRecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3ValuationNonrecurringDetails" xlink:href="fnm-20181231.xsd#FairValueLevel3ValuationNonrecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevelsHierarchyDetails" xlink:href="fnm-20181231.xsd#FairValueLevelsHierarchyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueOfFinancialInstrumentsDetails" xlink:href="fnm-20181231.xsd#FairValueOfFinancialInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueOptionDetails" xlink:href="fnm-20181231.xsd#FairValueOptionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValuePolicies" xlink:href="fnm-20181231.xsd#FairValuePolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueTables" xlink:href="fnm-20181231.xsd#FairValueTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuarantees" xlink:href="fnm-20181231.xsd#FinancialGuarantees" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuaranteesAndMaximumRecoveryDetails" xlink:href="fnm-20181231.xsd#FinancialGuaranteesAndMaximumRecoveryDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuaranteesTables" xlink:href="fnm-20181231.xsd#FinancialGuaranteesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxPolicies" xlink:href="fnm-20181231.xsd#IncomeTaxPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxes" xlink:href="fnm-20181231.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:href="fnm-20181231.xsd#IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesProvisionBenefitForIncomeTaxesDetails" xlink:href="fnm-20181231.xsd#IncomeTaxesProvisionBenefitForIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesTables" xlink:href="fnm-20181231.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:href="fnm-20181231.xsd#IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecurities" xlink:href="fnm-20181231.xsd#InvestmentsInSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities1Details" xlink:href="fnm-20181231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities2Details" xlink:href="fnm-20181231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities3Details" xlink:href="fnm-20181231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities3Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesMaturityInformationDetails" xlink:href="fnm-20181231.xsd#InvestmentsInSecuritiesMaturityInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesOtherThanTemporaryImpairments1Details" xlink:href="fnm-20181231.xsd#InvestmentsInSecuritiesOtherThanTemporaryImpairments1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesPolicies" xlink:href="fnm-20181231.xsd#InvestmentsInSecuritiesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTables" xlink:href="fnm-20181231.xsd#InvestmentsInSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTrading1Details" xlink:href="fnm-20181231.xsd#InvestmentsInSecuritiesTrading1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTrading2Details" xlink:href="fnm-20181231.xsd#InvestmentsInSecuritiesTrading2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/LoansInMortgagePortfolioDetails" xlink:href="fnm-20181231.xsd#LoansInMortgagePortfolioDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/LongTermDebtDetails" xlink:href="fnm-20181231.xsd#LongTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoans" xlink:href="fnm-20181231.xsd#MortgageLoans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansAgingDetails" xlink:href="fnm-20181231.xsd#MortgageLoansAgingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsMfDetails" xlink:href="fnm-20181231.xsd#MortgageLoansCreditQualityIndicatorsMfDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsSfDetails" xlink:href="fnm-20181231.xsd#MortgageLoansCreditQualityIndicatorsSfDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoans2Details" xlink:href="fnm-20181231.xsd#MortgageLoansIndividuallyImpairedLoans2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoansDetails" xlink:href="fnm-20181231.xsd#MortgageLoansIndividuallyImpairedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansPolicies" xlink:href="fnm-20181231.xsd#MortgageLoansPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTables" xlink:href="fnm-20181231.xsd#MortgageLoansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTdrsDetails" xlink:href="fnm-20181231.xsd#MortgageLoansTdrsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTdrsWithSubDefaultsDetails" xlink:href="fnm-20181231.xsd#MortgageLoansTdrsWithSubDefaultsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangements" xlink:href="fnm-20181231.xsd#NettingArrangements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsDetails" xlink:href="fnm-20181231.xsd#NettingArrangementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsDetailsCalc2" xlink:href="fnm-20181231.xsd#NettingArrangementsDetailsCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsNarrativesDetails" xlink:href="fnm-20181231.xsd#NettingArrangementsNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsPolicies" xlink:href="fnm-20181231.xsd#NettingArrangementsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsTables" xlink:href="fnm-20181231.xsd#NettingArrangementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirements" xlink:href="fnm-20181231.xsd#RegulatoryCapitalRequirements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsDetails" xlink:href="fnm-20181231.xsd#RegulatoryCapitalRequirementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsTables" xlink:href="fnm-20181231.xsd#RegulatoryCapitalRequirementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReporting" xlink:href="fnm-20181231.xsd#SegmentReporting" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingAssetsDetails" xlink:href="fnm-20181231.xsd#SegmentReportingAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingDetails" xlink:href="fnm-20181231.xsd#SegmentReportingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingNarrativeDetails" xlink:href="fnm-20181231.xsd#SegmentReportingNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingPolicies" xlink:href="fnm-20181231.xsd#SegmentReportingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingTables" xlink:href="fnm-20181231.xsd#SegmentReportingTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnaudited" xlink:href="fnm-20181231.xsd#SelectedQuarterlyFinancialInformationUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:href="fnm-20181231.xsd#SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedTables" xlink:href="fnm-20181231.xsd#SelectedQuarterlyFinancialInformationUnauditedTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermAndLongTermDebt" xlink:href="fnm-20181231.xsd#ShortTermAndLongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermAndLongTermDebtCharacteristicsOfDebtDetails" xlink:href="fnm-20181231.xsd#ShortTermAndLongTermDebtCharacteristicsOfDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermAndLongTermDebtTables" xlink:href="fnm-20181231.xsd#ShortTermAndLongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermDebtDetails" xlink:href="fnm-20181231.xsd#ShortTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="fnm-20181231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesAdvancesToLendersDetails" xlink:href="fnm-20181231.xsd#SummaryOfSignificantAccountingPoliciesAdvancesToLendersDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesEmployeeRetirementBenefitsDetails" xlink:href="fnm-20181231.xsd#SummaryOfSignificantAccountingPoliciesEmployeeRetirementBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesFeeAndOtherIncomeDetails" xlink:href="fnm-20181231.xsd#SummaryOfSignificantAccountingPoliciesFeeAndOtherIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesInvestmentsInSecuritiesDetails" xlink:href="fnm-20181231.xsd#SummaryOfSignificantAccountingPoliciesInvestmentsInSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesOrganizationDetails" xlink:href="fnm-20181231.xsd#SummaryOfSignificantAccountingPoliciesOrganizationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="fnm-20181231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesRelatedPartiesDetails" xlink:href="fnm-20181231.xsd#SummaryOfSignificantAccountingPoliciesRelatedPartiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesReserveForGuarantyLossesDetails" xlink:href="fnm-20181231.xsd#SummaryOfSignificantAccountingPoliciesReserveForGuarantyLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesUseOfEstimatesDetails" xlink:href="fnm-20181231.xsd#SummaryOfSignificantAccountingPoliciesUseOfEstimatesDetails" 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-20181231.xsd#fnm_RecordedInvestmentMortgageLoansHeldForInvestment" xlink:label="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_eeb28703-4d9a-3297-fb8d-5529d83ce2fb" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_67d184fe-5d25-860b-7c00-2caf210e10b0" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_eeb28703-4d9a-3297-fb8d-5529d83ce2fb" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_67d184fe-5d25-860b-7c00-2caf210e10b0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_fdda4884-a15d-3311-52f9-6149947dcf70" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_eeb28703-4d9a-3297-fb8d-5529d83ce2fb" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_fdda4884-a15d-3311-52f9-6149947dcf70" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_df7af0b2-43e2-2ab7-2db2-c01524cee08f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_ed6ec8d9-fca0-f003-fc02-c965cd6f5ebe" 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_df7af0b2-43e2-2ab7-2db2-c01524cee08f" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_ed6ec8d9-fca0-f003-fc02-c965cd6f5ebe" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_c0073149-9d4e-7663-7f76-fffbfeb1ff51" 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_df7af0b2-43e2-2ab7-2db2-c01524cee08f" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_c0073149-9d4e-7663-7f76-fffbfeb1ff51" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PurchaseObligation" xlink:label="loc_us-gaap_PurchaseObligation_b47daf2a-d854-dfa3-d525-85a178db5970" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_01449806-1937-5d70-12a4-22374dd0ef96" 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_b47daf2a-d854-dfa3-d525-85a178db5970" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_01449806-1937-5d70-12a4-22374dd0ef96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PurchaseObligationDueInSecondYear" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_88f9dced-4ae9-a7b4-5bbb-4e138bdeec2a" 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_b47daf2a-d854-dfa3-d525-85a178db5970" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_88f9dced-4ae9-a7b4-5bbb-4e138bdeec2a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PurchaseObligationDueInThirdYear" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_f6b6b6cf-d833-15d8-b984-3052c3d8f47b" 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_b47daf2a-d854-dfa3-d525-85a178db5970" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_f6b6b6cf-d833-15d8-b984-3052c3d8f47b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PurchaseObligationDueInFourthYear" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_c587ed4b-1c17-dd3d-2c54-f43bb99e468b" 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_b47daf2a-d854-dfa3-d525-85a178db5970" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_c587ed4b-1c17-dd3d-2c54-f43bb99e468b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PurchaseObligationDueInFifthYear" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_d5c2cd47-ec14-09d3-da74-4eb71bd3be08" 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_b47daf2a-d854-dfa3-d525-85a178db5970" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_d5c2cd47-ec14-09d3-da74-4eb71bd3be08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PurchaseObligationDueAfterFifthYear" xlink:label="loc_us-gaap_PurchaseObligationDueAfterFifthYear_91fd2bc9-b654-2d1d-53c5-6b25699e74bc" 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_b47daf2a-d854-dfa3-d525-85a178db5970" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_91fd2bc9-b654-2d1d-53c5-6b25699e74bc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_f67237f3-7c78-8a5c-b7b3-17f1eb0b017a" 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_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_f67237f3-7c78-8a5c-b7b3-17f1eb0b017a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_ccaff3fc-3d87-e58a-0083-69dda0c10f9d" 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_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_ccaff3fc-3d87-e58a-0083-69dda0c10f9d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_39e76369-4fdc-9d5f-860a-45d0795e5fb0" 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_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_39e76369-4fdc-9d5f-860a-45d0795e5fb0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_fe404cae-7fcc-3489-844f-4d90e9776180" 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_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_fe404cae-7fcc-3489-844f-4d90e9776180" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_5b651b24-1278-4eab-c840-7002c6d68546" 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_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_5b651b24-1278-4eab-c840-7002c6d68546" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_36c616b1-40de-90d4-3c05-7e224ce1169a" 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_30d028f9-2f3a-4a0c-02f8-ea9552d875b6" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_36c616b1-40de-90d4-3c05-7e224ce1169a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitment" xlink:label="loc_us-gaap_OtherCommitment_01617088-e15d-df87-fac1-8159c99c8265" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentDueInNextTwelveMonths" xlink:label="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_0962ec60-8ab6-1cb8-9bed-ee92dfb6b849" 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_01617088-e15d-df87-fac1-8159c99c8265" xlink:to="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_0962ec60-8ab6-1cb8-9bed-ee92dfb6b849" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentDueInSecondYear" xlink:label="loc_us-gaap_OtherCommitmentDueInSecondYear_0a55f62b-dd36-df29-dde0-6b43aadaa50d" 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_01617088-e15d-df87-fac1-8159c99c8265" xlink:to="loc_us-gaap_OtherCommitmentDueInSecondYear_0a55f62b-dd36-df29-dde0-6b43aadaa50d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentDueInThirdYear" xlink:label="loc_us-gaap_OtherCommitmentDueInThirdYear_1e3f4530-c8c6-e204-389d-78ee78e5bc31" 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_01617088-e15d-df87-fac1-8159c99c8265" xlink:to="loc_us-gaap_OtherCommitmentDueInThirdYear_1e3f4530-c8c6-e204-389d-78ee78e5bc31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentDueInFourthYear" xlink:label="loc_us-gaap_OtherCommitmentDueInFourthYear_348c6de2-f0e3-1a42-8cc3-6adc90f4f37d" 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_01617088-e15d-df87-fac1-8159c99c8265" xlink:to="loc_us-gaap_OtherCommitmentDueInFourthYear_348c6de2-f0e3-1a42-8cc3-6adc90f4f37d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentDueInFifthYear" xlink:label="loc_us-gaap_OtherCommitmentDueInFifthYear_301aa4c9-532b-55d6-4b33-5a20e9265539" 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_01617088-e15d-df87-fac1-8159c99c8265" xlink:to="loc_us-gaap_OtherCommitmentDueInFifthYear_301aa4c9-532b-55d6-4b33-5a20e9265539" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitmentDueAfterFifthYear" xlink:label="loc_us-gaap_OtherCommitmentDueAfterFifthYear_9134f0f8-db71-fdd7-2915-2155d1a159af" 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_01617088-e15d-df87-fac1-8159c99c8265" xlink:to="loc_us-gaap_OtherCommitmentDueAfterFifthYear_9134f0f8-db71-fdd7-2915-2155d1a159af" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_Liabilities_066608da-f041-4af6-3da0-95354b640e11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_f0c68f4f-7ec1-d447-8ba7-0f2766abbe67" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_CommitmentsAndContingencies_f0c68f4f-7ec1-d447-8ba7-0f2766abbe67" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_63817d40-f759-fa9c-45a5-8bbbb36ed5c9" xlink:to="loc_us-gaap_StockholdersEquity_6765f135-8c69-bebc-a116-d59a52a5b2f2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_de28afaf-c196-a9fb-19ce-497a503ad80a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_de28afaf-c196-a9fb-19ce-497a503ad80a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableConsumerRealEstate" xlink:label="loc_us-gaap_LoansAndLeasesReceivableConsumerRealEstate_552e9e4e-42b3-72ab-53c9-7b585f27cca5" 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_de28afaf-c196-a9fb-19ce-497a503ad80a" xlink:to="loc_us-gaap_LoansAndLeasesReceivableConsumerRealEstate_552e9e4e-42b3-72ab-53c9-7b585f27cca5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_df7af0b2-43e2-2ab7-2db2-c01524cee08f" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_de28afaf-c196-a9fb-19ce-497a503ad80a" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_df7af0b2-43e2-2ab7-2db2-c01524cee08f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansReceivableHeldForSaleAmount" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleAmount_f0308f64-00fb-19f2-1a56-da00648dd49c" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleAmount_f0308f64-00fb-19f2-1a56-da00648dd49c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_476b367a-1ad6-eb34-c01b-595b754b8aa8" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_476b367a-1ad6-eb34-c01b-595b754b8aa8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaap_InterestReceivable_1b69c830-bc0e-9c5b-41c9-e13cffc645fa" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_InterestReceivable_1b69c830-bc0e-9c5b-41c9-e13cffc645fa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealEstateAcquiredThroughForeclosure" xlink:label="loc_us-gaap_RealEstateAcquiredThroughForeclosure_46b50f97-e3d9-8e5e-8897-15420d515b6a" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_RealEstateAcquiredThroughForeclosure_46b50f97-e3d9-8e5e-8897-15420d515b6a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_806083e9-63fa-5acf-a0c8-803a67715508" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_OtherAssets_806083e9-63fa-5acf-a0c8-803a67715508" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_32f41ea9-05c6-e713-464b-586a571d1c1f" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_32f41ea9-05c6-e713-464b-586a571d1c1f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_61d6663d-71dc-4159-c90b-9591805979c3" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_61d6663d-71dc-4159-c90b-9591805979c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell" xlink:label="loc_us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_9c0d3b11-405d-2c25-2b90-44f042b7393e" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_9c0d3b11-405d-2c25-2b90-44f042b7393e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketableSecurities" xlink:label="loc_us-gaap_MarketableSecurities_b0d2564e-70dc-1aa5-5410-b2c63a94f027" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_96dd7052-744e-d270-4e77-67944ec39152" xlink:to="loc_us-gaap_MarketableSecurities_b0d2564e-70dc-1aa5-5410-b2c63a94f027" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_dcb44336-c712-7a1a-d111-e88d6c1679df" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MarketableSecurities_b0d2564e-70dc-1aa5-5410-b2c63a94f027" xlink:to="loc_us-gaap_TradingSecuritiesDebt_dcb44336-c712-7a1a-d111-e88d6c1679df" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MarketableSecurities_b0d2564e-70dc-1aa5-5410-b2c63a94f027" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:type="arc" />
  </link: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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_ad8f5587-cd30-97dd-9cf0-81ed4f58516c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_ad8f5587-cd30-97dd-9cf0-81ed4f58516c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8917e24-06dd-060d-a290-e426c7895e54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_ad8f5587-cd30-97dd-9cf0-81ed4f58516c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_28655e34-499f-b7bf-c54f-5de0990d0c65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_ad8f5587-cd30-97dd-9cf0-81ed4f58516c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_ProfitLoss_8aa68cfb-2df7-9a23-d1ed-4fe33385b4a2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepreciationAmortizationAndAccretionNet" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_eb909908-629e-b0dc-c0ba-a7cb50bec143" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_eb909908-629e-b0dc-c0ba-a7cb50bec143" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_4a6a38da-b7a6-954f-0e6d-0c7a078f2f07" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_4a6a38da-b7a6-954f-0e6d-0c7a078f2f07" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_ValuationLossGain" xlink:label="loc_fnm_ValuationLossGain_48a31814-9bd4-2146-ed12-e4403b34f718" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_fnm_ValuationLossGain_48a31814-9bd4-2146-ed12-e4403b34f718" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_71beb6b3-8849-84f6-1f38-eac1389d4d99" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_71beb6b3-8849-84f6-1f38-eac1389d4d99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInTradingSecurities" xlink:label="loc_us-gaap_IncreaseDecreaseInTradingSecurities_f9d57395-527b-4919-caef-dcd4d13cdae8" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_IncreaseDecreaseInTradingSecurities_f9d57395-527b-4919-caef-dcd4d13cdae8" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements" xlink:label="loc_fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements_8c098478-9489-87c9-e4d8-e440313c8889" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements_8c098478-9489-87c9-e4d8-e440313c8889" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_c14a9ac3-04f1-504d-4cf1-cf62b3c1adf2" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_c14a9ac3-04f1-504d-4cf1-cf62b3c1adf2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestPaidNet" xlink:label="loc_us-gaap_InterestPaidNet_32cae492-b864-2706-d238-ae4295be9038" xlink:type="locator" />
    <link:calculationArc order="9" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1bd0bd4e-4a6f-b052-029c-0ecb0c520251" xlink:to="loc_us-gaap_InterestPaidNet_32cae492-b864-2706-d238-ae4295be9038" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_0e67d263-6e0f-cbd4-f553-6c8cebeb68d8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_0e67d263-6e0f-cbd4-f553-6c8cebeb68d8" xlink:to="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_6df44786-4260-4fa4-e123-591abd5e882d" 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_0e67d263-6e0f-cbd4-f553-6c8cebeb68d8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_6df44786-4260-4fa4-e123-591abd5e882d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_5018ac42-f22a-8f01-2030-b43a520a4ea1" 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_0e67d263-6e0f-cbd4-f553-6c8cebeb68d8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_5018ac42-f22a-8f01-2030-b43a520a4ea1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_e83cd656-9fce-43ca-6f7c-1be78bef4068" 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_0e67d263-6e0f-cbd4-f553-6c8cebeb68d8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_e83cd656-9fce-43ca-6f7c-1be78bef4068" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_b7258870-8115-c8cf-b7b4-36059c79ce97" 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_0e67d263-6e0f-cbd4-f553-6c8cebeb68d8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_b7258870-8115-c8cf-b7b4-36059c79ce97" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_43276f52-64d7-633b-1383-000dbf34adbf" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_43276f52-64d7-633b-1383-000dbf34adbf" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_e3770e58-65d0-8a12-f510-6d53db58b07f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_e3770e58-65d0-8a12-f510-6d53db58b07f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_d0148980-c050-b3dc-b55f-149c9c64c06e" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_d0148980-c050-b3dc-b55f-149c9c64c06e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_5e280e98-99c6-f098-f4f9-65bce8235b66" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_5e280e98-99c6-f098-f4f9-65bce8235b66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherInterestAndDividendIncome" xlink:label="loc_us-gaap_OtherInterestAndDividendIncome_8c07fe87-3694-e559-8e6d-3fa11f45f7bc" 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_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_OtherInterestAndDividendIncome_8c07fe87-3694-e559-8e6d-3fa11f45f7bc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell" xlink:label="loc_us-gaap_InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_cb280131-710f-c89a-67f0-51ab2e8f7876" 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_d819c94a-bab7-8f0d-e002-16185f2a3d8f" xlink:to="loc_us-gaap_InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_cb280131-710f-c89a-67f0-51ab2e8f7876" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_80036452-8f22-8b77-cf8f-49eda674198d" xlink:to="loc_us-gaap_InterestExpense_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseShortTermBorrowings" xlink:label="loc_us-gaap_InterestExpenseShortTermBorrowings_3a606769-9f54-5e69-48b6-50a0be1eb4dc" 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_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:to="loc_us-gaap_InterestExpenseShortTermBorrowings_3a606769-9f54-5e69-48b6-50a0be1eb4dc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpenseLongTermDebt" xlink:label="loc_us-gaap_InterestExpenseLongTermDebt_f4c8bbac-9a53-eeca-8670-64389710636a" 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_a56b34b7-57ab-a07c-7f03-8366849a14f0" xlink:to="loc_us-gaap_InterestExpenseLongTermDebt_f4c8bbac-9a53-eeca-8670-64389710636a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_4a6a38da-b7a6-954f-0e6d-0c7a078f2f07" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_43276f52-64d7-633b-1383-000dbf34adbf" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_4a6a38da-b7a6-954f-0e6d-0c7a078f2f07" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_a698662c-5d68-9b87-98fe-02485cda58f8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_a698662c-5d68-9b87-98fe-02485cda58f8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_1283cb92-0ae2-bdeb-f803-6d5e502ce8d9" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GeneralAndAdministrativeExpense_a698662c-5d68-9b87-98fe-02485cda58f8" xlink:to="loc_us-gaap_LaborAndRelatedExpense_1283cb92-0ae2-bdeb-f803-6d5e502ce8d9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProfessionalAndContractServicesExpense" xlink:label="loc_us-gaap_ProfessionalAndContractServicesExpense_c2c7a405-e413-8f23-dfe2-5ef6a13c4577" 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_a698662c-5d68-9b87-98fe-02485cda58f8" xlink:to="loc_us-gaap_ProfessionalAndContractServicesExpense_c2c7a405-e413-8f23-dfe2-5ef6a13c4577" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_OtherGeneralAndAdministrativeExpense_b0900f4c-cf87-dac5-5867-06d700305f08" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GeneralAndAdministrativeExpense_a698662c-5d68-9b87-98fe-02485cda58f8" xlink:to="loc_us-gaap_OtherGeneralAndAdministrativeExpense_b0900f4c-cf87-dac5-5867-06d700305f08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeclosedRealEstateExpense" xlink:label="loc_us-gaap_ForeclosedRealEstateExpense_afec8d05-1755-81c6-89c0-2f3ac23e342e" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_ForeclosedRealEstateExpense_afec8d05-1755-81c6-89c0-2f3ac23e342e" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011" xlink:label="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_237996fc-bbb2-9ff1-560c-5529d5af2e93" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_237996fc-bbb2-9ff1-560c-5529d5af2e93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_d09da395-8fdb-b903-4fff-0036db8908fa" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_68895663-2767-ffef-d399-cc645119e65a" xlink:to="loc_us-gaap_OtherNoninterestExpense_d09da395-8fdb-b903-4fff-0036db8908fa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:to="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_19dfad62-5a43-dcc4-04a8-012732c1ed97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_97bbae57-7f84-4da9-acab-610e56204929" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_97bbae57-7f84-4da9-acab-610e56204929" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_7f6d9e2c-c748-5cf7-7279-5c01f0cb27b7" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_7f6d9e2c-c748-5cf7-7279-5c01f0cb27b7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_b7258870-8115-c8cf-b7b4-36059c79ce97" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_b7258870-8115-c8cf-b7b4-36059c79ce97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_ff106bf5-082b-8f58-cc36-c7f91866b7d3" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_cf605d39-9067-2f07-a6b5-7dfa6481009e" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_ff106bf5-082b-8f58-cc36-c7f91866b7d3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:type="locator" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_InvestmentGainsLossNet1" xlink:label="loc_fnm_InvestmentGainsLossNet1_a8c98b90-71b9-b18d-3d97-5529d53a1bc4" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_fnm_InvestmentGainsLossNet1_a8c98b90-71b9-b18d-3d97-5529d53a1bc4" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_FairValueGainsLossesNet" xlink:label="loc_fnm_FairValueGainsLossesNet_5b2e5a84-c1c2-5d84-19fa-5529d85e6805" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_fnm_FairValueGainsLossesNet_5b2e5a84-c1c2-5d84-19fa-5529d85e6805" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_3757e0a1-8c93-5316-53c9-8f3b34503211" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_22401c90-c31e-a4d9-a9f7-66b85e994eae" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_3757e0a1-8c93-5316-53c9-8f3b34503211" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:to="loc_us-gaap_NetIncomeLoss_a10eea14-f4db-3125-d183-77bb54500e95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_1462a445-26c1-c50b-6d1d-6a030076b285" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d7615b5-9ab5-8e33-2d33-f406eee209fc" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_1462a445-26c1-c50b-6d1d-6a030076b285" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet" xlink:label="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_a5da72c2-24f3-a862-63f9-4a00f6f138bf" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_dcb44336-c712-7a1a-d111-e88d6c1679df" 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_a5da72c2-24f3-a862-63f9-4a00f6f138bf" xlink:to="loc_us-gaap_TradingSecuritiesDebt_dcb44336-c712-7a1a-d111-e88d6c1679df" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_a5da72c2-24f3-a862-63f9-4a00f6f138bf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_806083e9-63fa-5acf-a0c8-803a67715508" 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_a5da72c2-24f3-a862-63f9-4a00f6f138bf" xlink:to="loc_us-gaap_OtherAssets_806083e9-63fa-5acf-a0c8-803a67715508" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_b7c80bbc-e033-5d39-6a1b-ed85fbc903f7" 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_a5da72c2-24f3-a862-63f9-4a00f6f138bf" xlink:to="loc_us-gaap_OtherLiabilities_b7c80bbc-e033-5d39-6a1b-ed85fbc903f7" xlink:type="arc" />
  </link:calculationLink>
  <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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" xlink:type="locator" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_DerivativeAssetsInterestReceivable" xlink:label="loc_fnm_DerivativeAssetsInterestReceivable_cec6870b-2930-2b44-8b66-5529d739d88a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" xlink:to="loc_fnm_DerivativeAssetsInterestReceivable_cec6870b-2930-2b44-8b66-5529d739d88a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_64ff294a-f97c-6494-ac81-8ca74d62b901" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_64ff294a-f97c-6494-ac81-8ca74d62b901" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_DerivativeFairValueGrossAssetAllDerivatives" xlink:label="loc_fnm_DerivativeFairValueGrossAssetAllDerivatives_693637ee-0883-7dc3-a1b0-5529d55f2f63" 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_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" xlink:to="loc_fnm_DerivativeFairValueGrossAssetAllDerivatives_693637ee-0883-7dc3-a1b0-5529d55f2f63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_7e8e10f8-8ddc-2b6a-eea7-ea4d306368a1" xlink:type="locator" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives" xlink:label="loc_fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives_f9c9cad5-783a-a516-1c75-5529d7855cae" 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_7e8e10f8-8ddc-2b6a-eea7-ea4d306368a1" xlink:to="loc_fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives_f9c9cad5-783a-a516-1c75-5529d7855cae" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_DerivativeLiabilityInterestPayable" xlink:label="loc_fnm_DerivativeLiabilityInterestPayable_08d76b4b-aa76-93a9-e2e2-5529d508c724" 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_7e8e10f8-8ddc-2b6a-eea7-ea4d306368a1" xlink:to="loc_fnm_DerivativeLiabilityInterestPayable_08d76b4b-aa76-93a9-e2e2-5529d508c724" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_c269c798-d27a-aa37-4ec7-f78942e69904" 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_7e8e10f8-8ddc-2b6a-eea7-ea4d306368a1" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_c269c798-d27a-aa37-4ec7-f78942e69904" 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/DocumentAndEntityInformation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityDeficit" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityDeficitAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_798442bf-12e1-d944-3fa1-8b797b67482e" xlink:type="locator" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded" xlink:label="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded_b8ffcc61-b805-a619-4e43-5529d591d9a3" 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_798442bf-12e1-d944-3fa1-8b797b67482e" xlink:to="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded_b8ffcc61-b805-a619-4e43-5529d591d9a3" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded" xlink:label="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded_4762ee74-d08f-c803-d75c-5529d7f48cd4" 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_798442bf-12e1-d944-3fa1-8b797b67482e" xlink:to="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded_4762ee74-d08f-c803-d75c-5529d7f48cd4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_554168ae-c5a9-50ba-bf77-d6e4b2d4a227" 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_798442bf-12e1-d944-3fa1-8b797b67482e" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_554168ae-c5a9-50ba-bf77-d6e4b2d4a227" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityDeficitChangesInAociDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_3d99831a-ebd4-5b79-0782-1b1eabd6a9c8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_3d99831a-ebd4-5b79-0782-1b1eabd6a9c8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_370db1e9-72b2-d2e9-181c-90ae6fba7f8b" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_e68ce304-18e4-96c0-3260-363a872863db" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_370db1e9-72b2-d2e9-181c-90ae6fba7f8b" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityDeficitNarrativesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityDeficitScheduleOfStockByClassDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityDeficitTables" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_6bae24fb-c89c-2c1d-91e1-c77efe1775f1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_67bb5c2d-b273-d8b5-bbe5-7962547bcd54" 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_6bae24fb-c89c-2c1d-91e1-c77efe1775f1" xlink:to="loc_us-gaap_LongTermDebtFairValue_67bb5c2d-b273-d8b5-bbe5-7962547bcd54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_7e8e10f8-8ddc-2b6a-eea7-ea4d306368a1" 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_6bae24fb-c89c-2c1d-91e1-c77efe1775f1" xlink:to="loc_us-gaap_DerivativeLiabilities_7e8e10f8-8ddc-2b6a-eea7-ea4d306368a1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_67a1f3e7-c91e-d9a1-0253-362c8d727f2d" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_67a1f3e7-c91e-d9a1-0253-362c8d727f2d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_ef1bb5a1-dc20-9776-a20e-84958101e83f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_TradingSecurities_ef1bb5a1-dc20-9776-a20e-84958101e83f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_097e1b01-70b4-1050-9921-ba329e565fb9" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_AvailableForSaleSecurities_097e1b01-70b4-1050-9921-ba329e565fb9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_59a2fe9b-d79b-3ddd-33d2-471ad9f03735" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_59a2fe9b-d79b-3ddd-33d2-471ad9f03735" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_DerivativeAssets_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MortgagesHeldForSaleFairValueDisclosure" xlink:label="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_6cfdaebd-6dd8-e558-7067-8e22d1cb73b0" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_6cfdaebd-6dd8-e558-7067-8e22d1cb73b0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_097e1b01-70b4-1050-9921-ba329e565fb9" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_AvailableForSaleSecurities_097e1b01-70b4-1050-9921-ba329e565fb9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_ef1bb5a1-dc20-9776-a20e-84958101e83f" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_TradingSecurities_ef1bb5a1-dc20-9776-a20e-84958101e83f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure" xlink:label="loc_us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure_4b7b5ff7-35f0-0cce-367d-f06dd36c7faf" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure_4b7b5ff7-35f0-0cce-367d-f06dd36c7faf" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure" xlink:label="loc_fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure_7e0de77e-e2e7-53c5-95b5-5529d6de8876" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure_7e0de77e-e2e7-53c5-95b5-5529d6de8876" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_59a2fe9b-d79b-3ddd-33d2-471ad9f03735" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_59a2fe9b-d79b-3ddd-33d2-471ad9f03735" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_AdvancesToLendersFairValueDisclosure" xlink:label="loc_fnm_AdvancesToLendersFairValueDisclosure_20e62cef-5dc1-cad8-f886-5529d852b3a9" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_fnm_AdvancesToLendersFairValueDisclosure_20e62cef-5dc1-cad8-f886-5529d852b3a9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_us-gaap_DerivativeAssets_082aa8c2-a051-1bb7-d441-a6d93b3f45f4" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure" xlink:label="loc_fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure_55b35ba3-e119-a091-ab85-5529d72835f3" 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_4f2d2e40-e149-3246-b591-f2ca332c7df6" xlink:to="loc_fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure_55b35ba3-e119-a091-ab85-5529d72835f3" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_c003e837-c7c9-cd10-ae74-916131fdc333" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_d91ede05-f13f-9c89-cfbf-3dfb1dd1a1a6" 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_c003e837-c7c9-cd10-ae74-916131fdc333" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_d91ede05-f13f-9c89-cfbf-3dfb1dd1a1a6" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans" xlink:label="loc_fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans_78623f70-3036-8db0-b229-e440344bd620" 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_d91ede05-f13f-9c89-cfbf-3dfb1dd1a1a6" xlink:to="loc_fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans_78623f70-3036-8db0-b229-e440344bd620" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_9d9b731c-937f-002e-2782-f4162b155cff" 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_d91ede05-f13f-9c89-cfbf-3dfb1dd1a1a6" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_9d9b731c-937f-002e-2782-f4162b155cff" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments" xlink:label="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_4604f04c-09cf-e521-b77f-af882240df1d" 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_d91ede05-f13f-9c89-cfbf-3dfb1dd1a1a6" xlink:to="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_4604f04c-09cf-e521-b77f-af882240df1d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_d1d6a6aa-10dd-c633-697d-6d8c52b9d649" 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_d91ede05-f13f-9c89-cfbf-3dfb1dd1a1a6" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_d1d6a6aa-10dd-c633-697d-6d8c52b9d649" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsEquityMethodInvestments" xlink:label="loc_us-gaap_DeferredTaxAssetsEquityMethodInvestments_9a81d056-3bef-505e-6e48-48789fa3e910" 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_d91ede05-f13f-9c89-cfbf-3dfb1dd1a1a6" xlink:to="loc_us-gaap_DeferredTaxAssetsEquityMethodInvestments_9a81d056-3bef-505e-6e48-48789fa3e910" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_0cc13c2f-6b23-b741-4f28-07325c7e7169" 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_d91ede05-f13f-9c89-cfbf-3dfb1dd1a1a6" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_0cc13c2f-6b23-b741-4f28-07325c7e7169" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_5ca8e732-540c-5527-8ee3-c835dafc5838" 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_c003e837-c7c9-cd10-ae74-916131fdc333" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_5ca8e732-540c-5527-8ee3-c835dafc5838" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross" xlink:label="loc_fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross_629ad7df-ea26-2100-5e83-e4403aa3a282" 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_5ca8e732-540c-5527-8ee3-c835dafc5838" xlink:to="loc_fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross_629ad7df-ea26-2100-5e83-e4403aa3a282" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_97bbae57-7f84-4da9-acab-610e56204929" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_816edbc5-9d4b-113c-7ce2-6c08dd555314" 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_97bbae57-7f84-4da9-acab-610e56204929" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_816edbc5-9d4b-113c-7ce2-6c08dd555314" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_e8a9abf2-38d3-77d1-fb6b-693fef632294" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_97bbae57-7f84-4da9-acab-610e56204929" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_e8a9abf2-38d3-77d1-fb6b-693fef632294" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_f1b8c80c-fe31-3624-3b0a-70273297561e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_51d18bf0-0823-2940-9470-e9bbca486da6" 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_f1b8c80c-fe31-3624-3b0a-70273297561e" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_51d18bf0-0823-2940-9470-e9bbca486da6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_00f37689-1982-1c68-c80b-43003f810247" 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_f1b8c80c-fe31-3624-3b0a-70273297561e" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_00f37689-1982-1c68-c80b-43003f810247" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_7ffe16d1-cedd-985f-c95d-65ae6fa8d756" 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_f1b8c80c-fe31-3624-3b0a-70273297561e" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_7ffe16d1-cedd-985f-c95d-65ae6fa8d756" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_8f2031bf-8c22-95ee-2692-c8383661c674" 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_f1b8c80c-fe31-3624-3b0a-70273297561e" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_8f2031bf-8c22-95ee-2692-c8383661c674" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_f0bf2241-14f8-6ef1-e8d7-f724d52ad9c1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" 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_f0bf2241-14f8-6ef1-e8d7-f724d52ad9c1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_e0f935d0-20e2-15fc-55a1-79c116fbc07c" 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_f0bf2241-14f8-6ef1-e8d7-f724d52ad9c1" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_e0f935d0-20e2-15fc-55a1-79c116fbc07c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_5d23fa7e-7f76-6507-b72f-382f81b88e34" 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_f0bf2241-14f8-6ef1-e8d7-f724d52ad9c1" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_5d23fa7e-7f76-6507-b72f-382f81b88e34" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_f0bf2241-14f8-6ef1-e8d7-f724d52ad9c1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_ca6bc7d7-3372-4227-05b9-13a59b3aa42d" 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_f0bf2241-14f8-6ef1-e8d7-f724d52ad9c1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_ca6bc7d7-3372-4227-05b9-13a59b3aa42d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_493476a7-a155-5751-438e-234d8d9162fc" 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_f0bf2241-14f8-6ef1-e8d7-f724d52ad9c1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_493476a7-a155-5751-438e-234d8d9162fc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_7b96d95b-bd55-8930-5c98-61df49f23509" 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_f0bf2241-14f8-6ef1-e8d7-f724d52ad9c1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_7b96d95b-bd55-8930-5c98-61df49f23509" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_c06daba8-af56-76ea-8c9d-65681a636bca" 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_f0bf2241-14f8-6ef1-e8d7-f724d52ad9c1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_c06daba8-af56-76ea-8c9d-65681a636bca" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_45fe5026-1753-782e-f077-85f7cc3cd4d3" 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_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_45fe5026-1753-782e-f077-85f7cc3cd4d3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_1673ae65-92b7-3c47-39cc-4a85be6ee69f" 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_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_1673ae65-92b7-3c47-39cc-4a85be6ee69f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_7d3b7707-7c37-3aa5-9a9a-3985f4216e64" 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_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_7d3b7707-7c37-3aa5-9a9a-3985f4216e64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_860dcc84-b5d0-8819-457b-bb232223055d" 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_5ab305fa-195a-59cf-c0de-4b5d05fc9de4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_860dcc84-b5d0-8819-457b-bb232223055d" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:type="locator" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance" xlink:label="loc_fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance_25aa8090-3294-1940-e359-5529d6fa3be3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:to="loc_fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance_25aa8090-3294-1940-e359-5529d6fa3be3" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet" xlink:label="loc_fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet_ca681c78-0faa-5286-ba28-5529d5c95c40" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:to="loc_fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet_ca681c78-0faa-5286-ba28-5529d5c95c40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_df7af0b2-43e2-2ab7-2db2-c01524cee08f" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_2a11aa60-b7c3-7612-8143-92c8a1cafefc" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_df7af0b2-43e2-2ab7-2db2-c01524cee08f" xlink:type="arc" />
  </link: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-20181231.xsd#fnm_RecordedInvestmentMortgageLoansHeldForInvestment" xlink:label="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_eeb28703-4d9a-3297-fb8d-5529d83ce2fb" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_c34302ef-0ed1-8daf-35a9-c109d58a58a0" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_eeb28703-4d9a-3297-fb8d-5529d83ce2fb" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_c34302ef-0ed1-8daf-35a9-c109d58a58a0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_7e94a57c-2b42-f5c2-406d-9c6cd42cb9ad" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_eeb28703-4d9a-3297-fb8d-5529d83ce2fb" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_7e94a57c-2b42-f5c2-406d-9c6cd42cb9ad" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_7efd5ba1-7a88-0892-29ee-f76de8d7d6d5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_c8e8a714-9606-d0a9-b540-ab2b48ab3a2f" 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_7efd5ba1-7a88-0892-29ee-f76de8d7d6d5" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_c8e8a714-9606-d0a9-b540-ab2b48ab3a2f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_0e1f6cdb-991b-2716-7102-aa256bdd1dd8" 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_7efd5ba1-7a88-0892-29ee-f76de8d7d6d5" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_0e1f6cdb-991b-2716-7102-aa256bdd1dd8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_0978c3ff-7602-b02c-81d4-b3b496eb7e15" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_2f9eb6b9-0d38-b6fe-e94e-03b318ec34f1" 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_0978c3ff-7602-b02c-81d4-b3b496eb7e15" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_2f9eb6b9-0d38-b6fe-e94e-03b318ec34f1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_4a1ec194-6446-3ea2-8ae7-5857123da3a6" 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_0978c3ff-7602-b02c-81d4-b3b496eb7e15" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_4a1ec194-6446-3ea2-8ae7-5857123da3a6" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_0362da20-7d90-1628-e096-21887e95da71" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_3fbd33df-781c-1c81-a98e-83d9634fee2e" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_0362da20-7d90-1628-e096-21887e95da71" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_3fbd33df-781c-1c81-a98e-83d9634fee2e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_b5c2eb06-9ee0-c453-b5d1-9a70aea3ee44" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_0362da20-7d90-1628-e096-21887e95da71" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_b5c2eb06-9ee0-c453-b5d1-9a70aea3ee44" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_7fe2fb9a-d4a5-c40c-5fda-872a4762476e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_d55eb292-11ba-3ba1-09df-1e6bc4b784c8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_7fe2fb9a-d4a5-c40c-5fda-872a4762476e" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_d55eb292-11ba-3ba1-09df-1e6bc4b784c8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_894e98ed-a0c1-54bf-656f-b8d7234fa885" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_7fe2fb9a-d4a5-c40c-5fda-872a4762476e" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_894e98ed-a0c1-54bf-656f-b8d7234fa885" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.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="fnm-20181231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_5c897135-c391-f1ad-c8e7-5529d6501acc" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_6027f785-2ed7-7815-a75d-f842909f85c6" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_5c897135-c391-f1ad-c8e7-5529d6501acc" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_6027f785-2ed7-7815-a75d-f842909f85c6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_039063f0-a070-e7c0-00b9-9f969b70b0e3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_6027f785-2ed7-7815-a75d-f842909f85c6" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_039063f0-a070-e7c0-00b9-9f969b70b0e3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_4db4642c-56d5-9093-039a-dd23d291ea49" 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_6027f785-2ed7-7815-a75d-f842909f85c6" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_4db4642c-56d5-9093-039a-dd23d291ea49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_33ef9fb8-8419-d8e3-baf1-04c152a07267" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_5c897135-c391-f1ad-c8e7-5529d6501acc" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_33ef9fb8-8419-d8e3-baf1-04c152a07267" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_64ff294a-f97c-6494-ac81-8ca74d62b901" 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_33ef9fb8-8419-d8e3-baf1-04c152a07267" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_64ff294a-f97c-6494-ac81-8ca74d62b901" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_5fbc3484-4155-9a34-5fdb-50fdeda818a6" 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_33ef9fb8-8419-d8e3-baf1-04c152a07267" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_5fbc3484-4155-9a34-5fdb-50fdeda818a6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_26670179-0c9e-33e0-b3c6-7223f961d13c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_f6de7e6b-8c80-f334-6364-11b06a1ac0b0" 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_26670179-0c9e-33e0-b3c6-7223f961d13c" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_f6de7e6b-8c80-f334-6364-11b06a1ac0b0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_904137ce-fa09-0e25-c13c-67c07c783edc" 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_f6de7e6b-8c80-f334-6364-11b06a1ac0b0" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_904137ce-fa09-0e25-c13c-67c07c783edc" 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_904137ce-fa09-0e25-c13c-67c07c783edc" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_039063f0-a070-e7c0-00b9-9f969b70b0e3" 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_904137ce-fa09-0e25-c13c-67c07c783edc" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_64ff294a-f97c-6494-ac81-8ca74d62b901" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_3cc08d3d-7cb7-aa6b-32c6-521486a68eec" 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_f6de7e6b-8c80-f334-6364-11b06a1ac0b0" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_3cc08d3d-7cb7-aa6b-32c6-521486a68eec" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_0e7847c4-91a1-4ffb-d551-0d53707af257" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_f6de7e6b-8c80-f334-6364-11b06a1ac0b0" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_0e7847c4-91a1-4ffb-d551-0d53707af257" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_c547af9c-b5e7-03dd-3409-f177fe991de3" 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_26670179-0c9e-33e0-b3c6-7223f961d13c" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_c547af9c-b5e7-03dd-3409-f177fe991de3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_308c133c-0f51-3041-b1eb-c80c812fb9da" 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_c547af9c-b5e7-03dd-3409-f177fe991de3" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_308c133c-0f51-3041-b1eb-c80c812fb9da" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_5c923dd4-92c1-abd9-43ce-25505ed4aea1" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_c547af9c-b5e7-03dd-3409-f177fe991de3" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_5c923dd4-92c1-abd9-43ce-25505ed4aea1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_6160f654-5e58-9883-3582-a043d78211b5" 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_c547af9c-b5e7-03dd-3409-f177fe991de3" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_6160f654-5e58-9883-3582-a043d78211b5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_9a2064d5-b196-da13-cee7-3947a6f63c98" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_0ff8e868-09a7-6e5e-8ff9-ff0cfc9297c2" 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_9a2064d5-b196-da13-cee7-3947a6f63c98" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_0ff8e868-09a7-6e5e-8ff9-ff0cfc9297c2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_c269c798-d27a-aa37-4ec7-f78942e69904" 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_0ff8e868-09a7-6e5e-8ff9-ff0cfc9297c2" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_c269c798-d27a-aa37-4ec7-f78942e69904" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_c526cec7-2a96-da82-2b5c-b252c3ef64fd" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_0ff8e868-09a7-6e5e-8ff9-ff0cfc9297c2" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_c526cec7-2a96-da82-2b5c-b252c3ef64fd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_06c9d0a7-4693-7d1d-6c8e-a699943602d4" 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_9a2064d5-b196-da13-cee7-3947a6f63c98" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_06c9d0a7-4693-7d1d-6c8e-a699943602d4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_5244c507-3f42-5954-cc90-925b9f10faaf" 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_9a2064d5-b196-da13-cee7-3947a6f63c98" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_5244c507-3f42-5954-cc90-925b9f10faaf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_be9e9cdd-7a08-6f11-2d7c-b1b1e678a7ff" 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_be9e9cdd-7a08-6f11-2d7c-b1b1e678a7ff" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_0e7847c4-91a1-4ffb-d551-0d53707af257" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_be9e9cdd-7a08-6f11-2d7c-b1b1e678a7ff" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_5c923dd4-92c1-abd9-43ce-25505ed4aea1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_321e4083-4daa-e740-8a25-3a76093880f1" xlink:type="locator" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_36eeb40c-5ff3-5c38-28bf-5529d8364027" 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_321e4083-4daa-e740-8a25-3a76093880f1" xlink:to="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_36eeb40c-5ff3-5c38-28bf-5529d8364027" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_dcdfbf18-916b-bbbb-c1ac-04b415341b81" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_36eeb40c-5ff3-5c38-28bf-5529d8364027" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_dcdfbf18-916b-bbbb-c1ac-04b415341b81" 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_dcdfbf18-916b-bbbb-c1ac-04b415341b81" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_c526cec7-2a96-da82-2b5c-b252c3ef64fd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_29523279-8ca4-4910-4c80-df02cedbeb27" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_36eeb40c-5ff3-5c38-28bf-5529d8364027" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_29523279-8ca4-4910-4c80-df02cedbeb27" 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_29523279-8ca4-4910-4c80-df02cedbeb27" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_c269c798-d27a-aa37-4ec7-f78942e69904" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c516e40c-8502-7d1a-0f91-5529d7d8d062" 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_321e4083-4daa-e740-8a25-3a76093880f1" xlink:to="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c516e40c-8502-7d1a-0f91-5529d7d8d062" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c516e40c-8502-7d1a-0f91-5529d7d8d062" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_06c9d0a7-4693-7d1d-6c8e-a699943602d4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_b887c708-d23a-b202-b698-04647a0ac2e3" 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_321e4083-4daa-e740-8a25-3a76093880f1" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_b887c708-d23a-b202-b698-04647a0ac2e3" 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_b887c708-d23a-b202-b698-04647a0ac2e3" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_5244c507-3f42-5954-cc90-925b9f10faaf" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c9bc2846-82eb-fd9f-0edc-5529d80a19ab" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c9bc2846-82eb-fd9f-0edc-5529d80a19ab" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_3cc08d3d-7cb7-aa6b-32c6-521486a68eec" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_c9bc2846-82eb-fd9f-0edc-5529d80a19ab" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_308c133c-0f51-3041-b1eb-c80c812fb9da" 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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_E3125401EBA26AF63FA2D40861FD9B09_26670179-0c9e-33e0-b3c6-7223f961d13c" xlink:type="locator" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_E3125401EBA26AF63FA2D40861FD9B09_5c897135-c391-f1ad-c8e7-5529d6501acc" 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_E3125401EBA26AF63FA2D40861FD9B09_26670179-0c9e-33e0-b3c6-7223f961d13c" xlink:to="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_E3125401EBA26AF63FA2D40861FD9B09_5c897135-c391-f1ad-c8e7-5529d6501acc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_E3125401EBA26AF63FA2D40861FD9B09_904137ce-fa09-0e25-c13c-67c07c783edc" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_E3125401EBA26AF63FA2D40861FD9B09_5c897135-c391-f1ad-c8e7-5529d6501acc" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_E3125401EBA26AF63FA2D40861FD9B09_904137ce-fa09-0e25-c13c-67c07c783edc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_E3125401EBA26AF63FA2D40861FD9B09_6160f654-5e58-9883-3582-a043d78211b5" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_E3125401EBA26AF63FA2D40861FD9B09_5c897135-c391-f1ad-c8e7-5529d6501acc" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_E3125401EBA26AF63FA2D40861FD9B09_6160f654-5e58-9883-3582-a043d78211b5" xlink:type="arc" />
    <link:loc xlink:href="fnm-20181231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_E3125401EBA26AF63FA2D40861FD9B09_c9bc2846-82eb-fd9f-0edc-5529d80a19ab" 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_E3125401EBA26AF63FA2D40861FD9B09_26670179-0c9e-33e0-b3c6-7223f961d13c" xlink:to="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_E3125401EBA26AF63FA2D40861FD9B09_c9bc2846-82eb-fd9f-0edc-5529d80a19ab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_E3125401EBA26AF63FA2D40861FD9B09_be9e9cdd-7a08-6f11-2d7c-b1b1e678a7ff" 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_E3125401EBA26AF63FA2D40861FD9B09_26670179-0c9e-33e0-b3c6-7223f961d13c" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_E3125401EBA26AF63FA2D40861FD9B09_be9e9cdd-7a08-6f11-2d7c-b1b1e678a7ff" 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-20181231.xsd#fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement" xlink:label="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_a9a08e26-054f-c170-8389-5529d73cd620" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Capital" xlink:label="loc_us-gaap_Capital_2465ff7b-5651-f05e-fd70-afb441c42f6a" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_a9a08e26-054f-c170-8389-5529d73cd620" xlink:to="loc_us-gaap_Capital_2465ff7b-5651-f05e-fd70-afb441c42f6a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalRequiredForCapitalAdequacy" xlink:label="loc_us-gaap_CapitalRequiredForCapitalAdequacy_29dd50c6-e9e5-23ff-54a9-9d25482d7b67" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_a9a08e26-054f-c170-8389-5529d73cd620" xlink:to="loc_us-gaap_CapitalRequiredForCapitalAdequacy_29dd50c6-e9e5-23ff-54a9-9d25482d7b67" 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: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/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_5cb3949c-1d57-8f66-f002-a3389de7aec0" 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_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_5cb3949c-1d57-8f66-f002-a3389de7aec0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_53634569-cdf7-3d1b-42b0-596cb4175c67" 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_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_53634569-cdf7-3d1b-42b0-596cb4175c67" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_c4573bf7-1f66-8dfe-59b9-b6903f55406f" 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_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_c4573bf7-1f66-8dfe-59b9-b6903f55406f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_e00da32d-ed06-bb21-8b28-7e7ede769972" 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_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_e00da32d-ed06-bb21-8b28-7e7ede769972" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_89018c92-f86f-28e7-853c-438f4a34e1f6" 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_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_89018c92-f86f-28e7-853c-438f4a34e1f6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_3b793654-c1ac-69c9-9cf3-81e6dfe102d7" 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_80dca0ba-44dc-8565-fb9b-c2edfc8c357d" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_3b793654-c1ac-69c9-9cf3-81e6dfe102d7" 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/SummaryOfSignificantAccountingPoliciesAdvancesToLendersDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesEmployeeRetirementBenefitsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesFeeAndOtherIncomeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesInvestmentsInSecuritiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesOrganizationDetails" 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/SummaryOfSignificantAccountingPoliciesReserveForGuarantyLossesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesUseOfEstimatesDetails" xlink:type="extended" />
</link:linkbase>
