v3.26.1
Summary of Significant Accounting Policies - Narrative (Details) - USD ($)
shares in Millions, $ in Millions
3 Months Ended 6 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2026
Jun. 30, 2025
Dec. 31, 2025
Dec. 31, 2024
Debt and Equity Securities, FV-NI [Line Items]            
Net change in securities purchased under agreements to resell     $ 7,776 $ (7,628)    
Cash and restricted cash $ 40,814 $ 38,427 $ 40,814 $ 38,427 $ 42,583 $ 38,536
Weighted average number of contingently issuable shares (shares) 4,700 4,700 4,700 4,700    
Incremental common shares attributable to dilutive effect of conversion of preferred stock (in shares) 26 26 26 26    
Investment in securities, trading, at fair value $ 55,895   $ 55,895   69,514  
Securities received as collateral 38,100   38,100   45,600  
Fair value of securities received as collateral that can be resold or repledged 37,200   37,200   43,400  
Acquired property 2,500   2,500   1,900  
Non-mortgage-related securities            
Debt and Equity Securities, FV-NI [Line Items]            
Investment in securities, trading, at fair value 39,679   39,679   55,223  
Non-mortgage-related securities | Pledged as collateral            
Debt and Equity Securities, FV-NI [Line Items]            
Investment in securities, trading, at fair value $ 9,300   $ 9,300   $ 8,200  
Adjustment for Change in Accounting Principle            
Debt and Equity Securities, FV-NI [Line Items]            
Net change in securities purchased under agreements to resell       $ (150)    
Cash and restricted cash   $ (40,100)   $ (40,100)   $ (40,300)