Annual report [Section 13 and 15(d), not S-K Item 405]

Derivatives - Narrative (Details)

v3.25.0.1
Derivatives - Narrative (Details) - USD ($)
$ in Millions
3 Months Ended 12 Months Ended
Dec. 31, 2023
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Derivative [Line Items]          
Shareholders’ equity $ 291,646 $ 295,559 $ 291,646 $ 273,197 $ 270,066
Net loss in AOCI expected to be reclassified, after tax   2,500      
Net loss in AOCI expected to be reclassified   $ 3,400      
Open cash flow hedge, forecasted transactions hedging period (in years)   5 years      
Terminated cash flow hedges, period forecasted transaction recognized in interest income (in years)   4 years      
Bank of America, N.A.          
Derivative [Line Items]          
Collateral not yet posted   $ 1,400      
Interest rate risk on long-term debt          
Derivative [Line Items]          
Decrease in liability 10,500 11,200 10,500    
Interest rate risk on AFS securities          
Derivative [Line Items]          
Available -for-sale securities from discontinued hedging relationships cumulative decrease 5,600 4,400 5,600    
Credit derivatives          
Derivative [Line Items]          
Cash and securities held as collateral 104,100 105,900 104,100    
Cash and securities collateral posted 93,400 83,100 93,400    
Collateral not yet posted   2,700      
Foreign Mortgage-backed Securities and Foreign Securities          
Derivative [Line Items]          
Transfer of mortgage-backed securities to third-party trust 4,100 3,900 4,100    
Gross cash proceeds from transfer of securities 4,200 3,900 4,200    
Fair value of derecognized assets 4,100 3,600 4,100    
Derivatives          
Derivative [Line Items]          
Shareholders’ equity (8,016) (5,588) (8,016) (11,935) $ (1,880)
Pretax loss in accumulated OCI   7,500      
Pretax losses reclassified from accumulated OCI   2,803 3,159 303  
Derivatives | Market making and similar activities          
Derivative [Line Items]          
Pretax losses reclassified from accumulated OCI $ 2,000 $ 146 $ 2,031 $ 0