Works on this device
401k Calculator
Enter your pay, the percent you pay in and the employer match from your plan. The calculator projects your 401(k) year by year, with pay rises, a return, fees and inflation that you choose. It has no built-in limits or tax rates: you type them.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you want to work out. The first choice projects your balance at retirement.
- Enter your age, your balance, your yearly pay and how often you are paid.
- Enter the percent of pay that you pay in, and the employer match from your plan document.
- Enter your own estimates for pay rises, the return, fees and inflation.
- To check the yearly limit, type the limit for your year. Open More options for a catch-up amount, a second match step, a percent that rises each year and other settings.
- Choose Calculate. A chart shows the balance by age, and a table has one row for each year. You can download the table as a CSV file.
The boxes for figures that a tax authority or a plan rule sets start empty: the yearly limit, the catch-up amount and its age, the early-withdrawal penalty, and the percent of pay at which a yearly raise of your percent stops. Try an example fills them with example values, so that you can try the tool: a limit of 20,000, a catch-up amount of 1,500 from age 50, a penalty of 10% and a stop at 15% of pay. These example values are not current rules.
The other values that the page starts with are examples too: the pay, the match, the fees, the tax rates, the loan rate and the return. Replace each one with your own number.
What each choice works out
- 401(k) balance at retirement. Your balance year by year, what you and your employer pay in, the growth, the fees and what the fees cost.
- Employer match for one year. The match from the formula you type, the largest match you can get and the pay-in that gets all of it.
- Pay-in that reaches the yearly limit. The percent of pay and the amount per pay period that reach a limit you type.
- Pay-in and take-home pay per paycheck. A percent of pay as an amount, or the other way, with the income tax saved at a rate you type.
- Pay-in needed for a target balance. The percent of pay that reaches a target at retirement.
- Traditional or Roth 401(k). The value after tax of both, from your tax rate now and your tax rate in retirement.
- Tax and penalty on a withdrawal. What is left of a withdrawal or cash-out after a penalty and income tax, or the amount to take out for the cash you need.
- 401(k) loan payments. The payment, a full payment table, and what the loan does to the account.
What happens in each pay period
- Pay for the period = yearly pay ÷ pay periods in a year. The yearly pay rises once a year by the percent you chose.
- Your pay-in = that pay × your percent. If you typed a yearly limit, the pay-in stops for the rest of the year when the limit is reached.
- The employer match is worked out from your pay-in of that period, with the formula you typed.
- The money is added to the balance, on payday at the end of the period unless you choose the start.
- The balance grows by the return for one period.
- The fee for one period is taken from the balance: the yearly fee ÷ pay periods in a year.
The formulas
- Employer match for one pay period = m1 × (your pay-in, up to u1 of the pay) + m2 × (your pay-in above that, up to u2 of the pay). For "50% of the first 6% of pay", m1 is 50% and u1 is 6%. The second step is for formulas such as "100% of the first 3% and 50% of the next 2%".
- Return for one period. By default the yearly return is an effective return, so the return for one two-week period is (1 + r)^(1 ÷ 26) − 1. You can choose the yearly return ÷ pay periods in place of this.
- Without pay rises, fees and a limit, the result equals the usual formula: B × (1 + i)^n + C × ((1 + i)^n − 1) ÷ i, with B the balance now, C the money added at the end of each period, i the return for one period and n the number of periods.
- Today's money = an amount ÷ (1 + inflation)^(years from today).
- Percent that reaches the limit = room left this year ÷ (pay periods left × pay for one period).
- Income tax saved now with a traditional pay-in = pay-in × your marginal tax rate. A Roth pay-in saves no income tax now.
- Traditional after tax = balance × (1 − tax rate in retirement). Roth after tax = the Roth balance. With the same cut in pay, the Roth pay-in is the traditional pay-in × (1 − tax rate now).
- Withdrawal. Penalty and taxes are each the taxed part of the amount × the percent you typed. Cash left = amount − penalty − taxes.
- Loan payment = L × i ÷ (1 − (1 + i)^−n), with L the loan amount, i the loan rate for one pay period and n the number of payments.
Worked example
You are 30 and plan to retire at 65. You have 25,000 in the plan and earn 60,000 a year, paid every 2 weeks. You pay in 6% of pay. Your plan matches 50% of the first 6% of pay. You expect pay rises of 3% a year, a return of 6%, fees of 0.5% and inflation of 2.5%.
Pay for one two-week period is 60,000 ÷ 26 = 2,307.69. Your pay-in is 138.46 and the match is 69.23. In the first year that is 3,599.96 from you and 1,799.98 from your employer.
At 65 the balance is 977,005.38. In today's money that is 411,681.80. You paid in 217,663.94 and your employer 108,833.92. The growth is 684,291.77 before fees, and the fees add up to 58,784.25.
Without fees the balance would be 1,094,202.64. So the fees cost 117,197.26, about twice the fees paid, because money that leaves as fees no longer grows.
To reach 1,000,000 with the same numbers, the pay-in must be 6.26% of pay.
Limits, catch-up amounts and other plan rules
Tax law limits what you may pay into a 401(k) each year, and the limit changes from year to year. Older savers may pay in an extra catch-up amount. This tool does not know the limit of any year. It checks your pay-in only against the limit that you type.
Take the limit and the catch-up rule from the tax authority for your year. In the United States that is the IRS page on 401(k) contribution limits. Take the match formula, the vesting schedule, the fees and the loan rules from your plan document.
In the projection a year is 12 months from today, not a calendar year. When your pay-in stops at the limit, the match of those pay periods stops too. Some plans add the missing match at the end of the year. This tool does not.
A plan with an automatic raise (auto-escalation) puts your percent up each year until it reaches a stop. The plan sets the stop within the rules that apply to it. Take it from your plan document. The stop box starts empty and is needed only when your percent rises each year.
Traditional or Roth, withdrawals and loans
- Traditional or Roth. The comparison uses two flat tax rates that you type. With the same cut in pay and the same rate now and in retirement, both end with the same value. A lower rate in retirement favours traditional. A higher one favours Roth. Nobody knows future tax rates.
- Withdrawals. The penalty percent and the tax rates are your own figures. The penalty box starts empty: type the percent that applies to you, or 0 if none applies. Your age, the reason for the withdrawal and your plan decide which penalty or exception applies. The tax authority and your plan have the current figure.
- Loans. The interest goes into your own account, but you pay it from your pay. The compare shows the account at the end of the loan against leaving the money invested at a return you type.
Rounding
Pay, pay-ins, match, tax and penalty are rounded to 2 decimal places (half up) when they are worked out. Growth is worked out with 40 extra decimal digits. Balances and fees are rounded only where they are shown.
In the table, growth is what is left: the change in the rounded balance, minus the money paid in, plus the fees. So the rows add up to the totals, on the page and in the CSV file.
Limits you should know
- No contribution limit, catch-up amount, match formula, vesting schedule, penalty, tax bracket or loan limit is built in. Each one is a box that you fill in. The values that Try an example fills in are for trying the tool and are not current rules.
- The chart shows numbers from the table: the balance in the money of each year, and the balance in today's money when inflation is not 0. The CSV file holds the table, not the picture. The loan choice has a payment table and no chart.
- One fixed return for the whole time. Real returns go up and down, and you can lose money.
- Tax is worked out only from the flat rates you type, with the simple rules stated above. The tool does not work out a full paycheck or a tax return.
- Required minimum distributions, Roth conversions, income in retirement and the allowed contribution of a self-employed (solo) plan are not part of this tool.
- Ages are whole years. Amounts have at most 2 decimal places, and results go up to 90,000,000,000,000.
- The result is a projection from your numbers. It is not a forecast, an offer, or tax or financial advice. For a decision about a withdrawal or a loan, ask your plan or a tax adviser.