How the Roth vs. traditional calculator works
A traditional 401(k) contribution comes out of your pay before income tax, so it lowers your tax bill today. You pay tax on the whole balance, contributions and growth, when you withdraw it. A Roth contribution comes out after tax, and qualified withdrawals are tax-free.
To compare them fairly, the calculator holds your take-home pay the same. If you'd put $10,000 into a traditional account and your tax rate is 22%, that costs you $7,800 of take-home pay. So the Roth side gets $7,800 a year. Both grow at the same return, with monthly deposits. The traditional balance is then taxed at your retirement rate, and the Roth balance isn't.
The math leads to a simple rule: whichever rate is lower, now or later, is the one you want to pay. If the two rates are equal, both choices leave you exactly the same amount.
The formula
Traditional after tax = FV(contribution) × (1 − retirement rate)
Roth = FV(contribution × (1 − rate now))
FV = value of monthly deposits growing at your return for the years until retirement
Worked example
You'd put $10,000 a year into a traditional 401(k) for 25 years. You're in the 22% bracket with no state tax, expect a 12% rate in retirement, and assume a 6% return.
| Traditional balance after 25 years | $577,494.97 |
|---|---|
| Tax at 12% on withdrawals | −$69,299.40 |
| Traditional after tax | $508,195.57 |
| Roth: $7,800 a year for 25 years | $450,446.08 |
| Traditional ahead by | $57,749.49 |
Swap the rates, 12% now and 22% later, and the Roth comes out ahead by the same $57,749.49.
Things the rates don't capture
Room under the limit
Roth and traditional deferrals share the 2026 limit of $24,500, plus catch-ups of $8,000 at 50 and older or $11,250 at ages 60 to 63. A dollar of Roth holds more after-tax value than a dollar of traditional, so if you contribute the maximum either way, Roth lets you shelter more.
Your retirement tax picture
Traditional withdrawals add to your taxable income, which can raise the tax on Social Security benefits and Medicare premiums for higher incomes. Roth withdrawals don't. Traditional accounts also have required withdrawals in your 70s, while Roth 401(k)s don't.
Hedging
Tax laws and your income will change. Having both kinds of accounts lets you choose where to draw from each year in retirement. Your employer match may go into a traditional account by default even if you choose Roth.