Collateralized Agreements and Financings - Schedule of Repurchase Agreements and Securities Loaned (Detail) - USD ($) $ in Millions |
Sep. 30, 2021 |
Dec. 31, 2020 |
|---|---|---|
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | $ 278,163 | $ 224,328 |
| Securities loaned | 45,886 | $ 27,054 |
| No Stated Maturity and Overnight [Member] | ||
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | 94,879 | |
| Securities loaned | 29,258 | |
| 2 - 30 Days [Member] | ||
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | 74,502 | |
| Securities loaned | 219 | |
| 31 - 90 Days [Member] | ||
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | 44,514 | |
| Securities loaned | 116 | |
| 91 Days - 1 Year [Member] | ||
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | 49,889 | |
| Securities loaned | 13,362 | |
| Greater than 1 Year [Member] | ||
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | 14,379 | |
| Securities loaned | $ 2,931 |