401(k) Retirement Calculator
Free 401k calculator. Project your retirement balance with employer match, salary growth, and compounding returns to age 65 using IRS 2025 contribution limits.
401(k) Retirement Calculator
Background.
A 401k calculator projects the future value of your employer-sponsored retirement account by compounding three streams — your own elective deferrals, your employer's matching contributions, and the investment growth on the running balance — across the years between today and your retirement date. The 401(k) is the defining American retirement vehicle, codified in Section 401(k) of the Internal Revenue Code after the Revenue Act of 1978 created the legal carve-out that permits employees to defer a portion of compensation into a qualified plan on a pre-tax basis. The Department of Labor's most recent 'Private Pension Plan Bulletin' reports more than 70 million active participants and over $7 trillion in 401(k) plan assets, making it the single largest pool of private retirement savings in the world.
The mechanics matter for every dollar that flows into the account. Each year you elect to defer a percentage of your gross salary — capped by the IRS at $23,500 for 2025 (Revenue Procedure 2024-40), with an additional $7,500 catch-up contribution permitted for participants age 50 and older, plus a new SECURE Act 2.0 'super catch-up' of $11,250 for participants aged 60 to 63 starting in 2025. Most employers match some fraction of your contribution up to a cap expressed as a percentage of salary — the median formula across large US plans, per Vanguard's 2024 'How America Saves' report, is a 50% match on the first 6% of salary deferred, meaning if you contribute 6% the employer adds 3% on top. That employer money is the highest-return asset in personal finance: a 50% match is an instant, guaranteed 50% return before a single dollar of market return is earned.
The calculator runs a year-by-year compounding loop rather than the closed-form annuity formula because salary growth and the match cap make every year's contribution different. For each year it grows your salary by the assumed growth rate, computes that year's employee deferral, computes the match (capped at the lower of your deferral and the match cap), applies the assumed investment return to the running balance, and then adds both contribution streams. The result is the four numbers that govern your retirement: balance at retirement, total employee contributions, total employer match, and the investment growth that compounding contributed on top. Enter your current balance, salary, contribution rate, the match formula your plan offers, an expected annual return, your salary growth rate, and the years until retirement, and the calculator will report your projected 401(k) balance at retirement, your monthly contribution, and a clean breakdown of where every dollar of that balance came from.
A few honest cautions the math does not silently paper over. The model uses a constant deterministic return rate rather than simulating a sequence of returns, which is appropriate for accumulation-phase planning but understates risk in the years immediately before and after retirement; for decumulation planning use Monte Carlo tools like Portfolio Visualizer or Big ERN's spreadsheet. The model does not enforce the IRS elective-deferral limit, so if you input a contribution rate that produces a deferral above $23,500 on your current salary, real-world payroll will cap you.
The projected balance is in nominal future dollars — at 3% inflation, $1,000,000 in 35 years has the purchasing power of roughly $355,000 today, so plan accordingly when sizing a target. Traditional 401(k) withdrawals are taxed as ordinary income; a Roth 401(k) contribution stream is post-tax going in and tax-free coming out, but the balance projection itself is identical — only the after-tax usable amount differs. Required Minimum Distributions begin at age 73 under SECURE Act 2.0 (Public Law 117-328, December 2022), and will rise to 75 for participants born in 1960 or later beginning in 2033. Use this as the canonical first-pass tool, then layer in tax planning, Roth conversion strategy, and sequence-of-returns modeling as you near the date.
What is 401(k) retirement calculator?
A 401(k) is a defined-contribution, tax-qualified employer-sponsored retirement plan authorized under Section 401(k) of the Internal Revenue Code. Employees elect to defer a portion of compensation each pay period into an individual account inside the plan; the deferrals reduce current taxable income (in a traditional 401(k)) and grow tax-deferred until withdrawal, when they are taxed as ordinary income. A Roth 401(k) variant — added by the Economic Growth and Tax Relief Reconciliation Act of 2001 and available in plans since 2006 — accepts contributions on a post-tax basis but permits tax-free qualified withdrawals in retirement. Most plans add an employer match: dollars the company contributes on top of the employee's own deferrals according to a formula in the plan document, most commonly a partial or full match on the first 3% to 6% of salary. Employer contributions are subject to a vesting schedule, which determines how much of the match the employee keeps if they leave the company; under ERISA and the Pension Protection Act of 2006, plans must use either three-year cliff vesting (0% before three years, 100% after) or six-year graded vesting (20% per year from year two through year six) for employer matching contributions. Annual contribution limits are set by the IRS via Revenue Procedures: for 2025, the elective-deferral limit is $23,500, with a $7,500 catch-up for participants aged 50 and over and a new $11,250 SECURE 2.0 super catch-up for ages 60 to 63. Required Minimum Distributions (RMDs) begin at age 73 under SECURE Act 2.0; the RMD age rises to 75 in 2033 for participants born in 1960 or later. On separation from service, a participant typically has four choices: leave the balance in the former employer's plan, roll the balance into a new employer's 401(k), roll it into a traditional or Roth IRA (the most common and most flexible option), or cash out — which triggers ordinary income tax plus a 10% early-withdrawal penalty if the participant is under 59½.
How to use this calculator.
- Enter your current 401(k) balance. Pull this from your latest plan statement or the plan-administrator website (Fidelity NetBenefits, Vanguard, Empower, Schwab Workplace, etc.). Include only the balance of the 401(k) you are projecting — do not roll in IRAs or other employer plans unless you intend to consolidate them.
- Enter your annual gross salary. Use the pre-tax figure from your offer letter, W-2 box 1 plus pre-tax deferrals, or the gross line on your most recent pay stub annualized. The calculator computes your contribution as a percentage of gross pay, matching how real 401(k) payroll deductions work.
- Enter your contribution rate. Pick the percentage of gross salary you elect to defer. At minimum, contribute enough to capture the full employer match — anything less is leaving free money on the table. The 2025 IRS elective-deferral cap is $23,500; if your percentage times salary exceeds this, payroll will cap you at the limit.
- Enter the employer match formula. The match rate is how many cents on the dollar the employer contributes (e.g. 50% for a half-match, 100% for a full dollar-for-dollar match). The match cap is the maximum percent of salary on which the match applies. Vanguard's 2024 'How America Saves' reports the most common large-employer formula is '50% match on the first 6% of pay' — enter 50% match rate and 6% cap.
- Enter your expected annual return. Historical US 60/40 portfolios have returned roughly 7%–8% nominal annualized over the past century. A diversified target-date fund typical of 401(k) menus projects 5%–7% over a long horizon. Use 7% as a defensible long-run baseline; sensitivity-test at 5% and 9%.
- Enter years to retirement and annual salary growth rate. Years to retirement is straightforward — your retirement target age minus your current age. Salary growth typically averages 3%–4% per year per Bureau of Labor Statistics Employment Cost Index data; use 3% as a baseline if you do not have employer-specific raise history.
The formula.
The projection is a year-by-year compounding loop rather than a closed-form formula, because salary growth and the match cap make every year's contribution different in dollar terms. For each year i from 1 to yearsToRetirement, the calculator computes salary_i = annualSalary × (1 + salaryGrowth)^(i−1), where year 1 uses the input salary unchanged and each subsequent year grows by the salary growth rate. The employee's contribution that year is employee_i = salary_i × employeeContribPercent / 100. The employer match is computed in two steps: first the match cap in dollars is matchCap_i = salary_i × employerMatchCapPercent / 100, then the match base is the smaller of the employee contribution and the cap (matchBase_i = min(employee_i, matchCap_i)), and finally the employer's deposit is employer_i = matchBase_i × employerMatchPercent / 100. This handles the standard '50% match on the first 6%' formula correctly — if the employee contributes 4%, the match base is 4% of salary (capped by the employee deferral); if the employee contributes 10%, the match base is 6% of salary (capped by the plan cap). The balance updates each year as balance_i = balance_{i−1} × (1 + annualReturn) + employee_i + employer_i — contributions are added at the end of the year (an ordinary annuity), which slightly understates the result versus a more granular monthly model but matches conventional retirement-calculator methodology. After the loop completes, the calculator reports the final balance as the projected retirement value, sums the two contribution streams to give total employee and employer contributions, and computes total investment growth as final balance minus starting balance minus both contribution totals. The monthly contribution figure is the initial-year annual deferral divided by 12. All arithmetic is performed in full Decimal precision to avoid floating-point error accumulation over 35-year horizons, with rounding to cents only on final outputs. The future-value-of-annuity intuition underneath is that the employee contribution stream grows by (salaryGrowth) per year while the balance grows by (annualReturn) per year — when annualReturn exceeds salaryGrowth (the normal case), the compounded growth on early-year contributions ends up dominating the late-year contributions themselves, which is why financial planners stress contributing early and capturing the full match from day one.
A worked example.
Consider a 30-year-old earning $60,000 per year with $25,000 already in a 401(k), contributing 6% of salary, receiving a 50% employer match on contributions up to 6% of salary, earning an assumed 7% annual return, and receiving 3% annual salary growth for 35 years. The initial employee contribution is $3,600 per year and the initial employer match is $1,800. Applying the contribution, match, salary-growth, and annual compounding rules year by year produces a projected retirement balance of $1,328,381.61. Total employee contributions are $217,663.49, employer contributions are $108,831.75, and investment growth is $976,886.36 after subtracting the $25,000 starting balance and all later contributions. The initial monthly employee contribution is $300.
Frequently asked questions.
What is the difference between a traditional 401(k) and a Roth 401(k)?
How much is the employer 401(k) match actually worth?
What is a 401(k) vesting schedule and how does it affect me?
What happens to my 401(k) when I change jobs?
When do I have to start taking money out of my 401(k)?
How much should I be contributing to my 401(k) at my age?
Are the IRS 401(k) contribution limits indexed to inflation?
Can I borrow from my 401(k), and should I?
Does this calculator account for inflation?
What annual return assumption should I use for a 401(k) projection?
References& sources.
- [1]Internal Revenue Service (2024). Revenue Procedure 2024-40 — '401(k) and retirement-plan cost-of-living adjustments for 2025.' Establishes the $23,500 elective-deferral limit, $7,500 age-50 catch-up, and $70,000 total contribution limit for 2025.
- [2]Internal Revenue Service. Publication 560 — Retirement Plans for Small Business (SEP, SIMPLE, and Qualified Plans). The authoritative IRS guide to 401(k) plan rules, contribution limits, and tax treatment.
- [3]SECURE Act 2.0 — Consolidated Appropriations Act of 2023, Public Law 117-328, Division T (December 29, 2022). Raised the RMD age to 73 (rising to 75 in 2033), created the age-60-to-63 super catch-up, and eliminated lifetime RMDs from Roth 401(k) accounts.
- [4]Bengen, W. P. (1994). 'Determining Withdrawal Rates Using Historical Data.' Journal of Financial Planning, October 1994 — the original 4% safe withdrawal rate study underlying retirement-target sizing.
- [5]Cooley, P. L., Hubbard, C. M., & Walz, D. T. (1998). 'Retirement Savings: Choosing a Withdrawal Rate That Is Sustainable.' AAII Journal — the Trinity Study, which established portfolio-survival rates across rolling 30-year historical windows.
- [6]Vanguard (2024). 'How America Saves 2024.' Vanguard Institutional — the canonical annual report on 401(k) plan design, participant behavior, employer match formulas, and average contribution rates across the Vanguard recordkeeping universe of approximately 5 million participants.
- [7]Department of Labor, Employee Benefits Security Administration. 'Private Pension Plan Bulletin: Abstract of 2021 Form 5500 Annual Reports' (released 2024). Reports more than 70 million active 401(k) participants and $7+ trillion in plan assets.
- [8]Beshears, J., Choi, J. J., Laibson, D., & Madrian, B. C. (2011). 'The Availability and Utilization of 401(k) Loans.' NBER Working Paper 17118 — empirical analysis of 401(k) loan effects on retirement wealth accumulation.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled