401(k) and Roth IRA Calculator

Model a 401(k) with employer match alongside a Roth IRA. Each account follows its own IRS limit and tax treatment, so you can see how your savings split between pre-tax and Roth money — and what they might be worth after tax.

Estimates use your assumptions and are not guaranteed returns or tax advice.

Your accounts

You
$
%
401(k)
%
Your 401(k) deferrals are
%
e.g. 50% of what you contribute
%
$
Roth IRA
$
Capped at the IRA limit for your age.
$
Assumptions
%
%
Your expected average rate in retirement.

Projected savings at retirement

Combined balance at age 65
$3,507,395
≈ $3,158,168 after estimated tax on pre-tax money
Pre-tax 401(k)
$2,328,179
Roth 401(k)
$0
Roth IRA
$1,179,216
Employer match received
$145,109
Your 401(k) deferrals
$483,697
Your Roth IRA deposits
$262,500

Balances by account

Pre-tax 401(k)Roth 401(k)Roth IRA
$0$1.3M$2.5M$3.8M$5M31374349556165Age
Year-by-year contributions
AgeSalary401(k) deferralMatchRoth IRATotal balance
31$80,000$8,000$2,400$7,500$50,616
32$82,400$8,240$2,472$7,500$72,998
33$84,872$8,487$2,546$7,500$97,279
34$87,418$8,742$2,623$7,500$123,601
35$90,041$9,004$2,701$7,500$152,120
36$92,742$9,274$2,782$7,500$182,997
37$95,524$9,552$2,866$7,500$216,411
38$98,390$9,839$2,952$7,500$252,548
39$101,342$10,134$3,040$7,500$291,613
40$104,382$10,438$3,131$7,500$333,820
41$107,513$10,751$3,225$7,500$379,403
42$110,739$11,074$3,322$7,500$428,611
43$114,061$11,406$3,422$7,500$481,710
44$117,483$11,748$3,524$7,500$538,986
45$121,007$12,101$3,630$7,500$600,745
46$124,637$12,464$3,739$7,500$667,315
47$128,377$12,838$3,851$7,500$739,049
48$132,228$13,223$3,967$7,500$816,321
49$136,195$13,619$4,086$7,500$899,536
50$140,280$14,028$4,208$7,500$989,126
51$144,489$14,449$4,335$7,500$1,085,553
52$148,824$14,882$4,465$7,500$1,189,312
53$153,288$15,329$4,599$7,500$1,300,935
54$157,887$15,789$4,737$7,500$1,420,990
55$162,624$16,262$4,879$7,500$1,550,086
56$167,502$16,750$5,025$7,500$1,688,875
57$172,527$17,253$5,176$7,500$1,838,054
58$177,703$17,770$5,331$7,500$1,998,373
59$183,034$18,303$5,491$7,500$2,170,630
60$188,525$18,853$5,656$7,500$2,355,684
61$194,181$19,418$5,825$7,500$2,554,452
62$200,006$20,001$6,000$7,500$2,767,917
63$206,007$20,601$6,180$7,500$2,997,131
64$212,187$21,219$6,366$7,500$3,243,222
65$218,552$21,855$6,557$7,500$3,507,395

How to Use the 401(k) and Roth IRA Calculator

  1. Enter your age, retirement age, salary and expected yearly raises.
  2. Set your 401(k) contribution as a percent of pay and choose pre-tax or Roth 401(k) deferrals.
  3. Enter your employer's match formula — for example, 50% of what you contribute up to 6% of pay.
  4. Add your Roth IRA contribution and current balances, then choose a return and a retirement tax rate.

How the Calculation Works

For each year the calculator grows your salary, computes your 401(k) deferral and caps it at the employee deferral limit for your age (or your salary, if lower). The match is calculated on your capped deferral up to the match ceiling. The Roth IRA contribution is capped at the IRA limit separately — the two limits never mix.

Contributions are spread through the year, so they receive about half a year of growth in the year they are made. Pre-tax money is then reduced by your retirement tax rate to estimate its after-tax value; Roth balances are shown in full, assuming qualified distributions.

