<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:51a369c8-dc1c-41d3-a92b-5f4d716933e4,g:8c21c6c3-6ecc-454c-beee-5f2acc11bebc-->
<link:linkbase 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" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.fanniemae.com/role/CoverPage" xlink:type="simple" xlink:href="fnm-20201231.xsd#CoverPage"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CoverPage" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecurities_8b7c14f1-4d65-4c63-94ba-d00f8cce83df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MarketableSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradingSecuritiesDebt_e2d454a3-cb9b-45a1-8583-e06a0c9e53d5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TradingSecuritiesDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MarketableSecurities_8b7c14f1-4d65-4c63-94ba-d00f8cce83df" xlink:to="loc_us-gaap_TradingSecuritiesDebt_e2d454a3-cb9b-45a1-8583-e06a0c9e53d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6ba6559f-b9f6-4761-894f-057b0c3e8ac8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MarketableSecurities_8b7c14f1-4d65-4c63-94ba-d00f8cce83df" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6ba6559f-b9f6-4761-894f-057b0c3e8ac8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_aad546e5-ad61-453e-be93-1ffd9e94dc99" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_b004b473-42e7-4a47-bb39-9619061c2255" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_aad546e5-ad61-453e-be93-1ffd9e94dc99" xlink:to="loc_us-gaap_Liabilities_b004b473-42e7-4a47-bb39-9619061c2255" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_638232be-dddb-465c-9473-03733d801a00" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_aad546e5-ad61-453e-be93-1ffd9e94dc99" xlink:to="loc_us-gaap_CommitmentsAndContingencies_638232be-dddb-465c-9473-03733d801a00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_5b6ad1e8-939e-4b17-8442-6ca6824d9d72" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_aad546e5-ad61-453e-be93-1ffd9e94dc99" xlink:to="loc_us-gaap_StockholdersEquity_5b6ad1e8-939e-4b17-8442-6ca6824d9d72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_ed7cf579-808f-47f8-bb19-5482d2c51c75" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_805494bb-7832-46d0-9862-6504be04410b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_ed7cf579-808f-47f8-bb19-5482d2c51c75" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_805494bb-7832-46d0-9862-6504be04410b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_58a2b8d0-b3f1-4040-9051-95aac2a85f7e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_ed7cf579-808f-47f8-bb19-5482d2c51c75" xlink:to="loc_us-gaap_OtherLiabilities_58a2b8d0-b3f1-4040-9051-95aac2a85f7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_b8c3daf6-d96b-4555-9a1f-155670936791" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_ed7cf579-808f-47f8-bb19-5482d2c51c75" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_b8c3daf6-d96b-4555-9a1f-155670936791" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_0fd0a6ac-9d19-4063-b7f0-945d1d8de3cd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_1fdff60c-7e27-415a-be3d-dadb0e6076c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_0fd0a6ac-9d19-4063-b7f0-945d1d8de3cd" xlink:to="loc_us-gaap_NotesReceivableGross_1fdff60c-7e27-415a-be3d-dadb0e6076c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_e4517b67-8c9f-4735-8748-77b749e36c96" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_0fd0a6ac-9d19-4063-b7f0-945d1d8de3cd" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_e4517b67-8c9f-4735-8748-77b749e36c96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_f9996002-5be2-4287-8527-5a9192e295c4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_f9996002-5be2-4287-8527-5a9192e295c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_7615532a-f6c5-4dc2-8637-fc575f513a0d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_7615532a-f6c5-4dc2-8637-fc575f513a0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_af6fca8b-f025-4a6b-b084-710f78893380" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:to="loc_us-gaap_FederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_af6fca8b-f025-4a6b-b084-710f78893380" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecurities_796273fa-22f5-471e-aba4-b6f6bec604d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MarketableSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:to="loc_us-gaap_MarketableSecurities_796273fa-22f5-471e-aba4-b6f6bec604d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_c8556cb0-678c-424f-b5eb-246a3b12e9cd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_c8556cb0-678c-424f-b5eb-246a3b12e9cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_AdvanceToLender_fd3e6cee-d4c0-4b98-81f7-a4d639dc0a8f" xlink:href="fnm-20201231.xsd#fnm_AdvanceToLender"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:to="loc_fnm_AdvanceToLender_fd3e6cee-d4c0-4b98-81f7-a4d639dc0a8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_0d1737d9-63e1-4b36-8a14-6a3bec0e68c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestReceivable"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:to="loc_us-gaap_InterestReceivable_0d1737d9-63e1-4b36-8a14-6a3bec0e68c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateAcquiredThroughForeclosure_f89775bc-a538-426d-88a3-b53a97cf72c2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RealEstateAcquiredThroughForeclosure"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:to="loc_us-gaap_RealEstateAcquiredThroughForeclosure_f89775bc-a538-426d-88a3-b53a97cf72c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_75a9cdd5-ff29-40ba-b06b-38e916aeae1a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_75a9cdd5-ff29-40ba-b06b-38e916aeae1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_bd84330c-b021-4585-91d4-b3b5a163ae9f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_21cc4520-4d14-4ec1-b32b-080253966353" xlink:to="loc_us-gaap_OtherAssets_bd84330c-b021-4585-91d4-b3b5a163ae9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_3cdeae2b-3928-4988-9c38-a09f8e46782f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_03a6d7db-431f-4fd1-915f-bc090222919d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3cdeae2b-3928-4988-9c38-a09f8e46782f" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_03a6d7db-431f-4fd1-915f-bc090222919d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_a415be42-21df-408d-9689-128e60f0fad8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3cdeae2b-3928-4988-9c38-a09f8e46782f" xlink:to="loc_us-gaap_CommonStockValue_a415be42-21df-408d-9689-128e60f0fad8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_SeniorPreferredStockValue_999d7ad5-6bdb-46a0-bf22-1d9281c2f82d" xlink:href="fnm-20201231.xsd#fnm_SeniorPreferredStockValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3cdeae2b-3928-4988-9c38-a09f8e46782f" xlink:to="loc_fnm_SeniorPreferredStockValue_999d7ad5-6bdb-46a0-bf22-1d9281c2f82d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_f2641db2-d146-489d-9123-bc395940ea69" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3cdeae2b-3928-4988-9c38-a09f8e46782f" xlink:to="loc_us-gaap_PreferredStockValue_f2641db2-d146-489d-9123-bc395940ea69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_bc8eeccf-fb51-4915-927f-5768fa7a39bf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3cdeae2b-3928-4988-9c38-a09f8e46782f" xlink:to="loc_us-gaap_TreasuryStockValue_bc8eeccf-fb51-4915-927f-5768fa7a39bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_7968c7e4-1d7a-47b9-ba52-31ea52d5328d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_3cdeae2b-3928-4988-9c38-a09f8e46782f" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_7968c7e4-1d7a-47b9-ba52-31ea52d5328d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_ad188f5c-045f-48b1-8f3d-8b702954232c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_def3d09c-7f5c-4187-8ca6-90d15d6d645b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_ad188f5c-045f-48b1-8f3d-8b702954232c" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_def3d09c-7f5c-4187-8ca6-90d15d6d645b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleAmount_13352db5-c60d-47a5-bfdc-4f489d17a3db" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansReceivableHeldForSaleAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_ad188f5c-045f-48b1-8f3d-8b702954232c" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleAmount_13352db5-c60d-47a5-bfdc-4f489d17a3db" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedBalanceSheetsParentheticals" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidatedBalanceSheetsParentheticals"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedBalanceSheetsParentheticals" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsofOperationsandComprehensiveIncome" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidatedStatementsofOperationsandComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedStatementsofOperationsandComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_2098c76c-9052-4462-b8f7-77237cb82e5a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_InvestmentGainsLossNet1_f232e81d-2969-4f83-b9e9-4605f55a8c59" xlink:href="fnm-20201231.xsd#fnm_InvestmentGainsLossNet1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_2098c76c-9052-4462-b8f7-77237cb82e5a" xlink:to="loc_fnm_InvestmentGainsLossNet1_f232e81d-2969-4f83-b9e9-4605f55a8c59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_FairValueGainsLossesNet_eda821b1-097a-45cb-bfa1-50a5aad0217a" xlink:href="fnm-20201231.xsd#fnm_FairValueGainsLossesNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_2098c76c-9052-4462-b8f7-77237cb82e5a" xlink:to="loc_fnm_FairValueGainsLossesNet_eda821b1-097a-45cb-bfa1-50a5aad0217a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_8d652332-d51c-4f18-abc1-637c962fab94" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_2098c76c-9052-4462-b8f7-77237cb82e5a" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_8d652332-d51c-4f18-abc1-637c962fab94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_00f57ad9-9422-4fc2-bc4f-3e8027575885" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_12693782-807c-4067-8dd9-e525ac9a4d87" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GeneralAndAdministrativeExpense_00f57ad9-9422-4fc2-bc4f-3e8027575885" xlink:to="loc_us-gaap_LaborAndRelatedExpense_12693782-807c-4067-8dd9-e525ac9a4d87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalAndContractServicesExpense_e54943a9-69fa-43e7-aa23-a7f454e910da" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfessionalAndContractServicesExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GeneralAndAdministrativeExpense_00f57ad9-9422-4fc2-bc4f-3e8027575885" xlink:to="loc_us-gaap_ProfessionalAndContractServicesExpense_e54943a9-69fa-43e7-aa23-a7f454e910da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherGeneralAndAdministrativeExpense_7adcf9e6-22f3-4899-913e-8bd3d0e01008" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GeneralAndAdministrativeExpense_00f57ad9-9422-4fc2-bc4f-3e8027575885" xlink:to="loc_us-gaap_OtherGeneralAndAdministrativeExpense_7adcf9e6-22f3-4899-913e-8bd3d0e01008" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_254eedd8-4213-4ef0-9aa3-5c92156e0d73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_2b36dc44-c84c-4d0b-97c2-62f011bad0b6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_254eedd8-4213-4ef0-9aa3-5c92156e0d73" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_2b36dc44-c84c-4d0b-97c2-62f011bad0b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_65659fdd-6799-40ab-965f-78b15dab642f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_254eedd8-4213-4ef0-9aa3-5c92156e0d73" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_65659fdd-6799-40ab-965f-78b15dab642f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_a4e3c30b-5dc7-4c45-bf82-08199ff291df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_254eedd8-4213-4ef0-9aa3-5c92156e0d73" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_a4e3c30b-5dc7-4c45-bf82-08199ff291df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInterestAndDividendIncome_141cf100-0142-4099-b34a-ed68a946c090" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherInterestAndDividendIncome"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_254eedd8-4213-4ef0-9aa3-5c92156e0d73" xlink:to="loc_us-gaap_OtherInterestAndDividendIncome_141cf100-0142-4099-b34a-ed68a946c090" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_5df17211-e1b3-423b-915d-56cc1ebc3dd7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_254eedd8-4213-4ef0-9aa3-5c92156e0d73" xlink:to="loc_us-gaap_InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell_5df17211-e1b3-423b-915d-56cc1ebc3dd7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3259ba21-5f59-4cee-994c-bd6d51f5001c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_b9c476cb-8146-451e-8c74-56998e683333" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3259ba21-5f59-4cee-994c-bd6d51f5001c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_b9c476cb-8146-451e-8c74-56998e683333" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_58025ee2-8232-4aee-8242-77386d4e4c27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3259ba21-5f59-4cee-994c-bd6d51f5001c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_58025ee2-8232-4aee-8242-77386d4e4c27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_d45e7832-1feb-43f4-961e-f129f9d4b378" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_fa0b8c53-d51e-4dfc-adbc-a13400484b26" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_d45e7832-1feb-43f4-961e-f129f9d4b378" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_fa0b8c53-d51e-4dfc-adbc-a13400484b26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_268ed07e-140f-451a-9b4c-af9359317276" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_d45e7832-1feb-43f4-961e-f129f9d4b378" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_268ed07e-140f-451a-9b4c-af9359317276" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_0bca71ee-2a7f-4b44-ac66-6ab79f942f42" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_457beca0-867b-400a-90d0-fa1eaecc38bc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_0bca71ee-2a7f-4b44-ac66-6ab79f942f42" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_457beca0-867b-400a-90d0-fa1eaecc38bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeclosedRealEstateExpense_d7938ea8-6ffe-45ea-bca1-002975e21f40" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeclosedRealEstateExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_0bca71ee-2a7f-4b44-ac66-6ab79f942f42" xlink:to="loc_us-gaap_ForeclosedRealEstateExpense_d7938ea8-6ffe-45ea-bca1-002975e21f40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_70ed1a21-93af-4349-af9c-2f9611d2e19b" xlink:href="fnm-20201231.xsd#fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_0bca71ee-2a7f-4b44-ac66-6ab79f942f42" xlink:to="loc_fnm_SingleFamilyGuarantyFeeTemporaryPayrollTaxCutContinuationActOf2011_70ed1a21-93af-4349-af9c-2f9611d2e19b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_CreditEnhancementExpense_346d103d-2004-44ed-b64f-312ded471aa8" xlink:href="fnm-20201231.xsd#fnm_CreditEnhancementExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_0bca71ee-2a7f-4b44-ac66-6ab79f942f42" xlink:to="loc_fnm_CreditEnhancementExpense_346d103d-2004-44ed-b64f-312ded471aa8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_ChangeInExpectedCreditEnhancementRecoveries_6a5cc558-3958-445c-9f06-bd29d4435f54" xlink:href="fnm-20201231.xsd#fnm_ChangeInExpectedCreditEnhancementRecoveries"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_0bca71ee-2a7f-4b44-ac66-6ab79f942f42" xlink:to="loc_fnm_ChangeInExpectedCreditEnhancementRecoveries_6a5cc558-3958-445c-9f06-bd29d4435f54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoninterestExpense_dbaaf948-2eb2-4e1d-99c2-3a2a3e52ad8f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoninterestExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_0bca71ee-2a7f-4b44-ac66-6ab79f942f42" xlink:to="loc_us-gaap_OtherNoninterestExpense_dbaaf948-2eb2-4e1d-99c2-3a2a3e52ad8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_942c4875-1e30-4586-a993-d37a3952bc91" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_68149afd-3fdc-4d83-a948-c34464b6defa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_942c4875-1e30-4586-a993-d37a3952bc91" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_68149afd-3fdc-4d83-a948-c34464b6defa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_b848dcc2-c2d9-470d-a2ee-94c3d8f19bdd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_942c4875-1e30-4586-a993-d37a3952bc91" xlink:to="loc_us-gaap_InterestExpense_b848dcc2-c2d9-470d-a2ee-94c3d8f19bdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_1df5e100-50bf-4ece-bd90-de0ad6b25c5b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseShortTermBorrowings_95571348-c4b0-4a37-9963-4ca9d436efb7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseShortTermBorrowings"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_1df5e100-50bf-4ece-bd90-de0ad6b25c5b" xlink:to="loc_us-gaap_InterestExpenseShortTermBorrowings_95571348-c4b0-4a37-9963-4ca9d436efb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseLongTermDebt_fc467c1e-6aad-4b51-b4d6-c7ff58ce2cf3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseLongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_1df5e100-50bf-4ece-bd90-de0ad6b25c5b" xlink:to="loc_us-gaap_InterestExpenseLongTermDebt_fc467c1e-6aad-4b51-b4d6-c7ff58ce2cf3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_37314488-ac2a-4909-a2eb-a4e89003610b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_6a43c56d-6ead-463f-8f6d-52e2055835a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_37314488-ac2a-4909-a2eb-a4e89003610b" xlink:to="loc_us-gaap_NetIncomeLoss_6a43c56d-6ead-463f-8f6d-52e2055835a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_5c846ea4-736a-4cf4-bdfc-24d794cc92f8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_37314488-ac2a-4909-a2eb-a4e89003610b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_5c846ea4-736a-4cf4-bdfc-24d794cc92f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9db6e556-7e74-434e-8b2c-f416f4dafb34" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_515ca39a-eb90-4d33-93d0-0abd86e98192" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_9db6e556-7e74-434e-8b2c-f416f4dafb34" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_515ca39a-eb90-4d33-93d0-0abd86e98192" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_07025e81-db82-459a-a63b-91b5267c4ee7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_9db6e556-7e74-434e-8b2c-f416f4dafb34" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_07025e81-db82-459a-a63b-91b5267c4ee7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_5987bde1-1223-4cd3-813c-6ec378807638" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_us-gaap_ProfitLoss_5987bde1-1223-4cd3-813c-6ec378807638" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_f310e010-7b0f-4d76-87fd-8e541524b058" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DepreciationAmortizationAndAccretionNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_f310e010-7b0f-4d76-87fd-8e541524b058" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_a2ddb7ad-083a-4b20-9bee-19e1d5d771ed" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_a2ddb7ad-083a-4b20-9bee-19e1d5d771ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_ValuationLossGain_f2ae5eef-1085-4240-885a-e2405ed41cc6" xlink:href="fnm-20201231.xsd#fnm_ValuationLossGain"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_fnm_ValuationLossGain_f2ae5eef-1085-4240-885a-e2405ed41cc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_b258792a-b4f7-4309-b504-dc3e529ecd57" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_b258792a-b4f7-4309-b504-dc3e529ecd57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements_9e2437ac-c413-4f50-afad-58b17459f00d" xlink:href="fnm-20201231.xsd#fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_fnm_NetGainsRelatedToTheDispositionofAcquiredPropertyandPreforeclosureSalesIncludingCreditEnhancements_9e2437ac-c413-4f50-afad-58b17459f00d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_1629f36d-ec28-4501-b9d0-b350c55c644e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_1629f36d-ec28-4501-b9d0-b350c55c644e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_IncreaseDecreaseInServicerAdvances_437dfeb9-9890-479f-9fa3-a40de3a9e321" xlink:href="fnm-20201231.xsd#fnm_IncreaseDecreaseInServicerAdvances"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_fnm_IncreaseDecreaseInServicerAdvances_437dfeb9-9890-479f-9fa3-a40de3a9e321" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_ca787aaa-3511-4c59-a1cf-5481ef4d5e36" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_ca787aaa-3511-4c59-a1cf-5481ef4d5e36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInTradingSecurities_b6a75545-a2aa-4b15-ace9-0d1859d6a951" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInTradingSecurities"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_us-gaap_IncreaseDecreaseInTradingSecurities_b6a75545-a2aa-4b15-ace9-0d1859d6a951" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPaidNet_19c3889a-3c5b-4ad9-9935-ffd832af2f92" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestPaidNet"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_2d92bea2-a963-4351-bd9c-c27372ec3897" xlink:to="loc_us-gaap_InterestPaidNet_19c3889a-3c5b-4ad9-9935-ffd832af2f92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesRepaymentsAndCallsOfTradingSecuritiesHeldforinvestment_519dd6f0-b192-4efb-a591-626364012a8e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromMaturitiesRepaymentsAndCallsOfTradingSecuritiesHeldforinvestment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_us-gaap_ProceedsFromMaturitiesRepaymentsAndCallsOfTradingSecuritiesHeldforinvestment_519dd6f0-b192-4efb-a591-626364012a8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfTradingSecuritiesHeldforinvestment_200e4be4-977a-4de5-9f42-701c9f96a11d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfTradingSecuritiesHeldforinvestment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_us-gaap_ProceedsFromSaleOfTradingSecuritiesHeldforinvestment_200e4be4-977a-4de5-9f42-701c9f96a11d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_8daac5ba-2ecc-4ca9-ae63-d9b4befc0f50" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_8daac5ba-2ecc-4ca9-ae63-d9b4befc0f50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_d593a12c-cf97-4d41-a042-7a3063de815f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_d593a12c-cf97-4d41-a042-7a3063de815f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_fb3f8ca4-c43a-433f-a930-0afdc40600e6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireLoansHeldForInvestment"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_fb3f8ca4-c43a-433f-a930-0afdc40600e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_a9d578ad-0c58-4be1-aa50-e07df716439d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_a9d578ad-0c58-4be1-aa50-e07df716439d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansAndLeasesHeldForInvestment_0f705b3c-6e9e-47ed-8d88-972ccd879555" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfLoansAndLeasesHeldForInvestment"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansAndLeasesHeldForInvestment_0f705b3c-6e9e-47ed-8d88-972ccd879555" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_PaymentsForAdvancesToLenders_1cfde4f6-3bc2-4bda-88b3-0c03e168c551" xlink:href="fnm-20201231.xsd#fnm_PaymentsForAdvancesToLenders"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_fnm_PaymentsForAdvancesToLenders_1cfde4f6-3bc2-4bda-88b3-0c03e168c551" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_621812de-e90c-434e-b4c7-6eefae7f29f1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfForeclosedAssets"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_us-gaap_ProceedsFromSaleOfForeclosedAssets_621812de-e90c-434e-b4c7-6eefae7f29f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResellNet_389518a2-eb6c-4936-b709-8b1750e8805e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromPaymentsForFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResellNet"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_us-gaap_ProceedsFromPaymentsForFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResellNet_389518a2-eb6c-4936-b709-8b1750e8805e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_117771a8-7451-4b62-8a04-ef519d1b1778" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_63bdb0d2-2ab4-461f-b359-767e175ab591" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_117771a8-7451-4b62-8a04-ef519d1b1778" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c6c6b9ae-6715-4286-8133-e943447a184b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_ff937561-7545-46a3-9bfa-efbf28d64f0b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c6c6b9ae-6715-4286-8133-e943447a184b" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_ff937561-7545-46a3-9bfa-efbf28d64f0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_ba2df1c1-1100-4de5-b281-0b07d8629057" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c6c6b9ae-6715-4286-8133-e943447a184b" xlink:to="loc_us-gaap_RepaymentsOfDebt_ba2df1c1-1100-4de5-b281-0b07d8629057" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_PaymentOfCashDividendsOnSeniorPreferredStockToTreasury_d1f96f26-c0cb-45d4-9b6e-a83fa1c55d6f" xlink:href="fnm-20201231.xsd#fnm_PaymentOfCashDividendsOnSeniorPreferredStockToTreasury"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c6c6b9ae-6715-4286-8133-e943447a184b" xlink:to="loc_fnm_PaymentOfCashDividendsOnSeniorPreferredStockToTreasury_d1f96f26-c0cb-45d4-9b6e-a83fa1c55d6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_ProceedsFromSeniorPreferredStockAgreementWithUsTreasury_ec39334a-2751-4521-97ab-93c86684ba66" xlink:href="fnm-20201231.xsd#fnm_ProceedsFromSeniorPreferredStockAgreementWithUsTreasury"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c6c6b9ae-6715-4286-8133-e943447a184b" xlink:to="loc_fnm_ProceedsFromSeniorPreferredStockAgreementWithUsTreasury_ec39334a-2751-4521-97ab-93c86684ba66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_e55038b7-7076-48c0-a241-0f376bacb172" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c6c6b9ae-6715-4286-8133-e943447a184b" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_e55038b7-7076-48c0-a241-0f376bacb172" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_52ae11f0-2a5b-4859-8b2e-a94091eadab6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_9e6f3444-ef7f-432c-9bf1-b2dbb1f40549" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_52ae11f0-2a5b-4859-8b2e-a94091eadab6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_9e6f3444-ef7f-432c-9bf1-b2dbb1f40549" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b20d1153-07a4-40d5-82a4-6a8cce9eba65" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_52ae11f0-2a5b-4859-8b2e-a94091eadab6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b20d1153-07a4-40d5-82a4-6a8cce9eba65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b18a1c66-7d2a-48d1-984a-1da29d4230ed" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_52ae11f0-2a5b-4859-8b2e-a94091eadab6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b18a1c66-7d2a-48d1-984a-1da29d4230ed" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidatedStatementsofChangesinEquityDeficit" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidatedStatementsofChangesinEquityDeficit"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidatedStatementsofChangesinEquityDeficit" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_473569c6-93af-46c2-ac59-dbce891afa9e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_12bb5233-dc97-4529-af48-d32556ee71e1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_473569c6-93af-46c2-ac59-dbce891afa9e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_12bb5233-dc97-4529-af48-d32556ee71e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_262dcb03-cf35-4d20-801f-e06895445629" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_473569c6-93af-46c2-ac59-dbce891afa9e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_262dcb03-cf35-4d20-801f-e06895445629" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_ba40baba-89cc-40c2-9fc2-7b555ded447c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_473569c6-93af-46c2-ac59-dbce891afa9e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_ba40baba-89cc-40c2-9fc2-7b555ded447c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_d7cbdd69-63f2-4fe3-8590-a5337030f960" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_473569c6-93af-46c2-ac59-dbce891afa9e" xlink:to="loc_us-gaap_NetIncomeLoss_d7cbdd69-63f2-4fe3-8590-a5337030f960" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryofSignificantAccountingPolicies" xlink:type="simple" xlink:href="fnm-20201231.xsd#SummaryofSignificantAccountingPolicies"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryofSignificantAccountingPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="fnm-20201231.xsd#SummaryofSignificantAccountingPoliciesPolicies"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryofSignificantAccountingPoliciesSeniorPreferredStockPurchaseAgreementDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#SummaryofSignificantAccountingPoliciesSeniorPreferredStockPurchaseAgreementDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryofSignificantAccountingPoliciesSeniorPreferredStockPurchaseAgreementDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryofSignificantAccountingPoliciesRelatedPartiesDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#SummaryofSignificantAccountingPoliciesRelatedPartiesDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryofSignificantAccountingPoliciesRelatedPartiesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SummaryofSignificantAccountingPoliciesNewAccountingGuidanceDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#SummaryofSignificantAccountingPoliciesNewAccountingGuidanceDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SummaryofSignificantAccountingPoliciesNewAccountingGuidanceDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/AccountingPoliciesTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#AccountingPoliciesTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AccountingPoliciesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssets" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidationsandTransfersofFinancialAssets"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssets" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssetsTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidationsandTransfersofFinancialAssetsTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssetsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssetsTypesofVIEsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidationsandTransfersofFinancialAssetsTypesofVIEsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssetsTypesofVIEsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssetsUnconsolidatedVIEsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidationsandTransfersofFinancialAssetsUnconsolidatedVIEsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssetsUnconsolidatedVIEsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_28776ba7-0394-4a63-acd2-bbf2cad5594b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradingSecuritiesDebt_e7517f9a-6dad-4561-9d70-34759daace1e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TradingSecuritiesDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_28776ba7-0394-4a63-acd2-bbf2cad5594b" xlink:to="loc_us-gaap_TradingSecuritiesDebt_e7517f9a-6dad-4561-9d70-34759daace1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a766b94b-91b6-4f9f-9de3-cb5b69da511b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_28776ba7-0394-4a63-acd2-bbf2cad5594b" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a766b94b-91b6-4f9f-9de3-cb5b69da511b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_8dd6cc91-8dc4-4fa1-82f8-7a2cddbb4b54" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_28776ba7-0394-4a63-acd2-bbf2cad5594b" xlink:to="loc_us-gaap_OtherAssets_8dd6cc91-8dc4-4fa1-82f8-7a2cddbb4b54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_eb850fff-5611-4f55-a44e-33753911d792" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_28776ba7-0394-4a63-acd2-bbf2cad5594b" xlink:to="loc_us-gaap_OtherLiabilities_eb850fff-5611-4f55-a44e-33753911d792" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssetsTransfersofFinancialAssetsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidationsandTransfersofFinancialAssetsTransfersofFinancialAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssetsTransfersofFinancialAssetsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssetsManagedLoansDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConsolidationsandTransfersofFinancialAssetsManagedLoansDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConsolidationsandTransfersofFinancialAssetsManagedLoansDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/OrganizationConsolidationandPresentationofFinancialStatementsPolicies" xlink:type="simple" xlink:href="fnm-20201231.xsd#OrganizationConsolidationandPresentationofFinancialStatementsPolicies"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/OrganizationConsolidationandPresentationofFinancialStatementsPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoans" xlink:type="simple" xlink:href="fnm-20201231.xsd#MortgageLoans"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoans" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#MortgageLoansTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/LoansinMortgagePortfolioDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#LoansinMortgagePortfolioDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/LoansinMortgagePortfolioDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_a0745ff7-d962-450c-a246-305ad12dad69" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance_f99541b7-d3a8-4f6a-8cdd-cc4cda63c329" xlink:href="fnm-20201231.xsd#fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_a0745ff7-d962-450c-a246-305ad12dad69" xlink:to="loc_fnm_MortgageLoansOnRealEstateUnpaidPrincipalBalance_f99541b7-d3a8-4f6a-8cdd-cc4cda63c329" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet_79b8c7f7-a182-4293-9af6-1763fcd97f0a" xlink:href="fnm-20201231.xsd#fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_a0745ff7-d962-450c-a246-305ad12dad69" xlink:to="loc_fnm_MortgageLoansCostBasisAndFairValueAdjustmentsNet_79b8c7f7-a182-4293-9af6-1763fcd97f0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_fc233e59-a700-4361-9a47-3e6d039d7436" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_a0745ff7-d962-450c-a246-305ad12dad69" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_fc233e59-a700-4361-9a47-3e6d039d7436" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansAgingDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#MortgageLoansAgingDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansAgingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_0bf21c0b-dce7-4550-8068-8fb820c025bf" xlink:href="fnm-20201231.xsd#fnm_RecordedInvestmentMortgageLoansHeldForInvestment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_6a8b9431-f4ac-49ff-97a8-e8736b7d5c07" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_0bf21c0b-dce7-4550-8068-8fb820c025bf" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_6a8b9431-f4ac-49ff-97a8-e8736b7d5c07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_7ca77784-11ed-4d8c-8162-df4693da05f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_0bf21c0b-dce7-4550-8068-8fb820c025bf" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_7ca77784-11ed-4d8c-8162-df4693da05f5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsSFDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#MortgageLoansCreditQualityIndicatorsSFDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsSFDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsMFDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#MortgageLoansCreditQualityIndicatorsMFDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansCreditQualityIndicatorsMFDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTDRsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#MortgageLoansTDRsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansTDRsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansTDRswithSubDefaultsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#MortgageLoansTDRswithSubDefaultsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansTDRswithSubDefaultsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansNonaccrualLoansDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#MortgageLoansNonaccrualLoansDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansNonaccrualLoansDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoansDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#MortgageLoansIndividuallyImpairedLoansDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoansDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoans2Details" xlink:type="simple" xlink:href="fnm-20201231.xsd#MortgageLoansIndividuallyImpairedLoans2Details"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/MortgageLoansIndividuallyImpairedLoans2Details" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_cf3c6f86-3131-4bcf-bd97-b54a70be1e26" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_b25654a0-c0db-4f74-927b-538f3d3c8aec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_cf3c6f86-3131-4bcf-bd97-b54a70be1e26" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceAverageRecordedInvestment_b25654a0-c0db-4f74-927b-538f3d3c8aec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_23410cbb-1a2b-4a2b-87cc-91945daf16a8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment_cf3c6f86-3131-4bcf-bd97-b54a70be1e26" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceAverageRecordedInvestment_23410cbb-1a2b-4a2b-87cc-91945daf16a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_61665dbc-b8e6-4613-bdf4-04727b8d6317" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_b09d5989-dd64-4805-8e8c-987a9257bded" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_61665dbc-b8e6-4613-bdf4-04727b8d6317" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceInterestIncomeCashBasisMethod_b09d5989-dd64-4805-8e8c-987a9257bded" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_dca40b7e-15b3-4376-8caf-95f9bc8b4c6d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ImpairedFinancingReceivableInterestIncomeCashBasisMethod_61665dbc-b8e6-4613-bdf4-04727b8d6317" xlink:to="loc_us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceInterestIncomeCashBasisMethod_dca40b7e-15b3-4376-8caf-95f9bc8b4c6d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceforLoanLosses" xlink:type="simple" xlink:href="fnm-20201231.xsd#AllowanceforLoanLosses"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceforLoanLosses" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceforLoanLossesTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#AllowanceforLoanLossesTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceforLoanLossesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceforLoanLossesRollforwardbySegmentDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#AllowanceforLoanLossesRollforwardbySegmentDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceforLoanLossesRollforwardbySegmentDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceforLoanLossesandTotalRecordedInvestmentinHFILoansDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#AllowanceforLoanLossesandTotalRecordedInvestmentinHFILoansDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceforLoanLossesandTotalRecordedInvestmentinHFILoansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_a6cc4f05-edec-4a89-bb30-c388a1c62d73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_b380e133-2954-48fc-bd84-3730b4da6e08" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_a6cc4f05-edec-4a89-bb30-c388a1c62d73" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1_b380e133-2954-48fc-bd84-3730b4da6e08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_c8b855b2-6673-4d10-b14f-eb37e7ed2492" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_a6cc4f05-edec-4a89-bb30-c388a1c62d73" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment_c8b855b2-6673-4d10-b14f-eb37e7ed2492" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_4f008887-6ced-4f02-ad0d-60d4018edaa1" xlink:href="fnm-20201231.xsd#fnm_RecordedInvestmentMortgageLoansHeldForInvestment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_1a6541e2-528d-4f60-97a2-74aa25e5d786" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_4f008887-6ced-4f02-ad0d-60d4018edaa1" xlink:to="loc_us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment_1a6541e2-528d-4f60-97a2-74aa25e5d786" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_ec8504ed-f6da-4a14-aa01-8a8dd515b8b4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_RecordedInvestmentMortgageLoansHeldForInvestment_4f008887-6ced-4f02-ad0d-60d4018edaa1" xlink:to="loc_us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment_ec8504ed-f6da-4a14-aa01-8a8dd515b8b4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/AllowanceforLoanLossesDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#AllowanceforLoanLossesDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/AllowanceforLoanLossesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ComprehensiveTextBlockListPolicies" xlink:type="simple" xlink:href="fnm-20201231.xsd#ComprehensiveTextBlockListPolicies"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ComprehensiveTextBlockListPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsinSecurities" xlink:type="simple" xlink:href="fnm-20201231.xsd#InvestmentsinSecurities"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsinSecurities" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsinSecuritiesTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#InvestmentsinSecuritiesTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsinSecuritiesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsinSecuritiesTrading1Details" xlink:type="simple" xlink:href="fnm-20201231.xsd#InvestmentsinSecuritiesTrading1Details"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsinSecuritiesTrading1Details" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsinSecuritiesTrading2Details" xlink:type="simple" xlink:href="fnm-20201231.xsd#InvestmentsinSecuritiesTrading2Details"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsinSecuritiesTrading2Details" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsinSecuritiesAvailableforsaleSecurities1Details" xlink:type="simple" xlink:href="fnm-20201231.xsd#InvestmentsinSecuritiesAvailableforsaleSecurities1Details"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsinSecuritiesAvailableforsaleSecurities1Details" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsinSecuritiesAvailableforsaleSecurities2Details" xlink:type="simple" xlink:href="fnm-20201231.xsd#InvestmentsinSecuritiesAvailableforsaleSecurities2Details"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsinSecuritiesAvailableforsaleSecurities2Details" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8cdaf1e7-5322-4485-a2c5-2e839ba8dca9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_90c201e4-66e4-4e6b-b2c0-689058cffe1a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8cdaf1e7-5322-4485-a2c5-2e839ba8dca9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_90c201e4-66e4-4e6b-b2c0-689058cffe1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_130b0e88-0ccf-4fdd-a628-9989569a6479" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8cdaf1e7-5322-4485-a2c5-2e839ba8dca9" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_130b0e88-0ccf-4fdd-a628-9989569a6479" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_8fc47525-b7c2-43af-8ea7-34c7920b2a72" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8cdaf1e7-5322-4485-a2c5-2e839ba8dca9" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_8fc47525-b7c2-43af-8ea7-34c7920b2a72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss_f42ba29b-ac52-40b5-844d-1cb1f581f2bc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8cdaf1e7-5322-4485-a2c5-2e839ba8dca9" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss_f42ba29b-ac52-40b5-844d-1cb1f581f2bc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsinSecuritiesAvailableforsaleSecurities3Details" xlink:type="simple" xlink:href="fnm-20201231.xsd#InvestmentsinSecuritiesAvailableforsaleSecurities3Details"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsinSecuritiesAvailableforsaleSecurities3Details" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsinSecuritiesOtherthantemporaryImpairments1Details" xlink:type="simple" xlink:href="fnm-20201231.xsd#InvestmentsinSecuritiesOtherthantemporaryImpairments1Details"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsinSecuritiesOtherthantemporaryImpairments1Details" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/InvestmentsinSecuritiesMaturityInformationDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#InvestmentsinSecuritiesMaturityInformationDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/InvestmentsinSecuritiesMaturityInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_c73b7239-415b-4060-9573-099f2e4782bc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_7a56f23d-6a0c-4cc3-95e9-3eae5540b2b8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_c73b7239-415b-4060-9573-099f2e4782bc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_7a56f23d-6a0c-4cc3-95e9-3eae5540b2b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_ea695ba7-374b-4ab0-bf5c-ff5ec9cb8f18" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_c73b7239-415b-4060-9573-099f2e4782bc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_ea695ba7-374b-4ab0-bf5c-ff5ec9cb8f18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_3b9929b2-1e8f-4351-b1d8-498433e4224d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_c73b7239-415b-4060-9573-099f2e4782bc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_3b9929b2-1e8f-4351-b1d8-498433e4224d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_542f43ec-cbef-4f6b-a97b-2c5cb840b9e7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_c73b7239-415b-4060-9573-099f2e4782bc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue_542f43ec-cbef-4f6b-a97b-2c5cb840b9e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_7d92bef6-d151-45e9-939d-4c810edab4fa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_8682b857-521e-46d2-bdf0-15a55f861698" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_7d92bef6-d151-45e9-939d-4c810edab4fa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_8682b857-521e-46d2-bdf0-15a55f861698" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_c8cd4226-d3fd-4fe9-934a-cf607237bd13" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_7d92bef6-d151-45e9-939d-4c810edab4fa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis_c8cd4226-d3fd-4fe9-934a-cf607237bd13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_d5c41b73-012f-4834-8092-eada7dc9bbaa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_7d92bef6-d151-45e9-939d-4c810edab4fa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis_d5c41b73-012f-4834-8092-eada7dc9bbaa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_2d2b64ae-0389-42b2-9987-a174b62211b8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_7d92bef6-d151-45e9-939d-4c810edab4fa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_2d2b64ae-0389-42b2-9987-a174b62211b8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuarantees" xlink:type="simple" xlink:href="fnm-20201231.xsd#FinancialGuarantees"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FinancialGuarantees" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuaranteesTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#FinancialGuaranteesTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FinancialGuaranteesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FinancialGuaranteesandMaximumRecoveryDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#FinancialGuaranteesandMaximumRecoveryDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FinancialGuaranteesandMaximumRecoveryDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermandLongTermDebt" xlink:type="simple" xlink:href="fnm-20201231.xsd#ShortTermandLongTermDebt"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermandLongTermDebt" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermandLongTermDebtTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#ShortTermandLongTermDebtTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermandLongTermDebtTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermDebtDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#ShortTermDebtDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermDebtDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/LongTermDebtDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#LongTermDebtDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/LongTermDebtDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ShortTermandLongTermDebtCharacteristicsofDebtDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#ShortTermandLongTermDebtCharacteristicsofDebtDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ShortTermandLongTermDebtCharacteristicsofDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_d318374a-5348-4016-b05e-5fb62dcb45dd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_3217c340-9f36-4df3-ae30-ad7160a495e3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d318374a-5348-4016-b05e-5fb62dcb45dd" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_3217c340-9f36-4df3-ae30-ad7160a495e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_95c012e1-7481-4e98-b5df-2916942be073" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d318374a-5348-4016-b05e-5fb62dcb45dd" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_95c012e1-7481-4e98-b5df-2916942be073" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_a1f90911-b305-41e6-8a88-a156f036aac2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d318374a-5348-4016-b05e-5fb62dcb45dd" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_a1f90911-b305-41e6-8a88-a156f036aac2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_ffaab72f-26bc-418d-beb6-1bcdc0a53948" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d318374a-5348-4016-b05e-5fb62dcb45dd" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_ffaab72f-26bc-418d-beb6-1bcdc0a53948" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_bd3333f0-3996-4e63-9e1f-782f1b144b83" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d318374a-5348-4016-b05e-5fb62dcb45dd" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_bd3333f0-3996-4e63-9e1f-782f1b144b83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_99ae2499-a605-4cff-8a19-1d7d52ebb4c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d318374a-5348-4016-b05e-5fb62dcb45dd" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_99ae2499-a605-4cff-8a19-1d7d52ebb4c7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstruments" xlink:type="simple" xlink:href="fnm-20201231.xsd#DerivativeInstruments"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstruments" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#DerivativeInstrumentsTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstrumentsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives1NotionalandFVPositionDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#DerivativeInstrumentsDerivatives1NotionalandFVPositionDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives1NotionalandFVPositionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_d3e38adc-1abd-4448-ba5c-93443d6685d2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeAssetsInterestReceivable_18fc077a-e290-4b43-94b1-f62a15796159" xlink:href="fnm-20201231.xsd#fnm_DerivativeAssetsInterestReceivable"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_d3e38adc-1abd-4448-ba5c-93443d6685d2" xlink:to="loc_fnm_DerivativeAssetsInterestReceivable_18fc077a-e290-4b43-94b1-f62a15796159" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeFairValueGrossAssetAllDerivatives_41631981-d386-4059-9a6f-fc89529d8813" xlink:href="fnm-20201231.xsd#fnm_DerivativeFairValueGrossAssetAllDerivatives"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_d3e38adc-1abd-4448-ba5c-93443d6685d2" xlink:to="loc_fnm_DerivativeFairValueGrossAssetAllDerivatives_41631981-d386-4059-9a6f-fc89529d8813" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_99dfa66b-11f4-4273-9226-da8b86a21ef9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_d3e38adc-1abd-4448-ba5c-93443d6685d2" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_99dfa66b-11f4-4273-9226-da8b86a21ef9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_fb002d73-3c0e-420a-a0a7-c70c7cce253d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives_592fa826-9a35-4e6f-86ec-5b6e33d632ee" xlink:href="fnm-20201231.xsd#fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_fb002d73-3c0e-420a-a0a7-c70c7cce253d" xlink:to="loc_fnm_DerivativeLiabilityFairValueGrossLiabilityAllDerivatives_592fa826-9a35-4e6f-86ec-5b6e33d632ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeLiabilityInterestPayable_7cd3be70-cb1e-4aa8-90dd-b4155313b713" xlink:href="fnm-20201231.xsd#fnm_DerivativeLiabilityInterestPayable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_fb002d73-3c0e-420a-a0a7-c70c7cce253d" xlink:to="loc_fnm_DerivativeLiabilityInterestPayable_7cd3be70-cb1e-4aa8-90dd-b4155313b713" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_1d207f03-c1c7-4498-9c56-aaff2161444b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_fb002d73-3c0e-420a-a0a7-c70c7cce253d" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_1d207f03-c1c7-4498-9c56-aaff2161444b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsNarrativesDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#DerivativeInstrumentsNarrativesDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstrumentsNarrativesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives2FVGainsandLossesDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#DerivativeInstrumentsDerivatives2FVGainsandLossesDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/DerivativeInstrumentsDerivatives2FVGainsandLossesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxes" xlink:type="simple" xlink:href="fnm-20201231.xsd#IncomeTaxes"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxes" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#IncomeTaxesTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesProvisionBenefitforIncomeTaxesDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#IncomeTaxesProvisionBenefitforIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxesProvisionBenefitforIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d7f63fae-d828-42f1-96c2-82049a0d6e71" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_3f67d882-f51a-4bff-9d26-a2bd309914e5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d7f63fae-d828-42f1-96c2-82049a0d6e71" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_3f67d882-f51a-4bff-9d26-a2bd309914e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_a2090403-92c4-4c97-9e39-7282acdbaa96" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d7f63fae-d828-42f1-96c2-82049a0d6e71" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment_a2090403-92c4-4c97-9e39-7282acdbaa96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_5ea5071f-2241-4f59-a1e0-59bf6e14c962" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d7f63fae-d828-42f1-96c2-82049a0d6e71" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_5ea5071f-2241-4f59-a1e0-59bf6e14c962" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxSettlements_bc8348b6-103a-4444-86fa-b32031556c8e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxSettlements"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d7f63fae-d828-42f1-96c2-82049a0d6e71" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxSettlements_bc8348b6-103a-4444-86fa-b32031556c8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_17b447e7-57e3-4136-bd4c-b23f379c91eb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d7f63fae-d828-42f1-96c2-82049a0d6e71" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_17b447e7-57e3-4136-bd4c-b23f379c91eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_ea04bfa6-a289-48c5-b389-c24f0b15e7f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_33cf0097-8802-4f65-97a8-52544481d37e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_ea04bfa6-a289-48c5-b389-c24f0b15e7f5" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_33cf0097-8802-4f65-97a8-52544481d37e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_cdb7c746-45dc-429c-992f-4daf28cead95" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_ea04bfa6-a289-48c5-b389-c24f0b15e7f5" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_cdb7c746-45dc-429c-992f-4daf28cead95" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_8bcafd10-352d-499e-86d5-f6e982ca316c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesNet_2579360c-307d-4627-91bf-f9dc42611b56" xlink:href="fnm-20201231.xsd#fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_8bcafd10-352d-499e-86d5-f6e982ca316c" xlink:to="loc_fnm_DeferredTaxAssetsUnrealizedGainsOnAvailableForSaleSecuritiesNet_2579360c-307d-4627-91bf-f9dc42611b56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_a1213f1f-965b-43fd-9149-edff2e983515" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_8bcafd10-352d-499e-86d5-f6e982ca316c" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_a1213f1f-965b-43fd-9149-edff2e983515" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_74749fc2-ad32-46e7-9fc3-aef65039932f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans_d75389e5-0d04-4fc1-92b3-298d0cbd5035" xlink:href="fnm-20201231.xsd#fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_74749fc2-ad32-46e7-9fc3-aef65039932f" xlink:to="loc_fnm_MortgageAndMortgageRelatedAssetsIncludingAcquiredCreditImpairedLoans_d75389e5-0d04-4fc1-92b3-298d0cbd5035" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_67a8668b-8936-4c82-9d99-1a59b7a89673" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_74749fc2-ad32-46e7-9fc3-aef65039932f" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_67a8668b-8936-4c82-9d99-1a59b7a89673" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_2cf70c3e-436a-45d3-aa1f-93f8bfbcc768" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_74749fc2-ad32-46e7-9fc3-aef65039932f" xlink:to="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_2cf70c3e-436a-45d3-aa1f-93f8bfbcc768" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsEquityMethodInvestments_ce953684-fe25-44e9-b69c-99e4f88b6170" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsEquityMethodInvestments"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_74749fc2-ad32-46e7-9fc3-aef65039932f" xlink:to="loc_us-gaap_DeferredTaxAssetsEquityMethodInvestments_ce953684-fe25-44e9-b69c-99e4f88b6170" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsInvestments_de3c21a6-15bf-479f-b9b8-d5db845b3cfc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsInvestments"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_74749fc2-ad32-46e7-9fc3-aef65039932f" xlink:to="loc_us-gaap_DeferredTaxAssetsInvestments_de3c21a6-15bf-479f-b9b8-d5db845b3cfc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_da467126-daea-4918-9651-4ee98b82479e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_d7635688-98ec-4da9-a733-e047bf44f867" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_da467126-daea-4918-9651-4ee98b82479e" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_d7635688-98ec-4da9-a733-e047bf44f867" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_9158bbd6-743b-464a-b0a5-8d4e824a07ad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_da467126-daea-4918-9651-4ee98b82479e" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_9158bbd6-743b-464a-b0a5-8d4e824a07ad" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#IncomeTaxesUnrecognizedTaxBenefitsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReporting" xlink:type="simple" xlink:href="fnm-20201231.xsd#SegmentReporting"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReporting" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#SegmentReportingTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReportingTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingNarrativeDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#SegmentReportingNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReportingNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingAssetsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#SegmentReportingAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReportingAssetsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SegmentReportingDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#SegmentReportingDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SegmentReportingDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/Equity" xlink:type="simple" xlink:href="fnm-20201231.xsd#Equity"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/Equity" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#EquityTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityNarrativesDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#EquityNarrativesDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityNarrativesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityScheduleofStockbyClassDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#EquityScheduleofStockbyClassDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityScheduleofStockbyClassDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#EquityAccumulatedOtherComprehensiveIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_3564349a-75eb-49c2-bfc6-69e0b3bf4f6f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded_07d7fec2-d527-4006-a90a-dab2ad20e0a6" xlink:href="fnm-20201231.xsd#fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_3564349a-75eb-49c2-bfc6-69e0b3bf4f6f" xlink:to="loc_fnm_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAvailableForSaleSecuritiesOtherThanTemporaryImpairmentNotRecorded_07d7fec2-d527-4006-a90a-dab2ad20e0a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_f0a94564-5ad0-4fc2-abaf-9b3f00cdbe33" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_3564349a-75eb-49c2-bfc6-69e0b3bf4f6f" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_f0a94564-5ad0-4fc2-abaf-9b3f00cdbe33" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/EquityChangesinAOCIDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#EquityChangesinAOCIDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/EquityChangesinAOCIDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirements" xlink:type="simple" xlink:href="fnm-20201231.xsd#RegulatoryCapitalRequirements"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/RegulatoryCapitalRequirements" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#RegulatoryCapitalRequirementsTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#RegulatoryCapitalRequirementsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/RegulatoryCapitalRequirementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_38261f8c-be93-453b-8173-51831fbeca29" xlink:href="fnm-20201231.xsd#fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Capital_9220e485-e5d6-483b-b6ca-094940f8269b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Capital"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_38261f8c-be93-453b-8173-51831fbeca29" xlink:to="loc_us-gaap_Capital_9220e485-e5d6-483b-b6ca-094940f8269b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalRequiredForCapitalAdequacy_ea7b51c4-6889-4aa9-a4b5-1338d951fd35" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CapitalRequiredForCapitalAdequacy"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DeficitOfCoreCapitalOverStatutoryMinimumCapitalRequirement_38261f8c-be93-453b-8173-51831fbeca29" xlink:to="loc_us-gaap_CapitalRequiredForCapitalAdequacy_ea7b51c4-6889-4aa9-a4b5-1338d951fd35" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsofCreditRisk" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConcentrationsofCreditRisk"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsofCreditRisk" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsofCreditRiskTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConcentrationsofCreditRiskTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsofCreditRiskTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsofCreditRiskGeographicConcentrationDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConcentrationsofCreditRiskGeographicConcentrationDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsofCreditRiskGeographicConcentrationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsofCreditRiskSFRiskCharacteristicsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConcentrationsofCreditRiskSFRiskCharacteristicsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsofCreditRiskSFRiskCharacteristicsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsofCreditRiskMFRiskCharacteristicsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConcentrationsofCreditRiskMFRiskCharacteristicsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsofCreditRiskMFRiskCharacteristicsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/ConcentrationsofCreditRiskOtherConcentrationsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#ConcentrationsofCreditRiskOtherConcentrationsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/ConcentrationsofCreditRiskOtherConcentrationsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/RisksandUncertaintiesPolicies" xlink:type="simple" xlink:href="fnm-20201231.xsd#RisksandUncertaintiesPolicies"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/RisksandUncertaintiesPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangements" xlink:type="simple" xlink:href="fnm-20201231.xsd#NettingArrangements"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangements" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsPolicies" xlink:type="simple" xlink:href="fnm-20201231.xsd#NettingArrangementsPolicies"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#NettingArrangementsTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#NettingArrangementsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_6dc0af8b-b126-4b6a-bec5-6a114a07b00c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_1a8e9cf5-7abd-40b1-9807-525dbbc03829" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_6dc0af8b-b126-4b6a-bec5-6a114a07b00c" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_1a8e9cf5-7abd-40b1-9807-525dbbc03829" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_4497c92e-09ac-49ca-a23f-6d1a13076d25" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_6dc0af8b-b126-4b6a-bec5-6a114a07b00c" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_4497c92e-09ac-49ca-a23f-6d1a13076d25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_adea3410-d582-4ac0-b0bd-40d1f851ebcc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_6dc0af8b-b126-4b6a-bec5-6a114a07b00c" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_adea3410-d582-4ac0-b0bd-40d1f851ebcc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_b8515854-91fe-40d4-a0ba-bcf4c832505b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_137616c8-5944-43d0-8092-8bc869ea1487" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_b8515854-91fe-40d4-a0ba-bcf4c832505b" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_137616c8-5944-43d0-8092-8bc869ea1487" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_f7d86ddd-7f27-4f71-ba5f-33099fc9e973" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_b8515854-91fe-40d4-a0ba-bcf4c832505b" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGross_f7d86ddd-7f27-4f71-ba5f-33099fc9e973" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_5f5fade4-2541-4611-8465-6a317d08cc09" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_423a9236-54da-47fa-bd75-ec90bac58f14" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_5f5fade4-2541-4611-8465-6a317d08cc09" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_423a9236-54da-47fa-bd75-ec90bac58f14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_8ae658b4-fe21-4f58-85c3-969dd185b96d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_5f5fade4-2541-4611-8465-6a317d08cc09" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellCollateralObligationToReturnSecurities_8ae658b4-fe21-4f58-85c3-969dd185b96d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_b98512b7-cc78-4bd9-8a5c-d70c05f239dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_ef7db45c-4d18-4682-b7d7-4d5f0f12da7f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_b98512b7-cc78-4bd9-8a5c-d70c05f239dc" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_ef7db45c-4d18-4682-b7d7-4d5f0f12da7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_969f9b54-422c-45b3-8c2b-8d046305ac14" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_ca6b8b47-a2cc-4758-9079-7e4d578c1ace" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_969f9b54-422c-45b3-8c2b-8d046305ac14" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_ca6b8b47-a2cc-4758-9079-7e4d578c1ace" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_6ccf8bbd-60b7-4ddb-81b2-68e806527442" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_969f9b54-422c-45b3-8c2b-8d046305ac14" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellAmountOffsetAgainstCollateral_6ccf8bbd-60b7-4ddb-81b2-68e806527442" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_f5ab79f1-22fe-43b6-b7e0-fd4fa3cc71f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_1b1303bf-358b-487f-889c-3ed355ab8967" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_f5ab79f1-22fe-43b6-b7e0-fd4fa3cc71f9" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_1b1303bf-358b-487f-889c-3ed355ab8967" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_0e85c765-55ec-4775-b72f-83717d2100f2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_f5ab79f1-22fe-43b6-b7e0-fd4fa3cc71f9" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_0e85c765-55ec-4775-b72f-83717d2100f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_76adf28a-5374-47ef-b81e-6bf835b21749" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_f5ab79f1-22fe-43b6-b7e0-fd4fa3cc71f9" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_76adf28a-5374-47ef-b81e-6bf835b21749" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_1e437b09-ff81-49e4-b1c3-e982af125ae2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_db95ec4a-89a8-4120-94e9-208b22160251" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_1e437b09-ff81-49e4-b1c3-e982af125ae2" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_db95ec4a-89a8-4120-94e9-208b22160251" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_e5f4cbe0-2e28-4181-87db-d9e40461da21" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_1e437b09-ff81-49e4-b1c3-e982af125ae2" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_e5f4cbe0-2e28-4181-87db-d9e40461da21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_73cd71ed-ffea-4764-ada4-6c988f222624" xlink:href="fnm-20201231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_5e39cb3c-ac0b-40d4-b35f-5a10d40fdf32" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_73cd71ed-ffea-4764-ada4-6c988f222624" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross_5e39cb3c-ac0b-40d4-b35f-5a10d40fdf32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_e998a5f7-c32b-4111-ab45-63e6fc00f0f0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_73cd71ed-ffea-4764-ada4-6c988f222624" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAsset_e998a5f7-c32b-4111-ab45-63e6fc00f0f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_97364ac8-6330-4b70-bb82-b9da6b3a406c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_841a3a9c-fb9a-4db4-ac73-935b9f18eadd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_97364ac8-6330-4b70-bb82-b9da6b3a406c" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_841a3a9c-fb9a-4db4-ac73-935b9f18eadd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseCollateralRightToReclaimSecurities_e54c38e0-df2a-4631-ad43-b427fe10cd69" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseCollateralRightToReclaimSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_97364ac8-6330-4b70-bb82-b9da6b3a406c" xlink:to="loc_us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseCollateralRightToReclaimSecurities_e54c38e0-df2a-4631-ad43-b427fe10cd69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_e6c8f173-fd14-494c-834c-7870ed9a8fc8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_6d2106ae-b5fb-4659-a4d3-65fc0384d61e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_e6c8f173-fd14-494c-834c-7870ed9a8fc8" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_6d2106ae-b5fb-4659-a4d3-65fc0384d61e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_bdd81de9-c4be-4e8f-9018-e2b8d9b15c4e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_e6c8f173-fd14-494c-834c-7870ed9a8fc8" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellGross_bdd81de9-c4be-4e8f-9018-e2b8d9b15c4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_008699d8-1fe7-4652-95c7-c4e245447ec0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_31329b10-65cd-4483-abba-f0e51ffeb7e1" xlink:href="fnm-20201231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_008699d8-1fe7-4652-95c7-c4e245447ec0" xlink:to="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedSubjectToMasterNettingArrangements_31329b10-65cd-4483-abba-f0e51ffeb7e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_217d5e79-7bf3-4bbe-988a-d5819936f793" xlink:href="fnm-20201231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_008699d8-1fe7-4652-95c7-c4e245447ec0" xlink:to="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_217d5e79-7bf3-4bbe-988a-d5819936f793" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_b012e66a-9316-4f70-815f-319594e2a9f1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral_008699d8-1fe7-4652-95c7-c4e245447ec0" xlink:to="loc_us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities_b012e66a-9316-4f70-815f-319594e2a9f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_e9728324-481c-4948-95dc-68ed0199a0d3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_fd3c9fa9-eb66-42d9-99b1-5566b71fd47f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_e9728324-481c-4948-95dc-68ed0199a0d3" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_fd3c9fa9-eb66-42d9-99b1-5566b71fd47f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_b3c58af0-cf73-4eef-b974-d474ec1ba7f0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_e9728324-481c-4948-95dc-68ed0199a0d3" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellLiability_b3c58af0-cf73-4eef-b974-d474ec1ba7f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_b38f076f-28db-4256-9a1e-b951a20a08a1" xlink:href="fnm-20201231.xsd#fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_90a639c3-d57f-4be3-9848-379621902a93" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_b38f076f-28db-4256-9a1e-b951a20a08a1" xlink:to="loc_us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction_90a639c3-d57f-4be3-9848-379621902a93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_e9f97111-5293-4944-8707-e27b72cafdd9" xlink:href="fnm-20201231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_f0453614-a49b-4e23-96bc-4a01d04adb3d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_e9f97111-5293-4944-8707-e27b72cafdd9" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedGross_f0453614-a49b-4e23-96bc-4a01d04adb3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_bb54a34d-ada3-4906-8efa-af3109fed0f3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_e9f97111-5293-4944-8707-e27b72cafdd9" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability_bb54a34d-ada3-4906-8efa-af3109fed0f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_92f50e2a-bf5e-4706-9be3-ed661a34d28a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_393bc422-d655-40f0-9695-fbb8a98833f4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_92f50e2a-bf5e-4706-9be3-ed661a34d28a" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_393bc422-d655-40f0-9695-fbb8a98833f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_80b1495c-9355-460d-9ba2-f5a6c3de3e86" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_92f50e2a-bf5e-4706-9be3-ed661a34d28a" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_80b1495c-9355-460d-9ba2-f5a6c3de3e86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_4faec4e5-a144-4162-95dd-6f5e1b9dd7ef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_92f50e2a-bf5e-4706-9be3-ed661a34d28a" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_4faec4e5-a144-4162-95dd-6f5e1b9dd7ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_a65f3142-2b77-4318-8209-9ba1c2435315" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_efead198-7108-4cd6-9bd2-be7cc83f6094" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_a65f3142-2b77-4318-8209-9ba1c2435315" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_efead198-7108-4cd6-9bd2-be7cc83f6094" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_91107474-5115-476b-90a6-7342ad1d4e3e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_a65f3142-2b77-4318-8209-9ba1c2435315" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_91107474-5115-476b-90a6-7342ad1d4e3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_adfc8e5c-0730-452a-aa3b-4f726d09a6a7" xlink:href="fnm-20201231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_72b44c22-c378-4a08-a188-ac855c177a37" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_adfc8e5c-0730-452a-aa3b-4f726d09a6a7" xlink:to="loc_us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction_72b44c22-c378-4a08-a188-ac855c177a37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_4b924d59-aa7b-4bf9-a4ae-b1a5326a699c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_adfc8e5c-0730-452a-aa3b-4f726d09a6a7" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotOffsetPolicyElectionDeduction_4b924d59-aa7b-4bf9-a4ae-b1a5326a699c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsDetails_1" xlink:type="simple" xlink:href="fnm-20201231.xsd#NettingArrangementsDetails_1"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_a47a2d3e-5e23-4d5d-a7c1-d1887cab53b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_e90c65ba-8294-40d7-a70f-512405707380" xlink:href="fnm-20201231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_a47a2d3e-5e23-4d5d-a7c1-d1887cab53b5" xlink:to="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_e90c65ba-8294-40d7-a70f-512405707380" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_a9167cf1-3cc6-4713-badf-b74bcc5b6fbe" xlink:href="fnm-20201231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_a47a2d3e-5e23-4d5d-a7c1-d1887cab53b5" xlink:to="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSubjectToMasterNettingArrangementNotOffsetFinancialInstruments_a9167cf1-3cc6-4713-badf-b74bcc5b6fbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_7c496445-0d0a-4956-8199-c362447debc6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedAmountOffsetAgainstCollateral_a47a2d3e-5e23-4d5d-a7c1-d1887cab53b5" xlink:to="loc_us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedCollateralObligationToReturnSecurities_7c496445-0d0a-4956-8199-c362447debc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_ae88bf8c-c26a-4346-9a68-5ad27b2378db" xlink:href="fnm-20201231.xsd#fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_26f257df-7651-4e18-aafd-ddc775dea375" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_ae88bf8c-c26a-4346-9a68-5ad27b2378db" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_26f257df-7651-4e18-aafd-ddc775dea375" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_b36d2152-7016-4eb3-bb3c-69046cde05fc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fnm_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedSubjectToMasterNettingArrangement_ae88bf8c-c26a-4346-9a68-5ad27b2378db" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResellNotSubjectToMasterNettingArrangement_b36d2152-7016-4eb3-bb3c-69046cde05fc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/NettingArrangementsNarrativesDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#NettingArrangementsNarrativesDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/NettingArrangementsNarrativesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValue" xlink:type="simple" xlink:href="fnm-20201231.xsd#FairValue"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValue" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValuePolicies" xlink:type="simple" xlink:href="fnm-20201231.xsd#FairValuePolicies"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValuePolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#FairValueTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevelsHierarchyDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#FairValueLevelsHierarchyDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueLevelsHierarchyDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_c36a49cb-0467-493c-852f-c96431c22b66" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_d9c0622d-6112-4d6c-86c3-f7ec8b576283" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_c36a49cb-0467-493c-852f-c96431c22b66" xlink:to="loc_us-gaap_LongTermDebtFairValue_d9c0622d-6112-4d6c-86c3-f7ec8b576283" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_66f41a68-e146-4e8f-9d0a-5a94f003c29f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_c36a49cb-0467-493c-852f-c96431c22b66" xlink:to="loc_us-gaap_DerivativeLiabilities_66f41a68-e146-4e8f-9d0a-5a94f003c29f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3RollforwardDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#FairValueLevel3RollforwardDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueLevel3RollforwardDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3ValuationInputsRecurringDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#FairValueLevel3ValuationInputsRecurringDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueLevel3ValuationInputsRecurringDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueLevel3ValuationNonrecurringDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#FairValueLevel3ValuationNonrecurringDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueLevel3ValuationNonrecurringDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueofFinancialInstrumentsDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#FairValueofFinancialInstrumentsDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueofFinancialInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_e4601f13-6b07-447d-bd9c-55a87655f7d0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradingSecurities_a5eb387a-ac46-42e0-a256-14a96f9da161" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TradingSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e4601f13-6b07-447d-bd9c-55a87655f7d0" xlink:to="loc_us-gaap_TradingSecurities_a5eb387a-ac46-42e0-a256-14a96f9da161" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecurities_b8b8c8c7-f5f2-4ba6-9035-1a87e4c9b646" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e4601f13-6b07-447d-bd9c-55a87655f7d0" xlink:to="loc_us-gaap_AvailableForSaleSecurities_b8b8c8c7-f5f2-4ba6-9035-1a87e4c9b646" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_89c643e7-010d-4414-8724-3bc3b70f3a7e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MortgagesHeldForSaleFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e4601f13-6b07-447d-bd9c-55a87655f7d0" xlink:to="loc_us-gaap_MortgagesHeldForSaleFairValueDisclosure_89c643e7-010d-4414-8724-3bc3b70f3a7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_81f9e859-e73a-4d31-9e11-ba59f9d738bc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansReceivableFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e4601f13-6b07-447d-bd9c-55a87655f7d0" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_81f9e859-e73a-4d31-9e11-ba59f9d738bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_AdvancesToLendersFairValueDisclosure_a3c608fc-2d83-45cc-a024-b407a0d589f0" xlink:href="fnm-20201231.xsd#fnm_AdvancesToLendersFairValueDisclosure"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e4601f13-6b07-447d-bd9c-55a87655f7d0" xlink:to="loc_fnm_AdvancesToLendersFairValueDisclosure_a3c608fc-2d83-45cc-a024-b407a0d589f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_5f5e5f8e-236f-45d6-af8d-41c808464f22" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e4601f13-6b07-447d-bd9c-55a87655f7d0" xlink:to="loc_us-gaap_DerivativeAssets_5f5e5f8e-236f-45d6-af8d-41c808464f22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure_fb889e12-e488-4eb1-b213-efb497ac580d" xlink:href="fnm-20201231.xsd#fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e4601f13-6b07-447d-bd9c-55a87655f7d0" xlink:to="loc_fnm_GuarantyAssetsAndBuyUpsFairValueDisclosure_fb889e12-e488-4eb1-b213-efb497ac580d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure_29ee5ae4-c9c8-4ae7-92a3-9a9e23dd838e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e4601f13-6b07-447d-bd9c-55a87655f7d0" xlink:to="loc_us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure_29ee5ae4-c9c8-4ae7-92a3-9a9e23dd838e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure_bd502f13-f7e8-4852-b209-e81780794271" xlink:href="fnm-20201231.xsd#fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e4601f13-6b07-447d-bd9c-55a87655f7d0" xlink:to="loc_fnm_CashCashEquivalentsAndRestrictedCashFairValueDisclosure_bd502f13-f7e8-4852-b209-e81780794271" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueOptionDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#FairValueOptionDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueOptionDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/FairValueChangesinFVundertheFVOptionDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#FairValueChangesinFVundertheFVOptionDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/FairValueChangesinFVundertheFVOptionDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsandContingencies" xlink:type="simple" xlink:href="fnm-20201231.xsd#CommitmentsandContingencies"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CommitmentsandContingencies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsandContingenciesPolicies" xlink:type="simple" xlink:href="fnm-20201231.xsd#CommitmentsandContingenciesPolicies"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CommitmentsandContingenciesPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsandContingenciesTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#CommitmentsandContingenciesTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CommitmentsandContingenciesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsandContingenciesDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#CommitmentsandContingenciesDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CommitmentsandContingenciesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/CommitmentsandContingenciesFiscalYearMaturityScheduleDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#CommitmentsandContingenciesFiscalYearMaturityScheduleDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/CommitmentsandContingenciesFiscalYearMaturityScheduleDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligation_7eb7a11e-c5b7-4374-83ff-85c03b6920ee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_3f35fca1-e533-47d9-b029-7a9b13dcb761" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_7eb7a11e-c5b7-4374-83ff-85c03b6920ee" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_3f35fca1-e533-47d9-b029-7a9b13dcb761" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_1a0440f7-e2c5-4956-b53f-443066311482" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_7eb7a11e-c5b7-4374-83ff-85c03b6920ee" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_1a0440f7-e2c5-4956-b53f-443066311482" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_758ac77d-aca6-4f3b-9ae4-3f1a24a4bd8f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_7eb7a11e-c5b7-4374-83ff-85c03b6920ee" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_758ac77d-aca6-4f3b-9ae4-3f1a24a4bd8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_32d6e43d-0c0d-4839-bec1-807f75d84b02" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInFourthYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_7eb7a11e-c5b7-4374-83ff-85c03b6920ee" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_32d6e43d-0c0d-4839-bec1-807f75d84b02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_f7abeda2-50e7-4dfe-bc5c-935bea8aa183" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueInFifthYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_7eb7a11e-c5b7-4374-83ff-85c03b6920ee" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_f7abeda2-50e7-4dfe-bc5c-935bea8aa183" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueAfterFifthYear_95003358-4e24-4256-824e-d71220e2017a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PurchaseObligationDueAfterFifthYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_7eb7a11e-c5b7-4374-83ff-85c03b6920ee" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_95003358-4e24-4256-824e-d71220e2017a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitment_d697b9c7-b9ad-4521-adf8-4eff82492c51" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_f9db87e7-00d8-4e67-a7d6-e705a9032765" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitmentDueInNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_d697b9c7-b9ad-4521-adf8-4eff82492c51" xlink:to="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_f9db87e7-00d8-4e67-a7d6-e705a9032765" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInSecondYear_2384f7ad-4283-4f29-9325-12d443ffd743" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitmentDueInSecondYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_d697b9c7-b9ad-4521-adf8-4eff82492c51" xlink:to="loc_us-gaap_OtherCommitmentDueInSecondYear_2384f7ad-4283-4f29-9325-12d443ffd743" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInThirdYear_a32c4621-924c-47e6-ab23-c3b4cdea0f08" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitmentDueInThirdYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_d697b9c7-b9ad-4521-adf8-4eff82492c51" xlink:to="loc_us-gaap_OtherCommitmentDueInThirdYear_a32c4621-924c-47e6-ab23-c3b4cdea0f08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInFourthYear_b6c60d1b-f1c4-4299-80a8-3bba05e0fc04" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitmentDueInFourthYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_d697b9c7-b9ad-4521-adf8-4eff82492c51" xlink:to="loc_us-gaap_OtherCommitmentDueInFourthYear_b6c60d1b-f1c4-4299-80a8-3bba05e0fc04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInFifthYear_54e00555-080a-4c4e-bde6-ff3f48b94ff6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitmentDueInFifthYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_d697b9c7-b9ad-4521-adf8-4eff82492c51" xlink:to="loc_us-gaap_OtherCommitmentDueInFifthYear_54e00555-080a-4c4e-bde6-ff3f48b94ff6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueAfterFifthYear_9e7bc4c0-d07f-48f0-8c08-a4e80d3a65a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitmentDueAfterFifthYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherCommitment_d697b9c7-b9ad-4521-adf8-4eff82492c51" xlink:to="loc_us-gaap_OtherCommitmentDueAfterFifthYear_9e7bc4c0-d07f-48f0-8c08-a4e80d3a65a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92943fe2-ab6f-442d-b2ce-15b0f1851772" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_0d8f3b87-f0c2-4665-98db-fcc6d4a91c6a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92943fe2-ab6f-442d-b2ce-15b0f1851772" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_0d8f3b87-f0c2-4665-98db-fcc6d4a91c6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_181df59a-ede7-41be-95f2-a24fabbb1771" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92943fe2-ab6f-442d-b2ce-15b0f1851772" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_181df59a-ede7-41be-95f2-a24fabbb1771" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_e11223c7-e043-41e1-a283-4dbb6191cbc4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92943fe2-ab6f-442d-b2ce-15b0f1851772" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_e11223c7-e043-41e1-a283-4dbb6191cbc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_ba7e7ead-fe5a-4d08-ae77-6fe84aa665a0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92943fe2-ab6f-442d-b2ce-15b0f1851772" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_ba7e7ead-fe5a-4d08-ae77-6fe84aa665a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_38636a46-fdad-409d-9a0e-78fb626dfdc5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92943fe2-ab6f-442d-b2ce-15b0f1851772" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_38636a46-fdad-409d-9a0e-78fb626dfdc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_1a876452-2b4e-40c3-94f6-8668581d0d73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_92943fe2-ab6f-442d-b2ce-15b0f1851772" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_1a876452-2b4e-40c3-94f6-8668581d0d73" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnaudited" xlink:type="simple" xlink:href="fnm-20201231.xsd#SelectedQuarterlyFinancialInformationUnaudited"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnaudited" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedTables" xlink:type="simple" xlink:href="fnm-20201231.xsd#SelectedQuarterlyFinancialInformationUnauditedTables"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:type="simple" xlink:href="fnm-20201231.xsd#SelectedQuarterlyFinancialInformationUnauditedDetails"/>
  <link:calculationLink xlink:role="http://www.fanniemae.com/role/SelectedQuarterlyFinancialInformationUnauditedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_e60a28db-4599-4e2f-a540-b6a7dc9ea081" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_1c1a078b-5cab-4af7-a276-fa7b0ec03c72" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_e60a28db-4599-4e2f-a540-b6a7dc9ea081" xlink:to="loc_us-gaap_ProfitLoss_1c1a078b-5cab-4af7-a276-fa7b0ec03c72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_3698b7d7-60b9-461e-8a64-1016a9fb26be" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_e60a28db-4599-4e2f-a540-b6a7dc9ea081" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_3698b7d7-60b9-461e-8a64-1016a9fb26be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_663c7b2d-179f-43ef-ad85-566d2ab13cc8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_9824de55-ddd1-4f57-94bb-85478aa1a890" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_663c7b2d-179f-43ef-ad85-566d2ab13cc8" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_9824de55-ddd1-4f57-94bb-85478aa1a890" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_3f4e8fda-d720-4096-8f9e-2bb96dea7edc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_663c7b2d-179f-43ef-ad85-566d2ab13cc8" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_3f4e8fda-d720-4096-8f9e-2bb96dea7edc" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
