v3.25.4
Mortgage Loans - Loans in Mortgage Portfolio (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2025
Dec. 31, 2024
Dec. 31, 2023
Loans in Mortgage Portfolio [Line Items]      
Unpaid principal balance of mortgage loans $ 4,095,866 $ 4,110,196  
Cost basis and fair value adjustments, net 31,811 35,517  
Allowance for loan losses (8,364) (7,707) $ (8,730)
Total mortgage loans 4,119,313 4,138,006  
Accrued interest receivable related to consolidated trusts 11,689 11,364  
Single-family      
Loans in Mortgage Portfolio [Line Items]      
Unpaid principal balance of mortgage loans 3,570,904 3,619,838  
Purchase of HFI loans: 334,000 325,243 315,990
Amortized cost 1,527 2,329 3,334
Single family loans redesignated from HFI to HFS, lower of cost or fair value adjustment at time of redesignation (187) (270) (658)
Related allowance 26 21 42
Single family loans redesignated from HFS to HFI, amortized cost 160 77 372
Single-family loans sold, unpaid principal balance 1,513 4,488 2,573
Single-family loans sold, realized gain, net 3 35 10
Multifamily      
Loans in Mortgage Portfolio [Line Items]      
Unpaid principal balance of mortgage loans 524,962 490,358  
Purchase of HFI loans: 72,040 54,661 $ 52,829
Mortgage loans      
Loans in Mortgage Portfolio [Line Items]      
Accrued interest receivable related to consolidated trusts $ 11,300 $ 10,800