Mathstub

Backdoor + Mega-Backdoor Roth Sequencer

Mathstub already has a Mega-Backdoor Roth calculator and a Backdoor Roth IRA calculator. This calculator answers the OR question: should I do both? Which first? And if I have a pre-tax IRA balance, does the pro-rata rule break the traditional Backdoor — and what is the basis-isolation move that unlocks it?

⚡ 30 seconds🔒 Runs in your browser✓ Free, no signup

Tax year 2026 · Last updated May 26, 2026

mathstub / roth sequencer

Mega-Backdoor first? Backdoor IRA first? Basis-isolate the pre-tax IRA first? Get the right sequence + total Roth capacity per year.

The Roth-stacking puzzle hinges on three IRC sections: §415(c) $70k cap (Mega-Backdoor room), §408(d)(2) pro-rata rule (breaks the IRA Backdoor if you have pre-tax IRA balance), and §408A Roth-IRA phaseout (Backdoor only needed above phaseout). (IRC § 408(d)(2))

  • No signup, everNo tracking, no email required.
  • Math runs in your browserNo data leaves this page.
  • Every claim cites IRC § or IRS PubReviewed against IRS primary sources — see footer.
1. Filer
2. 401(k) plan setup

Total annual Roth capacity

$44,000

Mega-Backdoor $36,500 + Backdoor IRA $7,500 = $44,000/yr Roth.

  1. Step 1: Mega-Backdoor Roth — $36,500/yr

    +$36,500/yr

    Your 401(k) plan allows both after-tax contributions AND in-service distribution. After your elective deferral ($23,500) + employer match ($11,000) use $34,500 of the IRC §415(c) $71,000 cap, the remaining $36,500 can be contributed as after-tax then converted to Roth (IRS Notice 2014-54). Recurring 30-year projection: $1,496,335.47.

  2. Step 2: Backdoor Roth IRA — $7,500/yr

    +$7,500/yr

    Annual IRA contribution limit: $7,500 (pure backdoor $7,500). Pro-rata rule clean — $0 of conversion is taxable because you have $0 pre-tax IRA basis. Recurring 30-year projection: $708,455.897.

How it works

  1. Enter your high-level financial picture. Filing status, age, MAGI (modified AGI from your last 1040), your federal marginal rate (typically 0.24, 0.32, or 0.35), and any pre-tax Traditional IRA balance.
  2. Enter your 401(k) plan setup. Annual elective deferral (often $23,500 in 2026), employer match $, plan flags: allows after-tax contributions? allows in-service distribution OR in-plan Roth conversion? accepts rollovers IN (the receiver side of basis isolation)?
  3. Read the sequenced steps. Up to 3 steps in order: basis isolation (if needed), Mega-Backdoor, Backdoor IRA. Each step shows the dollar capacity unlocked + the IRC citation + the blocker if any.
  4. Add the steps to your year-end plan. Total annual Roth capacity headline at the top. Most $200k+ tech workers will see between $35,500 and $42,500 of new Roth space per year between the two paths.

Frequently asked questions

Should I do Mega-Backdoor or Backdoor IRA first?

Mega-Backdoor first — it's a much bigger number per year (typically $35,500 in 2026 vs $7,000 for the IRA Backdoor) and the §415(c) limit is calendar-year — unused room can't be carried forward. Do Mega-Backdoor by Dec 31 to capture the year, then do Backdoor IRA anytime (you have until April 15 of the following year for prior-year contributions).

What's the pro-rata rule and why does it 'break' the Backdoor?

IRC §408(d)(2) — when you do a Roth conversion of any Traditional IRA money, the IRS treats ALL your Traditional IRA balances as a single pool. Suppose you have $50,000 pre-tax in a SEP-IRA + $7,000 nondeductible from this year's Backdoor contribution. Pro-rata says 50/57 = 87.7% of any conversion is taxable. Doing a Backdoor here costs you ($7,000 × 87.7%) × your marginal rate ≈ $2,000 in conversion tax. That's the pro-rata 'break.'

