401(k) Calculator
Projects your 401(k) balance at retirement from your salary, your contribution rate and your employer's match, then turns that balance into a regular retirement withdrawal after tax. Enter your age, retirement age, current balance, salary and expected raises, how much you and your employer put in, the expected annual return and how long the money should last. You get the monthly contribution, the balance at retirement, the withdrawal you can take each period before and after tax, and a year-by-year table. You can also enter the withdrawal you want and see how many years the account lasts.
- The return is constant and the same before and after retirement. Fees, inflation and market swings are not modelled.
- Contributions are not capped at the IRS limits; a warning is shown when your own contributions exceed the 2026 limit.
- Withdrawals are equal and taxed at one flat rate; required minimum distributions and early-withdrawal penalties are ignored.
Formula
- c is your contribution rate, match the employer's match rate and limit the share of salary it matches. i is the effective monthly return for the chosen compounding: (1 + r/k)^(k/12) − 1.
- Contributions are made monthly for (retirement age − current age) × 12 months. Salary increases apply once a year.
- In retirement the balance pays n = years × withdrawals per year equal withdrawals. With withdrawals at the beginning of each period, the annuity-due formula above applies; at the end of each period, drop the (1 + i_p) factor.
- The withdrawal after tax is the withdrawal × (1 − tax rate). Total return = total pre-tax withdrawals − contributions − the starting balance.
- How long it lasts: n = −ln(1 − B·i_p ÷ (W(1 + i_p))) ÷ ln(1 + i_p), where W is the pre-tax withdrawal. If W is no more than the return earned, the money never runs out.
$50,000 salary, 5% contribution, 50% match up to 5%
- I want to know: withdrawal
- Current age: 30 yrs
- Retirement age: 70 yrs
- Current 401(k) balance: 0 $
- Annual salary: 50000 $
- Annual salary increase: 0 %
- Your contribution: 5 % of salary
- Employer match: 50 %
- Match limit: 5 % of salary
- Expected annual return: 1.5 %
- Compounding: 12
- Contributions made at: end
- Years in retirement: 20 yrs
- Withdrawal after tax, each period: 1000 $
- Withdrawals: 12
- Withdrawn at: start
- Tax rate on withdrawals: 12 %
Each month 50,000 ÷ 12 × (5% + 50% × 5%) = 312.50 goes in, 150,000 over 40 years. At 1.5% compounded monthly that grows to 205,359.05 by age 70. Spread over 240 monthly withdrawals taken at the start of each month, that is 989.71 before tax, or 870.95 after 12% tax.