← 401(k) Loan vs Withdrawal Calculator

This 401(k) calculator vs. working out loan versus withdrawal by hand

Many people compare a 401(k) loan with an early withdrawal on the back of an envelope or in a spreadsheet. That can work. This page says where it gets slippery and what the free calculator does instead.

Open the free 401(k) loan vs withdrawal calculator

Where each one fits

SituationBy hand or spreadsheetThis calculator
Rough size of tax and penalty on a withdrawalQuick: gross up the cash you need for tax and the penalty.Does the same gross-up so you net the cash needed.
Cost of the money not growingEasy to forget; needs a compounding formula per option.One yardstick: how much less you hold, after tax, at your horizon.
Loan repaymentsYou build the amortisation and track what returns to the account.Payments of principal and interest return to the account but are paid from after-tax cash.
How much the plan lets you borrowLook it up and remember to cap it.Applies the greater of $10,000 or 50% of vested balance, capped at $50,000; your plan can be lower.
Leaving the job with a loan openOften left out.Shows the balance still owed after N months and the tax and penalty if it became a distribution.
Next to an outside loanA third set of formulas.Typed APR and term, retirement account untouched.
Hardship rules, penalty exceptions, state tax, a paused employer matchYou can model anything you know about.Not modelled; adjust the penalty input or ask a professional.

In the calculator's default example ($15,000 needed, 20 years, 6% growth) the loan costs about $34,300 and the withdrawal about $61,100; those are placeholder inputs, not a forecast. The full walk-through is in should I take a 401(k) loan or an early withdrawal.

Common questions

Can I compare a 401(k) loan and a withdrawal in a spreadsheet?

Yes. The arithmetic is not hard: a loan returns principal and interest to the account from after-tax cash, a withdrawal is grossed up for income tax and penalty and the gross amount leaves for good. The calculator does the same sums for you and puts both next to an outside loan, so you do not have to build and check the formulas.

What does the calculator include that a quick estimate usually leaves out?

Lost growth on the borrowed or withdrawn money, the plan loan limit (the greater of $10,000 or 50% of the vested balance, capped at $50,000), the set-up fee, and a job-loss check showing the balance still owed after a number of months and the tax and penalty if it became a distribution.

What does it not do?

It does not model hardship-specific rules, penalty exceptions beyond the penalty rate you type, state tax detail, plan fees other than the set-up fee, or an employer match paused during a loan. Its default rates are placeholders, so type your own.

Is anything uploaded?

No. The calculator runs in your browser and nothing you type is sent anywhere.