Annual report pursuant to Section 13 and 15(d)

Commitments and Contingencies - Litigation and Regulatory Matters (Details)

v3.22.0.1
Commitments and Contingencies - Litigation and Regulatory Matters (Details)
12 Months Ended
Apr. 07, 2017
USD ($)
Jan. 09, 2017
USD ($)
Jul. 21, 2015
USD ($)
Dec. 30, 2014
USD ($)
Sep. 28, 2010
USD ($)
Dec. 31, 2021
USD ($)
claim
Dec. 31, 2020
USD ($)
Loss Contingencies [Line Items]              
Litigation settlement expense           $ 164,000,000 $ 823,000,000
Ambac Bond Insurance              
Loss Contingencies [Line Items]              
Number of lawsuits | claim           4  
Ambac v. Countrywide I              
Loss Contingencies [Line Items]              
Loss contingency, damages sought         $ 2,200,000,000    
Ambac v. Countrywide II              
Loss Contingencies [Line Items]              
Loss contingency, damages sought       $ 600,000,000      
Ambac v. Countrywide IV              
Loss Contingencies [Line Items]              
Loss contingency, damages sought     $ 350,000,000        
FDIC Deposit Insurance Assessments | Bank of America, N.A.              
Loss Contingencies [Line Items]              
Loss contingency, damages sought $ 583,000,000 $ 542,000,000          
Minimum              
Loss Contingencies [Line Items]              
Estimated range of possible loss           $ 0  
Maximum              
Loss Contingencies [Line Items]              
Estimated range of possible loss           $ 1,000,000,000