XML 104 R21.htm IDEA: XBRL DOCUMENT v3.20.4
Fair Value
12 Months Ended
Dec. 31, 2020
Fair Value Disclosures [Abstract]  
Fair Value Fair Value
We use fair value measurements for the initial recording of certain assets and liabilities and periodic remeasurement of certain assets and liabilities on a recurring or nonrecurring basis.
Fair Value Measurement
Fair value measurement guidance defines fair value, establishes a framework for measuring fair value and sets forth disclosures around fair value measurements. This guidance applies whenever other accounting guidance requires or permits assets or liabilities to be measured at fair value. The guidance establishes a three-level fair value hierarchy that prioritizes the inputs into the valuation techniques used to measure fair value. The fair value hierarchy gives the highest priority, Level 1, to measurements based on unadjusted quoted prices in active markets for identical assets or liabilities. The next highest priority, Level 2, is given to measurements of assets and liabilities based on limited observable inputs or observable inputs for similar assets and liabilities. The lowest priority, Level 3, is given to measurements based on unobservable inputs.
Recurring Changes in Fair Value
The following tables display our assets and liabilities measured in our consolidated balance sheets at fair value on a recurring basis subsequent to initial recognition, including instruments for which we have elected the fair value option.
Fair Value Measurements as of December 31, 2020
Quoted Prices in Active Markets for Identical Assets (Level 1)
Significant Other Observable Inputs
(Level 2)
Significant Unobservable Inputs
(Level 3)
Netting Adjustment(1)
Estimated Fair Value
(Dollars in millions)
Recurring fair value measurements:
Assets:
Cash equivalents(2)
$1,120 $— $— $— $1,120 
Trading securities:
  