Deferral = min(salary × rate, 401(k) limit for age, salary)
Match = min(deferral, salary × match cap) × match rate
Balancet = Balancet−1(1+r) + contributionst(1+r)½

2026 and 2027 Limits Used

Limit20262027
401(k) employee deferral$24,500$25,500
401(k) catch-up, age 50+$8,000$8,500
401(k) catch-up, ages 60–63$11,250$11,750
IRA contribution limit$7,500$7,500
IRA catch-up, age 50+$1,100$1,100
Max employee 401(k) + IRA, under 50$32,000$33,000

Projections hold the 2026 limits constant in future years. Sources: IRS Notices 2025-67 and 2026-66.

Calculation Examples

With the defaults — $80,000 salary rising 3% a year, 10% pre-tax deferral, a 50% match on up to 6% of pay and $7,500 a year into a Roth IRA at a 7% return — the projected combined balance at 65 is about $3,507,395. The employer match alone contributes $145,109 over the years before growth.

Switching the same deferrals to a Roth 401(k) gives about $3,434,196 after tax versus $3,158,168 for pre-tax deferrals at a 15% retirement tax rate. That comparison ignores the tax you save today with pre-tax deferrals; see the Roth vs Traditional calculator for that trade-off.

Important Assumptions and Limitations

  • Employer match is treated as pre-tax and vests immediately. Many plans have vesting schedules.
  • One return applies to all accounts; actual fund choices and fees differ by plan.
  • Roth IRA eligibility is assumed every year. High earners may be phased out — check with the income limit calculator.
  • The after-tax estimate applies a single flat rate to pre-tax money. Actual retirement taxes depend on brackets, other income and state law.
  • Employer contributions count toward a separate overall annual additions limit that is not modeled.

Applicable Rules

The 401(k) deferral limit and the IRA limit are independent. Your 401(k) deferrals do not reduce your Roth IRA limit, and participating in a workplace plan does not affect Roth IRA eligibility (it only affects whether traditional IRA contributions are deductible). Under SECURE 2.0, certain higher-income employees must make 401(k) catch-up contributions on a Roth basis; ask your plan administrator how this applies to you.

Frequently Asked Questions

Can I contribute to both a 401(k) and a Roth IRA?

Yes. The 401(k) and IRA limits are separate, so you can contribute to both in the same year. Being covered by a workplace plan does not affect Roth IRA eligibility, which depends on your income and compensation.

How much can I put in a 401(k) and Roth IRA combined in 2026?

Under 50, up to $24,500 in employee 401(k) deferrals plus $7,500 in IRAs, or $32,000 in total. Employer contributions are in addition to the employee deferral limit. Catch-up amounts apply from age 50, with a higher 401(k) catch-up at ages 60 through 63.

Should I max out my 401(k) or Roth IRA first?

A common order is: contribute enough to the 401(k) to get the full employer match, then fund a Roth IRA, then return to the 401(k). The right order depends on your plan's fees and fund choices, your tax bracket now versus later, and whether you qualify for a Roth IRA.

Is the employer match Roth or pre-tax?

Traditionally, employer contributions go in pre-tax. Under SECURE 2.0, plans may let you designate matching contributions as Roth, which are then included in your income. This calculator treats the match as pre-tax.

What is a Roth 401(k)?

A 401(k) option where your own deferrals go in after tax and qualified distributions are tax-free, like a Roth IRA. It uses the 401(k) contribution limit and has no income limit for contributing.

Sources and Methodology

Content reviewed November 13, 2026 · IRS limits verified November 13, 2026 · How we calculate · Editorial policy

Calculators provide educational estimates based on user-selected assumptions, not guaranteed investment outcomes or personalized financial advice. Investment returns are uncertain and can be negative. Tax rules depend on facts this site does not collect; confirm your situation with IRS publications or a qualified tax professional. RothMath is not affiliated with the Internal Revenue Service. Read the full disclaimer.