Annual report pursuant to Section 13 and 15(d)

Derivatives - Narrative (Details)

v3.22.4
Derivatives - Narrative (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Derivative [Line Items]        
Shareholders’ equity $ 273,197 $ 270,066 $ 272,924 $ 264,810
Net income (loss) in AOCI expected to be reclassified, after tax (4,400)      
Net income (loss) in AOCI expected to be reclassified $ (5,900)      
Open cash flow hedge, forecasted transactions hedging period (in years) 7 years      
Terminated cash flow hedges, period forecasted transaction recognized in interest income (in years) 5 years      
Bank of America, N.A.        
Derivative [Line Items]        
Collateral not yet posted $ 1,600      
Credit derivatives        
Derivative [Line Items]        
Cash and securities held as collateral 101,300 91,400    
Cash and securities collateral posted 81,200 79,300    
Collateral not yet posted 3,200      
Foreign Mortgage-backed Securities and Foreign Securities        
Derivative [Line Items]        
Transfer of mortgage-backed securities to third-party trust 4,800 4,800    
Gross cash proceeds from transfer of securities 4,900 4,800    
Fair value of derecognized assets 4,700 5,000    
Derivatives        
Derivative [Line Items]        
Shareholders’ equity (11,935) $ (1,880) $ 426 $ (400)
Pretax income (loss) in accumulated OCI $ (15,900)