X VS Y COMPARISON · MONEY · RETIREMENT

401(k) Loan vs Early Withdrawal: The True Cost

Your 401(k) is the biggest pile of money you own — and the most expensive ATM you will ever use. A $20,000.00 early withdrawal at age 45 hands you $12,600.00 after a $2,000.00 penalty and $5,400.00 in taxes, and quietly costs $93,219.14 in retirement growth: $100,619.14 all-in. A 401(k) loan for the same $20,000.00 costs about $14,887.88 in forgone growth (a simplified estimate) while you repay $23,199.36 — with $3,199.36 of interest going back to yourself. At the defaults the loan wins by $85,731.26. Run your own numbers below.

322

401(k) Loan vs Early Withdrawal

The true cost of borrowing from your 401(k) versus cashing out — penalty, taxes, and lost growth.

The cash you need now. Up to the 2026 IRS loan max: the lesser of $50,000 or 50% of your vested balance.

Only the vested portion counts toward the 50% loan limit — unvested employer match does not count.

Under 59½, a withdrawal pays a 10% penalty on top of income tax. 18 to 100.

The rate your next dollar is taxed at — a withdrawal adds to this year’s income. 0 to 100.

Your state’s marginal rate on this income. Enter 0 if your state has no income tax. 0 to 100.

Set by your plan, often prime + 1%. The interest is paid back into your own account. 0 to 100.

IRS rule: repaid within 5 years — longer if used to buy your primary residence. 1 to 30.

The growth your money would earn if it stayed invested — used to price the retirement hit. 0 to 100.

How long the withdrawn money would have kept compounding. 0 to 50.

Result—Enter values above

Enter values to see the result.

The two moves, side by side

When the medical bill lands or the roof caves in, a 401(k) looks like the biggest ATM you own. There are two ways to tap it — and they are not remotely the same deal.

401(k) loanEarly withdrawal
TaxesNone, if repaid on schedule — it is not a distributionOrdinary income tax on the full amount
10% penaltyNone (under 59½), if repaidYes, before 59½ — narrow exceptions below
What you getThe full amount, borrowedAmount minus tax and penalty — $12,600.00 of $20,000.00 at the defaults
RepaymentYes — payroll deduction, usually 5 years; interest goes back to your own accountNo — the money is gone for good
Job-loss riskUnpaid balance becomes a deemed distribution: taxed + penalized unless repaid by your tax-filing deadlineNone extra — the damage is already done
Retirement impactForgone growth while the balance is out — about $14,887.88 here (simplified estimate)The full amount plus decades of compounding — $93,219.14 here

The 2026 rules that decide everything

Loan rules (IRS, 2026): borrow the lesser of $50,000 or 50% of your vested balance (if 50% of vested is under $10,000, you may take up to $10,000). Repay in level payments — usually automatic payroll deduction — within 5 years (longer terms are allowed when the loan buys your primary residence). Interest is set by your plan, typically around prime + 1%, and it is paid back into your own account, not to a bank. No credit check, no credit-report entry. The trap: leave your employer with a balance outstanding and the loan can be offset — since the 2018 tax law you have until your tax-filing deadline, including extensions, for the year you separated to repay it or roll the offset amount into an IRA. Miss that and the unpaid balance becomes a deemed distribution: taxable income, plus the 10% penalty if you are under 59½.

Withdrawal rules: before age 59½, a distribution is taxed as ordinary income plus a 10% additional tax. The penalty has narrow exceptions — the main ones: the rule of 55 (separation from service in or after the year you turn 55), hardship withdrawals for the IRS safe-harbor reasons (unreimbursed medical costs, home-purchase costs, tuition, eviction/foreclosure prevention, funeral expenses, federally declared disaster repairs), the SECURE 2.0 $1,000-a-year emergency personal-expense distribution (taxed, but no penalty), and death or disability. A hardship withdrawal is permanent: it cannot be paid back or rolled over.

The worked example: $20,000.00 at the defaults, line by line

Age 45, 22% federal + 5% state, 6% loan rate over 5 years, 8% expected return, 20 years to retirement, $100,000 vested:

Withdrawal path: the 10% penalty takes $2,000.00; income tax at 27% takes $5,400.00. You walk away with $12,600.00 and the immediate damage is $7,400.00. The quiet killer is compounding: $20,000.00 growing at 8% for 20 years would have been $93,219.14 — so the true all-in cost is $7,400.00 + $93,219.14 = $100,619.14.

Loan path: $386.66 a month for 60 months = $23,199.36 repaid, of which $3,199.36 of interest lands back in your own account. The real cost is the growth the borrowed money misses while it is out — about $14,887.88 on this simplified estimate.

The gap: $100,619.14 − $14,887.88 = $85,731.26. That is what choosing the loan over cashing out is worth at these defaults — roughly 4.3× the amount you needed in the first place.

Output · formula · meaning

