XML 127 R45.htm IDEA: XBRL DOCUMENT v3.22.0.1
Mortgage Loans - Loans in Mortgage Portfolio (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Loans in Mortgage Portfolio [Line Items]      
Unpaid principal balance of mortgage loans $ 3,899,025 $ 3,589,868  
Cost basis and fair value adjustments, net 74,846 74,576  
Allowance for loan losses for HFI loans (5,629) (10,552)  
Total mortgage loans 3,968,242 3,653,892  
Lower of cost or fair value adjustment at time of redesignation (107) 153 $ (6)
Single-family loans sold, unpaid principal balance 16,977 9,519 19,737
Single-family loans sold, realized gain, net 1,624 831 1,238
Single-family      
Loans in Mortgage Portfolio [Line Items]      
Unpaid principal balance of mortgage loans 3,495,573 3,216,146  
Single family loans redesignated from HFI to HFS, amortized cost 16,606 8,309 18,245
Lower of cost or fair value adjustment at time of redesignation (372) (291) (995)
Allowance reversed at time of redesignation 1,605 963 2,484
Single family loans redesignated from HFS to HFI, amortized cost 5 144 28
Allowance established at time of redesignation (1) (15) $ (1)
Mortgage loans in process of foreclosure 4,400 5,000  
Multifamily      
Loans in Mortgage Portfolio [Line Items]      
Unpaid principal balance of mortgage loans 403,452 373,722  
Mortgage loans      
Loans in Mortgage Portfolio [Line Items]      
Accrued interest receivable $ 9,100 $ 9,800