XML 133 R49.htm IDEA: XBRL DOCUMENT v3.24.0.1
Mortgage Loans - Loans in Mortgage Portfolio (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Loans in Mortgage Portfolio [Line Items]        
Unpaid principal balance of mortgage loans $ 4,102,632 $ 4,075,598    
Cost basis and fair value adjustments, net 41,729 50,185    
Allowance for loan losses (8,730) (11,347) $ (5,629) $ (10,552)
Total mortgage loans 4,135,631 4,114,436    
Accrued interest receivable related to consolidated trusts 10,724 9,821    
Mortgage loans        
Loans in Mortgage Portfolio [Line Items]        
Accrued interest receivable related to consolidated trusts 10,400 9,500    
Single-family        
Loans in Mortgage Portfolio [Line Items]        
Unpaid principal balance of mortgage loans 3,641,385 3,644,158    
Purchase of HFI loans: 315,990 614,836 1,354,705  
Amortized cost 3,334 7,825 16,606  
Single family loans redesignated from HFI to HFS, lower of cost or fair value adjustment at time of redesignation (658) (679) (372)  
Related allowance 42 373 1,605  
Single family loans redesignated from HFS to HFI, amortized cost 372 2,004 5  
Single-family loans sold, unpaid principal balance 2,573 8,069 16,977  
Single-family loans sold, realized gain, net 10 126 1,624  
Mortgage loans in process of foreclosure 4,600 4,600    
Multifamily        
Loans in Mortgage Portfolio [Line Items]        
Unpaid principal balance of mortgage loans 461,247 431,440    
Purchase of HFI loans: $ 52,829 $ 69,206 $ 69,185