401(k) Calculator

Saving for retirement
yrs
yrs
$
$
%
% of salary
%
Share of your contribution the employer adds.
% of salary
Matched up to this share of salary.
%
In retirement
yrs
%
Finance Updated 5 Nov 2026

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

Monthly contribution = salary ÷ 12 × (c + match × min(c, limit)); balance = B₀(1 + i)^N + Σ contributions grown at i; withdrawal = balance × i_p ÷ ((1 − (1 + i_p)^−n)(1 + i_p))
  • 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%

Inputs
  • 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.

Sources & references

Frequently asked questions

How does an employer match work?
A 50% match up to 5% of salary means the employer adds 50 cents for each dollar you contribute, on contributions up to 5% of your salary. Contributing 5% of 50,000 (2,500 a year) earns a 1,250 match. Contributing more than 5% earns no extra match.
How much can I put into a 401(k) in 2026?
The IRS limit on your own elective deferrals is $24,500 for 2026, plus an $8,000 catch-up from age 50 ($11,250 at ages 60 to 63). Employer contributions count toward a separate overall limit of $72,000.
Why is the withdrawal taxed?
Traditional 401(k) contributions go in before income tax, so withdrawals are taxed as ordinary income. Enter the tax rate you expect in retirement. For a Roth 401(k), qualified withdrawals are tax-free, so enter 0%.
What return should I use?
Use a long-run return you consider realistic after fees. A lower figure gives a more cautious plan. Returns are not guaranteed, and real markets go up and down from year to year.

Related calculators

403(b) Calculator Estimates how much your 403(b) plan will hold when you retire. 403(b) plans are the retirement savings plans offered by public schools, hospitals, churches and other non-profit employers. Enter your salary, the share you and your employer contribute, your expected raises, your current balance, your age and retirement age, and the expected annual return. You get the balance at retirement, your first monthly contribution, the total paid in, the investment growth and a year-by-year table. Retirement Calculator Checks whether your savings plan will cover your living costs in retirement. Enter your age, the age you plan to retire, your life expectancy, how much you have saved, how much you save each month and the return you expect. Add any pension and your expected monthly cost of living. You get your savings at retirement, the monthly income they can pay until your life expectancy, your total monthly income with the pension, and how much is left over (or missing) each month. Compound Interest Calculator Shows how an initial deposit grows when interest is added to the balance and then earns interest itself. Enter the starting amount, the annual interest rate, how long the money is invested and how often interest is compounded, from yearly to daily or continuously. Optionally add regular deposits, monthly, quarterly or yearly, at the start or end of each period. You get the final balance, the total interest earned, the total you paid in, the effective annual rate and the balance at the end of every year. Savings Calculator Projects how your savings grow with interest and regular deposits, or works out how much you need to save each period to reach a goal. Enter your starting balance, the annual interest rate and compounding frequency, the time horizon, and the amount and timing of regular deposits. You get the final balance, your total deposits, the interest earned and a year-by-year table, and you can adjust the result for inflation to see what the savings will be worth in today's money.