Mortgage-related securities:
Fannie Mae— 2,310 94 — 2,404 
Other agency— 3,450 — 3,451 
Private-label and other mortgage securities— 158 — — 158 
Non-mortgage-related securities:
U.S. Treasury securities130,456 — — — 130,456 
Other securities— 73 — — 73 
Total trading securities130,456 5,991 95 — 136,542 
Available-for-sale securities:
Mortgage-related securities:
Fannie Mae— 973 195 — 1,168 
Other agency— 65 — — 65 
Alt-A and subprime private-label securities— — 
Mortgage revenue bonds— — 216 — 216 
Other— 235 — 242 
Total available-for-sale securities— 1,049 648 — 1,697 
Mortgage loans— 5,629 861 — 6,490 
Other assets:
Risk management derivatives:
Swaps— 376 203 — 579 
Swaptions— 383 — — 383 
Netting adjustment— — — (905)(905)
Mortgage commitment derivatives— 989 — — 989 
Credit enhancement derivatives— — 179 — 179 
Total other assets— 1,748 382 (905)1,225 
Total assets at fair value$131,576 $14,417 $1,986 $(905)$147,074 
Liabilities:
Long-term debt:
Of Fannie Mae:
Senior floating$— $3,312 $416 $— $3,728 
Total of Fannie Mae— 3,312 416 — 3,728 
Of consolidated trusts— 24,503 83 — 24,586 
Total long-term debt— 27,815 499 — 28,314 
Other liabilities:
Risk management derivatives:
Swaps— 881 — — 881 
Swaptions— 134 — — 134 
Netting adjustment— — — (995)(995)
Mortgage commitment derivatives— 1,426 — — 1,426 
Credit enhancement derivatives— — 49 — 49 
Total other liabilities— 2,441 49 (995)1,495 
Total liabilities at fair value$— $30,256 $548 $(995)$29,809 
Fair Value Measurements as of December 31, 2019
Quoted Prices in Active Markets for Identical Assets (Level 1)
Significant Other Observable Inputs
(Level 2)
Significant Unobservable Inputs
(Level 3)
Netting Adjustment(1)
Estimated Fair Value
Recurring fair value measurements:(Dollars in millions)
Assets:
Trading securities:
Mortgage-related securities:
Fannie Mae$— $3,379 $45 $— $3,424 
Other agency— 4,489 — 4,490 
Private-label and other mortgage securities— 629 — — 629 
Non-mortgage-related securities:
U.S. Treasury securities39,501 — — — 39,501 
Other securities— 79 — — 79 
Total trading securities39,501 8,576 46 — 48,123 
Available-for-sale securities:
Mortgage-related securities:
Fannie Mae— 1,349 171 — 1,520 
Other agency— 198 — — 198 
Alt-A and subprime private-label securities— 57 — — 57 
Mortgage revenue bonds— — 315 — 315 
Other— 306 — 314 
Total available-for-sale securities— 1,612 792 — 2,404 
Mortgage loans— 7,137 688 — 7,825 
Other assets:
Risk management derivatives:
Swaps— 1,071 159 — 1,230 
Swaptions— 124 — — 124 
Netting adjustment— — — (1,288)(1,288)
Mortgage commitment derivatives— 165 — — 165 
Credit enhancement derivatives— — 40 — 40 
Total other assets— 1,360 199 (1,288)271 
Total assets at fair value$39,501 $18,685 $1,725 $(1,288)$58,623 
Liabilities:
Long-term debt:
Of Fannie Mae:
Senior floating$— $5,289 $398 $— $5,687 
Total of Fannie Mae— 5,289 398 — 5,687 
Of consolidated trusts— 21,805 75 — 21,880 
Total long-term debt— 27,094 473 — 27,567 
Other liabilities:
Risk management derivatives:
Swaps— 1,346 — 1,347 
Swaptions— 440 11 — 451 
Netting adjustment— — — (1,694)(1,694)
Mortgage commitment derivatives— 306 — — 306 
Credit enhancement derivatives— — 25 — 25 
Total other liabilities— 2,092 37 (1,694)435 
Total liabilities at fair value$— $29,186 $510 $(1,694)$28,002 
(1)Derivative contracts are reported on a gross basis by level. The netting adjustment represents the effect of the legal right to offset under legally enforceable master netting arrangements to settle with the same counterparty on a net basis, including cash collateral posted and received.
(2)Cash equivalents are comprised of U.S. Treasuries that have a maturity at the date of acquisition of three months or less.
The following tables display a reconciliation of all assets and liabilities measured at fair value on a recurring basis using significant unobservable inputs (Level 3). The tables also display gains and losses due to changes in fair value, including both realized and unrealized gains and losses, recognized in our consolidated statements of operations and comprehensive income for Level 3 assets and liabilities.
Fair Value Measurements Using Significant Unobservable Inputs (Level 3)
For the Year Ended December 31, 2020
Total Gains (Losses)
(Realized/Unrealized)
Net Unrealized Gains (Losses) Included in Net Income Related to Assets and Liabilities Still Held as of December 31, 2020(4)(5)
Net Unrealized Gains (Losses) Included in OCI Related to Assets and Liabilities Still Held as of December 31, 2020(1)
Balance, December 31, 2019
Included in Net Income
Included in Total OCI (Loss)(1)
Purchases(2)
Sales(2)
Issues(3)
Settlements(3)
Transfers out of Level 3
Transfers into
Level 3
Balance, December 31, 2020
(Dollars in millions)
Trading securities:
Mortgage-related:
Fannie Mae$45 $(12)$— $— $(1)$— $— $(48)$110 $94 $(8)$— 
Other agency— — — — — — (1)— — 
Private-label and other mortgage securities— — — (94)— (3)— 94 — — — 
Total trading securities$46 $(9)
(5)(6)
$— $— $(95)$— $(3)$(49)$205 $95 $(8)$— 
Available-for-sale securities:
Mortgage-related:
Fannie Mae$171 $$$— $(1)$— $(15)$(243)$278 $195 $— $— 
Alt-A and subprime private-label securities— — — — — — — — — — 
Mortgage revenue bonds315 (3)— — — (98)— — 216 — 
Other306 (6)(1)— — — (64)— — 235 — — 
Total available-for-sale securities$792 $(8)
(6)(7)
$$— $(1)$— $(177)$(243)$280 $648 $— $
Mortgage loans$688 $47 
(5)(6)
$— $— $(21)$— $(132)$(104)$383 $861 $11 $— 
Net derivatives162 233 
(5)
— — — — (80)18 — 333 159 — 
Long-term debt:
Of Fannie Mae:
Senior floating(398)(41)
(5)
— — — — 23 — — (416)(41)— 
Of consolidated trusts(75)(2)
(5)(6)
— — — — 18 (29)(83)(1)— 
Total long-term debt$(473)$(43)$— $— $— $— $41 $$(29)$(499)$(42)$— 
Fair Value Measurements Using Significant Unobservable Inputs (Level 3)
For the Year Ended December 31, 2019
Total Gains (Losses)
(Realized/Unrealized)
Net Unrealized Gains (Losses) Included in Net Income Related to Assets and Liabilities Still Held as of December 31, 2019(4)(5)
Net Unrealized Gains (Losses) Included in OCI Related to Assets and Liabilities Still Held as of December 31, 2019(1)
Balance, December 31, 2018
Included in Net Income
Included in Total OCI (Loss)(1)
Purchases(2)
Sales(2)
Issues(3)
Settlements(3)
Transfers out of Level 3
Transfers into
Level 3
Balance, December 31, 2019
(Dollars in millions)
Trading securities:
Mortgage-related:
Fannie Mae$32 $$— $77 $(22)$— $(16)$(108)$79 $45 $$— 
Other agency— — — — — — — — — — 
Private-label and other mortgage securities— — — — — (1)— — — — — 
Total trading securities$33 $
(5)(6)
$— $77 $(22)$— $(17)$(108)$80 $46 $$— 
Available-for-sale securities:
Mortgage-related:
Fannie Mae$152 $— $$— $— $— $(8)$(103)$123 $171 $— $
Alt-A and subprime private-label securities24 (5)— (23)— (1)— — — — — 
Mortgage revenue bonds434 (3)— (5)— (112)— — 315 — (1)
Other342 13 (10)— — — (37)(3)306 — (8)
Total available-for-sale securities$952 $19 
(6)(7)
$(11)$— $(28)$— $(158)$(106)$124 $792 $— $(3)
Mortgage loans$937 $46 
(5)(6)
$— $— $(52)$— $(136)$(254)$147 $688 $26 $— 
Net derivatives194 109 
(5)
— — — — (119)(10)(12)162 — 
Long-term debt:
Of Fannie Mae:
Senior floating(351)(47)
(5)
— — — — — — — (398)(47)— 
Of consolidated trusts(201)(8)
(5)(6)
— — — (2)19 200 (83)(75)(4)— 
Total long-term debt$(552)$(55)$— $— $— $(2)$19 $200 $(83)$(473)$(51)$— 
Fair Value Measurements Using Significant Unobservable Inputs (Level 3)
For the Year Ended December 31, 2018
Total Gains (Losses)
(Realized/Unrealized)
Net Unrealized Gains (Losses) Included in Net Income Related to Assets and Liabilities Still Held as of December 31, 2018(4)(5)
Net Unrealized Gains (Losses) Included in OCI Related to Assets and Liabilities Still Held as of December 31, 2018(1)
Balance, December 31, 2017
Included in Net Income
Included in Total OCI (Loss)(1)
Purchases(2)
Sales(2)
Issues(3)
Settlements(3)
Transfers out of Level 3
Transfers into
Level 3
Balance, December 31, 2018
(Dollars in millions)
Trading securities:
Mortgage-related:
Fannie Mae$971 $163 $— $$(1,059)$— $(1)$(44)$$32 $$— 
Other agency35 (1)— — — — (1)(33)— — — — 
Private-label and other mortgage securities195 (85)— — — — (5)(104)— — — 
Total trading securities$1,201 $77 
(5)(6)
$— $$(1,059)$— $(7)$(181)$$33 $$— 
Available-for-sale securities:
Mortgage-related:
Fannie Mae$208 $$$— $— $— $(10)$(49)$— $152 $— $— 
Alt-A and subprime private-label securities77 — (45)— — — (4)(4)— 24 — 
Mortgage revenue bonds671 — (7)— (22)— (208)— — 434 — (2)
Other357 28 (2)— — — (41)— — 342 — 
Total available-for-sale securities$1,313 $30 
(6)(7)
$(53)$— $(22)$— $(263)$(53)$— $952 $— $— 
Mortgage loans$1,116 $38 
(5)(6)
$— $— $— $— $(216)$(162)$161 $937 $14 $— 
Net derivatives134 (38)
(5)
— — — — 45 53 — 194 40 — 
Long-term debt:
Of Fannie Mae:
Senior floating(376)25 
(5)
— — — — — — — (351)25 — 
Of consolidated trusts(582)
(5)(6)
— — — 44 541 (214)(201)(2)— 
Total long-term debt$(958)$34 $— $— $— $$44 $541 $(214)$(552)$23 $— 
(1)Gains (losses) included in other comprehensive income are included in “Changes in unrealized gains on available-for-sale securities, net of reclassification adjustments and taxes” in our consolidated statements of operations and comprehensive income.
(2)Purchases and sales include activity related to the consolidation and deconsolidation of assets of securitization trusts. For 2018, includes the dissolution of a Fannie Mae-wrapped private-label securities trust.
(3)Issues and settlements include activity related to the consolidation and deconsolidation of liabilities of securitization trusts.
(4)Amount represents temporary changes in fair value. Amortization, accretion and the impairment of credit losses (other-than-temporary impairment in years prior to 2020) are not considered unrealized and are not included in this amount.
(5)Gains (losses) are included in “Fair value gains (losses), net” in our consolidated statements of operations and comprehensive income.
(6)Gains (losses) are included in “Net interest income” in our consolidated statements of operations and comprehensive income.
(7)Gains (losses) are included in “Investment gains, net” in our consolidated statements of operations and comprehensive income.
.
The following tables display valuation techniques and the range and the weighted average of significant unobservable inputs for our Level 3 assets and liabilities measured at fair value on a recurring basis, excluding instruments for which we have elected the fair value option. Changes in these unobservable inputs can result in significantly higher or lower fair value measurements of these assets and liabilities as of the reporting date.
Fair Value Measurements as of December 31, 2020
Fair ValueSignificant Valuation Techniques
Significant Unobservable Inputs(1)
Range(1)
Weighted - Average(1)(2)
(Dollars in millions)
Recurring fair value measurements:
Trading securities:
Mortgage-related securities:
Agency(3)
$95 Various
Available-for-sale securities:
Mortgage-related securities:
Agency(3)
97 Consensus
98 Various
Total agency195 
Alt-A and subprime private-label securitiesVarious
Mortgage Revenue Bonds144 Single VendorSpreads (bps)32.0-315.393.4
72 Various
Total mortgage revenue bonds216 
Other206 Discounted Cash FlowSpreads (bps)425.0-443.0434.2
29 Various
Total other235 
Total available-for-sale securities$648 
Net derivatives$203 Dealer Mark
130 Discounted Cash Flow
Total net derivatives$333 

