Calcs.finance

retirement calculator

401K Calculator

The 401K Calculator has three modes. Projection estimates how salary deferrals, a first employer match tier, salary growth, return, inflation, and retirement age may affect a future balance. Early Withdrawal estimates user-entered taxes plus a simplified penalty model. Maximize Match estimates the salary deferral needed to capture one or two employer match tiers.

Your scenario

Enter your numbers

Help
401(k) question

Result

401(k) result
Estimated 401(k) balance at retirement is $1,707,893.31 before inflation adjustment.
Balance at retirement
$1,707,893.31
Inflation-adjusted balance
$606,956.93
Employee contributions
$453,465.61
Employer contributions
$68,019.84
Investment return
$1,151,407.85
Monthly retirement withdrawal
$12,079.79
Annual retirement withdrawal
$144,957.53
Retirement years
20
Net early withdrawal
$0.00
Estimated taxes
$0.00
Estimated penalty
$0.00
Total early withdrawal cost
$0.00
Penalty waived
No
Contribution needed for full match
0.00%
Employee contribution for full match
$0.00
Annual employer match
$0.00
Tier one match
$0.00
Tier two match
$0.00
Employer match as salary percent
0.00%
What this means
Projection excludes IRS contribution limits, catch-up rules, plan fees, Roth tax treatment, loan balances, and required minimum distribution rules.

Working scenario

New scenario

Not saved yet

Compare

Saved scenarios

Compare saved versions

Compare

Save this result, then use saved scenarios to switch between assumptions.

How the 401K Calculator works

Use this calculator to compare one fixed-assumption workplace retirement scenario at a time before checking IRS rules, your Summary Plan Description, payroll timing, provider fees, tax treatment, investment choices, or plan-administrator decisions. Use Retirement for broader retirement need and withdrawal estimates, RMD for required-minimum-distribution estimates, Annuity Payout for payout math, Investment and Future Value for non-plan growth assumptions, and official IRS, DOL/EBSA, plan, payroll, tax, legal, and adviser sources before acting on a real 401(k) decision.

Projection mode sets yearsToRetirement to max(0, retirementAge - currentAge) and retirementYears to max(0, lifeExpectancy - retirementAge). It converts annualReturnRate to an effective monthly rate with (1 + annualReturnRate / 100)^(1 / 12) - 1, grows salary once per projection year, calculates employee contributions from salary * employeeContributionPercent, calculates projection employer contributions from salary * min(employeeContributionPercent, employerMatchLimitPercent) * employerMatchPercent, grows the balance monthly, then adds one twelfth of that year's employee and employer contributions after monthly growth. Inflation-adjusted balance divides the final balance by (1 + inflationRate / 100)^yearsToRetirement, investment return equals final balance minus starting balance and contributions, and monthly retirement withdrawal is solved from the nominal final balance, monthly return, and retirementYears * 12. Early Withdrawal mode adds federalTaxRate, stateTaxRate, and localTaxRate, floors the combined rate at zero, applies it to earlyWithdrawalAmount, then applies a 10 percent penalty unless qualifiedDisability, otherPenaltyExemption, or not-currently-employed plus leftEmployerAfter55 is selected. Maximize Match mode calculates tier one from currentAnnualSalary * employerMatchLimitPercent * employerMatchPercent, tier two from currentAnnualSalary * max(0, employerMatch2LimitPercent - employerMatchLimitPercent) * employerMatch2Percent, and contribution needed for full match as max(employerMatchLimitPercent, employerMatch2LimitPercent).

401K Calculator formula

This formula page covers the app's 401K Calculator: three US workplace retirement estimate modes for projection, early withdrawal, and employer-match maximization. It uses the salary, balance, contribution, match, return, inflation, tax-rate, age, and exception-flag assumptions entered by the user. It does not apply IRS elective-deferral limits, catch-up limits, compensation limits, annual addition limits, plan fees, vesting, Roth tax treatment, plan loans, required minimum distributions, hardship eligibility, payroll timing, withholding, state or local tax law, plan-administrator decisions, or personalised retirement advice.

Projection: Y = max(0, RA - CA); RY = max(0, LE - RA); m = (1 + AR / 100)^(1 / 12) - 1; Sal_y = Sal * (1 + SG / 100)^y; Emp_y = Sal_y * EP / 100; Match_y = Sal_y * min(EP, ML) / 100 * MR / 100; B_t = B_(t-1) * (1 + m) + (Emp_y + Match_y) / 12; RealBal = B / (1 + INF / 100)^Y; RetPMT = B * m / (1 - (1 + m)^(-12 * RY)). Early withdrawal: Tax = W * max(0, FT + ST + LT) / 100; Penalty = waived ? 0 : 0.10 * W; Net = max(0, W - Tax - Penalty). Match: T1 = Sal * L1 / 100 * R1 / 100; T2 = Sal * max(0, L2 - L1) / 100 * R2 / 100; FullDef = max(L1, L2); Match = T1 + T2.

