401k Loan vs Withdrawal Calculator
Compare the true cost of borrowing from your 401(k) vs taking an early withdrawal. 401(k) loans avoid tax + penalty but suspend growth on the borrowed amount. Withdrawals trigger 10% early-withdrawal penalty (under 59½) + ordinary income tax + lost compounding. The Secure 2.0 Act (2023) added new hardship exceptions and emergency-savings rules.
401(k) Loan — Rules
Maximum: lesser of 50% of vested balance OR $50,000. Must be repaid within 5 years (up to 30 years for primary residence). Interest rate: typically prime + 1-2%. Interest paid back to your own account. Loan triggers: most plans allow up to 2 outstanding loans simultaneously. Job loss: loan becomes due in full within 60-90 days under most plans; Secure 2.0 extended to next tax-filing date. Unrepaid balance becomes a deemed distribution — full tax + 10% penalty (if under 59½).
401(k) Withdrawal — Penalty + Tax
Under age 59½: 10% federal early-withdrawal penalty (some states add state-level penalty) PLUS ordinary income tax at marginal rate. So a $10,000 withdrawal in a 24% bracket leaves only $6,600 net. Hardship withdrawal exceptions (no penalty but still tax): medical expenses >7.5% AGI; first-home purchase up to $10K; college; disability; IRS levy; substantially equal periodic payments (SEPP). Secure 2.0 added new exceptions: birth/adoption (up to $5K), domestic abuse victim ($10K), terminal illness, federally-declared disaster, emergency personal expense ($1K once per year).
The Hidden Cost — Lost Compounding
Withdraw $25K at age 35 from a balance earning 7% annually → $25K compounded over 30 years = $190K opportunity cost at age 65. Even the loan path loses growth: borrowed dollars earn the loan interest rate (~9%) instead of stock-market returns (~10% historical S&P 500). Over a 5-year loan, that's a 1% drag × principal — small but real. The biggest financial-planning cost is rarely the penalty; it's the lost decades of compounding.
When 401(k) Loan vs Withdrawal Makes Sense
Loan if: stable employment, short-term cash need, can fully repay within 5 years, alternative borrowing rate is higher. Withdrawal if: under 59½ with a qualifying exception (no 10% penalty); over 59½ (no penalty anyway); job-loss imminent (loan would be deemed distribution anyway, so accept the same tax + penalty); medical or other emergency with no other source. Avoid both if: HSA, emergency-fund, brokerage account, or 0% APR credit card available; if exhausting 401(k) breaks the retirement plan.
Sources: IRC §72(t) (early-withdrawal penalty), IRC §72(p) (loans), Secure 2.0 Act 2022 (P.L. 117-328), IRS Publication 575. Last updated: May 2026. Not financial advice.