v3.26.1
Mortgage Loans - Loans in Mortgage Portfolio (Details) - USD ($)
$ in Millions
3 Months Ended
Mar. 31, 2026
Mar. 31, 2025
Dec. 31, 2025
Loans in Mortgage Portfolio [Line Items]      
Total UPB of mortgage loans $ 4,093,384   $ 4,095,866
Cost basis and fair value adjustments, net 30,273   31,811
Allowance for loan losses for HFI loans (8,357) $ (7,532) (8,364)
Total mortgage loans 4,115,300   4,119,313
Accrued interest receivable, net 11,915   11,689
Single-family      
Loans in Mortgage Portfolio [Line Items]      
Total UPB of mortgage loans 3,560,543   3,570,904
Purchase of HFI loans: 98,465 63,627  
Amortized cost 0 510  
Lower of cost or fair value adjustment at time of redesignation 0 (69)  
Allowance reversed at time of redesignation 0 17  
Multifamily      
Loans in Mortgage Portfolio [Line Items]      
Total UPB of mortgage loans 532,841   524,962
Purchase of HFI loans: 16,852 $ 11,514  
Mortgage loans      
Loans in Mortgage Portfolio [Line Items]      
Accrued interest receivable, net $ 11,400   $ 11,300