401(k) Calculator
Estimate your future 401(k) retirement savings, optimize employer matching contributions, and evaluate the real cost of early withdrawals.
Basic Information
Your salary, balance, and contribution today
Percent of your contribution the employer matches
Match applies up to this % of salary
Projection Assumptions
Long-term planning inputs
What Is a 401(k)?
A 401(k) is a U.S. employer-sponsored retirement plan that lets you contribute a percentage of each paycheck — pre-tax in a traditional 401(k), or after-tax in a Roth 401(k) — to a tax- advantaged investment account. Most employers add a matching contribution up to a stated percentage of your salary, which is one of the single most valuable benefits in U.S. employment law.
This page combines three tools: a long-horizon projection that compounds your contributions, employer match, and investment growth through retirement; an early-withdrawal cost calculator that quantifies federal, state, and local tax plus the 10% IRS penalty; and an employer-match optimizer that finds the contribution percentage required to capture every match dollar.
How a 401(k) Works
Pre-tax contributions
Traditional 401(k) contributions reduce your current taxable income. Tax is deferred until withdrawal. Roth 401(k) contributions are taxed now and grow tax-free.
Employer match
Most plans match a fraction of what you contribute up to a stated percentage of salary — e.g. 50% match on the first 6% you contribute. Not contributing enough to claim the full match is the most common financial mistake U.S. workers make.
Tax-deferred growth
Dividends, interest, and capital gains compound inside the 401(k) without annual taxation, which can grow a balance significantly larger than a taxable brokerage with otherwise identical returns.
Withdrawal rules
Distributions before age 59½ are generally taxable as ordinary income plus a 10% IRS additional tax, with specific exceptions. Required Minimum Distributions begin at age 73 (SECURE Act 2.0).
Six Ways to Use a 401(k) Calculator
01
Project retirement balance
See how compound growth + employer match + decades of contributions builds your nest egg under realistic return and salary-growth assumptions.
02
Find the optimal contribution %
The Match Optimizer tab returns the lowest contribution percentage that captures the employer's full match — free money you should never leave behind.
03
Quantify early-withdrawal cost
Before tapping your 401(k) early, see what you actually receive after federal/state/local tax and the 10% IRS penalty — usually 30–45% of the gross.
04
Plan catch-up contributions
Workers aged 50+ can contribute $7,500 above the standard limit. Toggle the advanced options to see how much faster the balance grows with catch-ups.
05
Compare retirement income
The 4% safe-withdrawal estimate translates the projected balance into a sustainable monthly retirement income in today's dollars.
06
Stress-test return assumptions
Try 5%, 6%, and 7% returns to see how sensitive the final balance is. Long horizons amplify even small differences in compounding.
Best Practices for 401(k) Planning
- •Always claim the full employer match before contributing to any other retirement account. Each match dollar is an immediate guaranteed return that no taxable account can match.
- •Increase 1% per year. Many plans support automatic annual escalation. Going from 6% to 15% over nine years rarely hurts cash flow and can double your final balance.
- •Hit the IRS annual limit if you can. The 2025 employee deferral limit is $23,500, plus $7,500 catch-up for those 50+. High savers maximize tax-deferred space first before taxable accounts.
- •Treat early withdrawals as a last resort. A $20,000 withdrawal at age 35 doesn't just cost $7,000 in tax and penalty — it forgoes the $150,000+ it would have grown to by retirement.
- •Use low-cost index funds. A 0.1% expense ratio vs. 1% saves hundreds of thousands over 40 years. Vanguard, Fidelity, and Schwab target-date funds are popular defaults.
Why Employer Matching Matters
Employer matching is the single most valuable feature of most 401(k) plans. A common formula — 50% match on the first 6% of salary — translates to a free 3% raise directed into retirement savings. Over a 35-year career on a $75,000 salary growing at 3% per year, that match alone compounds to well over $300,000 at 6% returns.
The Match Optimizer tab on this page solves the inverse problem: given any tiered match formula, what is the lowest contribution percentage that captures every match dollar? Contributing below that threshold is mathematically equivalent to refusing part of your compensation.
Edge Cases and Tricky Situations
Traditional vs Roth 401(k)
Traditional reduces taxable income now; Roth is taxed now and tax-free at withdrawal. Choose Roth if you expect to be in a higher tax bracket in retirement, traditional if lower. Many plans allow a mix.
Contributing past the annual limit
If your 5% goal exceeds the $23,500 IRS limit, contributions auto-cap and your match may stop early in the year. Spread contributions evenly across pay periods to keep the full match every paycheck.
Vesting schedules
Some employer match dollars vest gradually (commonly over 3–6 years). Leaving before fully vested forfeits the unvested portion — factor into job-change decisions.
Highly compensated employees
Plans must pass IRS non-discrimination tests. HCEs may have contributions capped or refunded if lower-paid employees don't contribute enough. Your HR or plan administrator can confirm.
Rule of 55
Separating from your employer in or after the year you turn 55 lets you withdraw from that specific 401(k) without the 10% penalty. Doesn't apply to rollovers into an IRA.
Required Minimum Distributions
RMDs begin at age 73 under SECURE Act 2.0 (75 for those born 1960+). Traditional 401(k)s require annual withdrawals; Roth 401(k) RMDs were eliminated starting 2024.
Core Formulas
Future Balance with Annual Compounding
FVₙ = (FVₙ₋₁ + Cₙ + Mₙ) × (1 + r) − ½ × (Cₙ + Mₙ) × r
Each year's balance equals last year's balance plus this year's employee contribution C and employer match M, compounded at return r. The ½ factor approximates mid-year contributions.
Employer Match
Mᵢ = Salaryᵢ × min(Contribⱼ%, Limitⱼ%) × MatchRateⱼ
For each tier j, the match equals salary × the contribution rate (capped at the tier limit) × the match rate. Sum across tiers for the total match.
Inflation-Adjusted Balance
Real FV = FV ÷ (1 + i)^n
Discounts the nominal future balance by inflation i over n years to express it in today's purchasing power.
Early Withdrawal Net
Net = Amount − Amount × (Fed + State + Local + 10% if no exception)
Combined effective rate is typically 30–45% — most U.S. workers receive only 55–70¢ on the dollar from a pre-59½ withdrawal.
4% Safe Withdrawal Rule
Annual Income ≈ Inflation-Adjusted Balance × 4%
The Trinity Study result for a 30-year retirement on a 60/40 portfolio. For 40+ year horizons, use 3.0–3.5% instead.
Common 401(k) Mistakes
- •Contributing below the match cap and forfeiting free employer money.
- •Front-loading contributions to hit the IRS limit by Q3, then losing the match for the remaining pay periods (plan permitting).
- •Taking an early withdrawal for a non-essential expense without modeling the lifetime opportunity cost.
- •Cashing out at job changes instead of rolling over to the new employer's plan or an IRA.
- •Holding only employer stock and ignoring diversification — concentration risk is a real category of retirement loss.
- •Ignoring vesting schedules when accepting an early job offer.
Important Disclaimers
- •Projections assume constant inputs over decades. Real salaries, returns, inflation, and contribution limits vary.
- •Estimates do not guarantee future returns; markets can and do drop. Sequence-of-returns risk matters most in the years immediately before and after retirement.
- •IRS contribution limits, penalty exceptions, RMD ages, and match-related rules change with legislation. Always verify the latest IRS Publication and your plan's Summary Plan Description.
- •This tool is for educational use only and is not tax, legal, or investment advice. Consult a fiduciary financial planner, CPA, or qualified tax professional.
Frequently Asked Questions
Related Calculators
- Retirement CalculatorPlan retirement corpus, savings, withdrawals, and how long your money lasts.
- Roth IRA CalculatorProject Roth IRA tax-free growth and compare it side-by-side with a taxable account.
- RMD CalculatorCalculate IRS Required Minimum Distributions with year-by-year projection and Uniform Lifetime Table.
- Social Security CalculatorFind the best age to claim Social Security and compare two claiming strategies with break-even analysis.
- Pension CalculatorLump sum vs monthly pension, single-life vs survivor, and breakeven age.
- Investment CalculatorFuture value, contribution planning, and inflation-adjusted investment growth.