Projection mode converts the annual return assumption into an effective monthly rate, grows the balance month by month, and adds employee and employer contributions after each month's growth. Early-withdrawal mode applies user-entered tax rates and a simple 10 percent penalty model unless selected exception flags waive the penalty. Maximize-match mode calculates one or two employer matching tiers from salary percentages.
SymbolMeaningHow this page uses it
ModeCalculation modeProjection, early withdrawal, or maximize employer match.
CACurrent ageThe current age input used in projection mode.
RARetirement ageThe planned retirement age input used in projection mode.
LELife expectancyThe age used to estimate how many retirement years are modeled.
YYears to retirementmax(0, retirement age minus current age).
RYRetirement yearsmax(0, life expectancy minus retirement age).
SalCurrent annual salaryThe current salary input used for projection contributions and match calculations.
SGSalary growth percentThe annual salary increase assumption entered by the user.
B401(k) balanceThe running account balance, starting with Current balance and ending as Balance at retirement.
ARAnnual return percentThe fixed annual return assumption entered by the user.
mEffective monthly returnThe annual return converted with (1 + AR / 100)^(1 / 12) - 1.
EPEmployee contribution percentThe salary deferral percent entered in projection mode.
MREmployer match percentThe first employer match rate as a percent of matched employee contributions.
MLEmployer match limit percentThe salary percentage limit used for the first employer matching tier and for projection-mode match.
Emp_yEmployee contribution for year ySalary for that year multiplied by the employee contribution percent.
Match_yEmployer contribution for year yProjection-mode employer match from salary, the smaller of employee contribution percent and match limit, and employer match percent.
INFInflation percentThe user-entered annual inflation assumption used to discount the projected ending balance.
RealBalInflation-adjusted balanceBalance at retirement divided by (1 + inflation percent / 100) raised to years to retirement.
RetPMTNominal monthly retirement withdrawalThe monthly withdrawal solved from the projected nominal balance, modeled retirement months, and the same monthly return assumption.
WEarly withdrawal amountThe withdrawal amount entered in early-withdrawal mode.
FT + ST + LTCombined tax-rate inputsFederal, state, and local tax-rate inputs added together, floored at zero before applying to the withdrawal.
TaxEstimated withdrawal taxesWithdrawal amount multiplied by the combined user-entered tax-rate inputs.
WaivedPenalty waiver flagTrue when the selected disability, other-exemption, or separated-after-55 condition applies in the app's simplified model.
PenaltyEstimated early-withdrawal penaltyZero when waived; otherwise 10 percent of the withdrawal amount.
NetNet early withdrawalWithdrawal amount minus estimated taxes and penalty, floored at zero.
L1, R1First match tierFirst salary-percent limit and match rate used in maximize-match mode and projection mode.
L2, R2Second match tierSecond salary-percent limit and match rate used only in maximize-match mode.
FullDefContribution needed for full matchThe larger of the first and second match limits, displayed as the salary deferral needed to capture both tiers.
MatchAnnual employer matchThe first tier amount plus the second tier amount in maximize-match mode.

Step by step

  1. Read the selected 401(k) mode and only the inputs visible for that mode.
  2. In projection mode, compute years to retirement and retirement years from the entered ages, clamped at zero.
  3. Convert the annual return assumption into an effective monthly rate with (1 + annualReturnRate / 100)^(1 / 12) - 1.
  4. For each pre-retirement year, grow salary by the salary increase assumption, then compute employee annual contribution from salary times employee contribution percent.
  5. Compute projection-mode employer contribution from salary times min(employee contribution percent, first match limit percent) times the first match rate.
  6. Within each year, grow the balance once per month and then add one twelfth of that year's employee and employer contributions at the end of the month.
  7. After the loop, discount the projected balance by the inflation assumption, calculate investment return as ending balance minus starting balance and contributions, and solve a nominal retirement withdrawal over retirement years times 12 months.
  8. In early-withdrawal mode, add the user-entered federal, state, and local tax-rate inputs, floor the combined rate at zero, and apply it to the withdrawal amount.
  9. Apply a 10 percent penalty unless the selected disability, other-exemption, or separated-after-55 flags waive it; then floor the net withdrawal at zero.
  10. In maximize-match mode, compute tier one as salary times first limit times first match rate, compute tier two only on max(0, second limit minus first limit), add both tiers, and display max(first limit, second limit) as the contribution needed for full match.
  11. Use official or primary sources before turning this app math into IRS contribution-limit guidance, catch-up rules, distribution eligibility, hardship-withdrawal rules, loan rules, RMD guidance, employer-plan rules, vesting, payroll, withholding, tax, legal, investment, regulated advice, or jurisdiction-specific claims.

Worked example

Default examples across the three 401(k) modes

