<?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-20171231.xsd#AllowanceForLoanLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesAllowanceForLoanLossesPolicies" xlink:href="fnm-20171231.xsd#AllowanceForLoanLossesAllowanceForLoanLossesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesAndTotalRecordedInvestmentInHfiLoansDetails" xlink:href="fnm-20171231.xsd#AllowanceForLoanLossesAndTotalRecordedInvestmentInHfiLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesRollforwardBySegmentDetails" xlink:href="fnm-20171231.xsd#AllowanceForLoanLossesRollforwardBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesTables" xlink:href="fnm-20171231.xsd#AllowanceForLoanLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingencies" xlink:href="fnm-20171231.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesDetails" xlink:href="fnm-20171231.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesFiscalYearMaturityScheduleDetails" xlink:href="fnm-20171231.xsd#CommitmentsAndContingenciesFiscalYearMaturityScheduleDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesPolicies" xlink:href="fnm-20171231.xsd#CommitmentsAndContingenciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesTables" xlink:href="fnm-20171231.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRisk" xlink:href="fnm-20171231.xsd#ConcentrationsOfCreditRisk" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskGeographicConcentrationDetails" xlink:href="fnm-20171231.xsd#ConcentrationsOfCreditRiskGeographicConcentrationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskMfRiskCharacteristicsDetails" xlink:href="fnm-20171231.xsd#ConcentrationsOfCreditRiskMfRiskCharacteristicsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskOtherConcentrationsDetails" xlink:href="fnm-20171231.xsd#ConcentrationsOfCreditRiskOtherConcentrationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskSfRiskCharacteristicsDetails" xlink:href="fnm-20171231.xsd#ConcentrationsOfCreditRiskSfRiskCharacteristicsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskTables" xlink:href="fnm-20171231.xsd#ConcentrationsOfCreditRiskTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedBalanceSheets" xlink:href="fnm-20171231.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="fnm-20171231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="fnm-20171231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquityDeficit" xlink:href="fnm-20171231.xsd#ConsolidatedStatementsOfChangesInEquityDeficit" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquityDeficitParenthetical" xlink:href="fnm-20171231.xsd#ConsolidatedStatementsOfChangesInEquityDeficitParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:href="fnm-20171231.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncomeParenthetical" xlink:href="fnm-20171231.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssets" xlink:href="fnm-20171231.xsd#ConsolidationsAndTransfersOfFinancialAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsManagedLoansDetails" xlink:href="fnm-20171231.xsd#ConsolidationsAndTransfersOfFinancialAssetsManagedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsPolicies" xlink:href="fnm-20171231.xsd#ConsolidationsAndTransfersOfFinancialAssetsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTables" xlink:href="fnm-20171231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTransfersOfFinancialAssetsDetails" xlink:href="fnm-20171231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTransfersOfFinancialAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTypesOfViesDetails" xlink:href="fnm-20171231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTypesOfViesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsUnconsolidatedViesDetails" xlink:href="fnm-20171231.xsd#ConsolidationsAndTransfersOfFinancialAssetsUnconsolidatedViesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstruments" xlink:href="fnm-20171231.xsd#DerivativeInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives1NotionalAndFvPositionDetails" xlink:href="fnm-20171231.xsd#DerivativeInstrumentsDerivatives1NotionalAndFvPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives2FvGainsAndLossesDetails" xlink:href="fnm-20171231.xsd#DerivativeInstrumentsDerivatives2FvGainsAndLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsNarrativesDetails" xlink:href="fnm-20171231.xsd#DerivativeInstrumentsNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsPolicies" xlink:href="fnm-20171231.xsd#DerivativeInstrumentsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsTables" xlink:href="fnm-20171231.xsd#DerivativeInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DocumentAndEntityInformation" xlink:href="fnm-20171231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficit" xlink:href="fnm-20171231.xsd#EquityDeficit" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficitAccumulatedOtherComprehensiveIncomeDetails" xlink:href="fnm-20171231.xsd#EquityDeficitAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficitChangesInAociDetails" xlink:href="fnm-20171231.xsd#EquityDeficitChangesInAociDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficitNarrativesDetails" xlink:href="fnm-20171231.xsd#EquityDeficitNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficitScheduleOfStockByClassDetails" xlink:href="fnm-20171231.xsd#EquityDeficitScheduleOfStockByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityDeficitTables" xlink:href="fnm-20171231.xsd#EquityDeficitTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValue" xlink:href="fnm-20171231.xsd#FairValue" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueChangesInFvUnderFvOptionDetails" xlink:href="fnm-20171231.xsd#FairValueChangesInFvUnderFvOptionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3RollforwardDetails" xlink:href="fnm-20171231.xsd#FairValueLevel3RollforwardDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3ValuationInputsRecurringDetails" xlink:href="fnm-20171231.xsd#FairValueLevel3ValuationInputsRecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3ValuationNonrecurringDetails" xlink:href="fnm-20171231.xsd#FairValueLevel3ValuationNonrecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevelsHierarchyDetails" xlink:href="fnm-20171231.xsd#FairValueLevelsHierarchyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueOfFinancialInstrumentsDetails" xlink:href="fnm-20171231.xsd#FairValueOfFinancialInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueOptionDetails" xlink:href="fnm-20171231.xsd#FairValueOptionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValuePolicies" xlink:href="fnm-20171231.xsd#FairValuePolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueTables" xlink:href="fnm-20171231.xsd#FairValueTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuarantees" xlink:href="fnm-20171231.xsd#FinancialGuarantees" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuaranteesAndMaximumRecoveryDetails" xlink:href="fnm-20171231.xsd#FinancialGuaranteesAndMaximumRecoveryDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuaranteesTables" xlink:href="fnm-20171231.xsd#FinancialGuaranteesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxPolicies" xlink:href="fnm-20171231.xsd#IncomeTaxPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxes" xlink:href="fnm-20171231.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:href="fnm-20171231.xsd#IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesProvisionBenefitForIncomeTaxesDetails" xlink:href="fnm-20171231.xsd#IncomeTaxesProvisionBenefitForIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesTables" xlink:href="fnm-20171231.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:href="fnm-20171231.xsd#IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecurities" xlink:href="fnm-20171231.xsd#InvestmentsInSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities1Details" xlink:href="fnm-20171231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities2Details" xlink:href="fnm-20171231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities3Details" xlink:href="fnm-20171231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities3Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesMaturityInformationDetails" xlink:href="fnm-20171231.xsd#InvestmentsInSecuritiesMaturityInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesOtherThanTemporaryImpairments1Details" xlink:href="fnm-20171231.xsd#InvestmentsInSecuritiesOtherThanTemporaryImpairments1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesPolicies" xlink:href="fnm-20171231.xsd#InvestmentsInSecuritiesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTables" xlink:href="fnm-20171231.xsd#InvestmentsInSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTrading1Details" xlink:href="fnm-20171231.xsd#InvestmentsInSecuritiesTrading1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTrading2Details" xlink:href="fnm-20171231.xsd#InvestmentsInSecuritiesTrading2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/LoansInMortgagePortfolioDetails" xlink:href="fnm-20171231.xsd#LoansInMortgagePortfolioDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/LongTermDebtDetails" xlink:href="fnm-20171231.xsd#LongTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoans" xlink:href="fnm-20171231.xsd#MortgageLoans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansAgingDetails" xlink:href="fnm-20171231.xsd#MortgageLoansAgingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsMfDetails" xlink:href="fnm-20171231.xsd#MortgageLoansCreditQualityIndicatorsMfDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsSfDetails" xlink:href="fnm-20171231.xsd#MortgageLoansCreditQualityIndicatorsSfDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoans2Details" xlink:href="fnm-20171231.xsd#MortgageLoansIndividuallyImpairedLoans2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoansDetails" xlink:href="fnm-20171231.xsd#MortgageLoansIndividuallyImpairedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansPolicies" xlink:href="fnm-20171231.xsd#MortgageLoansPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTables" xlink:href="fnm-20171231.xsd#MortgageLoansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTdrsDetails" xlink:href="fnm-20171231.xsd#MortgageLoansTdrsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTdrsWithSubDefaultsDetails" xlink:href="fnm-20171231.xsd#MortgageLoansTdrsWithSubDefaultsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangements" xlink:href="fnm-20171231.xsd#NettingArrangements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsDetails" xlink:href="fnm-20171231.xsd#NettingArrangementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsDetailsCalc2" xlink:href="fnm-20171231.xsd#NettingArrangementsDetailsCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsNarrativesDetails" xlink:href="fnm-20171231.xsd#NettingArrangementsNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsPolicies" xlink:href="fnm-20171231.xsd#NettingArrangementsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsTables" xlink:href="fnm-20171231.xsd#NettingArrangementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirements" xlink:href="fnm-20171231.xsd#RegulatoryCapitalRequirements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsDetails" xlink:href="fnm-20171231.xsd#RegulatoryCapitalRequirementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsTables" xlink:href="fnm-20171231.xsd#RegulatoryCapitalRequirementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReporting" xlink:href="fnm-20171231.xsd#SegmentReporting" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingAssetsDetails" xlink:href="fnm-20171231.xsd#SegmentReportingAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingDetails" xlink:href="fnm-20171231.xsd#SegmentReportingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingNarrativeDetails" xlink:href="fnm-20171231.xsd#SegmentReportingNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingPolicies" xlink:href="fnm-20171231.xsd#SegmentReportingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingTables" xlink:href="fnm-20171231.xsd#SegmentReportingTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnaudited" xlink:href="fnm-20171231.xsd#SelectedQuarterlyFinancialInformationUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:href="fnm-20171231.xsd#SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedTables" xlink:href="fnm-20171231.xsd#SelectedQuarterlyFinancialInformationUnauditedTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermAndLongTermDebt" xlink:href="fnm-20171231.xsd#ShortTermAndLongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermAndLongTermDebtCharacteristicsOfDebtDetails" xlink:href="fnm-20171231.xsd#ShortTermAndLongTermDebtCharacteristicsOfDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermAndLongTermDebtTables" xlink:href="fnm-20171231.xsd#ShortTermAndLongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermDebtDetails" xlink:href="fnm-20171231.xsd#ShortTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="fnm-20171231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesAdvancesToLendersDetails" xlink:href="fnm-20171231.xsd#SummaryOfSignificantAccountingPoliciesAdvancesToLendersDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesEmployeeRetirementBenefitsDetails" xlink:href="fnm-20171231.xsd#SummaryOfSignificantAccountingPoliciesEmployeeRetirementBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesFeeAndOtherIncomeDetails" xlink:href="fnm-20171231.xsd#SummaryOfSignificantAccountingPoliciesFeeAndOtherIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesInvestmentsInSecuritiesDetails" xlink:href="fnm-20171231.xsd#SummaryOfSignificantAccountingPoliciesInvestmentsInSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesOrganizationDetails" xlink:href="fnm-20171231.xsd#SummaryOfSignificantAccountingPoliciesOrganizationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="fnm-20171231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesRelatedPartiesDetails" xlink:href="fnm-20171231.xsd#SummaryOfSignificantAccountingPoliciesRelatedPartiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesReserveForGuarantyLossesDetails" xlink:href="fnm-20171231.xsd#SummaryOfSignificantAccountingPoliciesReserveForGuarantyLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesUseOfEstimatesDetails" xlink:href="fnm-20171231.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="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_fbefcbc0-da72-74c5-f31c-10a606de7cbf" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_2d64eba2-d0e8-c45b-dd29-fc9458833902" 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_fbefcbc0-da72-74c5-f31c-10a606de7cbf" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_2d64eba2-d0e8-c45b-dd29-fc9458833902" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_aec103a3-1896-0ed9-655b-7cb3d159483f" 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_fbefcbc0-da72-74c5-f31c-10a606de7cbf" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_aec103a3-1896-0ed9-655b-7cb3d159483f" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_RecordedInvestmentMortgageLoansHeldForInvestment" xlink:label="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_8e9a10fb-afa2-ff99-dc65-5d1ace170c5f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_2728da51-6cce-af3e-5ce7-dffdc8662526" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_8e9a10fb-afa2-ff99-dc65-5d1ace170c5f" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_2728da51-6cce-af3e-5ce7-dffdc8662526" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_85116712-b047-8f0c-ec82-a503d282893f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_8e9a10fb-afa2-ff99-dc65-5d1ace170c5f" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_85116712-b047-8f0c-ec82-a503d282893f" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_e7ae0c4b-54d0-1d15-1541-1fb5329d750c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_5046b63b-148e-eb12-dd52-2a1e8f1e69c0" 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_e7ae0c4b-54d0-1d15-1541-1fb5329d750c" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_5046b63b-148e-eb12-dd52-2a1e8f1e69c0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_483c5d20-89a2-da39-b56f-2ea722d97042" 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_e7ae0c4b-54d0-1d15-1541-1fb5329d750c" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_483c5d20-89a2-da39-b56f-2ea722d97042" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_b5a3356e-f555-ddd5-297a-b04afe0bfd5c" 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_e7ae0c4b-54d0-1d15-1541-1fb5329d750c" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_b5a3356e-f555-ddd5-297a-b04afe0bfd5c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_6818de09-a032-5221-5ee6-896e1c2d0634" 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_e7ae0c4b-54d0-1d15-1541-1fb5329d750c" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_6818de09-a032-5221-5ee6-896e1c2d0634" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_56f89e4f-d247-3cf0-a749-00554ab475a6" 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_e7ae0c4b-54d0-1d15-1541-1fb5329d750c" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_56f89e4f-d247-3cf0-a749-00554ab475a6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_fb0efb32-4bb1-57d0-236e-d8af81dc125f" 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_e7ae0c4b-54d0-1d15-1541-1fb5329d750c" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_fb0efb32-4bb1-57d0-236e-d8af81dc125f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PurchaseObligation" xlink:label="loc_us-gaap_PurchaseObligation_5d90eae8-d7d0-196f-9ee8-660598767299" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_551216b1-f3cb-e1b0-7faf-ccc8ef9d2e47" 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_5d90eae8-d7d0-196f-9ee8-660598767299" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_551216b1-f3cb-e1b0-7faf-ccc8ef9d2e47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PurchaseObligationDueInSecondYear" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_11846c14-8264-d3da-49e0-769598463349" 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_5d90eae8-d7d0-196f-9ee8-660598767299" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_11846c14-8264-d3da-49e0-769598463349" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PurchaseObligationDueInThirdYear" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_f899b283-15ef-a33d-7c4d-490f24e8a6ee" 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_5d90eae8-d7d0-196f-9ee8-660598767299" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_f899b283-15ef-a33d-7c4d-490f24e8a6ee" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PurchaseObligationDueInFourthYear" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_fb4488b2-12c9-7d4a-2ce4-71a94ec8834a" 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_5d90eae8-d7d0-196f-9ee8-660598767299" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_fb4488b2-12c9-7d4a-2ce4-71a94ec8834a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PurchaseObligationDueInFifthYear" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_69a81c64-8b47-f06a-9163-d72a46d94fe1" 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_5d90eae8-d7d0-196f-9ee8-660598767299" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_69a81c64-8b47-f06a-9163-d72a46d94fe1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PurchaseObligationDueAfterFifthYear" xlink:label="loc_us-gaap_PurchaseObligationDueAfterFifthYear_5e815aaa-5fbd-5fb8-9787-a0ca82f516b9" 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_5d90eae8-d7d0-196f-9ee8-660598767299" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_5e815aaa-5fbd-5fb8-9787-a0ca82f516b9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitment" xlink:label="loc_us-gaap_OtherCommitment_a029e72a-1448-0635-206e-510bd78b15ed" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentDueInNextTwelveMonths" xlink:label="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_cf6251cc-e72a-3755-6588-d0e4be6181f4" 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_a029e72a-1448-0635-206e-510bd78b15ed" xlink:to="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_cf6251cc-e72a-3755-6588-d0e4be6181f4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentDueInSecondYear" xlink:label="loc_us-gaap_OtherCommitmentDueInSecondYear_1920aaae-1612-ba86-c023-ae86bfe90d54" 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_a029e72a-1448-0635-206e-510bd78b15ed" xlink:to="loc_us-gaap_OtherCommitmentDueInSecondYear_1920aaae-1612-ba86-c023-ae86bfe90d54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentDueInThirdYear" xlink:label="loc_us-gaap_OtherCommitmentDueInThirdYear_43088721-50cb-f723-5603-4e2c9539e1c0" 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_a029e72a-1448-0635-206e-510bd78b15ed" xlink:to="loc_us-gaap_OtherCommitmentDueInThirdYear_43088721-50cb-f723-5603-4e2c9539e1c0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentDueInFourthYear" xlink:label="loc_us-gaap_OtherCommitmentDueInFourthYear_eef12031-c120-45ce-f9cb-dd19621e864a" 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_a029e72a-1448-0635-206e-510bd78b15ed" xlink:to="loc_us-gaap_OtherCommitmentDueInFourthYear_eef12031-c120-45ce-f9cb-dd19621e864a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentDueInFifthYear" xlink:label="loc_us-gaap_OtherCommitmentDueInFifthYear_5db7ae47-375d-16d6-90d2-015466cdf8f2" 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_a029e72a-1448-0635-206e-510bd78b15ed" xlink:to="loc_us-gaap_OtherCommitmentDueInFifthYear_5db7ae47-375d-16d6-90d2-015466cdf8f2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherCommitmentDueAfterFifthYear" xlink:label="loc_us-gaap_OtherCommitmentDueAfterFifthYear_0166b876-f979-55b7-4f00-0184a1534b23" 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_a029e72a-1448-0635-206e-510bd78b15ed" xlink:to="loc_us-gaap_OtherCommitmentDueAfterFifthYear_0166b876-f979-55b7-4f00-0184a1534b23" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_8aea15c4-5727-d9d4-717f-630ed8fbfd83" 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_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_LoansHeldforSale" xlink:label="loc_fnm_LoansHeldforSale_a39db5a4-1c76-9a9c-fef2-5d1aceeccacd" 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_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:to="loc_fnm_LoansHeldforSale_a39db5a4-1c76-9a9c-fef2-5d1aceeccacd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_2b07f1ad-6e20-0223-fc91-d0da6b324848" 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_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_2b07f1ad-6e20-0223-fc91-d0da6b324848" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansAndLeasesReceivableConsumerRealEstate" xlink:label="loc_us-gaap_LoansAndLeasesReceivableConsumerRealEstate_55405842-6313-3b5e-f99b-0ce1d354ef84" 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_2b07f1ad-6e20-0223-fc91-d0da6b324848" xlink:to="loc_us-gaap_LoansAndLeasesReceivableConsumerRealEstate_55405842-6313-3b5e-f99b-0ce1d354ef84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_fbefcbc0-da72-74c5-f31c-10a606de7cbf" 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_2b07f1ad-6e20-0223-fc91-d0da6b324848" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_fbefcbc0-da72-74c5-f31c-10a606de7cbf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_d74724c2-178d-7f3f-8e86-5f5ba690672c" 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_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaap_InterestReceivable_2d49e658-e313-42db-0685-6fab7f379214" 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_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_InterestReceivable_2d49e658-e313-42db-0685-6fab7f379214" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RealEstateAcquiredThroughForeclosure" xlink:label="loc_us-gaap_RealEstateAcquiredThroughForeclosure_6593ba19-1d49-dfde-a85a-ff9e22b4a858" 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_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_RealEstateAcquiredThroughForeclosure_6593ba19-1d49-dfde-a85a-ff9e22b4a858" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_cb56b01f-b9c5-ca9e-8988-e23b27fc7a20" 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_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_OtherAssets_cb56b01f-b9c5-ca9e-8988-e23b27fc7a20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_07da1db4-2708-4446-4250-1fdd5956185e" 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_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_07da1db4-2708-4446-4250-1fdd5956185e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_241c670a-403b-5d35-d316-2bd699258d33" 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_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_241c670a-403b-5d35-d316-2bd699258d33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell" xlink:label="loc_us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_87cd5d85-fb20-b32a-14ae-e7d396c1b377" 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_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_87cd5d85-fb20-b32a-14ae-e7d396c1b377" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MarketableSecurities" xlink:label="loc_us-gaap_MarketableSecurities_0d154ccf-16d7-119e-242d-5812d663fbd1" 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_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_MarketableSecurities_0d154ccf-16d7-119e-242d-5812d663fbd1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_f50e398e-09e2-87cd-d907-014f432f7668" 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_0d154ccf-16d7-119e-242d-5812d663fbd1" xlink:to="loc_us-gaap_TradingSecuritiesDebt_f50e398e-09e2-87cd-d907-014f432f7668" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2c867d9b-5594-18ef-c82a-679b606d1bd3" 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_0d154ccf-16d7-119e-242d-5812d663fbd1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2c867d9b-5594-18ef-c82a-679b606d1bd3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" 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_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" 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_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" xlink:to="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_SeniorPreferredStockValue" xlink:label="loc_fnm_SeniorPreferredStockValue_7683aeb6-f341-f7c1-83d9-5d1acedb4498" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_fnm_SeniorPreferredStockValue_7683aeb6-f341-f7c1-83d9-5d1acedb4498" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_4fb6195d-d905-dac7-e5a0-79f324993f79" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_PreferredStockValue_4fb6195d-d905-dac7-e5a0-79f324993f79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_c3f7606a-e7e9-61d5-b60b-b4b059f68b26" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_CommonStockValue_c3f7606a-e7e9-61d5-b60b-b4b059f68b26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_065cb284-7fca-cc9b-5752-2feaf74d0011" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_065cb284-7fca-cc9b-5752-2feaf74d0011" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_40678492-c421-af67-b276-f663f9ff2f98" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_TreasuryStockValue_40678492-c421-af67-b276-f663f9ff2f98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_058e01e4-b9a1-623e-29f5-1b5c79bf095a" 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_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_CommitmentsAndContingencies_058e01e4-b9a1-623e-29f5-1b5c79bf095a" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_dd2e9db6-10f9-d78a-ba84-b18268245a83" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" 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_dd2e9db6-10f9-d78a-ba84-b18268245a83" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" 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_dd2e9db6-10f9-d78a-ba84-b18268245a83" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" 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_dd2e9db6-10f9-d78a-ba84-b18268245a83" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" 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_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepreciationAmortizationAndAccretionNet" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_9b039144-dc24-2381-1de5-20fa04e9b091" 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_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_9b039144-dc24-2381-1de5-20fa04e9b091" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_799beb73-6e78-0a93-6fd0-dad975c6869a" 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_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_799beb73-6e78-0a93-6fd0-dad975c6869a" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_ValuationLossGain" xlink:label="loc_fnm_ValuationLossGain_ed8fde62-c85f-3db1-9a43-725099b86d43" 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_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_fnm_ValuationLossGain_ed8fde62-c85f-3db1-9a43-725099b86d43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_5ec175c9-d44c-92d1-32b9-f1b35a4c0263" 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_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_5ec175c9-d44c-92d1-32b9-f1b35a4c0263" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInTradingSecurities" xlink:label="loc_us-gaap_IncreaseDecreaseInTradingSecurities_e8ba5237-8cbd-6aa1-1951-f1a87d911f04" 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_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInTradingSecurities_e8ba5237-8cbd-6aa1-1951-f1a87d911f04" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements" xlink:label="loc_fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements_d1e8fed3-da8c-fb86-9c1e-725099359d31" 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_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements_d1e8fed3-da8c-fb86-9c1e-725099359d31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_e044e8e2-5c45-7b11-95e2-5c6b268cc854" 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_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_e044e8e2-5c45-7b11-95e2-5c6b268cc854" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" 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_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_57e8ae74-d8b6-c629-9bee-2d0929cd3999" 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_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_57e8ae74-d8b6-c629-9bee-2d0929cd3999" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_ab3008c3-c5c2-a86b-0613-39cbd9b94527" 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_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_ab3008c3-c5c2-a86b-0613-39cbd9b94527" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_2652b636-1a3b-e639-2800-d9ed5b9b4fc0" 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_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_2652b636-1a3b-e639-2800-d9ed5b9b4fc0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_7c127d06-548a-c853-6553-ec01c57f7490" 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_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_7c127d06-548a-c853-6553-ec01c57f7490" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_3d9b4bd2-957e-ddb5-7841-6a572de70646" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" 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_3d9b4bd2-957e-ddb5-7841-6a572de70646" xlink:to="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" 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_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:to="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_0eb47183-f513-314d-ceda-ee2412d9eee8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_0eb47183-f513-314d-ceda-ee2412d9eee8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_baabbf0a-644b-708a-c310-1211f9af2775" 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_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_baabbf0a-644b-708a-c310-1211f9af2775" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_74be464a-6200-1ca3-2afc-3f9a6ddb7c1e" 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_3d9b4bd2-957e-ddb5-7841-6a572de70646" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_74be464a-6200-1ca3-2afc-3f9a6ddb7c1e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_87411e46-c979-a1ff-e8b3-f4f75d86b855" 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_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_87411e46-c979-a1ff-e8b3-f4f75d86b855" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_f279d790-3f69-6bb0-bf56-02597d072677" 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_87411e46-c979-a1ff-e8b3-f4f75d86b855" xlink:to="loc_us-gaap_LaborAndRelatedExpense_f279d790-3f69-6bb0-bf56-02597d072677" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfessionalAndContractServicesExpense" xlink:label="loc_us-gaap_ProfessionalAndContractServicesExpense_626f5ce3-aa30-58ae-8ce9-29d784668fa1" 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_87411e46-c979-a1ff-e8b3-f4f75d86b855" xlink:to="loc_us-gaap_ProfessionalAndContractServicesExpense_626f5ce3-aa30-58ae-8ce9-29d784668fa1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_OtherGeneralAndAdministrativeExpense_ce136aa6-4106-ae2f-beeb-1ce4422e5c13" 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_87411e46-c979-a1ff-e8b3-f4f75d86b855" xlink:to="loc_us-gaap_OtherGeneralAndAdministrativeExpense_ce136aa6-4106-ae2f-beeb-1ce4422e5c13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ForeclosedRealEstateExpense" xlink:label="loc_us-gaap_ForeclosedRealEstateExpense_79506dd2-3fe6-218c-a401-af0073b416b0" 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_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:to="loc_us-gaap_ForeclosedRealEstateExpense_79506dd2-3fe6-218c-a401-af0073b416b0" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011" xlink:label="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_a3bbbd45-a47a-c86d-c5e5-5d1acec22362" 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_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:to="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_a3bbbd45-a47a-c86d-c5e5-5d1acec22362" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_02adc972-ee35-2b4e-07cf-dcb0252789fc" 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_b9eb1ceb-6771-3351-1281-e8b3cd4f24bc" xlink:to="loc_us-gaap_OtherNoninterestExpense_02adc972-ee35-2b4e-07cf-dcb0252789fc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" 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_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" 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_dd69e307-3cf6-284a-5315-8fa7ac464283" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_548688b8-2d34-462c-5a92-aa79f1c44c1a" 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_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_548688b8-2d34-462c-5a92-aa79f1c44c1a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_7c127d06-548a-c853-6553-ec01c57f7490" 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_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_7c127d06-548a-c853-6553-ec01c57f7490" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_7908f590-67cb-1122-d422-880e24cad7ce" 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_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_7908f590-67cb-1122-d422-880e24cad7ce" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_4b7a9f96-e361-95dc-567f-7c30db8e2c0d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_1df5100d-c7c3-27c8-1405-81abbd3827e1" 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_4b7a9f96-e361-95dc-567f-7c30db8e2c0d" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_1df5100d-c7c3-27c8-1405-81abbd3827e1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_4477516e-3843-f1b4-8a61-de669ff8f0e0" 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_1df5100d-c7c3-27c8-1405-81abbd3827e1" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_4477516e-3843-f1b4-8a61-de669ff8f0e0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_0754cdab-5556-b740-e7f9-96f11a5cabde" 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_4477516e-3843-f1b4-8a61-de669ff8f0e0" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_0754cdab-5556-b740-e7f9-96f11a5cabde" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_2e91facf-8670-886c-2fa2-01ff24cdd108" 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_4477516e-3843-f1b4-8a61-de669ff8f0e0" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_2e91facf-8670-886c-2fa2-01ff24cdd108" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_73eb116a-244c-faca-8f1b-fa72559b1ebe" 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_4477516e-3843-f1b4-8a61-de669ff8f0e0" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_73eb116a-244c-faca-8f1b-fa72559b1ebe" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherInterestAndDividendIncome" xlink:label="loc_us-gaap_OtherInterestAndDividendIncome_e7190940-6dd9-cccb-7cdc-ad2fcbe3a626" 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_4477516e-3843-f1b4-8a61-de669ff8f0e0" xlink:to="loc_us-gaap_OtherInterestAndDividendIncome_e7190940-6dd9-cccb-7cdc-ad2fcbe3a626" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" 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_1df5100d-c7c3-27c8-1405-81abbd3827e1" xlink:to="loc_us-gaap_InterestExpense_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestExpenseShortTermBorrowings" xlink:label="loc_us-gaap_InterestExpenseShortTermBorrowings_3b21a485-dd9a-bbcc-544e-c91399070436" 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_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:to="loc_us-gaap_InterestExpenseShortTermBorrowings_3b21a485-dd9a-bbcc-544e-c91399070436" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestExpenseLongTermDebt" xlink:label="loc_us-gaap_InterestExpenseLongTermDebt_63b3f3d9-aaf6-59d3-9ec0-1a4d3ed8748e" 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_7c9599ab-2a77-022c-c720-63fecff6a62c" xlink:to="loc_us-gaap_InterestExpenseLongTermDebt_63b3f3d9-aaf6-59d3-9ec0-1a4d3ed8748e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_799beb73-6e78-0a93-6fd0-dad975c6869a" 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_4b7a9f96-e361-95dc-567f-7c30db8e2c0d" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_799beb73-6e78-0a93-6fd0-dad975c6869a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:type="locator" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_InvestmentGainsLossNet1" xlink:label="loc_fnm_InvestmentGainsLossNet1_8731441f-0c07-386c-2ae4-5d1acf0de897" 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_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:to="loc_fnm_InvestmentGainsLossNet1_8731441f-0c07-386c-2ae4-5d1acf0de897" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_FairValueGainsLossesNet" xlink:label="loc_fnm_FairValueGainsLossesNet_ace27795-95cd-03f2-8374-5d1aceb36947" 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_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:to="loc_fnm_FairValueGainsLossesNet_ace27795-95cd-03f2-8374-5d1aceb36947" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_bbc2d8f2-839a-169c-6677-9e1bd2a87a11" 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_85d8e349-2d49-3422-00b4-05065a60f6f9" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_bbc2d8f2-839a-169c-6677-9e1bd2a87a11" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet" xlink:label="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_82d98084-2bba-ff6a-279b-14e870c37422" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_f50e398e-09e2-87cd-d907-014f432f7668" 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_82d98084-2bba-ff6a-279b-14e870c37422" xlink:to="loc_us-gaap_TradingSecuritiesDebt_f50e398e-09e2-87cd-d907-014f432f7668" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2c867d9b-5594-18ef-c82a-679b606d1bd3" 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_82d98084-2bba-ff6a-279b-14e870c37422" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2c867d9b-5594-18ef-c82a-679b606d1bd3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_cb56b01f-b9c5-ca9e-8988-e23b27fc7a20" 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_82d98084-2bba-ff6a-279b-14e870c37422" xlink:to="loc_us-gaap_OtherAssets_cb56b01f-b9c5-ca9e-8988-e23b27fc7a20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_81d717e1-3e46-8423-3e5f-d98aacc74856" 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_82d98084-2bba-ff6a-279b-14e870c37422" xlink:to="loc_us-gaap_OtherLiabilities_81d717e1-3e46-8423-3e5f-d98aacc74856" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:type="locator" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DerivativeAssetsInterestReceivable" xlink:label="loc_fnm_DerivativeAssetsInterestReceivable_3646ce94-b27c-675d-06fb-5d1ace193e33" 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_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:to="loc_fnm_DerivativeAssetsInterestReceivable_3646ce94-b27c-675d-06fb-5d1ace193e33" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_632d52c4-5035-e390-8263-9001adf1afa1" 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_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_632d52c4-5035-e390-8263-9001adf1afa1" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DerivativeFairValueGrossAssetAllDerivatives" xlink:label="loc_fnm_DerivativeFairValueGrossAssetAllDerivatives_a4ff09a5-6ca9-d502-1632-5d1acf2d6895" 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_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:to="loc_fnm_DerivativeFairValueGrossAssetAllDerivatives_a4ff09a5-6ca9-d502-1632-5d1acf2d6895" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_a3ccd28b-d904-f2d6-d218-02006f748e50" xlink:type="locator" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives" xlink:label="loc_fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives_1fc7a035-5388-95b4-610f-5d1ace6586e4" 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_a3ccd28b-d904-f2d6-d218-02006f748e50" xlink:to="loc_fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives_1fc7a035-5388-95b4-610f-5d1ace6586e4" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DerivativeLiabilityInterestPayable" xlink:label="loc_fnm_DerivativeLiabilityInterestPayable_0235da21-51f3-ad9a-705f-5d1aceb9aeb7" 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_a3ccd28b-d904-f2d6-d218-02006f748e50" xlink:to="loc_fnm_DerivativeLiabilityInterestPayable_0235da21-51f3-ad9a-705f-5d1aceb9aeb7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_a35dd027-4176-a3b8-92c5-caa74b4d298d" 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_a3ccd28b-d904-f2d6-d218-02006f748e50" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_a35dd027-4176-a3b8-92c5-caa74b4d298d" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:type="locator" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded" xlink:label="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded_8503845b-3748-25ec-b17f-5d1ace1418cc" 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_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:to="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded_8503845b-3748-25ec-b17f-5d1ace1418cc" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded" xlink:label="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded_eda4a781-e331-5e10-8301-5d1ace100974" 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_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:to="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded_eda4a781-e331-5e10-8301-5d1ace100974" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" 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_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_ac65944e-d0a3-7081-a0ad-366dc25783e8" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_80870f71-876e-eaaa-f0a4-8338d8e9798b" 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_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_80870f71-876e-eaaa-f0a4-8338d8e9798b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_c1323577-e536-9051-1401-d064e7621fd6" 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_2a6e77d2-a694-61f8-1c68-085fd849c780" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_c1323577-e536-9051-1401-d064e7621fd6" 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:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueOptionChangesInFairValueGainLoss1" xlink:label="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss1_f65340be-a7ba-b45d-8d49-6a21909b1ed7" xlink:type="locator" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_FairValueOptionCreditRiskGainsLosses" xlink:label="loc_fnm_FairValueOptionCreditRiskGainsLosses_1de80f3a-cf34-afd6-b70f-5d1ace77afc1" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss1_f65340be-a7ba-b45d-8d49-6a21909b1ed7" xlink:to="loc_fnm_FairValueOptionCreditRiskGainsLosses_1de80f3a-cf34-afd6-b70f-5d1ace77afc1" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_FairValueOptionOtherChangesInFairValueGainLoss" xlink:label="loc_fnm_FairValueOptionOtherChangesInFairValueGainLoss_c726bcdd-af07-a6bb-5594-5d1ace673c20" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss1_f65340be-a7ba-b45d-8d49-6a21909b1ed7" xlink:to="loc_fnm_FairValueOptionOtherChangesInFairValueGainLoss_c726bcdd-af07-a6bb-5594-5d1ace673c20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueOptionCreditRiskGainsLossesOnAssets" xlink:label="loc_us-gaap_FairValueOptionCreditRiskGainsLossesOnAssets_b3d0a39f-4da4-550e-0d03-3a15a89d6637" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss1_f65340be-a7ba-b45d-8d49-6a21909b1ed7" xlink:to="loc_us-gaap_FairValueOptionCreditRiskGainsLossesOnAssets_b3d0a39f-4da4-550e-0d03-3a15a89d6637" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueOptionCreditRiskGainsLossesOnLiabilities" xlink:label="loc_us-gaap_FairValueOptionCreditRiskGainsLossesOnLiabilities_81ded6b2-0047-f455-1c79-8e7fd0c229eb" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss1_f65340be-a7ba-b45d-8d49-6a21909b1ed7" xlink:to="loc_us-gaap_FairValueOptionCreditRiskGainsLossesOnLiabilities_81ded6b2-0047-f455-1c79-8e7fd0c229eb" xlink:type="arc" />
  </link:calculationLink>
  <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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_61bb41c2-5e2c-2804-d184-f566af2acbb1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_14431c30-c9e8-dc13-32fc-a21a09ab3b8d" 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_61bb41c2-5e2c-2804-d184-f566af2acbb1" xlink:to="loc_us-gaap_LongTermDebtFairValue_14431c30-c9e8-dc13-32fc-a21a09ab3b8d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_a3ccd28b-d904-f2d6-d218-02006f748e50" 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_61bb41c2-5e2c-2804-d184-f566af2acbb1" xlink:to="loc_us-gaap_DerivativeLiabilities_a3ccd28b-d904-f2d6-d218-02006f748e50" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MortgagesHeldForSaleFairValueDisclosure" xlink:label="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_00fff42f-ba49-6993-723e-7c4718f98e2e" 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_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_00fff42f-ba49-6993-723e-7c4718f98e2e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" 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_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_us-gaap_AvailableForSaleSecurities_d444402b-921b-e0fa-119c-908ab66850af" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_e8e5bcd2-8443-72c2-637c-8d2ab1152c82" 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_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_us-gaap_TradingSecurities_e8e5bcd2-8443-72c2-637c-8d2ab1152c82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure" xlink:label="loc_us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure_b1c2bc5b-59e7-ce52-051f-5983094d4e5d" 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_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure_b1c2bc5b-59e7-ce52-051f-5983094d4e5d" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure" xlink:label="loc_fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure_f1f96416-0bbb-14d8-05d7-5d1acf2659ab" 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_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure_f1f96416-0bbb-14d8-05d7-5d1acf2659ab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_f19d0149-ff07-e1d1-572f-796374b31c39" 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_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_f19d0149-ff07-e1d1-572f-796374b31c39" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_AdvancesToLendersFairValueDisclosure" xlink:label="loc_fnm_AdvancesToLendersFairValueDisclosure_54e58ea0-8a9e-e4fc-ade9-5d1ace03e69e" 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_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_fnm_AdvancesToLendersFairValueDisclosure_54e58ea0-8a9e-e4fc-ade9-5d1ace03e69e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_990d24f7-bf09-089d-4b5d-4490e079db44" 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_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_us-gaap_DerivativeAssets_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure" xlink:label="loc_fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure_fcefe421-af35-8df0-4d50-5d1aceef0368" 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_b86af6cd-ef38-8a02-5297-9329a99c960d" xlink:to="loc_fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure_fcefe421-af35-8df0-4d50-5d1aceef0368" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_b361a033-37cf-a2bc-6e1f-0297b90aa5a9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" 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_b361a033-37cf-a2bc-6e1f-0297b90aa5a9" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans" xlink:label="loc_fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans_c0d3eb26-c559-3efc-612c-72509a18bb93" 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_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans_c0d3eb26-c559-3efc-612c-72509a18bb93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_34825a29-f08a-602c-93b3-eaaa9098ff88" 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_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_34825a29-f08a-602c-93b3-eaaa9098ff88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments" xlink:label="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_9eb5b688-03ee-a9e0-4a88-d0be171d4af0" 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_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_9eb5b688-03ee-a9e0-4a88-d0be171d4af0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_a2fa314f-f573-50b1-a27d-33b9e8bcf3e7" 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_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_a2fa314f-f573-50b1-a27d-33b9e8bcf3e7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsEquityMethodInvestments" xlink:label="loc_us-gaap_DeferredTaxAssetsEquityMethodInvestments_0c2ec18f-f307-e2ed-6ec4-5473a74b317e" 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_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsEquityMethodInvestments_0c2ec18f-f307-e2ed-6ec4-5473a74b317e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_91623f44-5f42-408a-f7b7-7a4698afab83" 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_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_91623f44-5f42-408a-f7b7-7a4698afab83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" 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_b361a033-37cf-a2bc-6e1f-0297b90aa5a9" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross" xlink:label="loc_fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross_f381d750-c260-28b7-627b-725099576722" 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_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:to="loc_fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross_f381d750-c260-28b7-627b-725099576722" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" 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_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" 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_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_29919d14-72a3-6197-982a-3a6269f21038" 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_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_29919d14-72a3-6197-982a-3a6269f21038" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_7a29aecb-4ef6-fe64-ee0f-54bcbbeb5077" 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_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_7a29aecb-4ef6-fe64-ee0f-54bcbbeb5077" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_e076fca2-751d-53ee-27b4-64a5b6f5b217" 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_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_e076fca2-751d-53ee-27b4-64a5b6f5b217" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_e1bd5e97-dd80-bb67-1b32-f0283be3c62d" 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_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_e1bd5e97-dd80-bb67-1b32-f0283be3c62d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_8718aa1e-c40a-73dd-11d3-b6a4475e0d37" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_8718aa1e-c40a-73dd-11d3-b6a4475e0d37" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_fc961581-2899-aa00-cc82-b67bd4267bb3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2c867d9b-5594-18ef-c82a-679b606d1bd3" 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_fc961581-2899-aa00-cc82-b67bd4267bb3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2c867d9b-5594-18ef-c82a-679b606d1bd3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_fa6902f3-9ec3-0632-57ef-52a27e57695e" 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_fc961581-2899-aa00-cc82-b67bd4267bb3" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_fa6902f3-9ec3-0632-57ef-52a27e57695e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_bb34ca49-0ca6-d513-414f-31e205fa11cc" 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_fc961581-2899-aa00-cc82-b67bd4267bb3" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_bb34ca49-0ca6-d513-414f-31e205fa11cc" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_2c867d9b-5594-18ef-c82a-679b606d1bd3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_764bcdd4-873e-b243-70d2-5e6b13e98cf7" 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_2c867d9b-5594-18ef-c82a-679b606d1bd3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_764bcdd4-873e-b243-70d2-5e6b13e98cf7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_e43ecc2e-e30d-adce-13de-ad342aacc705" 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_2c867d9b-5594-18ef-c82a-679b606d1bd3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_e43ecc2e-e30d-adce-13de-ad342aacc705" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_32a10326-5fac-2d4e-ebe4-d0b3d261f0aa" 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_2c867d9b-5594-18ef-c82a-679b606d1bd3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_32a10326-5fac-2d4e-ebe4-d0b3d261f0aa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_35f8f7f2-8f7e-5afd-f112-d64048dc0db3" 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_2c867d9b-5594-18ef-c82a-679b606d1bd3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_35f8f7f2-8f7e-5afd-f112-d64048dc0db3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_fc961581-2899-aa00-cc82-b67bd4267bb3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_e23e956e-6d3a-7b53-c662-14b8b922e4d7" 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_fc961581-2899-aa00-cc82-b67bd4267bb3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_e23e956e-6d3a-7b53-c662-14b8b922e4d7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_06175534-8ac5-fc96-dd10-7102d5989d46" 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_fc961581-2899-aa00-cc82-b67bd4267bb3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_06175534-8ac5-fc96-dd10-7102d5989d46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_ddab5c86-f56d-2ebd-8d33-52d44342102a" 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_fc961581-2899-aa00-cc82-b67bd4267bb3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_ddab5c86-f56d-2ebd-8d33-52d44342102a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_036a6f5c-05ce-dc1a-9b58-e6338f89f0c1" 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_fc961581-2899-aa00-cc82-b67bd4267bb3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_036a6f5c-05ce-dc1a-9b58-e6338f89f0c1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:type="locator" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance" xlink:label="loc_fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance_71ab3190-fc5e-c4ac-9682-5d1acebda968" 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_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:to="loc_fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance_71ab3190-fc5e-c4ac-9682-5d1acebda968" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet" xlink:label="loc_fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet_86bd3a07-007b-6ef1-c2e3-5d1acdf17a56" 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_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:to="loc_fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet_86bd3a07-007b-6ef1-c2e3-5d1acdf17a56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_fbefcbc0-da72-74c5-f31c-10a606de7cbf" 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_8aea15c4-5727-d9d4-717f-630ed8fbfd83" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_fbefcbc0-da72-74c5-f31c-10a606de7cbf" 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-20171231.xsd#fnm_RecordedInvestmentMortgageLoansHeldForInvestment" xlink:label="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_8e9a10fb-afa2-ff99-dc65-5d1ace170c5f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_a2853db1-cebd-a17c-f6ff-3ade2a726584" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_8e9a10fb-afa2-ff99-dc65-5d1ace170c5f" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_a2853db1-cebd-a17c-f6ff-3ade2a726584" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_38a9b0f0-99cf-7bf1-a2e9-09df10077c91" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_8e9a10fb-afa2-ff99-dc65-5d1ace170c5f" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_38a9b0f0-99cf-7bf1-a2e9-09df10077c91" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod_d4a5172a-7494-82db-7c60-3200d18cea58" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeAccrualMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeAccrualMethod_950cfacd-4900-2775-a7d0-65fbd09d44d9" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod_d4a5172a-7494-82db-7c60-3200d18cea58" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeAccrualMethod_950cfacd-4900-2775-a7d0-65fbd09d44d9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeAccrualMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeAccrualMethod_1e33c8c7-103b-5149-cfd1-333ec2e2e0d1" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod_d4a5172a-7494-82db-7c60-3200d18cea58" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeAccrualMethod_1e33c8c7-103b-5149-cfd1-333ec2e2e0d1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_86ff7c24-8ecf-720e-c150-39c99b44c49d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_5085a4f0-5287-c9f5-336b-e45e85e0d2de" 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_86ff7c24-8ecf-720e-c150-39c99b44c49d" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_5085a4f0-5287-c9f5-336b-e45e85e0d2de" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_9cb5f76f-ebfb-bfa3-fab3-12a41aa41227" 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_86ff7c24-8ecf-720e-c150-39c99b44c49d" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_9cb5f76f-ebfb-bfa3-fab3-12a41aa41227" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_26d01b6b-31e5-49ea-86b2-b00c93649ee1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_6634bf7e-e8ef-60fa-1b4e-d64872870daa" 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_26d01b6b-31e5-49ea-86b2-b00c93649ee1" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_6634bf7e-e8ef-60fa-1b4e-d64872870daa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_e0e4c04b-a7cc-02ef-23f6-318ae3c05959" 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_26d01b6b-31e5-49ea-86b2-b00c93649ee1" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_e0e4c04b-a7cc-02ef-23f6-318ae3c05959" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_ca37a9dd-c284-285c-ef7c-6fd13d2d1f07" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_363cf147-7020-38c5-2ad2-e05d16e99e50" 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_ca37a9dd-c284-285c-ef7c-6fd13d2d1f07" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_363cf147-7020-38c5-2ad2-e05d16e99e50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_6c5d17c5-8bf9-32e4-45d8-0c81f3d83e11" 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_ca37a9dd-c284-285c-ef7c-6fd13d2d1f07" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_6c5d17c5-8bf9-32e4-45d8-0c81f3d83e11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_15a0be6e-6399-7796-5a21-351d6bdf38c0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_be7a8a02-ce08-c29c-f736-c19574a96602" 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_15a0be6e-6399-7796-5a21-351d6bdf38c0" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_be7a8a02-ce08-c29c-f736-c19574a96602" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_cc47adb0-1bde-8a7e-893c-e21dfd67fbcc" 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_15a0be6e-6399-7796-5a21-351d6bdf38c0" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_cc47adb0-1bde-8a7e-893c-e21dfd67fbcc" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansTdrsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansTdrsWithSubDefaultsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangements" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_ac46c5e9-b2d1-5ea2-3800-6931e58c0517" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_b101e508-739c-e6e2-2fa2-9fe7226273c7" 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_ac46c5e9-b2d1-5ea2-3800-6931e58c0517" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_b101e508-739c-e6e2-2fa2-9fe7226273c7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_a35dd027-4176-a3b8-92c5-caa74b4d298d" 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_b101e508-739c-e6e2-2fa2-9fe7226273c7" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_a35dd027-4176-a3b8-92c5-caa74b4d298d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_5296452d-3ce9-bd2f-2a62-9643805fc6ab" 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_b101e508-739c-e6e2-2fa2-9fe7226273c7" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_5296452d-3ce9-bd2f-2a62-9643805fc6ab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_0bbcd9e4-2033-894b-d04f-3e8609c1f608" 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_ac46c5e9-b2d1-5ea2-3800-6931e58c0517" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_0bbcd9e4-2033-894b-d04f-3e8609c1f608" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_fa5ae35c-b4e7-a698-de32-08ea556641ab" 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_ac46c5e9-b2d1-5ea2-3800-6931e58c0517" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_fa5ae35c-b4e7-a698-de32-08ea556641ab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_7e93809e-b641-a66f-78f6-8739f6368bec" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_90f482d6-596b-00e0-9584-d3e54f9ea7fb" 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_7e93809e-b641-a66f-78f6-8739f6368bec" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_90f482d6-596b-00e0-9584-d3e54f9ea7fb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_5b305825-95a3-afb7-1b8e-4357b49e2ec7" 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_90f482d6-596b-00e0-9584-d3e54f9ea7fb" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_5b305825-95a3-afb7-1b8e-4357b49e2ec7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_62eb8c59-8348-bd48-683f-a9f1d164ff20" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_5b305825-95a3-afb7-1b8e-4357b49e2ec7" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_62eb8c59-8348-bd48-683f-a9f1d164ff20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_632d52c4-5035-e390-8263-9001adf1afa1" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_5b305825-95a3-afb7-1b8e-4357b49e2ec7" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_632d52c4-5035-e390-8263-9001adf1afa1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_7148dcb6-4dce-bf86-03b8-de7b0f4df285" 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_90f482d6-596b-00e0-9584-d3e54f9ea7fb" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_7148dcb6-4dce-bf86-03b8-de7b0f4df285" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_d215614e-6e5d-ffec-41c2-1f19be1f15e4" 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_90f482d6-596b-00e0-9584-d3e54f9ea7fb" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_d215614e-6e5d-ffec-41c2-1f19be1f15e4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_29df0e88-35ff-8b93-893f-285ac8eb62e6" 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_7e93809e-b641-a66f-78f6-8739f6368bec" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_29df0e88-35ff-8b93-893f-285ac8eb62e6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_88673387-bc54-38b4-70ef-e0bd9bff5c3e" 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_29df0e88-35ff-8b93-893f-285ac8eb62e6" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_88673387-bc54-38b4-70ef-e0bd9bff5c3e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_bba8b19a-20b0-7723-d0c9-c774408dc4f8" 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_29df0e88-35ff-8b93-893f-285ac8eb62e6" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_bba8b19a-20b0-7723-d0c9-c774408dc4f8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_a9086c39-3534-4f9d-a7f5-0c12f1c35234" 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_29df0e88-35ff-8b93-893f-285ac8eb62e6" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_a9086c39-3534-4f9d-a7f5-0c12f1c35234" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_aad4a623-73b9-50d9-72ce-17fdd5fef1fa" 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_aad4a623-73b9-50d9-72ce-17fdd5fef1fa" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_d215614e-6e5d-ffec-41c2-1f19be1f15e4" 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_aad4a623-73b9-50d9-72ce-17fdd5fef1fa" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_bba8b19a-20b0-7723-d0c9-c774408dc4f8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_e6f25586-bbc8-ebfd-6438-3af3ddf4f359" xlink:type="locator" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_7f476667-8972-5520-3838-5d1ace3f755a" 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_e6f25586-bbc8-ebfd-6438-3af3ddf4f359" xlink:to="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_7f476667-8972-5520-3838-5d1ace3f755a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_3410afd2-49c3-381e-0aad-4f1b6e7aeb03" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_7f476667-8972-5520-3838-5d1ace3f755a" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_3410afd2-49c3-381e-0aad-4f1b6e7aeb03" 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_3410afd2-49c3-381e-0aad-4f1b6e7aeb03" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_5296452d-3ce9-bd2f-2a62-9643805fc6ab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_c882a447-5a31-1701-aa5d-6132a38704f7" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_7f476667-8972-5520-3838-5d1ace3f755a" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_c882a447-5a31-1701-aa5d-6132a38704f7" 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_c882a447-5a31-1701-aa5d-6132a38704f7" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_a35dd027-4176-a3b8-92c5-caa74b4d298d" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_01e973bf-e04c-d52e-b4bf-5d1acecba780" 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_e6f25586-bbc8-ebfd-6438-3af3ddf4f359" xlink:to="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_01e973bf-e04c-d52e-b4bf-5d1acecba780" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_01e973bf-e04c-d52e-b4bf-5d1acecba780" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_0bbcd9e4-2033-894b-d04f-3e8609c1f608" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_ccef3fd7-9e79-3bc1-4e55-e598d237a15e" 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_e6f25586-bbc8-ebfd-6438-3af3ddf4f359" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_ccef3fd7-9e79-3bc1-4e55-e598d237a15e" 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_ccef3fd7-9e79-3bc1-4e55-e598d237a15e" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_fa5ae35c-b4e7-a698-de32-08ea556641ab" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_d94bc36c-ed3f-bbb1-22eb-5d1acec84523" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_d94bc36c-ed3f-bbb1-22eb-5d1acec84523" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_7148dcb6-4dce-bf86-03b8-de7b0f4df285" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_d94bc36c-ed3f-bbb1-22eb-5d1acec84523" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_88673387-bc54-38b4-70ef-e0bd9bff5c3e" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_21cc0a21-9ae6-6def-de54-5d1aced74256" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_e502b59c-cea6-4f33-6035-992bf5ffaec8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_21cc0a21-9ae6-6def-de54-5d1aced74256" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_e502b59c-cea6-4f33-6035-992bf5ffaec8" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_e502b59c-cea6-4f33-6035-992bf5ffaec8" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_62eb8c59-8348-bd48-683f-a9f1d164ff20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_200b229f-b01a-ba4b-4f3a-9d62bd3d9ea8" 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_e502b59c-cea6-4f33-6035-992bf5ffaec8" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_200b229f-b01a-ba4b-4f3a-9d62bd3d9ea8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_46e223df-27f8-1482-0a26-545e5fcd518f" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_21cc0a21-9ae6-6def-de54-5d1aced74256" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_46e223df-27f8-1482-0a26-545e5fcd518f" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_46e223df-27f8-1482-0a26-545e5fcd518f" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_632d52c4-5035-e390-8263-9001adf1afa1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_23a4131c-8253-46b9-3a93-5d731399b1ab" 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_46e223df-27f8-1482-0a26-545e5fcd518f" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_23a4131c-8253-46b9-3a93-5d731399b1ab" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_8CBBDDCCA22020851BEF8C61E51B90C8_7e93809e-b641-a66f-78f6-8739f6368bec" xlink:type="locator" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_8CBBDDCCA22020851BEF8C61E51B90C8_21cc0a21-9ae6-6def-de54-5d1aced74256" 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_8CBBDDCCA22020851BEF8C61E51B90C8_7e93809e-b641-a66f-78f6-8739f6368bec" xlink:to="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_8CBBDDCCA22020851BEF8C61E51B90C8_21cc0a21-9ae6-6def-de54-5d1aced74256" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_8CBBDDCCA22020851BEF8C61E51B90C8_5b305825-95a3-afb7-1b8e-4357b49e2ec7" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_8CBBDDCCA22020851BEF8C61E51B90C8_21cc0a21-9ae6-6def-de54-5d1aced74256" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_8CBBDDCCA22020851BEF8C61E51B90C8_5b305825-95a3-afb7-1b8e-4357b49e2ec7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_8CBBDDCCA22020851BEF8C61E51B90C8_a9086c39-3534-4f9d-a7f5-0c12f1c35234" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_8CBBDDCCA22020851BEF8C61E51B90C8_21cc0a21-9ae6-6def-de54-5d1aced74256" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_8CBBDDCCA22020851BEF8C61E51B90C8_a9086c39-3534-4f9d-a7f5-0c12f1c35234" xlink:type="arc" />
    <link:loc xlink:href="fnm-20171231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_8CBBDDCCA22020851BEF8C61E51B90C8_d94bc36c-ed3f-bbb1-22eb-5d1acec84523" 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_8CBBDDCCA22020851BEF8C61E51B90C8_7e93809e-b641-a66f-78f6-8739f6368bec" xlink:to="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_8CBBDDCCA22020851BEF8C61E51B90C8_d94bc36c-ed3f-bbb1-22eb-5d1acec84523" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_8CBBDDCCA22020851BEF8C61E51B90C8_aad4a623-73b9-50d9-72ce-17fdd5fef1fa" 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_8CBBDDCCA22020851BEF8C61E51B90C8_7e93809e-b641-a66f-78f6-8739f6368bec" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_8CBBDDCCA22020851BEF8C61E51B90C8_aad4a623-73b9-50d9-72ce-17fdd5fef1fa" 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-20171231.xsd#fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement" xlink:label="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_45aaff07-6185-529c-d07f-5d1ace6915b8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Capital" xlink:label="loc_us-gaap_Capital_e134c81a-9801-ccd6-c891-75f0c51f5887" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_45aaff07-6185-529c-d07f-5d1ace6915b8" xlink:to="loc_us-gaap_Capital_e134c81a-9801-ccd6-c891-75f0c51f5887" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalRequiredForCapitalAdequacy" xlink:label="loc_us-gaap_CapitalRequiredForCapitalAdequacy_ca83043e-6c7e-2eae-1e35-eb0e42431b64" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_45aaff07-6185-529c-d07f-5d1ace6915b8" xlink:to="loc_us-gaap_CapitalRequiredForCapitalAdequacy_ca83043e-6c7e-2eae-1e35-eb0e42431b64" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_07fc9b71-5e9e-f38c-0c73-b038be276f66" 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_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_07fc9b71-5e9e-f38c-0c73-b038be276f66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_fd0898b3-8ac6-af74-6eb0-16df5479b1d8" 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_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_fd0898b3-8ac6-af74-6eb0-16df5479b1d8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_afae3a47-9c39-3601-518d-0d7ae5a5a6c2" 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_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_afae3a47-9c39-3601-518d-0d7ae5a5a6c2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_9f5eb2fc-430b-08e9-97ff-7ba73d819a2f" 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_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_9f5eb2fc-430b-08e9-97ff-7ba73d819a2f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_82b54d4e-a983-1385-5e08-b1962e49d9a0" 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_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_82b54d4e-a983-1385-5e08-b1962e49d9a0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_ba31165f-5220-17cb-3dfa-506eec2ab044" 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_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_ba31165f-5220-17cb-3dfa-506eec2ab044" 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>
