Annual report pursuant to Section 13 and 15(d)

Securitizations and Other Variable Interest Entities - First Lien Mortgage Securitizations (Details)

v3.6.0.2
Securitizations and Other Variable Interest Entities - First Lien Mortgage Securitizations (Details) - USD ($)
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Total assets $ 2,187,702,000,000 $ 2,144,287,000,000  
First Lien Mortgages      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Gain (loss) on loans securitized 487,000,000 750,000,000 $ 715,000,000
Servicing fees 1,100,000,000 1,400,000,000 1,800,000,000
Agency      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Cash proceeds from new securitizations 24,201,000,000 27,164,000,000 36,905,000,000
Gain (loss) on securitizations 370,000,000 894,000,000 371,000,000
Repurchases from securitization trusts 3,611,000,000 3,716,000,000 5,155,000,000
Transfers continuing involvement servicing fee advances 6,200,000,000 7,800,000,000  
Assets of deconsolidated securitization vehicles 3,800,000,000 4,500,000,000  
Liabilities of deconsolidated securitization vehicles 628,000,000 0  
Noncash investing and financing activities, deconsolidated assets 706,000,000    
Noncash investing and financing activities, deconsolidated liabilities 628,000,000    
Gain (loss) on deconsolidation 125,000,000 287,000,000  
Non-agency | Subprime      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Cash proceeds from new securitizations 0 0 809,000,000
Gain (loss) on securitizations 0 0 49,000,000
Repurchases from securitization trusts 0 0 0
Commercial Mortgage      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Cash proceeds from new securitizations 3,887,000,000 7,945,000,000 5,710,000,000
Gain (loss) on securitizations 38,000,000 49,000,000 68,000,000
Repurchases from securitization trusts 0 0 0
Level 2 | First Lien Mortgages      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Transfers of financial assets accounted for as sale initial fair value of assets 4,200,000,000 22,300,000,000 $ 5,400,000,000
Unconsolidated VIEs | Agency      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Maximum loss exposure 22,661,000,000 28,192,000,000  
Total assets 22,661,000,000 28,192,000,000  
Unconsolidated VIEs | Non-agency | Subprime      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Maximum loss exposure 2,750,000,000 2,905,000,000  
Total assets 2,372,000,000 2,613,000,000  
Unconsolidated VIEs | Commercial Mortgage      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Maximum loss exposure 344,000,000 326,000,000  
Total assets 221,000,000 $ 233,000,000  
Unconsolidated VIEs | Accounting Standards Update 2015-02      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Maximum loss exposure 6,100,000,000    
Total assets $ 16,700,000,000