OutputFormulaWhat it means
Withdrawal net cashamount − penalty − taxes$12,600.00 at the defaults — what actually lands in your pocket.
Immediate tax + penaltypenalty + taxes$7,400.00 at the defaults — the day-one damage.
Retirement hitamount × (1 + r)years$93,219.14 at the defaults — what the money would have become by retirement.
Monthly loan paymentamount × (i/12) / (1 − (1 + i/12)−60)$386.66 at the defaults — payroll-deducted, usually.
Total repaidpayment × 60$23,199.36 at the defaults — principal plus interest.
Interest to yourselftotal repaid − amount$3,199.36 at the defaults — back into your account, not a bank’s.
Loan friction (simplified)(amount/2) × ((1 + r)term − 1) × (1 + r)years−term$14,887.88 at the defaults — the growth the borrowed money misses; a simplified estimate.
True-cost gap(immediate + retirement hit) − friction$85,731.26 at the defaults — the loan’s advantage.

Who uses this

  • Employees facing a big bill: a medical emergency or a dead furnace forces the question — can the payroll deductions fit the budget, or is the permanent withdrawal hit the only option?
  • Job-changers with an outstanding loan: the deemed-distribution rule turns a job move into a tax event — see what an unrepaid balance costs before the offer letter is signed.
  • Savers aged 55–59½: the penalty-free window changes everything — set your age to 60 in the calculator and watch the penalty line drop to zero.
  • Advisors & educators: the $85,731.26 gap at the defaults is the number that ends the “should I cash out?” conversation — cite it with the block below.

Accuracy & limitations

Taxes are modeled as flat marginal rates — real brackets are progressive, and a large withdrawal can push you into a higher bracket, which this understates. The loan friction is a simplified estimate: it assumes the average dollar is out for about half the term and that your contribution behavior does not change — many borrowers pause or cut contributions while repaying, which adds unmodeled losses (including any lost employer match). Assumes a constant 8% return; real markets vary. State taxes, plan-specific loan rules, and vesting schedules differ by employer. Based on 2026 IRS rules. Not tax or financial advice.

Cite this comparisonBright Side Kit. “401(k) Loan vs Early Withdrawal: The True Cost.” brightoolbox.com, 2026.Bright Side Kit. "401(k) Loan vs Early Withdrawal: The True Cost.." https://brightoolbox.com/401k-loan-vs-early-withdrawal/ Accessed October 23, 2026.
Embed this comparison

Paste this into any web page to embed the live comparison. The “Bright Side Kit” link below it must stay intact.

Frequently asked questions

How much can I borrow from my 401(k) in 2026?

The IRS lets you borrow the lesser of $50,000 or 50% of your vested balance (up to $10,000 if half your vested balance is less than that). Your plan must allow loans, and some plans set lower caps or limit you to one active loan. Check your plan’s summary plan description — the calculator’s error message uses your vested balance to show your personal max.

What happens to my 401(k) loan if I leave my job?

Most plans accelerate the loan: the remaining balance becomes due. Since the 2018 tax law, you have until your tax-filing deadline, including extensions, for the year you separated to repay it or roll the offset amount into an IRA. Miss that and the unpaid balance becomes a deemed distribution — taxed as income, plus the 10% penalty if you are under 59½. Some plans let you keep paying after separation; ask before you assume.

Is the interest on a 401(k) loan really paid to myself?

Yes — both principal and interest go back into your own account. The rate is set by your plan, often around prime + 1%. But “interest to yourself” is not free money: at the calculator’s defaults you repay $23,199.36 and the $3,199.36 of interest just offsets part of the $14,887.88 in growth the borrowed money missed while it was out.

What are the exceptions to the 10% early withdrawal penalty?

The main ones: the rule of 55 (leaving your employer in or after the year you turn 55), IRS hardship withdrawals for safe-harbor reasons (medical bills, home-purchase costs, tuition, preventing eviction or foreclosure, funeral costs, disaster repairs), the SECURE 2.0 $1,000-a-year emergency personal-expense distribution (taxed, but no penalty), and death or disability. Hardship withdrawals are permanent — they cannot be repaid or rolled over.

If I pay the loan back, why does it still cost me $14,887.88?

Because of opportunity cost. While $20,000 sits outside your account repaying itself, it is not compounding at 8% in the market. The friction figure is a simplified estimate of that missed growth — the average dollar is out for about half the 5-year term, and the gap keeps compounding until retirement. It is not a fee anyone charges you; it is the growth that never happened.

Should I pause my 401(k) contributions while repaying the loan?

Many borrowers do, to afford the payroll deduction — but it is usually the most expensive part of the loan. Paused contributions mean lost employer match and lost compounding on top of the friction this calculator shows, which does not model reduced contributions. If you must borrow, keeping contributions running is the single best way to shrink the real cost.

I am over 59½ — does the withdrawal ever win?

It gets much closer: the 10% penalty drops to zero, so at the defaults the withdrawal nets $14,600.00 instead of $12,600.00 and the loan’s advantage shrinks to $83,731.26. But income tax and decades of lost growth still apply — set your age to 60 in the calculator and the loan still wins by $83,731.26 at these defaults. The withdrawal only wins when you need the money spent, not borrowed.