v3.26.1
Fair Value - Fair Value of Financial Instruments (Details) - USD ($)
$ in Millions
Jun. 30, 2026
Dec. 31, 2025
Fair Value Measurement [Domain]    
Financial assets:    
Derivative assets, gross amount offset $ (38) $ (199)
Financial liabilities:    
Derivative liabilities, gross amount offset (1,383) (1,242)
Available-for-sale securities 38,874 375
Derivative assets at fair value 386 177
Derivative assets, gross amount offset (38) (199)
Derivative liabilities at fair value 270 152
Quoted Prices in Active Markets for Identical Assets (Level 1)    
Financial assets:    
Cash, including restricted cash 40,814 42,583
Securities purchased under agreements to resell 0 0
Trading securities 39,661 55,205
Available-for-sale securities 38,265 0
Mortgage loans held for sale 0 0
Mortgage loans held for investment, net of allowance for loan losses 0 0
Advances to lenders 0 0
Derivative assets at fair value 0 0
Guaranty assets 0 0
Total financial assets 118,740 97,788
Financial liabilities:    
Derivative liabilities at fair value 0 0
Guaranty obligations 0 0
Total financial liabilities 0 0
Significant Other Observable Inputs (Level 2)    
Financial assets:    
Cash, including restricted cash 0 0
Securities purchased under agreements to resell 37,874 45,650
Trading securities 16,208 14,282
Available-for-sale securities 289 34
Mortgage loans held for sale 503 23
Mortgage loans held for investment, net of allowance for loan losses 3,619,115 3,656,465
Advances to lenders 1,380 3,595
Derivative assets at fair value 348 304
Guaranty assets 0 0
Total financial assets 3,675,717 3,720,353
Financial liabilities:    
Derivative liabilities at fair value 1,646 1,387
Guaranty obligations 0 0
Total financial liabilities 3,815,265 3,832,394
Significant Unobservable Inputs (Level 3)    
Financial assets:    
Cash, including restricted cash 0 0
Securities purchased under agreements to resell 0 0
Trading securities 26 27
Available-for-sale securities 320 341
Mortgage loans held for sale 178 201
Mortgage loans held for investment, net of allowance for loan losses 161,954 137,864
Advances to lenders 0 0
Derivative assets at fair value 76 72
Guaranty assets 172 172
Total financial assets 162,726 138,677
Financial liabilities:    
Derivative liabilities at fair value 7 7
Guaranty obligations 51 54
Total financial liabilities 872 898
Fannie Mae    
Financial liabilities:    
Long-term debt 264 256
Fannie Mae | Quoted Prices in Active Markets for Identical Assets (Level 1)    
Financial liabilities:    
Short-term debt: 0 0
Long-term debt 0 0
Fannie Mae | Significant Other Observable Inputs (Level 2)    
Financial liabilities:    
Short-term debt: 27,669 24,548
Long-term debt 148,871 104,784
Fannie Mae | Significant Unobservable Inputs (Level 3)    
Financial liabilities:    
Short-term debt: 0 0
Long-term debt 599 602
Consolidated Trusts    
Financial liabilities:    
Long-term debt 14,557 15,060
Consolidated Trusts | Quoted Prices in Active Markets for Identical Assets (Level 1)    
Financial liabilities:    
Long-term debt 0 0
Consolidated Trusts | Significant Other Observable Inputs (Level 2)    
Financial liabilities:    
Long-term debt 3,637,079 3,701,675
Consolidated Trusts | Significant Unobservable Inputs (Level 3)    
Financial liabilities:    
Long-term debt 215 235
Carrying Value    
Financial assets:    
Cash, including restricted cash 40,814 42,583
Securities purchased under agreements to resell 37,874 45,650
Trading securities 55,895 69,514
Available-for-sale securities 38,874 375
Mortgage loans held for sale 648 209
Mortgage loans held for investment, net of allowance for loan losses 4,119,005 4,119,104
Advances to lenders 1,380 3,595
Derivative assets at fair value 386 177
Guaranty assets 94 90
Total financial assets 4,294,970 4,281,297
Financial liabilities:    
Derivative liabilities at fair value 270 152
Guaranty obligations 99 96
Total financial liabilities 4,188,627 4,180,677
Carrying Value | Fannie Mae    
Financial liabilities:    
Short-term debt: 27,667 24,538
Long-term debt 147,768 102,751
Carrying Value | Consolidated Trusts    
Financial liabilities:    
Long-term debt 4,012,823 4,053,140
Estimated Fair Value    
Financial assets:    
Cash, including restricted cash 40,814 42,583
Securities purchased under agreements to resell 37,874 45,650
Trading securities 55,895 69,514
Available-for-sale securities 38,874 375
Mortgage loans held for sale 681 224
Mortgage loans held for investment, net of allowance for loan losses 3,781,069 3,794,329
Advances to lenders 1,380 3,595
Derivative assets at fair value 386 177
Guaranty assets 172 172
Total financial assets 3,957,145 3,956,619
Financial liabilities:    
Derivative liabilities at fair value 270 152
Guaranty obligations 51 54
Total financial liabilities 3,814,754 3,832,050
Estimated Fair Value | Fannie Mae    
Financial liabilities:    
Short-term debt: 27,669 24,548
Long-term debt 149,470 105,386
Estimated Fair Value | Consolidated Trusts    
Financial liabilities:    
Long-term debt $ 3,637,294 $ 3,701,910