These examples use the current app fixtures and validation scenarios. They illustrate the calculator mechanics, not a recommendation about how much to contribute or whether to take a withdrawal.

  1. Projection fixture: current age 30, retirement age 65, life expectancy 85, salary $75,000, current balance $35,000, employee contribution 10 percent, employer match 50 percent up to 3 percent of salary, salary growth 3 percent, return 6 percent, and inflation 3 percent.
  2. The app models 35 years to retirement and 20 retirement years. It converts the 6 percent annual return to an effective monthly rate of about 0.4868 percent.
  3. Across the projection, employee contributions total $453,465.61 and employer contributions total $68,019.84.
  4. The estimated balance at retirement is $1,707,893.31, the inflation-adjusted balance is $606,956.93, and modeled investment return is $1,151,407.85.
  5. Using the same nominal monthly return over 20 retirement years, the app displays an estimated monthly withdrawal of $12,079.79 and annual withdrawal of $144,957.53.
  6. Early-withdrawal fixture: a $10,000 withdrawal with 25 percent federal tax, 5 percent state tax, no local tax, and no selected penalty exception produces $3,000 of estimated taxes, a $1,000 penalty, $4,000 total cost, and $6,000 net withdrawal.
  7. Maximize-match fixture: on a $75,000 salary, a 50 percent match through 3 percent of salary gives a $1,125 tier-one match; a 20 percent match from 3 percent to 6 percent gives a $450 tier-two match.
  8. The same match fixture displays a 6 percent salary deferral needed for the full match, a $4,500 employee contribution at that percentage, a $1,575 employer match, and employer match equal to 2.1 percent of salary.
  9. These outputs are mechanical estimates from entered assumptions. They are not IRS determinations, plan-administrator decisions, payroll instructions, tax advice, investment advice, legal advice, or personalised retirement advice.

The formula is useful for comparing fixed 401(k) assumptions, but plan documents, IRS rules, taxes, fees, vesting, investment choices, and payroll timing can change the real outcome.

Assumptions and what this calculator ignores

Geographic scope: this calculator models US-specific rules and conventions. Outside the United States, treat the result as a generic illustration only.

What this formula does not include

Common mistakes to avoid

Key terms

Salary deferral
The percent of salary modeled as the employee 401(k) contribution. Projection mode applies it to each year's grown salary before splitting the annual amount into monthly additions.
Employer match tier
A salary-percent range where the employer contribution formula applies. Projection mode uses the first tier. Maximize Match can include a second tier by using the window above the first limit.
Penalty exception flag
A selected condition that makes the simplified early-withdrawal penalty zero. The app checks only the selected disability, other-exemption, and separated-after-55 flags; it does not determine all IRS exceptions.

Frequently asked questions

How is my employer 401(k) match modeled in the projection?

As a percentage of the salary you defer, capped at a match limit: the default is 50 percent of contributions up to 3 percent of salary. The projection applies it monthly alongside your own deferral and salary growth. Maximize-match mode goes further, handling two match tiers and reporting the minimum contribution percentage that captures every matching dollar - the number worth checking before any other savings decision.

What does an early 401(k) withdrawal really cost by this estimate?

Early-withdrawal mode stacks entered federal, state, and local tax rates plus the 10 percent penalty unless one of the exception flags applies (age-55 separation, qualified disability, or another exemption you assert). A $10,000 withdrawal at the default 25/5/0 rates nets about $6,000 after $3,000 tax and $1,000 penalty - and the total-cost output excludes the lost future compounding, which is usually the bigger loss.

Does the projection respect IRS contribution limits?

No - deliberately. Elective-deferral limits, catch-up amounts, compensation caps, and annual-addition limits change yearly and depend on plan terms, so the projection applies your entered percentages without capping them. If your salary and deferral rate imply contributions above the current IRS limit, the projection overstates the balance. Check current limits on irs.gov and keep the entered percentage inside them.

Methodology, sources, and disclaimer

This calculator is an original US workplace-plan model with projection, early-withdrawal cost, and two-tier match-maximization modes, using monthly compounding of salary-driven contributions, validated by deterministic fixtures and edge-case tests. It is not copied from a single source.

Fixtures pin the match-tier arithmetic, the stacked tax-plus-penalty withdrawal math with exception flags, and the projection path; IRS contribution limits are documented as not applied. The result remains an educational estimate, not a plan statement or a tax determination.

Formula version 2026.05.22-us-401k-projection-withdrawal-match. The version marks the calculation logic and validation fixture set used for this estimate.

Results are educational estimates, not advice. Read the full disclaimer.

Related reading

When another calculator fits better

retirement

Retirement Calculator

Estimate retirement savings needs, savings required, monthly withdrawal capacity, and how long savings may last.

retirement

RMD Calculator

Estimate a required minimum distribution from a tax-deferred retirement account and project next year's RMD.

retirement

Annuity Payout Calculator

Estimate a fixed-length annuity payout amount or how long an annuity can last with a fixed payout.

retirement

Annuity Calculator

Estimate deferred annuity accumulation from starting principal, regular additions, growth rate, and contribution timing.

investment

Investment Calculator

Solve an investment goal from starting amount, end amount, return rate, contribution amount, and investment length.