XML 139 R65.htm IDEA: XBRL DOCUMENT v3.8.0.1
Loans in Mortgage Portfolio (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Loans in Mortgage Portfolio [Line Items]        
Unpaid principal balance of mortgage loans $ 3,155,703 $ 3,063,646    
Cost basis and fair value adjustments, net 41,906 39,572    
Allowance for loan losses for loans held for investment (19,084) (23,465) $ (27,951) $ (35,541)
Total mortgage loans 3,178,525 3,079,753    
Carrying value of loans redesignated from HFI to HFS 12,900 3,900 8,600  
Carrying value of loans redesignated from HFS to HFI 113      
Sale of loans, unpaid principal balance 12,200 6,700 3,600  
Realized gains on sales of mortgage loans 723 54 $ 274  
Single-Family [Member]        
Loans in Mortgage Portfolio [Line Items]        
Unpaid principal balance of mortgage loans 2,890,634 2,833,750    
Recorded investment of single-family mortgage loans referred to foreclosure 13,000 18,300    
Multifamily [Member]        
Loans in Mortgage Portfolio [Line Items]        
Unpaid principal balance of mortgage loans $ 265,069 $ 229,896