Fair Value Measurements as of December 31, 2019
Fair ValueSignificant Valuation Techniques
Significant Unobservable Inputs(1)
Range(1)
Weighted - Average(1)(2)
(Dollars in millions)
Recurring fair value measurements:
Trading securities:
Mortgage-related securities:
Agency(3)
$46 
Various
Available-for-sale securities:
Mortgage-related securities:
Agency(3)
107 
Consensus
64
Various
Total Agency 171 
Mortgage revenue bonds222 Single VendorSpreads (bps)23.0-205.176.1
93 
Various
Total mortgage revenue bonds315 
Other267 
Discounted Cash Flow
Spreads (bps)
300.0300.0
39 
Various
Total other306 
Total available-for-sale securities$792 
Net derivatives$147 
Dealer Mark
15 
Various
Total net derivatives$162 
(1)Valuation techniques for which no unobservable inputs are disclosed generally reflect the use of third-party pricing services or dealers, and the range of unobservable inputs applied by these sources is not readily available or cannot be reasonably estimated. Where we have
disclosed unobservable inputs for consensus and single vendor techniques, those inputs are based on our validations performed at the security level using discounted cash flows.
(2)Unobservable inputs were weighted by the relative fair value of the instruments.
(3)Includes Fannie Mae and Freddie Mac securities.
In our consolidated balance sheets certain assets and liabilities are measured at fair value on a nonrecurring basis; that is, the instruments are not measured at fair value on an ongoing basis but are subject to fair value adjustments in certain circumstances (for example, when we evaluate loans for impairment). We held no Level 1 assets or liabilities as of December 31, 2020 or December 31, 2019 that were measured on a nonrecurring basis. We held $25 million and $274 million in Level 2 assets as of December 31, 2020 and December 31, 2019, respectively, comprised of mortgage loans held for sale and mortgage loans held for investment that were impaired. We had no Level 2 liabilities that were measured at fair value on a nonrecurring basis as of December 31, 2020 or December 31, 2019.
The following table displays valuation techniques for our Level 3 assets measured at fair value on a nonrecurring basis.
Fair Value Measurements as of December 31,
Valuation Techniques20202019
(Dollars in millions)
Nonrecurring fair value measurements:
Mortgage loans held for sale, at lower of cost or fair valueConsensus$754 $471 
Single Vendor333 605 
Total mortgage loans held for sale, at lower of cost or fair value1,087 1,076 
Single-family mortgage loans held for investment, at amortized costInternal Model979 555 
Multifamily mortgage loans held for investment, at amortized costAppraisals225 — 
Asset Manager Estimate 24 
Internal Model125 — 
Various40 16 
Total multifamily mortgage loans held for investment, at amortized cost390 40 
Acquired property, net:
Single-familyAccepted Offers35 101 
Appraisals89 362 
Internal Model41 164 
Walk Forwards85 240 
Various11 51 
Total single-family261 918 
MultifamilyVarious25 
Total nonrecurring assets at fair value$2,742 $2,598 
We use valuation techniques that maximize the use of observable inputs and minimize the use of unobservable inputs. The following is a description of the valuation techniques we use for fair value measurement and disclosure as well as our basis for classifying these measurements as Level 1, Level 2 or Level 3 of the valuation hierarchy in more specific situations.
InstrumentsValuation TechniquesClassification
U.S Treasury Securities
We classify securities whose values are based on quoted market prices in active markets for identical assets as Level 1 of the valuation hierarchy.Level 1
Trading Securities and Available-for-Sale Securities
We classify securities in active markets as Level 2 of the valuation hierarchy if quoted market prices in active markets for identical assets are not available. For all valuation techniques used for securities where there is limited activity or less transparency around these inputs to the valuation, these securities are classified as Level 3 of the valuation hierarchy.
Single Vendor: Uses one vendor price to estimate fair value. We generally validate these observations of fair value through the use of a discounted cash flow technique whose unobservable inputs (for example, spreads) are disclosed in the table above.
Dealer Mark: Uses one dealer price to estimate fair value. We generally validate these observations of fair value through the use of a discounted cash flow technique whose unobservable inputs (for example, spreads) are disclosed in the table above.
Consensus: Uses an average of two or more vendor prices for similar securities. We generally validate these observations of fair value through the use of a discounted cash flow technique whose unobservable inputs (for example, spreads) are disclosed in the table above.
Level 2 and 3
Discounted Cash Flow: In the absence of prices provided by third-party pricing services supported by observable market data, we estimate the fair value of a portion of our securities using a discounted cash flow technique that uses inputs such as default rates, prepayment speeds, loss severity and spreads based on market assumptions where available.
For private-label securities, an increase in unobservable prepayment speeds in isolation would generally result in an increase in fair value, and an increase in unobservable spreads, severity rates or default rates in isolation would generally result in a decrease in fair value. For mortgage revenue bonds classified as Level 3 of the valuation hierarchy, an increase in unobservable spreads would result in a decrease in fair value. Although we have disclosed unobservable inputs for the fair value of our recurring Level 3 securities above, interrelationships exist among these inputs such that a change in one unobservable input typically results in a change to one or more of the other inputs.
Mortgage Loans Held for Investment
Build-up: We derive the fair value of performing mortgage loans using a build-up valuation technique starting with the base value for our Fannie Mae MBS with similar characteristics and then add or subtract the fair value of the associated guaranty asset, guaranty obligation (“GO”) and master servicing arrangement. We set the GO equal to the estimated fair value we would receive if we were to issue our guaranty to an unrelated party in a stand-alone arm’s length transaction at the measurement date. The fair value of the GO is estimated based on our current guaranty pricing for loans underwritten after 2008 and our internal valuation models considering management’s best estimate of key loan characteristics for loans underwritten before 2008. Our performing loans are generally classified as Level 2 of the valuation hierarchy to the extent that significant inputs are observable. To the extent that unobservable inputs are significant, the loans are classified as Level 3 of the valuation hierarchy.
Level 2 and 3
Consensus: Calculated through the extrapolation of indicative sample bids obtained from multiple active market participants plus the estimated value of any applicable mortgage insurance, the estimated fair value using the Consensus method represents an estimate of the prices we would receive if we were to sell these single-family nonperforming and certain reperforming loans in the whole-loan market. The fair value of any mortgage insurance is estimated by taking the loan-level coverage and adjusting it by the expected claims paying ability of the associated mortgage insurer. These loans are classified as Level 3 of the valuation hierarchy because significant inputs are unobservable.
We estimate the fair value for a portion of our senior-subordinated trust structures using the average of two or more vendor prices at the security level as a proxy for estimating loan fair value. These loans are classified as Level 3 of the valuation hierarchy because significant inputs are unobservable.
Single Vendor: We estimate the fair value of our reverse mortgages using the single vendor valuation technique.
Internal Model: The internal model used to value collateral contains four sub-component models: 1) Location Model, 2) Neighborhood Model, 3) Automated Valuation Model (“AVM”) Imputation Model and 4) Final Valuation Model. These models consider characteristics of the property, neighborhood, local housing markets, underlying loan and home price growth to derive a final estimated value.
These loans are classified as Level 3 of the valuation hierarchy because significant inputs are unobservable.
InstrumentsValuation TechniquesClassification
Mortgage Loans Held for Investment
Appraisals: We use appraisals to estimate the fair value for a portion of our multifamily loans based on either estimated replacement cost, the present value of future cash flows, or sales of similar properties. Significant unobservable inputs include estimated replacement or construction costs, property net operating income, capitalization rates, and adjustments made to sales of comparable properties based on characteristics such as financing, conditions of sale, and physical characteristics of the property.

