v3.26.1
Mortgage Loans - Loan Restructuring - Summary of Loans Restructured (Details) - USD ($)
$ in Millions
3 Months Ended 6 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2026
Jun. 30, 2025
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 17,427 $ 17,859 $ 28,284 $ 29,822
Restructured loans, percent of total financing receivable (* less than) 0.50% 0.50% 1.00% 1.00%
Restructured loans, paid off, repurchased or sold during period $ 269 $ 243 $ 633 $ 592
Forbearance Plan        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 6,168 5,544 8,413 8,460
Payment Deferral        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 2,161 2,757 5,051 6,317
Trial Modification and Repayment Plans        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 5,650 6,065 8,371 8,821
Payment Delay and Term Extension        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 2,483 3,223 5,135 5,801
Payment Delay, Term Extension, Interest Rate Reduction, and Other        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 965 270 1,314 423
Single-family        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 16,965 $ 17,804 $ 27,816 $ 29,172
Restructured loans, percent of total financing receivable (* less than) 0.50% 0.50% 1.00% 1.00%
Single-family | Forbearance Plan        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 6,139 $ 5,524 $ 8,378 $ 7,858
Single-family | Payment Deferral        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 2,161 2,757 5,051 6,317
Single-family | Trial Modification and Repayment Plans        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 5,650 6,065 8,371 8,821
Single-family | Payment Delay and Term Extension        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 2,483 3,223 5,135 5,801
Single-family | Payment Delay, Term Extension, Interest Rate Reduction, and Other        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 532 235 881 375
Single-family | 20- and 30-year or more, amortizing fixed-rate        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 16,370 $ 17,127 $ 26,843 $ 28,070
Restructured loans, percent of total financing receivable (* less than) 1.00% 1.00% 1.00% 1.00%
Single-family | 20- and 30-year or more, amortizing fixed-rate | Forbearance Plan        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 5,897 $ 5,280 $ 8,044 $ 7,505
Single-family | 20- and 30-year or more, amortizing fixed-rate | Payment Deferral        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 2,080 2,635 4,868 6,040
Single-family | 20- and 30-year or more, amortizing fixed-rate | Trial Modification and Repayment Plans        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 5,454 5,822 8,068 8,447
Single-family | 20- and 30-year or more, amortizing fixed-rate | Payment Delay and Term Extension        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 2,415 3,166 4,997 5,723
Single-family | 20- and 30-year or more, amortizing fixed-rate | Payment Delay, Term Extension, Interest Rate Reduction, and Other        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 524 224 866 355
Single-family | 15-year or less, amortizing fixed-rate        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 412 $ 480 $ 687 $ 762
Restructured loans, percent of total financing receivable (* less than) 0.50% 0.50% 0.50% 0.50%
Single-family | 15-year or less, amortizing fixed-rate | Forbearance Plan        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 167 $ 185 $ 236 $ 263
Single-family | 15-year or less, amortizing fixed-rate | Payment Deferral        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 51 82 121 197
Single-family | 15-year or less, amortizing fixed-rate | Trial Modification and Repayment Plans        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 140 175 219 261
Single-family | 15-year or less, amortizing fixed-rate | Payment Delay and Term Extension        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 52 36 107 39
Single-family | 15-year or less, amortizing fixed-rate | Payment Delay, Term Extension, Interest Rate Reduction, and Other        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 2 2 4 2
Single-family | Adjustable-rate        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 69 $ 60 $ 96 $ 98
Restructured loans, percent of total financing receivable (* less than) 0.50% 0.50% 0.50% 0.50%
Single-family | Adjustable-rate | Forbearance Plan        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 42 $ 29 $ 54 $ 44
Single-family | Adjustable-rate | Payment Deferral        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 11 12 19 22
Single-family | Adjustable-rate | Trial Modification and Repayment Plans        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 16 18 22 29
Single-family | Adjustable-rate | Payment Delay and Term Extension        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 0 0 0 0
Single-family | Adjustable-rate | Payment Delay, Term Extension, Interest Rate Reduction, and Other        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 0 1 1 3
Single-family | Other        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 114 $ 137 $ 190 $ 242
Restructured loans, percent of total financing receivable (* less than) 1.00% 1.00% 1.00% 1.00%
Single-family | Other | Forbearance Plan        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 33 $ 30 $ 44 $ 46
Single-family | Other | Payment Deferral        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 19 28 43 58
Single-family | Other | Trial Modification and Repayment Plans        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 40 50 62 84
Single-family | Other | Payment Delay and Term Extension        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 16 21 31 39
Single-family | Other | Payment Delay, Term Extension, Interest Rate Reduction, and Other        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 6 8 10 15
Multifamily        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 462 $ 55 $ 468 $ 650
Restructured loans, percent of total financing receivable (* less than) 0.50% 0.50% 0.50% 0.50%
Multifamily | Forbearance Plan        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 29 $ 20 $ 35 $ 602
Multifamily | Payment Deferral        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 0 0 0 0
Multifamily | Trial Modification and Repayment Plans        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 0 0 0 0
Multifamily | Payment Delay and Term Extension        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost 0 0 0 0
Multifamily | Payment Delay, Term Extension, Interest Rate Reduction, and Other        
Loans in Mortgage Portfolio [Line Items]        
Restructured loans, amortized cost $ 433 $ 35 $ 433 $ 48