v3.25.1
Transfers of financial assets and servicing assets - Additional Information (Details) - USD ($)
3 Months Ended
Mar. 31, 2025
Mar. 31, 2024
Dec. 31, 2024
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Weighted average mortgage servicing fees 0.32% 0.32%  
Liabilities incurred as a result of the securitizations $ 0 $ 0  
Sensitivity Analysis Of Fair Value Of Interests Continued To Be Held By Transfer or Servicing Assets Or Liabilities Description Of Objectives Methodology And Limitations The sensitivity analyses presented in the table above for servicing rights are hypothetical and should be used with caution. As the figures indicate, changes in fair value based on a 10 and 20 percent variation in assumptions generally cannot be extrapolated because the relationship of the change in assumption to the change in fair value may not be linear. Also, in the sensitivity tables included herein, the effect of a variation in a particular assumption on the fair value of the retained interest is calculated without changing any other assumption. In reality, changes in one factor may result in changes in another (for example, increases in market interest rates may result in lower prepayments and increased credit losses), which might magnify or counteract the sensitivities.    
Mortgage loans related to buy-back option program $ 37,675,070,000   $ 37,522,995,000
GNMA      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Repurchased loans 10,000,000 10,000,000  
Serviced mortgage loans      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Servicing rights on whole loan sales, principal balance 7,000,000 11,000,000  
Mortgage securitizations, net gains 100,000 200,000  
Financial Guarantee Member | Residential Mortgage | Loans with recourse      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Loans serviced 477,000,000   495,000,000
Financial Guarantee Member | Serviced mortgage loans      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Loans serviced 8,800,000,000   $ 9,000,000,000.0
Financial Guarantee Member | Serviced mortgage loans | Loans with recourse      
Securitization or Asset-backed Financing Arrangement, Financial Asset for which Transfer is Accounted as Sale [Line Items]      
Repurchased loans $ 300,000 $ 600,000