Broker Price Opinion (“BPO”): We use BPOs to estimate the fair value for a portion of our multifamily loans. This technique uses both current property value and the property value adjusted for stabilization and market conditions. The unobservable inputs used in this technique are property net operating income and market capitalization rates to estimate property value.
Asset Manager Estimate (“AME”): This technique uses the net operating income and tax assessments of the specific property as well as MSA-specific market capitalization rates and average per unit sales values to estimate property fair value.
Level 2 and 3
An increase in prepayment speeds in isolation would generally result in an increase in the fair value of our mortgage loans classified as Level 3 of the valuation hierarchy, and an increase in severity rates, default rates or spreads in isolation would generally result in a decrease in fair value. Although we have disclosed unobservable inputs for the fair value of the mortgage loans classified as Level 3 above, interrelationships exist among these inputs such that a change in one unobservable input typically results in a change to one or more of the other inputs.
Acquired Property, Net and Other Assets
Single-family acquired property valuation techniques
Accepted Offer: An Offer to Purchase Real Estate that has been submitted by a potential purchaser of an acquired property and accepted by Fannie Mae in a pending sale.
Appraisal: An appraisal is an estimate based on recent historical data of the value of a specific property by a certified or licensed appraiser. Adjustments are made for differences between comparable properties for unobservable inputs such as square footage, location, and condition of the property.
Broker Price Opinion: This technique provides an estimate of what the property is worth based upon a real estate broker’s use of specific market research and a sales comparison approach that is similar to the appraisal process. This information, all of which is unobservable, is used along with recent and pending sales and current listings of similar properties to arrive at an estimate of value.
Level 3
Appraisal and Broker Price Opinion Walk Forwards (“Walk Forwards”): We use these techniques to adjust appraisal and broker price opinion valuations for changing market conditions by applying a walk forward factor based on local price movements since the time the third-party value was obtained.
Internal Model: We use an internal model to estimate fair value for distressed properties. The valuation methodology and inputs used are described under “Mortgage Loans Held for Investment.”
Multifamily acquired property valuation techniques
Appraisals: We use this method to estimate property values for distressed properties. The valuation methodology and inputs used are described under “Mortgage Loans Held for Investment.”
Broker Price Opinions: We use this method to estimate property values for distressed properties. The valuation methodology and inputs used are described under “Mortgage Loans Held for Investment.”
Asset Manager Estimate (“AME”): We use this method to estimate property values for distressed properties. The valuation methodology and inputs used are described under “Mortgage Loans Held for Investment.”
Asset and Liability Derivative Instruments (collectively “Derivatives”)
The valuation process for the majority of our risk management derivatives uses observable market data provided by third-party sources, resulting in Level 2 classification of the valuation hierarchy.
Single Vendor: We use one vendor price to estimate fair value. We generally validate these observations of fair value through the use of a discounted cash flow technique.
Clearing House: We use the clearing house-provided value for interest-rate derivatives which are transacted through a clearing house.
Internal Model: We use internal models to value interest-rate derivatives which are valued by referencing yield curves derived from observable interest rates and spreads to project and discount cash flows to present value.
Discounted Cash Flow: We use discounted cash flow to estimate fair value for credit enhancement derivatives related to CRT.
Level 2 and 3
InstrumentsValuation TechniquesClassification
Asset and Liability Derivative Instruments (collectively “Derivatives”)
Dealer Mark: Certain highly complex structured swaps primarily use a single dealer mark due to lack of transparency in the market and may be modeled using observable interest rates and volatility levels as well as significant unobservable assumptions, resulting in Level 3 classification of the valuation hierarchy. Mortgage commitment derivatives that use observable market data, quotes and actual transaction price levels adjusted for market movement are typically classified as Level 2 of the valuation hierarchy. To the extent mortgage commitment derivatives include adjustments for market movement that cannot be corroborated by observable market data, we classify them as Level 3 of the valuation hierarchy.
Level 2 and 3
Debt of Fannie Mae and Consolidated Trusts
We classify debt instruments that have quoted market prices in active markets for similar liabilities when traded as assets as Level 2 of the valuation hierarchy. For all valuation techniques used for debt instruments where there is limited activity or less transparency around these inputs to the valuation, these debt instruments are classified as Level 3 of the valuation hierarchy.
Consensus: Uses an average of two or more vendor prices or dealer marks that represents estimated fair value for similar liabilities when traded as assets.
Single Vendor: Uses a single vendor price that represents estimated fair value for these liabilities when traded as assets.
Discounted Cash Flow: Uses spreads based on market assumptions where available.
The valuation methodology and inputs used in estimating the fair value of MBS assets are described under “Trading Securities and Available-for-Sale Securities.”
Level 2 and 3
Fair Value of Financial Instruments
The following table displays the carrying value and estimated fair value of our financial instruments. The fair value of financial instruments we disclose includes commitments to purchase multifamily and single-family mortgage loans that we do not record in our consolidated balance sheets. The fair values of these commitments are included as “Mortgage loans held for investment, net of allowance for loan losses.” The disclosure excludes all non-financial instruments; therefore, the fair value of our financial assets and liabilities does not represent the underlying fair value of our total consolidated assets and liabilities.