What is basis isolation?

Rolling your pre-tax Traditional IRA balance INTO your 401(k) before doing the Backdoor conversion. The §408(d) pro-rata pool is computed across IRAs only — 401(k) balances are NOT included. So once the pre-tax money is inside the 401(k), the Backdoor conversion pool is just your $7,000 of nondeductible basis, pro-rata is clean, and the conversion is $0 taxable. Requires that your 401(k) plan accepts rollovers IN — not all plans do.

My plan does not accept rollovers in — am I stuck?

You have three options: (1) skip the Backdoor IRA and rely on Mega-Backdoor only — most of the Roth capacity comes from Mega anyway; (2) ask your plan administrator to enable rollover-in (sometimes possible via plan amendment); (3) do a one-time Roth conversion on the entire pre-tax balance and pay the tax — clears the pool permanently. Option 3 is expensive but makes future Backdoor conversions clean forever.

What if my MAGI is below the Roth IRA phaseout?

You do not need the Backdoor at all — just contribute directly to your Roth IRA. The calculator detects this and shows the 'Direct Roth IRA' step instead. 2026 phaseouts: single $150k–$165k, MFJ $236k–$246k. Below the lower bound = full direct contribution; in the band = partial; above = backdoor required.

How is this different from running the 2 standalone calcs?

Both standalone calcs answer 'how much can I contribute via THIS path?' This sequencer answers the sequencing question — basis isolation order, which path to prioritise, and whether your plan setup blocks one of them. The total combined Roth-per-year figure is the headline you actually need for year-end planning.

Mega-Backdoor + Backdoor IRA = how much Roth per year for a typical tech worker?

For a $300k–$700k MFJ tech worker with: $23,500 elective deferral + $11,000 employer match + plan supports after-tax + plan supports in-service distribution: Mega-Backdoor ≈ $35,500 + Backdoor IRA ≈ $7,000 = $42,500/yr of new Roth space. Over a 30-year career at 7%: ~$4.3M of tax-free retirement savings on top of your regular 401(k).

Does Mega-Backdoor count against my Roth IRA limit?

No — they are separate buckets. The Roth IRA $7,000 limit (IRC §408A) and the §415(c) $70,000 cap (which controls Mega-Backdoor room) are distinct. You can fill both in the same year. The §402(g) $23,500 elective deferral limit is yet a third bucket, also separate.

What happens if my employer match is large?

Big match shrinks the Mega-Backdoor room dollar-for-dollar. Example: employer match $30,000 + elective deferral $23,500 = $53,500 used; §415(c) cap $70,000 leaves $16,500 of after-tax room. The math is fully mechanical — the calculator computes this for you.

What's NOT covered here?

In-plan Roth 401(k) conversion strategy (a different mechanic), governmental 457 plans, 403(b) considerations for non-profit employees, SEP-IRA / SIMPLE IRA contributions, conversions of OLD Traditional IRA balances (the one-time pre-Backdoor cleanup), and the conversion ladder strategy for early-retirement access (IRC §72(t)). For those, talk to a CPA who specialises in equity-comp + retirement planning — the Mathstub /about page links a CPA-matching affiliate.

Is this tax advice?

No — it's a planning calculator. Real decisions depend on facts the calculator does not capture (state tax interactions, conversion-year vs. distribution-year planning, expected future marginal rate, plan-specific rules). For high-stakes decisions ($25k+ of Roth capacity at stake) engage a CPA or fiduciary planner.

Spotted a bug, edge case, or numbers that look off? Tell us — we read every report.

mathstub ecosystem · paid notion templates

When a calculator isn’t enough.

See all 4 templates →

Four Notion templates built around the same IRC-cited math the free calculators run — for tracking, planning, and CPA prep across an entire tax year. Lifetime updates included.

Affiliate disclosure — we earn from sales on Mathstub-owned products listed above. Free calculators always stay free.