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

%/yr
%/yr
%/yr

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

A 401(k) is a U.S. employer-sponsored, tax-advantaged retirement savings plan. Employees contribute a portion of each paycheck — pre-tax in a traditional 401(k), after-tax in a Roth 401(k) — and most employers add a matching contribution. Investments grow tax-deferred (or tax-free for Roth) and are subject to IRS withdrawal rules at retirement.

At minimum, contribute enough to capture your employer's full match — that's the most valuable benefit in most U.S. compensation packages. Beyond that, financial planners commonly recommend saving 15% of gross income for retirement, including the match. The 2025 IRS annual employee deferral limit is $23,500 ($31,000 with catch-up at 50+).

Employer matching is when your company contributes additional dollars to your 401(k) based on what you contribute. A common formula is 50% match on the first 6% of salary — meaning if you contribute 6%, your employer adds another 3%. Use the Match Optimizer tab on this page to find the contribution rate that captures every match dollar.

Withdrawals before age 59½ are generally subject to federal and state income tax at your marginal rate, plus a 10% IRS additional tax. Combined, you typically receive only 55–70% of the gross withdrawal as net cash. The much bigger cost is forgone compound growth: $10,000 at age 30 could grow to over $100,000 by age 65 at 7%.

The 10% additional tax under IRC §72(t) applies to most retirement-account distributions taken before age 59½. It exists to discourage tapping retirement savings early and is in addition to ordinary federal/state income tax. Several exceptions waive it.

Yes, in specific cases — common exceptions include: separation from service in or after the year you turn 55 (Rule of 55), total and permanent disability, qualifying medical expenses, substantially equal periodic payments (Rule 72(t)), birth or adoption ($5,000 limit), domestic abuse, terminal illness, and certain federal disaster distributions. Federal/state income tax still applies even when the 10% is waived.

A Roth 401(k) accepts after-tax contributions. Qualified withdrawals — generally after age 59½ and after the account has been open at least 5 years — are entirely federal-tax-free. Choose Roth if you expect to be in a higher tax bracket at retirement than you are today. Starting 2024, Roth 401(k)s no longer have RMDs for the original participant.

The 2025 IRS employee deferral limit is $23,500. Workers aged 50+ can add a $7,500 catch-up for a $31,000 total. SECURE Act 2.0 adds a special $11,250 catch-up for ages 60–63 starting 2025. The combined employee + employer limit (Section 415) is $70,000 in 2025 ($77,500 with catch-up).

Projections are estimates, not guarantees. They assume constant salary growth, constant return, and constant inflation over decades — none of which is realistic. Use them to compare scenarios (10% vs 15% contributions, 5% vs 7% returns), not to predict an exact retirement balance. Update annually as your real inputs change.

Contribute at least up to your match cap every pay period. Spread contributions evenly across the year (don't front-load to hit the IRS limit early — many plans stop the match once you hit it). Use the Match Optimizer tab to enter your specific multi-tier formula and see the exact percentage that captures every dollar.