As of December 31, 2020
Carrying
Value
Quoted Prices in Active Markets for Identical Assets
(Level 1)
Significant Other Observable Inputs
(Level 2)
Significant Unobservable Inputs
(Level 3)
Netting Adjustment
Estimated
Fair Value
(Dollars in millions)
Financial assets:
Cash and cash equivalents and restricted cash$115,623 $97,179 $18,444 $— $— $115,623 
Federal funds sold and securities purchased under agreements to resell or similar arrangements28,200 — 28,200 — — 28,200 
Trading securities136,542 130,456 5,991 95 — 136,542 
Available-for-sale securities1,697 — 1,049 648 — 1,697 
Mortgage loans held for sale5,197 — 116 5,502 — 5,618 
Mortgage loans held for investment, net of allowance for loan losses3,648,695 — 3,512,672 255,556 — 3,768,228 
Advances to lenders10,449 — 10,448 — 10,449 
Derivative assets at fair value1,225 — 1,748 382 (905)1,225 
Guaranty assets and buy-ups115 — — 258 — 258 
Total financial assets$3,947,743 $227,635 $3,578,668 $262,442 $(905)$4,067,840 
Financial liabilities:
Short-term debt:
Of Fannie Mae$12,173 $— $12,177 $— $— $12,177 
Long-term debt:
Of Fannie Mae277,399 — 288,414 878 — 289,292 
Of consolidated trusts3,646,164 — 3,756,673 31,584 — 3,788,257 
Derivative liabilities at fair value1,495 — 2,441 49 (995)1,495 
Guaranty obligations127 — — 82 — 82 
Total financial liabilities$3,937,358 $— $4,059,705 $32,593 $(995)$4,091,303 
As of December 31, 2019
Carrying
Value
Quoted Prices in Active Markets for Identical Assets
(Level 1)
Significant Other Observable Inputs
(Level 2)
Significant Unobservable Inputs
 (Level 3)
