v3.25.2
Debt - Debt of Consolidated Trusts (Details) - USD ($)
$ in Millions
Jun. 30, 2025
Dec. 31, 2024
Debt Instrument [Line Items]    
Carrying Amount $ 3,349,274 $ 3,304,949
Debt instrument recorded at fair value 2,693 2,339
Held by consolidated trusts    
Debt Instrument [Line Items]    
UPB 3,120,601 3,085,981
Carrying Amount 3,155,397 3,122,941
Debt instrument recorded at fair value $ 2,500 $ 2,000
Effective rate for debt securities of consolidated trusts held by third parties 3.12% 3.01%
Held by consolidated trusts | Single-family    
Debt Instrument [Line Items]    
UPB $ 3,037,742 $ 3,015,851
Carrying Amount 3,074,048 3,054,156
Held by consolidated trusts | Multifamily    
Debt Instrument [Line Items]    
UPB 82,859 70,130
Carrying Amount $ 81,349 $ 68,785
Weighted Average Coupon 3.70% 3.58%
Held by consolidated trusts | Single-family 20- and 30-year or more, fixed-rate | Single-family    
Debt Instrument [Line Items]    
UPB $ 2,736,983 $ 2,701,936
Carrying Amount $ 2,769,675 $ 2,736,057
Weighted Average Coupon 3.46% 3.34%
Held by consolidated trusts | Single-family 15-year or less, fixed-rate | Single-family    
Debt Instrument [Line Items]    
UPB $ 276,921 $ 291,054
Carrying Amount $ 280,261 $ 294,875
Weighted Average Coupon 2.38% 2.30%
Held by consolidated trusts | Adjustable-rate and other | Single-family    
Debt Instrument [Line Items]    
UPB $ 23,838 $ 22,861
Carrying Amount $ 24,112 $ 23,224
Weighted Average Coupon 4.45% 4.42%