401(k) Loan vs Early Withdrawal
The true cost of borrowing from your 401(k) versus cashing out — penalty, taxes, and lost growth.
X VS Y COMPARISON · MONEY · RETIREMENT
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.
The true cost of borrowing from your 401(k) versus cashing out — penalty, taxes, and lost growth.
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) loan | Early withdrawal | |
|---|---|---|
| Taxes | None, if repaid on schedule — it is not a distribution | Ordinary income tax on the full amount |
| 10% penalty | None (under 59½), if repaid | Yes, before 59½ — narrow exceptions below |
| What you get | The full amount, borrowed | Amount minus tax and penalty — $12,600.00 of $20,000.00 at the defaults |
| Repayment | Yes — payroll deduction, usually 5 years; interest goes back to your own account | No — the money is gone for good |
| Job-loss risk | Unpaid balance becomes a deemed distribution: taxed + penalized unless repaid by your tax-filing deadline | None extra — the damage is already done |
| Retirement impact | Forgone growth while the balance is out — about $14,887.88 here (simplified estimate) | The full amount plus decades of compounding — $93,219.14 here |
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.
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 | What it means |
|---|---|---|
| Withdrawal net cash | amount − penalty − taxes | $12,600.00 at the defaults — what actually lands in your pocket. |
| Immediate tax + penalty | penalty + taxes | $7,400.00 at the defaults — the day-one damage. |
| Retirement hit | amount × (1 + r)years | $93,219.14 at the defaults — what the money would have become by retirement. |
| Monthly loan payment | amount × (i/12) / (1 − (1 + i/12)−60) | $386.66 at the defaults — payroll-deducted, usually. |
| Total repaid | payment × 60 | $23,199.36 at the defaults — principal plus interest. |
| Interest to yourself | total 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. |
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.
Bright Side Kit. "401(k) Loan vs Early Withdrawal: The True Cost.." https://brightoolbox.com/401k-loan-vs-early-withdrawal/ Accessed October 23, 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.
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.
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.
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.
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.
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.
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.