Netting Adjustment
Estimated
Fair Value
(Dollars in millions)
Financial assets:
Cash and cash equivalents and restricted cash$61,407 $50,057 $11,350 $— $— $61,407 
Federal funds sold and securities purchased under agreements to resell or similar arrangements13,578 — 13,578 — — 13,578 
Trading securities48,123 39,501 8,576 46 — 48,123 
Available-for-sale securities2,404 — 1,612 792 — 2,404 
Mortgage loans held for sale6,773 — 229 7,054 — 7,283 
Mortgage loans held for investment, net of allowance for loan losses3,327,389 — 3,270,535 127,650 — 3,398,185 
Advances to lenders6,453 — 6,451 — 6,453 
Derivative assets at fair value271 — 1,360 199 (1,288)271 
Guaranty assets and buy-ups142 — — 305 — 305 
Total financial assets$3,466,540 $89,558 $3,313,691 $136,048 $(1,288)$3,538,009 
Financial liabilities:
Federal funds purchased and securities sold under agreements to repurchase$478 $— $478 $— $— $478 
Short-term debt:
Of Fannie Mae26,662 — 26,667 — — 26,667 
Long-term debt:
Of Fannie Mae155,585 — 164,144 401 — 164,545 
Of consolidated trusts3,285,139 — 3,312,763 31,827 — 3,344,590 
Derivative liabilities at fair value435 — 2,092 37 (1,694)435 
Guaranty obligations154 — — 97 — 97 
Total financial liabilities$3,468,453 $— $3,506,144 $32,362 $(1,694)$3,536,812 
The following is a description of the valuation techniques we use for fair value measurement of our financial instruments as well as our basis for classifying these measurements as Level 1, Level 2 or Level 3 of the valuation hierarchy in certain specific situations.
InstrumentsDescriptionClassification
Financial instruments for which fair value approximates carrying valueWe hold certain financial instruments that are not carried at fair value but for which the carrying value approximates fair value due to the short-term nature and negligible credit risk inherent in them. These financial instruments include cash and cash equivalents, the majority of advances to lenders, and federal funds and securities sold/purchased under agreements to repurchase/resell.
Level 1 and 2
Federal funds and securities sold/purchased under agreements to repurchase/resellThe carrying value for the majority of these specific instruments approximates the fair value due to the short-term nature and the negligible inherent credit risk, as they involve the exchange of collateral that is easily traded. Were we to calculate the fair value of these instruments, we would use observable inputs.
Level 2
Mortgage loans held for saleLoans are reported at the lower of cost or fair value in our consolidated balance sheets. The valuation methodology and inputs used in estimating the fair value of HFS loans are the same as for our HFI loans and are described under “Fair Value Measurement—Mortgage Loans Held for Investment” above. To the extent that significant inputs are unobservable, the loans are classified within Level 3 of the valuation hierarchy.
Level 2 and 3
Mortgage loans held for investment
For a description of loan valuation techniques, refer to “Fair Value Measurement—Mortgage Loans Held for Investment” described above. We measure the fair value of certain loans that are delivered under the Home Affordable Refinance Program® (“HARP®”) using a modified build-up approach while the loan is performing. Under this modified approach, we set the credit component of the consolidated loans (that is, the guaranty obligation) equal to the compensation we would currently receive for a loan delivered to us under the program because the total compensation for these loans is equal to their current exit price in the government-sponsored enterprise securitization market. If, subsequent to delivery, the refinanced loan becomes past due or is modified as a part of a troubled debt restructuring, the fair value of the guaranty obligation is then measured consistent with other loans that have similar characteristics.
Level 2 and 3
Advances to lendersThe carrying value for the majority of our advances to lenders approximates the fair value due to the short-term nature and the negligible inherent credit risk. If we were to calculate the fair value of these instruments, we would use discounted cash flow models that use observable inputs such as spreads based on market assumptions, resulting in Level 2 classification. Advances to lenders also include loans that do not qualify for Fannie Mae MBS securitization and are valued using a discounted cash flow technique that uses estimated credit spreads of similar collateral and prepayment speeds that consider recent prepayment activity. We classify these valuations as Level 3 given that significant inputs are not observable or are determined by extrapolation of observable inputs.

