XML 134 R54.htm IDEA: XBRL DOCUMENT v3.25.0.1
Mortgage Loans - Loans in Mortgage Portfolio (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Loans in Mortgage Portfolio [Line Items]        
Unpaid principal balance of mortgage loans $ 4,110,196 $ 4,102,632    
Cost basis and fair value adjustments, net 35,517 41,729    
Allowance for loan losses (7,707) (8,730) $ (11,347) $ (5,629)
Total mortgage loans 4,138,006 4,135,631    
Accrued interest receivable related to consolidated trusts 11,364 10,724    
Single-family        
Loans in Mortgage Portfolio [Line Items]        
Unpaid principal balance of mortgage loans 3,619,838 3,641,385    
Purchase of HFI loans: 325,243 315,990 614,836  
Amortized cost 2,329 3,334 7,825  
Single family loans redesignated from HFI to HFS, lower of cost or fair value adjustment at time of redesignation (270) (658) (679)  
Related allowance 21 42 373  
Single family loans redesignated from HFS to HFI, amortized cost 77 372 2,004  
Single-family loans sold, unpaid principal balance 4,488 2,573 8,069  
Single-family loans sold, realized gain, net 35 10 126  
Multifamily        
Loans in Mortgage Portfolio [Line Items]        
Unpaid principal balance of mortgage loans 490,358 461,247    
Purchase of HFI loans: 54,661 52,829 $ 69,206  
Mortgage loans        
Loans in Mortgage Portfolio [Line Items]        
Accrued interest receivable related to consolidated trusts $ 10,800 $ 10,400