Taking money out of a 401(k) before retirement age triggers three separate costs: income tax, the 10 percent additional tax, and the decades of compounding the withdrawn dollars never get back. There is also a second route most people forget they have. This calculator prices both, the direct withdrawal and the 401(k) loan, including the loan's default trap if you change jobs.
An early withdrawal bills you three times. First, the entire distribution is ordinary income in the year you take it, taxed at your marginal rate. Second, the IRS adds a 10 percent additional tax on the taxable amount under IRC section 72(t), the penalty people usually mean by "early withdrawal penalty." Third, and largest, the dollars you pull out stop compounding. Tax-deferred growth is the product you bought when you funded the account, and cashing out hands it back.
The upfront hit alone is bigger than most people guess, because the tax and penalty come out of the same pot as the cash you need. To receive $25,000 in hand at a 24 percent marginal rate, you must withdraw $37,878.79: the IRS takes $9,090.91 of income tax and $3,787.88 of penalty from the top, and the remainder reaches your bank account. That means the true price of $25,000 of cash is $12,878.79 before a single day of lost growth, roughly 34 cents of leakage per dollar received.
Variables in plain terms. The need is the cash that must land in your account, which is why the calculator solves for the gross withdrawal instead of asking for one: nobody plans to withdraw $37,878.79, they plan to receive $25,000. The rate t is your marginal federal bracket for the year of the distribution. The return r carries two jobs: it prices the compounding the withdrawal route loses until 59 and a half, and it sets the reinvestment rate for loan repayments when sizing the loan's opportunity gap D. That gap has a clean reading: it is the difference between what the borrowed amount would have grown to in the plan and what your repayment stream ends up worth once reinvested. When the loan rate is at or above your expected return, repayments overtake the market and D goes to zero, leaving interest and its double taxation as the loan's entire cost.
A 45-year-old needs $25,000, sits in the 24 percent bracket, and has a $180,000 vested balance. The withdrawal route starts at $37,878.79 gross, of which $12,878.79 never reaches them. The 14.5 years of compounding left before 59 and a half are the bigger wound: at a 6 percent return, the withdrawn dollars would have grown by a factor of 2.33, so the plan surrenders $50,293.30 of future value on top of the tax bill.
| Cost component | Withdrawal route |
|---|---|
| Income tax (24% of gross) | $9,090.91 |
| 10% additional tax | $3,787.88 |
| Compounding lost over 14.5 years | $50,293.30 |
| Total cost of the withdrawal | $63,172.09 |
The loan route borrows the full $25,000, under the $50,000 limit (half the balance would allow $90,000, so the statutory cap binds). At 8 percent over five years the payment is $506.91 a month, $30,414.59 repaid in total, $5,414.59 of it interest. That interest is paid with after-tax dollars and taxed again at withdrawal, adding a $1,299.50 double-taxation drag. Because the 8 percent loan rate beats the 6 percent expected return, the repayments reinvested at 6 percent overtake what the $25,000 would have earned, the opportunity gap D comes out negative, and the loan's total cost is $6,714.09. Against $63,172.09, the loan wins by $56,457.99.
Shift the loan rate below the expected return and the gap reappears. At 4 percent, the payment drops to $460.41 and the interest to $2,624.78, but the borrowed dollars now earn 4 percent in the plan while the market does 6, adding a $1,598.22 opportunity gap, for a total cost of $4,852.95. At exactly 6 percent, the loan rate matching the expected return, D lands on zero to the cent. The loan rate is not decoration: it decides whether lending to yourself beats the market or quietly trails it.
Everything above assumes you finish the loan. Job changes are where 401(k) loans turn dangerous. Leave your employer mid-term and the plan demands the outstanding balance back, typically within 60 to 90 days per the plan's terms. Fail to repay and the remaining balance becomes a deemed distribution: taxable ordinary income that year, plus the 10 percent penalty if you are under 55 at separation. The money was never withdrawn by choice, but the tax code does not care.
Run the default example and change jobs 24 months in. The balance still owed is $16,176.41. If that defaults, the tax is $3,882.34 and the penalty another $1,617.64, a $5,499.98 hit landing in the same months as the job loss that caused it. That is why the honest comparison is not just loan cost versus withdrawal cost, but loan cost plus the probability-weighted default scenario. A loan for someone with stable employment is the cheap route. The same loan for someone already interviewing is a withdrawal with extra steps.
| Scenario at 24 months in | Amount |
|---|---|
| Loan balance still owed | $16,176.41 |
| Ordinary income tax on default | $3,882.34 |
| 10% penalty on default | $1,617.64 |
| Total hit if the loan defaults | $5,499.98 |
The penalty has statutory doors, and knowing them changes the calculator's inputs. The Rule of 55, in IRC section 72(t)(2)(A)(iv), waives the penalty on distributions from your current employer's plan if you separate from service in or after the year you turn 55. Set the age to 56 in this calculator and the withdrawal's penalty line drops to zero: the same $25,000 need costs $32,894.74 gross, $7,894.74 of tax, and $7,441.65 of lost compounding over the remaining 3.5 years, $15,336.38 in total. At 60, the loss-of-compounding term falls to zero and the cost is just the $7,894.74 of income tax. The route matters as much as the amount: roll that 401(k) into an IRA first and the Rule of 55 evaporates, because IRAs have no 55 door, only 59 and a half.
The other standard door is substantially equal periodic payments, the 72(t) SEPP route locked in by IRS Revenue Ruling 2002-62: commit to fixed annual withdrawals for five years or until 59 and a half, whichever is longer, and the penalty disappears at any age. Break the schedule and the IRS retroactively charges the penalty on every distribution taken, with interest. SEPP is a bet that your income needs will not change for five years, which is exactly the bet a 401(k) loan avoids by letting you prepay freely.
Before either route, check whether the need can be met without touching the plan at all. The emergency fund calculator sizes the buffer that makes this whole page moot, and the 50/30/20 budget calculator shows where a monthly surplus could rebuild one. For money already earmarked for retirement, the growth you keep by staying invested is the same force the compound interest calculator runs forward: an early withdrawal is that math, reversed and billed to you.
Three routes cover most situations. The Rule of 55, under IRC section 72(t)(2)(A)(iv), lets you take penalty-free distributions from your current employer's 401(k) if you leave that job in or after the year you turn 55. Substantially equal periodic payments, the 72(t) SEPP route set by IRS Revenue Ruling 2002-62, waive the penalty at any age but lock you into fixed withdrawals for five years or until 59 and a half. And the penalty's statutory exceptions include unreimbursed medical bills above 7.5 percent of AGI, up to $5,000 for a birth or adoption, qualified higher-education costs, and a first-home purchase of up to $10,000 from an IRA. Income tax still applies to every one of these routes.
Yes, and the calculator prices it directly. You earn the money, pay income tax on it, send the interest portion back into your 401(k), and then that interest is taxed again as ordinary income when you withdraw in retirement. At the calculator defaults the interest is $5,414.59, so the double-taxation drag at a 24 percent rate is $1,299.50. That is the loan's entire unavoidable cost when the loan rate sits at or above your expected market return, and it is small next to the $63,172 total cost of the withdrawal route. The double tax is real, but it is the cheapest part of the story.
The plan sets a deadline, typically 60 to 90 days after your separation, to repay the remaining balance in full. Miss it and the unpaid balance is treated as a deemed distribution: it becomes taxable ordinary income in that year, and if you are under 55 at separation the 10 percent penalty lands on top. At the calculator defaults, leaving a job 24 months into the five-year loan means $16,176.41 still owed, which triggers $3,882.34 of tax plus a $1,617.64 penalty, a $5,499.98 hit from money you never chose to withdraw. Many plans also block new contributions until the defaulted loan is repaid, which quietly kills your match during that window.
No. The Rule of 55 is written against distributions from a qualified employer plan, and it only covers the 401(k) of the employer you separated from. Roll the money into an IRA and the penalty-free window snaps back to 59 and a half, no matter your age. This is the single most expensive rollover mistake: someone who leaves a job at 56 with plans to draw from savings, rolls the 401(k) into an IRA for convenience, and then discovers the early-withdrawal penalty applies to distributions they would have taken penalty-free from the plan.
Because the plan route matters. This calculator prices distributions from your current 401(k), where the Rule of 55 makes the penalty disappear at 55 once you have separated from service, so 55 is the honest floor for this page. A withdrawal from an IRA, or from a 401(k) of a former employer while you are still working, keeps the penalty until 59 and a half, and for anyone born in 2004 or later the SECURE 2.0 Act pushes that to age 60. If you are between 55 and 59 and a half and have not separated from service, mentally add the penalty back into the withdrawal numbers.
Yes, in three specific situations. First, if you cannot commit to the payments: a defaulted loan is worse than a planned withdrawal because the tax bill arrives alongside the job loss that caused it. Second, if you are within a few years of a higher bracket retirement or you expect a much lower tax rate soon, a small withdrawal now can be cheaper than carrying loan payments. Third, if the loan would fail to cover the need, since the limit caps loans at half your vested balance or $50,000, whichever is less. With an $80,000 balance the loan stops at $40,000, and a $60,000 need forces a withdrawal that costs $151,613 in total under the calculator's assumptions. The loan is usually the cheaper route on paper, but only for people whose income is stable enough to finish it.