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

Derivatives - Gains and Losses on Derivatives and Hedged Items Designated in Fair Value Hedges (Details)

v3.25.0.1
Derivatives - Gains and Losses on Derivatives and Hedged Items Designated in Fair Value Hedges (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Effect of Fair Value Hedges on Results of Operations [Abstract]      
Derivative $ (511) $ 61 $ (4,109)
Hedged Item 438 (210) 3,990
Interest rate risk on long-term debt | Interest expense      
Effect of Fair Value Hedges on Results of Operations [Abstract]      
Derivative (2,713) 3,594 (26,654)
Hedged Item 2,669 (3,652) 26,825
Interest rate and foreign currency risk      
Effect of Fair Value Hedges on Results of Operations [Abstract]      
Derivative 500 (17) (120)
Hedged Item (486) 27 119
Interest rate and foreign currency risk | Interest expense      
Effect of Fair Value Hedges on Results of Operations [Abstract]      
Derivative 0 13 (37)
Interest rate and foreign currency risk | Interest Income      
Effect of Fair Value Hedges on Results of Operations [Abstract]      
Derivative 22 6 0
Interest rate and foreign currency risk | Market making and similar activities      
Effect of Fair Value Hedges on Results of Operations [Abstract]      
Derivative 463 (51) (81)
Interest rate risk on available-for-sale securities | Interest Income      
Effect of Fair Value Hedges on Results of Operations [Abstract]      
Derivative 2,279 (3,518) 21,991
Hedged Item (2,322) 3,417 (22,280)
Price risk on commodity inventory | Interest Income      
Effect of Fair Value Hedges on Results of Operations [Abstract]      
Derivative (577) 2 674
Hedged Item 577 (2) (674)
Accumulated Other Comprehensive Income (Loss) | Interest rate and foreign currency risk      
Effect of Fair Value Hedges on Results of Operations [Abstract]      
Derivative $ 15 $ 15 $ (2)