Level 2 and 3
Guaranty assets and buy-upsGuaranty assets related to our portfolio securitizations are recorded in our consolidated balance sheets at fair value on a recurring basis and are classified as Level 3. Guaranty assets in lender swap transactions are recorded in our consolidated balance sheets at the lower of cost or fair value. These assets, which are measured at fair value on a nonrecurring basis, are also classified as Level 3.

We estimate the fair value of guaranty assets by using proprietary models to project cash flows based on management’s best estimate of key assumptions such as prepayment speeds and forward yield curves. Because guaranty assets are similar to an interest-only income stream, the projected cash flows are discounted at rates that consider the current spreads on interest-only swaps that reference Fannie Mae MBS and also liquidity considerations of the guaranty assets. The fair value of guaranty assets includes the fair value of any associated buy-ups.
Level 3
Guaranty obligationsThe fair value of all guaranty obligations, measured subsequent to their initial recognition, is our estimate of a hypothetical transaction price we would receive if we were to issue our guaranty to an unrelated party in a standalone arm’s-length transaction at the measurement date. The valuation methodology and inputs used in estimating the fair value of the guaranty obligations are described under “Fair Value Measurement—Mortgage Loans Held for Investment—Build-up.”
Level 3
Fair Value Option
We elected the fair value option for loans and debt that contain embedded derivatives that would otherwise require bifurcation. Additionally, we elected the fair value option for our credit risk-sharing securities accounted for as debt of Fannie Mae issued under our CAS series prior to January 1, 2016. Under the fair value option, we elected to carry these instruments at fair value instead of bifurcating the embedded derivative from such instruments.
Interest income for the mortgage loans is recorded in “Interest income—Mortgage loans” and interest expense for the debt instruments is recorded in “Interest expense—Long-term debt” in our consolidated statements of operations and comprehensive income.
The following table displays the fair value and unpaid principal balance of the financial instruments for which we have made fair value elections.
As of December 31,
20202019
Loans(1)
Long-Term Debt of Fannie MaeLong-Term Debt of Consolidated Trusts
Loans(1)
Long-Term Debt of Fannie MaeLong-Term Debt of Consolidated Trusts
(Dollars in millions)
Fair value$6,490 $3,728 $24,586 $7,825 $5,687 $21,880 
Unpaid principal balance6,046 3,518 21,408 7,514 5,200 19,653 
(1)    Includes nonaccrual loans with a fair value of $139 million and $129 million as of December 31, 2020 and 2019, respectively. The difference between unpaid principal balance and the fair value of these nonaccrual loans as of December 31, 2020 and 2019 is $8 million and $11 million, respectively. Includes loans that are 90 days or more past due with a fair value of $257 million and $80 million as of December 31, 2020 and 2019, respectively. The difference between unpaid principal balance and the fair value of these 90 or more days past due loans as of December 31, 2020 and 2019 is $14 million and $10 million, respectively.
Changes in Fair Value under the Fair Value Option Election
We recorded gains of $263 million and $357 million and losses of $128 million for the years ended December 31, 2020, 2019 and 2018, respectively, from changes in the fair value of loans recorded at fair value in “Fair value gains (losses), net” in our consolidated statements of operations and comprehensive income.
We recorded losses of $432 million and $765 million and gains of $688 million for the years ended December 31, 2020, 2019 and 2018, respectively, from changes in the fair value of long-term debt recorded at fair value in “Fair value gains (losses), net” in our consolidated statements of operations and comprehensive income.