<?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/AcquiredPropertyNet" xlink:href="fnm-20161231.xsd#AcquiredPropertyNet" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AcquiredPropertyNetDetails" xlink:href="fnm-20161231.xsd#AcquiredPropertyNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AcquiredPropertyNetPolicies" xlink:href="fnm-20161231.xsd#AcquiredPropertyNetPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AcquiredPropertyNetTables" xlink:href="fnm-20161231.xsd#AcquiredPropertyNetTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLosses" xlink:href="fnm-20161231.xsd#AllowanceForLoanLosses" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesAndTotalRecordedInvestmentInHfiLoansDetails" xlink:href="fnm-20161231.xsd#AllowanceForLoanLossesAndTotalRecordedInvestmentInHfiLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesRollforwardBySegmentDetails" xlink:href="fnm-20161231.xsd#AllowanceForLoanLossesRollforwardBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceForLoanLossesTables" xlink:href="fnm-20161231.xsd#AllowanceForLoanLossesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingencies" xlink:href="fnm-20161231.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesDetails" xlink:href="fnm-20161231.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesFiscalYearMaturityScheduleDetails" xlink:href="fnm-20161231.xsd#CommitmentsAndContingenciesFiscalYearMaturityScheduleDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesPolicies" xlink:href="fnm-20161231.xsd#CommitmentsAndContingenciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsAndContingenciesTables" xlink:href="fnm-20161231.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRisk" xlink:href="fnm-20161231.xsd#ConcentrationsOfCreditRisk" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskGeographicConcentrationDetails" xlink:href="fnm-20161231.xsd#ConcentrationsOfCreditRiskGeographicConcentrationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskMfRiskCharacteristicsDetails" xlink:href="fnm-20161231.xsd#ConcentrationsOfCreditRiskMfRiskCharacteristicsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskOtherConcentrationsDetails" xlink:href="fnm-20161231.xsd#ConcentrationsOfCreditRiskOtherConcentrationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskSfRiskCharacteristicsDetails" xlink:href="fnm-20161231.xsd#ConcentrationsOfCreditRiskSfRiskCharacteristicsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsOfCreditRiskTables" xlink:href="fnm-20161231.xsd#ConcentrationsOfCreditRiskTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedBalanceSheets" xlink:href="fnm-20161231.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="fnm-20161231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="fnm-20161231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquity" xlink:href="fnm-20161231.xsd#ConsolidatedStatementsOfChangesInEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquityParenthetical" xlink:href="fnm-20161231.xsd#ConsolidatedStatementsOfChangesInEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:href="fnm-20161231.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncomeParenthetical" xlink:href="fnm-20161231.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationAndTransferOfFinancialAssetsPolicies" xlink:href="fnm-20161231.xsd#ConsolidationAndTransferOfFinancialAssetsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssets" xlink:href="fnm-20161231.xsd#ConsolidationsAndTransfersOfFinancialAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsManagedLoansDetails" xlink:href="fnm-20161231.xsd#ConsolidationsAndTransfersOfFinancialAssetsManagedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTables" xlink:href="fnm-20161231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTransfersOfFinancialAssetsDetails" xlink:href="fnm-20161231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTransfersOfFinancialAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsTypesOfViesDetails" xlink:href="fnm-20161231.xsd#ConsolidationsAndTransfersOfFinancialAssetsTypesOfViesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsAndTransfersOfFinancialAssetsUnconsolidatedViesDetails" xlink:href="fnm-20161231.xsd#ConsolidationsAndTransfersOfFinancialAssetsUnconsolidatedViesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstruments" xlink:href="fnm-20161231.xsd#DerivativeInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives1NotionalAndFvPositionDetails" xlink:href="fnm-20161231.xsd#DerivativeInstrumentsDerivatives1NotionalAndFvPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives2FvGainsAndLossesDetails" xlink:href="fnm-20161231.xsd#DerivativeInstrumentsDerivatives2FvGainsAndLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsNarrativesDetails" xlink:href="fnm-20161231.xsd#DerivativeInstrumentsNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsPolicies" xlink:href="fnm-20161231.xsd#DerivativeInstrumentsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsTables" xlink:href="fnm-20161231.xsd#DerivativeInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/DocumentAndEntityInformation" xlink:href="fnm-20161231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EarningsLossPerShare" xlink:href="fnm-20161231.xsd#EarningsLossPerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EarningsLossPerShareDetails" xlink:href="fnm-20161231.xsd#EarningsLossPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EarningsLossPerShareTables" xlink:href="fnm-20161231.xsd#EarningsLossPerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/Equity" xlink:href="fnm-20161231.xsd#Equity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityAccumulatedOtherComprehensiveIncomeDetails" xlink:href="fnm-20161231.xsd#EquityAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityChangesInAociDetails" xlink:href="fnm-20161231.xsd#EquityChangesInAociDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityNarrativesDetails" xlink:href="fnm-20161231.xsd#EquityNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityScheduleOfStockByClassDetails" xlink:href="fnm-20161231.xsd#EquityScheduleOfStockByClassDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityTables" xlink:href="fnm-20161231.xsd#EquityTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValue" xlink:href="fnm-20161231.xsd#FairValue" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueChangesInFvUnderFvOptionDetails" xlink:href="fnm-20161231.xsd#FairValueChangesInFvUnderFvOptionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3RollforwardDetails" xlink:href="fnm-20161231.xsd#FairValueLevel3RollforwardDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3ValuationInputsRecurringDetails" xlink:href="fnm-20161231.xsd#FairValueLevel3ValuationInputsRecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3ValuationNonrecurringDetails" xlink:href="fnm-20161231.xsd#FairValueLevel3ValuationNonrecurringDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevelsHierarchyDetails" xlink:href="fnm-20161231.xsd#FairValueLevelsHierarchyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueOfFinancialInstrumentsDetails" xlink:href="fnm-20161231.xsd#FairValueOfFinancialInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueOptionDetails" xlink:href="fnm-20161231.xsd#FairValueOptionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValuePolicies" xlink:href="fnm-20161231.xsd#FairValuePolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueTables" xlink:href="fnm-20161231.xsd#FairValueTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuarantees" xlink:href="fnm-20161231.xsd#FinancialGuarantees" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuaranteesAndMaximumRecoveryDetails" xlink:href="fnm-20161231.xsd#FinancialGuaranteesAndMaximumRecoveryDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuaranteesTables" xlink:href="fnm-20161231.xsd#FinancialGuaranteesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxPolicies" xlink:href="fnm-20161231.xsd#IncomeTaxPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxes" xlink:href="fnm-20161231.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:href="fnm-20161231.xsd#IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesProvisionBenefitForIncomeTaxesDetails" xlink:href="fnm-20161231.xsd#IncomeTaxesProvisionBenefitForIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesTables" xlink:href="fnm-20161231.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:href="fnm-20161231.xsd#IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecurities" xlink:href="fnm-20161231.xsd#InvestmentsInSecurities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities1Details" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities2Details" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesAvailableForSaleSecurities3Details" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesAvailableForSaleSecurities3Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesMaturityInformationDetails" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesMaturityInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesOtherThanTemporaryImpairments1Details" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesOtherThanTemporaryImpairments1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesOtherThanTemporaryImpairments2Details" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesOtherThanTemporaryImpairments2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesOtherThanTemporaryImpairments3Details" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesOtherThanTemporaryImpairments3Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesPolicies" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTables" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTrading1Details" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesTrading1Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsInSecuritiesTrading2Details" xlink:href="fnm-20161231.xsd#InvestmentsInSecuritiesTrading2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/LoansInMortgagePortfolioDetails" xlink:href="fnm-20161231.xsd#LoansInMortgagePortfolioDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/LongTermDebtDetails" xlink:href="fnm-20161231.xsd#LongTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoans" xlink:href="fnm-20161231.xsd#MortgageLoans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansAgingDetails" xlink:href="fnm-20161231.xsd#MortgageLoansAgingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsMfDetails" xlink:href="fnm-20161231.xsd#MortgageLoansCreditQualityIndicatorsMfDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsSfDetails" xlink:href="fnm-20161231.xsd#MortgageLoansCreditQualityIndicatorsSfDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoans2Details" xlink:href="fnm-20161231.xsd#MortgageLoansIndividuallyImpairedLoans2Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoansDetails" xlink:href="fnm-20161231.xsd#MortgageLoansIndividuallyImpairedLoansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansPolicies" xlink:href="fnm-20161231.xsd#MortgageLoansPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTables" xlink:href="fnm-20161231.xsd#MortgageLoansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTdrsDetails" xlink:href="fnm-20161231.xsd#MortgageLoansTdrsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTdrsWithSubDefaultsDetails" xlink:href="fnm-20161231.xsd#MortgageLoansTdrsWithSubDefaultsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangements" xlink:href="fnm-20161231.xsd#NettingArrangements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsDetails" xlink:href="fnm-20161231.xsd#NettingArrangementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsDetailsCalc2" xlink:href="fnm-20161231.xsd#NettingArrangementsDetailsCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsNarrativesDetails" xlink:href="fnm-20161231.xsd#NettingArrangementsNarrativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsPolicies" xlink:href="fnm-20161231.xsd#NettingArrangementsPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsTables" xlink:href="fnm-20161231.xsd#NettingArrangementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirements" xlink:href="fnm-20161231.xsd#RegulatoryCapitalRequirements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsDetails" xlink:href="fnm-20161231.xsd#RegulatoryCapitalRequirementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsTables" xlink:href="fnm-20161231.xsd#RegulatoryCapitalRequirementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReporting" xlink:href="fnm-20161231.xsd#SegmentReporting" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingAssetsDetails" xlink:href="fnm-20161231.xsd#SegmentReportingAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingDetails" xlink:href="fnm-20161231.xsd#SegmentReportingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingNarrativeDetails" xlink:href="fnm-20161231.xsd#SegmentReportingNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingPolicies" xlink:href="fnm-20161231.xsd#SegmentReportingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingTables" xlink:href="fnm-20161231.xsd#SegmentReportingTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnaudited" xlink:href="fnm-20161231.xsd#SelectedQuarterlyFinancialInformationUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:href="fnm-20161231.xsd#SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedTables" xlink:href="fnm-20161231.xsd#SelectedQuarterlyFinancialInformationUnauditedTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermBorrowingsAndLongTermDebt" xlink:href="fnm-20161231.xsd#ShortTermBorrowingsAndLongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermBorrowingsAndLongTermDebtCharacteristicsOfDebtDetails" xlink:href="fnm-20161231.xsd#ShortTermBorrowingsAndLongTermDebtCharacteristicsOfDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermBorrowingsAndLongTermDebtTables" xlink:href="fnm-20161231.xsd#ShortTermBorrowingsAndLongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermBorrowingsDetails" xlink:href="fnm-20161231.xsd#ShortTermBorrowingsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="fnm-20161231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesAdvancesToLendersDetails" xlink:href="fnm-20161231.xsd#SummaryOfSignificantAccountingPoliciesAdvancesToLendersDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesEmployeeRetirementBenefitsDetails" xlink:href="fnm-20161231.xsd#SummaryOfSignificantAccountingPoliciesEmployeeRetirementBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesFeeAndOtherIncomeDetails" xlink:href="fnm-20161231.xsd#SummaryOfSignificantAccountingPoliciesFeeAndOtherIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesInvestmentsInSecuritiesDetails" xlink:href="fnm-20161231.xsd#SummaryOfSignificantAccountingPoliciesInvestmentsInSecuritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesOrganizationDetails" xlink:href="fnm-20161231.xsd#SummaryOfSignificantAccountingPoliciesOrganizationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="fnm-20161231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesRelatedPartiesDetails" xlink:href="fnm-20161231.xsd#SummaryOfSignificantAccountingPoliciesRelatedPartiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesReserveForGuarantyLossesDetails" xlink:href="fnm-20161231.xsd#SummaryOfSignificantAccountingPoliciesReserveForGuarantyLossesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryOfSignificantAccountingPoliciesUseOfEstimatesDetails" xlink:href="fnm-20161231.xsd#SummaryOfSignificantAccountingPoliciesUseOfEstimatesDetails" xlink:type="simple" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AcquiredPropertyNet" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AcquiredPropertyNetDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RealEstateAcquiredThroughForeclosure" xlink:label="loc_us-gaap_RealEstateAcquiredThroughForeclosure_9aa93112-3fc5-3ab9-8d9e-c7af7eb504d5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RealEstateGrossAtCarryingValue" xlink:label="loc_us-gaap_RealEstateGrossAtCarryingValue_ea7d4568-28e2-b4a3-cc98-f125689e8d83" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealEstateAcquiredThroughForeclosure_9aa93112-3fc5-3ab9-8d9e-c7af7eb504d5" xlink:to="loc_us-gaap_RealEstateGrossAtCarryingValue_ea7d4568-28e2-b4a3-cc98-f125689e8d83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RealEstateOwnedValuationAllowance" xlink:label="loc_us-gaap_RealEstateOwnedValuationAllowance_0b0dfb18-e76b-9cb5-c101-e7d568d64d20" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealEstateAcquiredThroughForeclosure_9aa93112-3fc5-3ab9-8d9e-c7af7eb504d5" xlink:to="loc_us-gaap_RealEstateOwnedValuationAllowance_0b0dfb18-e76b-9cb5-c101-e7d568d64d20" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AcquiredPropertyNetPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AcquiredPropertyNetTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceForLoanLosses" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceForLoanLossesAndTotalRecordedInvestmentInHfiLoansDetails" xlink:type="extended">
    <link:loc xlink:href="fnm-20161231.xsd#fnm_RecordedInvestmentMortgageLoansHeldForInvestment" xlink:label="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_e3f356f6-216b-e2e7-70eb-91836b0a6576" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_f72be198-0ba7-a883-bc31-2274307c25c3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_e3f356f6-216b-e2e7-70eb-91836b0a6576" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_f72be198-0ba7-a883-bc31-2274307c25c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_50534a5b-d4db-676a-5277-7b744795be9a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_e3f356f6-216b-e2e7-70eb-91836b0a6576" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_50534a5b-d4db-676a-5277-7b744795be9a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_c8c8f6d3-0d42-3d9d-2210-8cd867e1cd0b" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_87b7dc71-509b-90ea-5b02-1450a3698106" 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_c8c8f6d3-0d42-3d9d-2210-8cd867e1cd0b" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_87b7dc71-509b-90ea-5b02-1450a3698106" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_d38ce1bd-58bd-e111-03d9-7224a416f35e" 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_c8c8f6d3-0d42-3d9d-2210-8cd867e1cd0b" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_d38ce1bd-58bd-e111-03d9-7224a416f35e" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_ab95e8f2-93e0-6140-6e56-a79823c16c0d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_00eaf688-6963-ad8a-03b8-e257d107b9c7" 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_ab95e8f2-93e0-6140-6e56-a79823c16c0d" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_00eaf688-6963-ad8a-03b8-e257d107b9c7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_5519a64c-2a56-b1d5-2ab3-ee16d7d2a7a5" 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_ab95e8f2-93e0-6140-6e56-a79823c16c0d" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_5519a64c-2a56-b1d5-2ab3-ee16d7d2a7a5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_2154b0cd-b6a4-a252-5801-385edf9d9702" 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_ab95e8f2-93e0-6140-6e56-a79823c16c0d" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_2154b0cd-b6a4-a252-5801-385edf9d9702" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_c2ad5d03-49c6-819a-1ac6-e6584eea34ff" 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_ab95e8f2-93e0-6140-6e56-a79823c16c0d" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_c2ad5d03-49c6-819a-1ac6-e6584eea34ff" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_d7e45dda-b3de-1974-4726-54d18939cd1c" 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_ab95e8f2-93e0-6140-6e56-a79823c16c0d" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_d7e45dda-b3de-1974-4726-54d18939cd1c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_b89e7a90-e5d1-031a-5e13-781005c7ec6e" 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_ab95e8f2-93e0-6140-6e56-a79823c16c0d" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_b89e7a90-e5d1-031a-5e13-781005c7ec6e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PurchaseObligation" xlink:label="loc_us-gaap_PurchaseObligation_f32ecee6-1142-48c2-4035-c81c0bf0027d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_db6b9dd0-64ed-efd0-c39b-80f28f868045" 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_f32ecee6-1142-48c2-4035-c81c0bf0027d" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_db6b9dd0-64ed-efd0-c39b-80f28f868045" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PurchaseObligationDueInSecondYear" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_452a6a96-21ee-75d5-a65d-d9d2c6627d22" 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_f32ecee6-1142-48c2-4035-c81c0bf0027d" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_452a6a96-21ee-75d5-a65d-d9d2c6627d22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PurchaseObligationDueInThirdYear" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_eeeef7a8-3f56-2e6d-970d-3089ee034554" 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_f32ecee6-1142-48c2-4035-c81c0bf0027d" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_eeeef7a8-3f56-2e6d-970d-3089ee034554" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PurchaseObligationDueInFourthYear" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_f99191a6-493f-bde1-f4de-bb6bc4382eb3" 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_f32ecee6-1142-48c2-4035-c81c0bf0027d" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_f99191a6-493f-bde1-f4de-bb6bc4382eb3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PurchaseObligationDueInFifthYear" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_3b1abc6f-0316-c51d-47d0-9f72f712a6d1" 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_f32ecee6-1142-48c2-4035-c81c0bf0027d" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_3b1abc6f-0316-c51d-47d0-9f72f712a6d1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PurchaseObligationDueAfterFifthYear" xlink:label="loc_us-gaap_PurchaseObligationDueAfterFifthYear_d1d659a7-6bc6-788b-079b-1b8726691428" 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_f32ecee6-1142-48c2-4035-c81c0bf0027d" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_d1d659a7-6bc6-788b-079b-1b8726691428" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherCommitment" xlink:label="loc_us-gaap_OtherCommitment_c5d0e1d5-08f0-53a5-7972-eca4ac0bde34" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherCommitmentDueInNextTwelveMonths" xlink:label="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_2889b927-27fb-af9a-8c89-77d9c02506e7" 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_c5d0e1d5-08f0-53a5-7972-eca4ac0bde34" xlink:to="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_2889b927-27fb-af9a-8c89-77d9c02506e7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherCommitmentDueInSecondYear" xlink:label="loc_us-gaap_OtherCommitmentDueInSecondYear_87d99d65-7ef9-c19f-cb30-9199c9bd4e76" 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_c5d0e1d5-08f0-53a5-7972-eca4ac0bde34" xlink:to="loc_us-gaap_OtherCommitmentDueInSecondYear_87d99d65-7ef9-c19f-cb30-9199c9bd4e76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherCommitmentDueInThirdYear" xlink:label="loc_us-gaap_OtherCommitmentDueInThirdYear_6c3f6bba-f287-1119-ed61-5f9ba78e56b9" 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_c5d0e1d5-08f0-53a5-7972-eca4ac0bde34" xlink:to="loc_us-gaap_OtherCommitmentDueInThirdYear_6c3f6bba-f287-1119-ed61-5f9ba78e56b9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherCommitmentDueInFourthYear" xlink:label="loc_us-gaap_OtherCommitmentDueInFourthYear_39b450ad-bccf-2254-c438-4e24ca6b538b" 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_c5d0e1d5-08f0-53a5-7972-eca4ac0bde34" xlink:to="loc_us-gaap_OtherCommitmentDueInFourthYear_39b450ad-bccf-2254-c438-4e24ca6b538b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherCommitmentDueInFifthYear" xlink:label="loc_us-gaap_OtherCommitmentDueInFifthYear_15909048-e0cf-347a-a0f4-07564689d0af" 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_c5d0e1d5-08f0-53a5-7972-eca4ac0bde34" xlink:to="loc_us-gaap_OtherCommitmentDueInFifthYear_15909048-e0cf-347a-a0f4-07564689d0af" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherCommitmentDueAfterFifthYear" xlink:label="loc_us-gaap_OtherCommitmentDueAfterFifthYear_33b4e013-1ad1-5cfe-ed75-bc679f4b2614" 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_c5d0e1d5-08f0-53a5-7972-eca4ac0bde34" xlink:to="loc_us-gaap_OtherCommitmentDueAfterFifthYear_33b4e013-1ad1-5cfe-ed75-bc679f4b2614" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_04e17fb3-9b77-1c98-f460-7f5dd0c01008" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_6d3ec995-5062-ef92-dd72-b570c1eafdc8" 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_04e17fb3-9b77-1c98-f460-7f5dd0c01008" xlink:to="loc_us-gaap_Liabilities_6d3ec995-5062-ef92-dd72-b570c1eafdc8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_48ae1e41-8bb7-d139-f404-61b44b37e179" 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_04e17fb3-9b77-1c98-f460-7f5dd0c01008" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_48ae1e41-8bb7-d139-f404-61b44b37e179" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_2644da13-7baa-0a2f-63e0-0906a691ba01" 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_48ae1e41-8bb7-d139-f404-61b44b37e179" xlink:to="loc_us-gaap_StockholdersEquity_2644da13-7baa-0a2f-63e0-0906a691ba01" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_SeniorPreferredStockValue" xlink:label="loc_fnm_SeniorPreferredStockValue_2e8709d2-bd96-e6a0-ec98-91836a261a47" 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_2644da13-7baa-0a2f-63e0-0906a691ba01" xlink:to="loc_fnm_SeniorPreferredStockValue_2e8709d2-bd96-e6a0-ec98-91836a261a47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_3c8f3df4-466c-f78c-b021-17337fc4a147" 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_2644da13-7baa-0a2f-63e0-0906a691ba01" xlink:to="loc_us-gaap_PreferredStockValue_3c8f3df4-466c-f78c-b021-17337fc4a147" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_d53388e7-4c8c-4e6d-6e90-7a6e0a100b74" 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_2644da13-7baa-0a2f-63e0-0906a691ba01" xlink:to="loc_us-gaap_CommonStockValue_d53388e7-4c8c-4e6d-6e90-7a6e0a100b74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_f759e73e-9f4f-941e-1138-49bc44f6b118" 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_2644da13-7baa-0a2f-63e0-0906a691ba01" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_f759e73e-9f4f-941e-1138-49bc44f6b118" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_aeb1020a-508a-a8c1-f34c-bafff16c26cb" 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_2644da13-7baa-0a2f-63e0-0906a691ba01" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_aeb1020a-508a-a8c1-f34c-bafff16c26cb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_d36dfcc8-b62a-1868-1a67-2bd77655103a" 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_2644da13-7baa-0a2f-63e0-0906a691ba01" xlink:to="loc_us-gaap_TreasuryStockValue_d36dfcc8-b62a-1868-1a67-2bd77655103a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinorityInterestInOperatingPartnerships" xlink:label="loc_us-gaap_MinorityInterestInOperatingPartnerships_4ad76079-f805-50fe-617f-9f5918fa2ffe" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_48ae1e41-8bb7-d139-f404-61b44b37e179" xlink:to="loc_us-gaap_MinorityInterestInOperatingPartnerships_4ad76079-f805-50fe-617f-9f5918fa2ffe" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_49d65a66-0444-b198-9d28-5c0811b1bdf3" 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_04e17fb3-9b77-1c98-f460-7f5dd0c01008" xlink:to="loc_us-gaap_CommitmentsAndContingencies_49d65a66-0444-b198-9d28-5c0811b1bdf3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_08bee809-e27e-48c3-da2d-5d52948eb470" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_308d45ee-f404-eda1-c95a-704fc5d0fb0a" 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_08bee809-e27e-48c3-da2d-5d52948eb470" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_308d45ee-f404-eda1-c95a-704fc5d0fb0a" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_LoansHeldforSale" xlink:label="loc_fnm_LoansHeldforSale_5dd57ee6-8fee-4965-c5cc-91836b362f17" 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_308d45ee-f404-eda1-c95a-704fc5d0fb0a" xlink:to="loc_fnm_LoansHeldforSale_5dd57ee6-8fee-4965-c5cc-91836b362f17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_91cfa20f-29ad-9dbb-f8e0-94ff86230e1a" 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_308d45ee-f404-eda1-c95a-704fc5d0fb0a" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_91cfa20f-29ad-9dbb-f8e0-94ff86230e1a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LoansAndLeasesReceivableConsumerRealEstate" xlink:label="loc_us-gaap_LoansAndLeasesReceivableConsumerRealEstate_f548ed10-a6ae-95b3-5021-b41cb00db00e" 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_91cfa20f-29ad-9dbb-f8e0-94ff86230e1a" xlink:to="loc_us-gaap_LoansAndLeasesReceivableConsumerRealEstate_f548ed10-a6ae-95b3-5021-b41cb00db00e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_c8c8f6d3-0d42-3d9d-2210-8cd867e1cd0b" 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_91cfa20f-29ad-9dbb-f8e0-94ff86230e1a" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_c8c8f6d3-0d42-3d9d-2210-8cd867e1cd0b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_dad43eb1-2d05-8e6b-1503-6a61e00404ca" 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_08bee809-e27e-48c3-da2d-5d52948eb470" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_dad43eb1-2d05-8e6b-1503-6a61e00404ca" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaap_InterestReceivable_74579b51-461d-0f61-62b7-4c0cad213b39" 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_08bee809-e27e-48c3-da2d-5d52948eb470" xlink:to="loc_us-gaap_InterestReceivable_74579b51-461d-0f61-62b7-4c0cad213b39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RealEstateAcquiredThroughForeclosure" xlink:label="loc_us-gaap_RealEstateAcquiredThroughForeclosure_9aa93112-3fc5-3ab9-8d9e-c7af7eb504d5" 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_08bee809-e27e-48c3-da2d-5d52948eb470" xlink:to="loc_us-gaap_RealEstateAcquiredThroughForeclosure_9aa93112-3fc5-3ab9-8d9e-c7af7eb504d5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_89f93c65-85fd-29e8-1936-9df58443c9af" 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_08bee809-e27e-48c3-da2d-5d52948eb470" xlink:to="loc_us-gaap_OtherAssets_89f93c65-85fd-29e8-1936-9df58443c9af" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_ec544f28-9c7b-137c-e428-9ae47c2375fc" 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_08bee809-e27e-48c3-da2d-5d52948eb470" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_ec544f28-9c7b-137c-e428-9ae47c2375fc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_459b3f9f-4874-7d47-0194-45a5244272ea" 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_08bee809-e27e-48c3-da2d-5d52948eb470" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_459b3f9f-4874-7d47-0194-45a5244272ea" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell" xlink:label="loc_us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_93bee9f9-75df-b9af-acfb-dbde71eeef7f" 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_08bee809-e27e-48c3-da2d-5d52948eb470" xlink:to="loc_us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_93bee9f9-75df-b9af-acfb-dbde71eeef7f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MarketableSecurities" xlink:label="loc_us-gaap_MarketableSecurities_e0d41443-fbe3-8589-0b5e-5add519a15bf" 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_08bee809-e27e-48c3-da2d-5d52948eb470" xlink:to="loc_us-gaap_MarketableSecurities_e0d41443-fbe3-8589-0b5e-5add519a15bf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_e318d6b4-2ecf-b297-7dfc-1c94aed0ea61" 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_e0d41443-fbe3-8589-0b5e-5add519a15bf" xlink:to="loc_us-gaap_TradingSecuritiesDebt_e318d6b4-2ecf-b297-7dfc-1c94aed0ea61" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_d38a4602-a509-ea84-d4a7-84b6783fb543" 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_e0d41443-fbe3-8589-0b5e-5add519a15bf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_d38a4602-a509-ea84-d4a7-84b6783fb543" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_104af714-3829-5d79-3fb3-059f86c366da" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_08614f0c-c3a2-4c92-7c1d-aed5de18fe70" 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_104af714-3829-5d79-3fb3-059f86c366da" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_08614f0c-c3a2-4c92-7c1d-aed5de18fe70" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_95f67350-d3ec-5d41-e3b2-a4fe7a19e15b" 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_104af714-3829-5d79-3fb3-059f86c366da" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_95f67350-d3ec-5d41-e3b2-a4fe7a19e15b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_975a3fab-7f49-5162-2cb5-31bb1479931f" 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_104af714-3829-5d79-3fb3-059f86c366da" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_975a3fab-7f49-5162-2cb5-31bb1479931f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_00a475d0-9ed4-5ca4-8e09-183f13a0aa46" 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_975a3fab-7f49-5162-2cb5-31bb1479931f" xlink:to="loc_us-gaap_ProfitLoss_00a475d0-9ed4-5ca4-8e09-183f13a0aa46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DepreciationAmortizationAndAccretionNet" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_31fc303b-1b94-6362-1b8a-157609a23bce" 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_975a3fab-7f49-5162-2cb5-31bb1479931f" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_31fc303b-1b94-6362-1b8a-157609a23bce" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_f533c20a-d403-4643-2b71-67a91bfb8e4f" 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_975a3fab-7f49-5162-2cb5-31bb1479931f" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_f533c20a-d403-4643-2b71-67a91bfb8e4f" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_ValuationLossGain" xlink:label="loc_fnm_ValuationLossGain_892ed058-7f7b-fd0f-66a3-d0fc4bb1aef6" 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_975a3fab-7f49-5162-2cb5-31bb1479931f" xlink:to="loc_fnm_ValuationLossGain_892ed058-7f7b-fd0f-66a3-d0fc4bb1aef6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_b3d87511-2215-9289-5d8d-6a8bf4332826" 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_975a3fab-7f49-5162-2cb5-31bb1479931f" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_b3d87511-2215-9289-5d8d-6a8bf4332826" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInTradingSecurities" xlink:label="loc_us-gaap_IncreaseDecreaseInTradingSecurities_58b91730-aa86-bab6-b292-9ffc0404074c" 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_975a3fab-7f49-5162-2cb5-31bb1479931f" xlink:to="loc_us-gaap_IncreaseDecreaseInTradingSecurities_58b91730-aa86-bab6-b292-9ffc0404074c" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements" xlink:label="loc_fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements_1f0ee258-2e82-f48c-86ae-d0fc4d10945a" 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_975a3fab-7f49-5162-2cb5-31bb1479931f" xlink:to="loc_fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements_1f0ee258-2e82-f48c-86ae-d0fc4d10945a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_3118c5e1-ac0c-1fff-4933-ff4c8b5cea88" 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_975a3fab-7f49-5162-2cb5-31bb1479931f" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_3118c5e1-ac0c-1fff-4933-ff4c8b5cea88" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquity" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_d23b2d61-1407-f3f5-ba7b-69860a5b50dd" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_00a475d0-9ed4-5ca4-8e09-183f13a0aa46" 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_d23b2d61-1407-f3f5-ba7b-69860a5b50dd" xlink:to="loc_us-gaap_ProfitLoss_00a475d0-9ed4-5ca4-8e09-183f13a0aa46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_045a7791-44b8-d416-a735-af6ac83e7eb3" 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_d23b2d61-1407-f3f5-ba7b-69860a5b50dd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_045a7791-44b8-d416-a735-af6ac83e7eb3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_2295fde9-6004-04c5-d6d3-8f045ad42e78" 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_d23b2d61-1407-f3f5-ba7b-69860a5b50dd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_2295fde9-6004-04c5-d6d3-8f045ad42e78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_0a713dc3-42ba-18e6-f2ec-b8730236d82a" 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_d23b2d61-1407-f3f5-ba7b-69860a5b50dd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_0a713dc3-42ba-18e6-f2ec-b8730236d82a" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedStatementsOfChangesInEquityParenthetical" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_663a641c-b103-1e10-d3ec-c078ec7a031b" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_d23b2d61-1407-f3f5-ba7b-69860a5b50dd" 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_663a641c-b103-1e10-d3ec-c078ec7a031b" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_d23b2d61-1407-f3f5-ba7b-69860a5b50dd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_00a475d0-9ed4-5ca4-8e09-183f13a0aa46" 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_d23b2d61-1407-f3f5-ba7b-69860a5b50dd" xlink:to="loc_us-gaap_ProfitLoss_00a475d0-9ed4-5ca4-8e09-183f13a0aa46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_5ba85eae-c4c2-72cc-f9e5-b0edc41783e5" 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_00a475d0-9ed4-5ca4-8e09-183f13a0aa46" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_5ba85eae-c4c2-72cc-f9e5-b0edc41783e5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9b166675-b7b2-1067-1806-03b1ee0126f1" 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_00a475d0-9ed4-5ca4-8e09-183f13a0aa46" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_9b166675-b7b2-1067-1806-03b1ee0126f1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_369c90d1-6da1-8050-c604-fad527301a92" 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_d23b2d61-1407-f3f5-ba7b-69860a5b50dd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_369c90d1-6da1-8050-c604-fad527301a92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_0f105a40-393d-896e-47b8-344549074b13" 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_369c90d1-6da1-8050-c604-fad527301a92" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_0f105a40-393d-896e-47b8-344549074b13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_0a713dc3-42ba-18e6-f2ec-b8730236d82a" 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_369c90d1-6da1-8050-c604-fad527301a92" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_0a713dc3-42ba-18e6-f2ec-b8730236d82a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_eddbf4fa-a79b-3699-85e9-ca7ce5eef536" 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_663a641c-b103-1e10-d3ec-c078ec7a031b" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_eddbf4fa-a79b-3699-85e9-ca7ce5eef536" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_8ddbe6f3-4d72-c09b-36f4-9005265a7a64" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_2b63fac5-7a72-3880-3fd2-630099895af7" 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_8ddbe6f3-4d72-c09b-36f4-9005265a7a64" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_2b63fac5-7a72-3880-3fd2-630099895af7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_6494510a-4df0-83f7-7461-428073641d92" 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_2b63fac5-7a72-3880-3fd2-630099895af7" xlink:to="loc_us-gaap_LaborAndRelatedExpense_6494510a-4df0-83f7-7461-428073641d92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProfessionalAndContractServicesExpense" xlink:label="loc_us-gaap_ProfessionalAndContractServicesExpense_4f04a119-46cb-a13d-6b68-75cbe8f56226" 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_2b63fac5-7a72-3880-3fd2-630099895af7" xlink:to="loc_us-gaap_ProfessionalAndContractServicesExpense_4f04a119-46cb-a13d-6b68-75cbe8f56226" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OccupancyNet" xlink:label="loc_us-gaap_OccupancyNet_c749a9ca-9cf9-f773-ef9f-16d67b3bf2f6" 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_2b63fac5-7a72-3880-3fd2-630099895af7" xlink:to="loc_us-gaap_OccupancyNet_c749a9ca-9cf9-f773-ef9f-16d67b3bf2f6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_OtherGeneralAndAdministrativeExpense_4f0423c2-a659-853d-f51c-6ff80b8a820a" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GeneralAndAdministrativeExpense_2b63fac5-7a72-3880-3fd2-630099895af7" xlink:to="loc_us-gaap_OtherGeneralAndAdministrativeExpense_4f0423c2-a659-853d-f51c-6ff80b8a820a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeclosedRealEstateExpense" xlink:label="loc_us-gaap_ForeclosedRealEstateExpense_55a99753-6209-7904-b74b-604e41977af7" 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_8ddbe6f3-4d72-c09b-36f4-9005265a7a64" xlink:to="loc_us-gaap_ForeclosedRealEstateExpense_55a99753-6209-7904-b74b-604e41977af7" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011" xlink:label="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_18037425-9772-50fd-1553-91836a0f3fff" 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_8ddbe6f3-4d72-c09b-36f4-9005265a7a64" xlink:to="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_18037425-9772-50fd-1553-91836a0f3fff" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_5e15a29c-ce94-e630-9055-a1d50090c7f3" 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_8ddbe6f3-4d72-c09b-36f4-9005265a7a64" xlink:to="loc_us-gaap_OtherNoninterestExpense_5e15a29c-ce94-e630-9055-a1d50090c7f3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_57b518da-1b50-a6b5-0d88-91813c4591f6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestIncomeExpenseNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_e015c137-2688-2671-ea53-ff539f6b64b3" 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_57b518da-1b50-a6b5-0d88-91813c4591f6" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_e015c137-2688-2671-ea53-ff539f6b64b3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_86b99f0f-bfc5-7967-2fd1-bfdfdf9d589d" 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_e015c137-2688-2671-ea53-ff539f6b64b3" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_86b99f0f-bfc5-7967-2fd1-bfdfdf9d589d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_70e9d884-465f-16d2-0202-de54daa414bf" 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_86b99f0f-bfc5-7967-2fd1-bfdfdf9d589d" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_70e9d884-465f-16d2-0202-de54daa414bf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_0fbf31c0-2177-d2bb-d61b-031dc752ccb6" 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_86b99f0f-bfc5-7967-2fd1-bfdfdf9d589d" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_0fbf31c0-2177-d2bb-d61b-031dc752ccb6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_3dd68de5-7f79-10e1-9375-40d2d6ab7560" 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_86b99f0f-bfc5-7967-2fd1-bfdfdf9d589d" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_3dd68de5-7f79-10e1-9375-40d2d6ab7560" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherInterestAndDividendIncome" xlink:label="loc_us-gaap_OtherInterestAndDividendIncome_3b837cf9-779d-fcb0-4095-2f8fe5afbb94" 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_86b99f0f-bfc5-7967-2fd1-bfdfdf9d589d" xlink:to="loc_us-gaap_OtherInterestAndDividendIncome_3b837cf9-779d-fcb0-4095-2f8fe5afbb94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_4b6ddf50-6253-3349-fa29-8fc77f744f58" 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_e015c137-2688-2671-ea53-ff539f6b64b3" xlink:to="loc_us-gaap_InterestExpense_4b6ddf50-6253-3349-fa29-8fc77f744f58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestExpenseShortTermBorrowings" xlink:label="loc_us-gaap_InterestExpenseShortTermBorrowings_2732be83-4c3c-3d8f-ccf9-5edfaee69f30" 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_4b6ddf50-6253-3349-fa29-8fc77f744f58" xlink:to="loc_us-gaap_InterestExpenseShortTermBorrowings_2732be83-4c3c-3d8f-ccf9-5edfaee69f30" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestExpenseLongTermDebt" xlink:label="loc_us-gaap_InterestExpenseLongTermDebt_e6856dcb-c360-0c88-bf44-34fc36a13726" 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_4b6ddf50-6253-3349-fa29-8fc77f744f58" xlink:to="loc_us-gaap_InterestExpenseLongTermDebt_e6856dcb-c360-0c88-bf44-34fc36a13726" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_f533c20a-d403-4643-2b71-67a91bfb8e4f" 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_57b518da-1b50-a6b5-0d88-91813c4591f6" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_f533c20a-d403-4643-2b71-67a91bfb8e4f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_f35f4171-a045-60de-4b72-13daafbacefd" xlink:type="locator" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_InvestmentGainsLossNet1" xlink:label="loc_fnm_InvestmentGainsLossNet1_33e32d9e-965c-44b2-d5b5-91836b5d5f43" 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_f35f4171-a045-60de-4b72-13daafbacefd" xlink:to="loc_fnm_InvestmentGainsLossNet1_33e32d9e-965c-44b2-d5b5-91836b5d5f43" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_FairValueGainsLossesNet" xlink:label="loc_fnm_FairValueGainsLossesNet_4eaac066-1a1a-b560-dc1c-91836b5b536a" 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_f35f4171-a045-60de-4b72-13daafbacefd" xlink:to="loc_fnm_FairValueGainsLossesNet_4eaac066-1a1a-b560-dc1c-91836b5b536a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_123eb8c2-270b-5be6-ddd2-6bcc6ed8eaac" 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_f35f4171-a045-60de-4b72-13daafbacefd" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_123eb8c2-270b-5be6-ddd2-6bcc6ed8eaac" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_11a7c554-b3e3-7a3c-a81e-5c5ff89c25e9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_8baf87d5-5f2f-7d0d-cb85-b9f249bae0c5" 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_11a7c554-b3e3-7a3c-a81e-5c5ff89c25e9" xlink:to="loc_us-gaap_NetIncomeLoss_8baf87d5-5f2f-7d0d-cb85-b9f249bae0c5" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_8baf87d5-5f2f-7d0d-cb85-b9f249bae0c5" xlink:to="loc_us-gaap_ProfitLoss_00a475d0-9ed4-5ca4-8e09-183f13a0aa46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_57932a93-02bc-f4e7-4538-5a7fc65a1b5b" 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_8baf87d5-5f2f-7d0d-cb85-b9f249bae0c5" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_57932a93-02bc-f4e7-4538-5a7fc65a1b5b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_779dbeca-7060-8fa9-de51-20184cf1677b" 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_11a7c554-b3e3-7a3c-a81e-5c5ff89c25e9" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_779dbeca-7060-8fa9-de51-20184cf1677b" 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/ConsolidationAndTransferOfFinancialAssetsPolicies" 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/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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet" xlink:label="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssetsAndLiabilitiesNet_16f878ab-dc3f-c75e-fbcf-60b06df8f6a5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TradingSecuritiesDebt" xlink:label="loc_us-gaap_TradingSecuritiesDebt_e318d6b4-2ecf-b297-7dfc-1c94aed0ea61" 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_16f878ab-dc3f-c75e-fbcf-60b06df8f6a5" xlink:to="loc_us-gaap_TradingSecuritiesDebt_e318d6b4-2ecf-b297-7dfc-1c94aed0ea61" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_d38a4602-a509-ea84-d4a7-84b6783fb543" 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_16f878ab-dc3f-c75e-fbcf-60b06df8f6a5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_d38a4602-a509-ea84-d4a7-84b6783fb543" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_89f93c65-85fd-29e8-1936-9df58443c9af" 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_16f878ab-dc3f-c75e-fbcf-60b06df8f6a5" xlink:to="loc_us-gaap_OtherAssets_89f93c65-85fd-29e8-1936-9df58443c9af" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_66ed6ae5-8093-76ad-2daf-2d375db91738" 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_16f878ab-dc3f-c75e-fbcf-60b06df8f6a5" xlink:to="loc_us-gaap_OtherLiabilities_66ed6ae5-8093-76ad-2daf-2d375db91738" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_c2ab90d9-c643-36b5-fcb1-44399f5af01d" xlink:type="locator" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DerivativeAssetsInterestReceivable" xlink:label="loc_fnm_DerivativeAssetsInterestReceivable_d0c73bd5-2cd5-68dc-fbcf-91836ca9d589" 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_c2ab90d9-c643-36b5-fcb1-44399f5af01d" xlink:to="loc_fnm_DerivativeAssetsInterestReceivable_d0c73bd5-2cd5-68dc-fbcf-91836ca9d589" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_6e91d1f4-7c5e-e721-2c80-b5ed6b1b2529" 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_c2ab90d9-c643-36b5-fcb1-44399f5af01d" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_6e91d1f4-7c5e-e721-2c80-b5ed6b1b2529" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DerivativeFairValueGrossAssetAllDerivatives" xlink:label="loc_fnm_DerivativeFairValueGrossAssetAllDerivatives_8c7f811d-c580-af8d-072a-91836a994e55" 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_c2ab90d9-c643-36b5-fcb1-44399f5af01d" xlink:to="loc_fnm_DerivativeFairValueGrossAssetAllDerivatives_8c7f811d-c580-af8d-072a-91836a994e55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_4ae0c14d-f040-07bc-a290-e35634191a44" xlink:type="locator" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives" xlink:label="loc_fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives_6ccaa710-782a-3eeb-4a14-91836bcdb37a" 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_4ae0c14d-f040-07bc-a290-e35634191a44" xlink:to="loc_fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives_6ccaa710-782a-3eeb-4a14-91836bcdb37a" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DerivativeLiabilityInterestPayable" xlink:label="loc_fnm_DerivativeLiabilityInterestPayable_a3b8a630-bce6-fc36-eca4-918369f6cd14" 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_4ae0c14d-f040-07bc-a290-e35634191a44" xlink:to="loc_fnm_DerivativeLiabilityInterestPayable_a3b8a630-bce6-fc36-eca4-918369f6cd14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_1afb04eb-32f1-facc-f685-8856099206a6" 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_4ae0c14d-f040-07bc-a290-e35634191a44" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_1afb04eb-32f1-facc-f685-8856099206a6" 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/EarningsLossPerShare" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EarningsLossPerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ae404dc0-76bc-cd1d-811f-e233c07e0569" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_e841a58a-f12e-0adc-36de-0299a43719a9" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ae404dc0-76bc-cd1d-811f-e233c07e0569" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_e841a58a-f12e-0adc-36de-0299a43719a9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToConversionOfPreferredStock" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfPreferredStock_3d701ec2-4611-de54-a882-58959f96c415" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ae404dc0-76bc-cd1d-811f-e233c07e0569" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfPreferredStock_3d701ec2-4611-de54-a882-58959f96c415" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EarningsLossPerShareTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/Equity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_aeb1020a-508a-a8c1-f34c-bafff16c26cb" xlink:type="locator" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded" xlink:label="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded_c1fd386a-0284-6eda-6138-91836b7f902d" 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_aeb1020a-508a-a8c1-f34c-bafff16c26cb" xlink:to="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded_c1fd386a-0284-6eda-6138-91836b7f902d" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded" xlink:label="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded_26a358d0-2049-1301-5d30-91836c65174f" 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_aeb1020a-508a-a8c1-f34c-bafff16c26cb" xlink:to="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleGainLossOtherThanTemporaryImpairmentRecorded_26a358d0-2049-1301-5d30-91836c65174f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_8906f4c3-cd53-5694-e1d7-bcac7afd7cef" 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_aeb1020a-508a-a8c1-f34c-bafff16c26cb" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_8906f4c3-cd53-5694-e1d7-bcac7afd7cef" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityChangesInAociDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_369c90d1-6da1-8050-c604-fad527301a92" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_a5947936-ad1d-a5c1-a96a-7382183b164a" 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_369c90d1-6da1-8050-c604-fad527301a92" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_a5947936-ad1d-a5c1-a96a-7382183b164a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_3cb07dbb-b6b9-b4a1-cf56-3d766658ee02" 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_369c90d1-6da1-8050-c604-fad527301a92" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_3cb07dbb-b6b9-b4a1-cf56-3d766658ee02" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityNarrativesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityScheduleOfStockByClassDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValue" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueChangesInFvUnderFvOptionDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueOptionChangesInFairValueGainLoss1" xlink:label="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss1_81031a3c-c5d6-addf-8364-f979f72109de" xlink:type="locator" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_FairValueOptionCreditRiskGainsLosses" xlink:label="loc_fnm_FairValueOptionCreditRiskGainsLosses_83830644-8640-c9ac-8efb-91836bb17425" 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_81031a3c-c5d6-addf-8364-f979f72109de" xlink:to="loc_fnm_FairValueOptionCreditRiskGainsLosses_83830644-8640-c9ac-8efb-91836bb17425" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_FairValueOptionOtherChangesInFairValueGainLoss" xlink:label="loc_fnm_FairValueOptionOtherChangesInFairValueGainLoss_ecde3931-bc03-eb37-4a17-91836a8599ec" 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_81031a3c-c5d6-addf-8364-f979f72109de" xlink:to="loc_fnm_FairValueOptionOtherChangesInFairValueGainLoss_ecde3931-bc03-eb37-4a17-91836a8599ec" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueOptionCreditRiskGainsLossesOnAssets" xlink:label="loc_us-gaap_FairValueOptionCreditRiskGainsLossesOnAssets_7bb550b7-8b28-3d49-e752-7774001e856a" 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_81031a3c-c5d6-addf-8364-f979f72109de" xlink:to="loc_us-gaap_FairValueOptionCreditRiskGainsLossesOnAssets_7bb550b7-8b28-3d49-e752-7774001e856a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueOptionCreditRiskGainsLossesOnLiabilities" xlink:label="loc_us-gaap_FairValueOptionCreditRiskGainsLossesOnLiabilities_371febef-21c9-668a-e022-b269887bb2b1" 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_81031a3c-c5d6-addf-8364-f979f72109de" xlink:to="loc_us-gaap_FairValueOptionCreditRiskGainsLossesOnLiabilities_371febef-21c9-668a-e022-b269887bb2b1" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_4f567ef5-b8d7-6688-bab2-00271c822568" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_e5a4b2c3-9174-cdce-44ea-adf1bbba9a4f" 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_4f567ef5-b8d7-6688-bab2-00271c822568" xlink:to="loc_us-gaap_LongTermDebtFairValue_e5a4b2c3-9174-cdce-44ea-adf1bbba9a4f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_4ae0c14d-f040-07bc-a290-e35634191a44" 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_4f567ef5-b8d7-6688-bab2-00271c822568" xlink:to="loc_us-gaap_DerivativeLiabilities_4ae0c14d-f040-07bc-a290-e35634191a44" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_1afb04eb-32f1-facc-f685-8856099206a6" xlink:type="locator" />
  </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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_4f567ef5-b8d7-6688-bab2-00271c822568" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_e5a4b2c3-9174-cdce-44ea-adf1bbba9a4f" 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_4f567ef5-b8d7-6688-bab2-00271c822568" xlink:to="loc_us-gaap_LongTermDebtFairValue_e5a4b2c3-9174-cdce-44ea-adf1bbba9a4f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_1503e99b-7965-ca9e-26eb-ff9af4108a7c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MortgagesHeldForSaleFairValueDisclosure" xlink:label="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_b851118e-fc04-3666-817a-582994c59685" 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_1503e99b-7965-ca9e-26eb-ff9af4108a7c" xlink:to="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_b851118e-fc04-3666-817a-582994c59685" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_01be169b-08cc-7c30-55f5-941791d17ef8" 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_1503e99b-7965-ca9e-26eb-ff9af4108a7c" xlink:to="loc_us-gaap_AvailableForSaleSecurities_01be169b-08cc-7c30-55f5-941791d17ef8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_9cf27044-1884-3c5b-db7d-0fdc2a2d4df5" 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_1503e99b-7965-ca9e-26eb-ff9af4108a7c" xlink:to="loc_us-gaap_TradingSecurities_9cf27044-1884-3c5b-db7d-0fdc2a2d4df5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure" xlink:label="loc_us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure_5c028f12-62f6-1fc1-0c27-a561c7e7617d" 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_1503e99b-7965-ca9e-26eb-ff9af4108a7c" xlink:to="loc_us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure_5c028f12-62f6-1fc1-0c27-a561c7e7617d" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure" xlink:label="loc_fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure_89497edd-eee4-36d0-92ca-91836ab68959" 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_1503e99b-7965-ca9e-26eb-ff9af4108a7c" xlink:to="loc_fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure_89497edd-eee4-36d0-92ca-91836ab68959" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_f2e9d9e0-83ed-d3fc-360f-8e85d739d50c" 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_1503e99b-7965-ca9e-26eb-ff9af4108a7c" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_f2e9d9e0-83ed-d3fc-360f-8e85d739d50c" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_AdvancesToLendersFairValueDisclosure" xlink:label="loc_fnm_AdvancesToLendersFairValueDisclosure_bfdf8fa3-042c-420f-58de-91836c40e61a" 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_1503e99b-7965-ca9e-26eb-ff9af4108a7c" xlink:to="loc_fnm_AdvancesToLendersFairValueDisclosure_bfdf8fa3-042c-420f-58de-91836c40e61a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_c2ab90d9-c643-36b5-fcb1-44399f5af01d" 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_1503e99b-7965-ca9e-26eb-ff9af4108a7c" xlink:to="loc_us-gaap_DerivativeAssets_c2ab90d9-c643-36b5-fcb1-44399f5af01d" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure" xlink:label="loc_fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure_f2f28fa9-d3d3-2d79-962d-91836cc1c785" 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_1503e99b-7965-ca9e-26eb-ff9af4108a7c" xlink:to="loc_fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure_f2f28fa9-d3d3-2d79-962d-91836cc1c785" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_01ec1572-4ef3-c4fc-b254-d545dc66e953" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_344334d8-d156-37ea-1859-beb8bda06f5f" 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_01ec1572-4ef3-c4fc-b254-d545dc66e953" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_344334d8-d156-37ea-1859-beb8bda06f5f" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans" xlink:label="loc_fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans_7e30494b-15c1-8dbb-0b97-d0fc4bcda6fd" 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_344334d8-d156-37ea-1859-beb8bda06f5f" xlink:to="loc_fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans_7e30494b-15c1-8dbb-0b97-d0fc4bcda6fd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_32a64537-17da-e6f4-cafa-244e3e8094c0" 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_344334d8-d156-37ea-1859-beb8bda06f5f" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_32a64537-17da-e6f4-cafa-244e3e8094c0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments" xlink:label="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_26d7966a-b6dc-1b96-ce90-0b6448df96c3" 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_344334d8-d156-37ea-1859-beb8bda06f5f" xlink:to="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_26d7966a-b6dc-1b96-ce90-0b6448df96c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_b61e10f5-6f3a-3a33-b0f6-a4899b5ef3dc" 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_344334d8-d156-37ea-1859-beb8bda06f5f" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_b61e10f5-6f3a-3a33-b0f6-a4899b5ef3dc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsEquityMethodInvestments" xlink:label="loc_us-gaap_DeferredTaxAssetsEquityMethodInvestments_76f030d4-8260-ef59-af4d-f3d09d8f1cff" 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_344334d8-d156-37ea-1859-beb8bda06f5f" xlink:to="loc_us-gaap_DeferredTaxAssetsEquityMethodInvestments_76f030d4-8260-ef59-af4d-f3d09d8f1cff" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsOther" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_bdc6598b-bd97-4cc7-9f4f-5d5ac82ed0ed" 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_344334d8-d156-37ea-1859-beb8bda06f5f" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_bdc6598b-bd97-4cc7-9f4f-5d5ac82ed0ed" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_5e84d681-d720-597c-e306-ca1f497f20e3" 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_01ec1572-4ef3-c4fc-b254-d545dc66e953" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_5e84d681-d720-597c-e306-ca1f497f20e3" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross" xlink:label="loc_fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross_55d4b9fa-aa0e-b00a-b8bc-d0fc4cc5fcf0" 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_5e84d681-d720-597c-e306-ca1f497f20e3" xlink:to="loc_fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesGross_55d4b9fa-aa0e-b00a-b8bc-d0fc4cc5fcf0" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_9d686b75-f9ca-45e9-dcb7-a314128deba9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_8e6be169-09a9-5661-71bb-cb6bce1f56f7" 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_9d686b75-f9ca-45e9-dcb7-a314128deba9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_8e6be169-09a9-5661-71bb-cb6bce1f56f7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_5bb91d80-07e8-1dd3-e0ec-ed4d5c7f2436" 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_9d686b75-f9ca-45e9-dcb7-a314128deba9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_5bb91d80-07e8-1dd3-e0ec-ed4d5c7f2436" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_260b0554-5407-84a9-0ddc-c064bbfac41b" 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_9d686b75-f9ca-45e9-dcb7-a314128deba9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_260b0554-5407-84a9-0ddc-c064bbfac41b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_cf7d450d-2365-800c-0e12-31ac27cc146f" 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_9d686b75-f9ca-45e9-dcb7-a314128deba9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_cf7d450d-2365-800c-0e12-31ac27cc146f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9b166675-b7b2-1067-1806-03b1ee0126f1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_7107f7ad-ea23-072c-c2a3-7b97b29553fc" 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_9b166675-b7b2-1067-1806-03b1ee0126f1" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_7107f7ad-ea23-072c-c2a3-7b97b29553fc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_91674616-989d-90e8-1302-b52ff7a33098" 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_9b166675-b7b2-1067-1806-03b1ee0126f1" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_91674616-989d-90e8-1302-b52ff7a33098" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_bca7edb8-274e-a972-85d8-811b7da33e90" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_d38a4602-a509-ea84-d4a7-84b6783fb543" 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_bca7edb8-274e-a972-85d8-811b7da33e90" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_d38a4602-a509-ea84-d4a7-84b6783fb543" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_e53108a7-1cbc-ad68-00fa-93ab35ee9629" 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_bca7edb8-274e-a972-85d8-811b7da33e90" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_e53108a7-1cbc-ad68-00fa-93ab35ee9629" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_84c4a6c6-0ef3-3da8-6f9e-7c79d920503a" 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_bca7edb8-274e-a972-85d8-811b7da33e90" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_84c4a6c6-0ef3-3da8-6f9e-7c79d920503a" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_bca7edb8-274e-a972-85d8-811b7da33e90" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_a50c181f-0453-5919-8665-8079324e58f9" 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_bca7edb8-274e-a972-85d8-811b7da33e90" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_a50c181f-0453-5919-8665-8079324e58f9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_b24dcd92-4945-867f-6553-4a7af8eba8c1" 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_bca7edb8-274e-a972-85d8-811b7da33e90" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_b24dcd92-4945-867f-6553-4a7af8eba8c1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_b2333512-b5d9-3d8d-8970-f412d43b0b75" 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_bca7edb8-274e-a972-85d8-811b7da33e90" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_b2333512-b5d9-3d8d-8970-f412d43b0b75" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_c44ee43c-ea57-7ae4-7808-dd8b3e06495d" 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_bca7edb8-274e-a972-85d8-811b7da33e90" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_c44ee43c-ea57-7ae4-7808-dd8b3e06495d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_d38a4602-a509-ea84-d4a7-84b6783fb543" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_965efc6f-eb6f-63ef-4adb-87ce4d36ac59" 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_d38a4602-a509-ea84-d4a7-84b6783fb543" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_965efc6f-eb6f-63ef-4adb-87ce4d36ac59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_5c8732fe-ca76-da9b-a3da-8e48bed2f627" 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_d38a4602-a509-ea84-d4a7-84b6783fb543" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_5c8732fe-ca76-da9b-a3da-8e48bed2f627" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_cc582372-41ed-006e-c913-2b4658ba681c" 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_d38a4602-a509-ea84-d4a7-84b6783fb543" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_cc582372-41ed-006e-c913-2b4658ba681c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_72e145a0-2e2d-e05d-30c0-946adab599cf" 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_d38a4602-a509-ea84-d4a7-84b6783fb543" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_72e145a0-2e2d-e05d-30c0-946adab599cf" 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/InvestmentsInSecuritiesOtherThanTemporaryImpairments2Details" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsInSecuritiesOtherThanTemporaryImpairments3Details" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_308d45ee-f404-eda1-c95a-704fc5d0fb0a" xlink:type="locator" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance" xlink:label="loc_fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance_7fc10714-de9b-2d6d-63e2-91836a30ab82" 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_308d45ee-f404-eda1-c95a-704fc5d0fb0a" xlink:to="loc_fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance_7fc10714-de9b-2d6d-63e2-91836a30ab82" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet" xlink:label="loc_fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet_d13a7765-3bc1-14b9-30f8-91836cb71fe8" 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_308d45ee-f404-eda1-c95a-704fc5d0fb0a" xlink:to="loc_fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet_d13a7765-3bc1-14b9-30f8-91836cb71fe8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_c8c8f6d3-0d42-3d9d-2210-8cd867e1cd0b" 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_308d45ee-f404-eda1-c95a-704fc5d0fb0a" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_c8c8f6d3-0d42-3d9d-2210-8cd867e1cd0b" 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-20161231.xsd#fnm_RecordedInvestmentMortgageLoansHeldForInvestment" xlink:label="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_e3f356f6-216b-e2e7-70eb-91836b0a6576" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_6b9f00fb-4f59-7e06-296b-a5481d833fa6" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_e3f356f6-216b-e2e7-70eb-91836b0a6576" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_6b9f00fb-4f59-7e06-296b-a5481d833fa6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_b2695118-4ec9-2b89-30ca-fe01dda973b9" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_e3f356f6-216b-e2e7-70eb-91836b0a6576" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_b2695118-4ec9-2b89-30ca-fe01dda973b9" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod_8ee8c489-626c-b76a-d4ad-5726fd414d4a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeAccrualMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeAccrualMethod_41275a4c-8192-666a-ca69-3184229e4f25" 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_8ee8c489-626c-b76a-d4ad-5726fd414d4a" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeAccrualMethod_41275a4c-8192-666a-ca69-3184229e4f25" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeAccrualMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeAccrualMethod_b3b82e67-c44c-154a-c64f-df03413734cd" 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_8ee8c489-626c-b76a-d4ad-5726fd414d4a" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeAccrualMethod_b3b82e67-c44c-154a-c64f-df03413734cd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_34af5dc2-4cb1-c270-5b1d-0ceee57d96fd" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_d4568896-309e-7e66-ec1c-e9bc3993b26b" 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_34af5dc2-4cb1-c270-5b1d-0ceee57d96fd" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_d4568896-309e-7e66-ec1c-e9bc3993b26b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_af1e2f34-9933-8660-2856-dbdf7926f8cf" 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_34af5dc2-4cb1-c270-5b1d-0ceee57d96fd" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_af1e2f34-9933-8660-2856-dbdf7926f8cf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_0aa9dc6b-fad1-397a-b2de-d6010df23bb5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_ee444ada-4a6b-5c31-af10-6c40dd9cfa93" 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_0aa9dc6b-fad1-397a-b2de-d6010df23bb5" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_ee444ada-4a6b-5c31-af10-6c40dd9cfa93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_05b097fe-5f4b-ff0b-7caf-b5e430082fa7" 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_0aa9dc6b-fad1-397a-b2de-d6010df23bb5" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_05b097fe-5f4b-ff0b-7caf-b5e430082fa7" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableRecordedInvestment_cb1d4b08-a7d2-d29e-9a32-27c406fe9363" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_dd5d98f9-1325-6c8a-7dff-d311d89175c4" 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_cb1d4b08-a7d2-d29e-9a32-27c406fe9363" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment_dd5d98f9-1325-6c8a-7dff-d311d89175c4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_24adfe3b-bf22-da91-1804-293d11302622" 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_cb1d4b08-a7d2-d29e-9a32-27c406fe9363" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment_24adfe3b-bf22-da91-1804-293d11302622" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance_10273d4a-2af9-49b8-00ce-0ef9871a5550" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_e1a699b6-6f0c-367f-9aad-e312ff69efa4" 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_10273d4a-2af9-49b8-00ce-0ef9871a5550" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance_e1a699b6-6f0c-367f-9aad-e312ff69efa4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_808ad903-9fc3-54db-4686-f446f8469844" 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_10273d4a-2af9-49b8-00ce-0ef9871a5550" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance_808ad903-9fc3-54db-4686-f446f8469844" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_db18ce6e-b77e-2a99-1ecf-f384cfe812b9" xlink:type="locator" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_79e6aae7-d952-eb77-cec6-918369bce942" 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_db18ce6e-b77e-2a99-1ecf-f384cfe812b9" xlink:to="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_79e6aae7-d952-eb77-cec6-918369bce942" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_3022253a-3719-3045-a6b6-b00e9e6d4b3c" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_79e6aae7-d952-eb77-cec6-918369bce942" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_3022253a-3719-3045-a6b6-b00e9e6d4b3c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_c7b0e6af-6a12-b105-2632-f06c1fca86ea" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_3022253a-3719-3045-a6b6-b00e9e6d4b3c" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_c7b0e6af-6a12-b105-2632-f06c1fca86ea" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_8053c403-828c-1c70-5f1f-a1b5b5cb1c4f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_3022253a-3719-3045-a6b6-b00e9e6d4b3c" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_8053c403-828c-1c70-5f1f-a1b5b5cb1c4f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_faaad21e-2c03-2d55-c8cf-a0f63375513e" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_79e6aae7-d952-eb77-cec6-918369bce942" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_faaad21e-2c03-2d55-c8cf-a0f63375513e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_1afb04eb-32f1-facc-f685-8856099206a6" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_faaad21e-2c03-2d55-c8cf-a0f63375513e" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_1afb04eb-32f1-facc-f685-8856099206a6" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_f7ed9df1-c068-ea9d-4599-91836c54d800" 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_db18ce6e-b77e-2a99-1ecf-f384cfe812b9" xlink:to="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_f7ed9df1-c068-ea9d-4599-91836c54d800" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_46ff59e9-bba8-844a-98a2-6c64928f478a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_f7ed9df1-c068-ea9d-4599-91836c54d800" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_46ff59e9-bba8-844a-98a2-6c64928f478a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToResellNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToResellNotOffsetPolicyElectionDeduction_5f4b1cfe-0858-aa03-4f20-9164b444435f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_f7ed9df1-c068-ea9d-4599-91836c54d800" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToResellNotOffsetPolicyElectionDeduction_5f4b1cfe-0858-aa03-4f20-9164b444435f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_d94f1cf0-b7b9-8590-052e-2b55c9474755" 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_db18ce6e-b77e-2a99-1ecf-f384cfe812b9" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_d94f1cf0-b7b9-8590-052e-2b55c9474755" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_eee61b2f-c58c-4b2b-0807-139c4c889361" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_d94f1cf0-b7b9-8590-052e-2b55c9474755" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_eee61b2f-c58c-4b2b-0807-139c4c889361" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseCollateralRightToReclaimSecurities" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseCollateralRightToReclaimSecurities_ddf4501c-5f84-19f3-6071-4c49750c1124" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_d94f1cf0-b7b9-8590-052e-2b55c9474755" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseCollateralRightToReclaimSecurities_ddf4501c-5f84-19f3-6071-4c49750c1124" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_fd313264-8f45-fed5-c6ea-91836b0c9c87" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_9d453646-cc8c-c923-4efe-59327df4dd3d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_fd313264-8f45-fed5-c6ea-91836b0c9c87" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_9d453646-cc8c-c923-4efe-59327df4dd3d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_dafe79a2-a8a1-39ee-ac3b-6d0b125e52d8" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_fd313264-8f45-fed5-c6ea-91836b0c9c87" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_dafe79a2-a8a1-39ee-ac3b-6d0b125e52d8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_fdf34bb6-5688-d10c-85be-7ad67f88e74d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_9b6ad197-4976-5475-1186-a50846c61b43" 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_fdf34bb6-5688-d10c-85be-7ad67f88e74d" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_9b6ad197-4976-5475-1186-a50846c61b43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_15c73c16-6f89-9082-aa54-c00118a2cd56" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_fdf34bb6-5688-d10c-85be-7ad67f88e74d" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_15c73c16-6f89-9082-aa54-c00118a2cd56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_3a92ea79-f139-75f9-85f3-90b38fc6ffb9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_9156e675-6855-2950-91bd-df86ef4cf4a1" 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_3a92ea79-f139-75f9-85f3-90b38fc6ffb9" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_9156e675-6855-2950-91bd-df86ef4cf4a1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_3fbc86e1-19f4-bdbf-4c81-d47fea0f5723" 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_9156e675-6855-2950-91bd-df86ef4cf4a1" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_3fbc86e1-19f4-bdbf-4c81-d47fea0f5723" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_822f8ba2-b243-2634-fc8e-3f754121605a" 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_3fbc86e1-19f4-bdbf-4c81-d47fea0f5723" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_822f8ba2-b243-2634-fc8e-3f754121605a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_6e91d1f4-7c5e-e721-2c80-b5ed6b1b2529" 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_3fbc86e1-19f4-bdbf-4c81-d47fea0f5723" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_6e91d1f4-7c5e-e721-2c80-b5ed6b1b2529" xlink:type="arc" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_9156e675-6855-2950-91bd-df86ef4cf4a1" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_9d453646-cc8c-c923-4efe-59327df4dd3d" xlink:type="arc" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_9156e675-6855-2950-91bd-df86ef4cf4a1" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_9b6ad197-4976-5475-1186-a50846c61b43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_4644bde9-cf3d-ec03-43d3-d4a65ac8da21" 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_3a92ea79-f139-75f9-85f3-90b38fc6ffb9" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_4644bde9-cf3d-ec03-43d3-d4a65ac8da21" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_SecuritiesPurchasedUnderAgreementsToResellAmountNotOffsetAgainstCollateral" xlink:label="loc_fnm_SecuritiesPurchasedUnderAgreementsToResellAmountNotOffsetAgainstCollateral_ffb37bc2-e925-addb-4adc-91836a977237" 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_4644bde9-cf3d-ec03-43d3-d4a65ac8da21" xlink:to="loc_fnm_SecuritiesPurchasedUnderAgreementsToResellAmountNotOffsetAgainstCollateral_ffb37bc2-e925-addb-4adc-91836a977237" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_b48cbc85-18de-d89c-24c3-24a45d87999c" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_SecuritiesPurchasedUnderAgreementsToResellAmountNotOffsetAgainstCollateral_ffb37bc2-e925-addb-4adc-91836a977237" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_b48cbc85-18de-d89c-24c3-24a45d87999c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_d294190d-0a6e-3c55-05ff-262bd63c6c8a" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_SecuritiesPurchasedUnderAgreementsToResellAmountNotOffsetAgainstCollateral_ffb37bc2-e925-addb-4adc-91836a977237" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_d294190d-0a6e-3c55-05ff-262bd63c6c8a" xlink:type="arc" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_4644bde9-cf3d-ec03-43d3-d4a65ac8da21" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_dafe79a2-a8a1-39ee-ac3b-6d0b125e52d8" xlink:type="arc" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_4644bde9-cf3d-ec03-43d3-d4a65ac8da21" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_15c73c16-6f89-9082-aa54-c00118a2cd56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_636ffb5b-2828-8591-c70c-6c154089c95e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_4fa2bbb6-3c3a-0413-a334-48d52038dfa8" 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_636ffb5b-2828-8591-c70c-6c154089c95e" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_4fa2bbb6-3c3a-0413-a334-48d52038dfa8" xlink:type="arc" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_4fa2bbb6-3c3a-0413-a334-48d52038dfa8" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_1afb04eb-32f1-facc-f685-8856099206a6" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_4fa2bbb6-3c3a-0413-a334-48d52038dfa8" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_c7b0e6af-6a12-b105-2632-f06c1fca86ea" xlink:type="arc" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_636ffb5b-2828-8591-c70c-6c154089c95e" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_46ff59e9-bba8-844a-98a2-6c64928f478a" xlink:type="arc" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_636ffb5b-2828-8591-c70c-6c154089c95e" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_eee61b2f-c58c-4b2b-0807-139c4c889361" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_d85cd883-4eea-28ca-bcd8-918369d12ac4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_9c72e9ac-d24c-2ee9-56b0-6d8bf213ca0f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_d85cd883-4eea-28ca-bcd8-918369d12ac4" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_9c72e9ac-d24c-2ee9-56b0-6d8bf213ca0f" 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_9c72e9ac-d24c-2ee9-56b0-6d8bf213ca0f" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_822f8ba2-b243-2634-fc8e-3f754121605a" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_9c72e9ac-d24c-2ee9-56b0-6d8bf213ca0f" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_b48cbc85-18de-d89c-24c3-24a45d87999c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_31d26ff1-51e8-14b7-f7ee-390c47e703b5" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_d85cd883-4eea-28ca-bcd8-918369d12ac4" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_31d26ff1-51e8-14b7-f7ee-390c47e703b5" 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_31d26ff1-51e8-14b7-f7ee-390c47e703b5" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_6e91d1f4-7c5e-e721-2c80-b5ed6b1b2529" xlink:type="arc" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_31d26ff1-51e8-14b7-f7ee-390c47e703b5" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_d294190d-0a6e-3c55-05ff-262bd63c6c8a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseAmountOffsetAgainstCollateral_368363e3-c1be-9d50-c412-ffd81948a083" xlink:type="locator" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_SecuritiesSoldUnderAgreementstoRepurchaseAmountNotOffsetAgainstCollateral" xlink:label="loc_fnm_SecuritiesSoldUnderAgreementstoRepurchaseAmountNotOffsetAgainstCollateral_5d767bb1-a435-b898-6f05-91836c2210e8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseAmountOffsetAgainstCollateral_368363e3-c1be-9d50-c412-ffd81948a083" xlink:to="loc_fnm_SecuritiesSoldUnderAgreementstoRepurchaseAmountNotOffsetAgainstCollateral_5d767bb1-a435-b898-6f05-91836c2210e8" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_SecuritiesSoldUnderAgreementstoRepurchaseAmountNotOffsetAgainstCollateral_5d767bb1-a435-b898-6f05-91836c2210e8" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_8053c403-828c-1c70-5f1f-a1b5b5cb1c4f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseAsset" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseAsset_5345ae8b-da62-356a-15a9-fc8c1f33d3c8" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_SecuritiesSoldUnderAgreementstoRepurchaseAmountNotOffsetAgainstCollateral_5d767bb1-a435-b898-6f05-91836c2210e8" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseAsset_5345ae8b-da62-356a-15a9-fc8c1f33d3c8" xlink:type="arc" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseAmountOffsetAgainstCollateral_368363e3-c1be-9d50-c412-ffd81948a083" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseCollateralRightToReclaimSecurities_ddf4501c-5f84-19f3-6071-4c49750c1124" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_8877B25A26AF885C742B39BDE9C5F1A2_3a92ea79-f139-75f9-85f3-90b38fc6ffb9" xlink:type="locator" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_8877B25A26AF885C742B39BDE9C5F1A2_d85cd883-4eea-28ca-bcd8-918369d12ac4" 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_8877B25A26AF885C742B39BDE9C5F1A2_3a92ea79-f139-75f9-85f3-90b38fc6ffb9" xlink:to="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_8877B25A26AF885C742B39BDE9C5F1A2_d85cd883-4eea-28ca-bcd8-918369d12ac4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_8877B25A26AF885C742B39BDE9C5F1A2_3fbc86e1-19f4-bdbf-4c81-d47fea0f5723" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_8877B25A26AF885C742B39BDE9C5F1A2_d85cd883-4eea-28ca-bcd8-918369d12ac4" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_8877B25A26AF885C742B39BDE9C5F1A2_3fbc86e1-19f4-bdbf-4c81-d47fea0f5723" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_SecuritiesPurchasedUnderAgreementsToResellAmountNotOffsetAgainstCollateral" xlink:label="loc_fnm_SecuritiesPurchasedUnderAgreementsToResellAmountNotOffsetAgainstCollateral_8877B25A26AF885C742B39BDE9C5F1A2_ffb37bc2-e925-addb-4adc-91836a977237" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_8877B25A26AF885C742B39BDE9C5F1A2_d85cd883-4eea-28ca-bcd8-918369d12ac4" xlink:to="loc_fnm_SecuritiesPurchasedUnderAgreementsToResellAmountNotOffsetAgainstCollateral_8877B25A26AF885C742B39BDE9C5F1A2_ffb37bc2-e925-addb-4adc-91836a977237" xlink:type="arc" />
    <link:loc xlink:href="fnm-20161231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_8877B25A26AF885C742B39BDE9C5F1A2_fd313264-8f45-fed5-c6ea-91836b0c9c87" 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_8877B25A26AF885C742B39BDE9C5F1A2_3a92ea79-f139-75f9-85f3-90b38fc6ffb9" xlink:to="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_8877B25A26AF885C742B39BDE9C5F1A2_fd313264-8f45-fed5-c6ea-91836b0c9c87" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_8877B25A26AF885C742B39BDE9C5F1A2_fdf34bb6-5688-d10c-85be-7ad67f88e74d" 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_8877B25A26AF885C742B39BDE9C5F1A2_3a92ea79-f139-75f9-85f3-90b38fc6ffb9" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_8877B25A26AF885C742B39BDE9C5F1A2_fdf34bb6-5688-d10c-85be-7ad67f88e74d" 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-20161231.xsd#fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement" xlink:label="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_75cf3451-11a5-e29d-96e0-91836b3ca4dd" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Capital" xlink:label="loc_us-gaap_Capital_1152ac3c-0cc7-0310-5347-2c036a139444" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_75cf3451-11a5-e29d-96e0-91836b3ca4dd" xlink:to="loc_us-gaap_Capital_1152ac3c-0cc7-0310-5347-2c036a139444" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalRequiredForCapitalAdequacy" xlink:label="loc_us-gaap_CapitalRequiredForCapitalAdequacy_d9764031-b3c5-6c38-277d-0c8f978e2daa" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_75cf3451-11a5-e29d-96e0-91836b3ca4dd" xlink:to="loc_us-gaap_CapitalRequiredForCapitalAdequacy_d9764031-b3c5-6c38-277d-0c8f978e2daa" 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/ShortTermBorrowingsAndLongTermDebt" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermBorrowingsAndLongTermDebtCharacteristicsOfDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_69e5de31-e379-3d10-54e1-db1271f781f0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_be4c6cb2-c102-b108-bfb6-0404d740f001" 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_69e5de31-e379-3d10-54e1-db1271f781f0" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_be4c6cb2-c102-b108-bfb6-0404d740f001" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_fff555d3-22e2-1be9-15a7-f79f0064a4bb" 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_69e5de31-e379-3d10-54e1-db1271f781f0" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_fff555d3-22e2-1be9-15a7-f79f0064a4bb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_c5420c55-b70f-9186-5b0e-88de7d1b3712" 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_69e5de31-e379-3d10-54e1-db1271f781f0" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_c5420c55-b70f-9186-5b0e-88de7d1b3712" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_7b82936a-3efa-d722-acea-fbe08d94cdb3" 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_69e5de31-e379-3d10-54e1-db1271f781f0" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_7b82936a-3efa-d722-acea-fbe08d94cdb3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_6231296c-2b9b-a710-fe01-a01a31f4eeb8" 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_69e5de31-e379-3d10-54e1-db1271f781f0" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_6231296c-2b9b-a710-fe01-a01a31f4eeb8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_4ce000ca-0272-5539-8854-56410906b97f" 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_69e5de31-e379-3d10-54e1-db1271f781f0" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_4ce000ca-0272-5539-8854-56410906b97f" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermBorrowingsAndLongTermDebtTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermBorrowingsDetails" 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>
