Where should the next dollar go — 401(k), HSA, Roth IRA, or Mega Backdoor? Enter your income, age, monthly savings, and 401(k) match terms to get the standard Bogleheads-flavored priority waterfall under 2026 IRS limits, with catch-up and Roth-phase-out handling baked in.
For information only — not investment, financial, or tax advice. This calculator estimates results based on the inputs you provide. It does not constitute professional advice and infoz.com is not a CPA, EA, attorney, or registered investment adviser. Tax laws change. Individual circumstances vary. Consult a qualified professional licensed in your jurisdiction before making any financial decision.
Bookmark or share this URL to revisit your scenario. CSV breaks down every bucket's recommended annual allocation.
Annual savings to allocate
$48,000
Tax-advantaged capacity: $31,500
You're saving above your tax-advantaged cap — the overflow goes to taxable brokerage. Consider whether you can enable Mega Backdoor Roth at your employer (see the toggle).
Every dollar you save flows top-down through these buckets in order. The first one fills before the next one starts.
401(k) — to employer match (6.0% of salary)
$9,000/ $9,000
Free money. Always take the full employer match before doing anything else.
Roth IRA
$7,000/ $7,000
Tax-free growth + tax-free withdrawal in retirement. Use for after-tax dollars now (post-401k-deduction).
401(k) — fill to employee deferral limit
$15,500/ $15,500
Tax-deferred growth. Diversifies your tax exposure relative to the Roth IRA bucket.
Mega Backdoor Roth (plan does not permit)
$0/ $42,000
Only ~40% of 401(k) plans permit after-tax contributions and in-plan conversions. Ask your plan administrator — if available, this dramatically boosts tax-advantaged room.
Toggle "Mega Backdoor Roth available" if your plan permits this.
Taxable brokerage
$16,500
After all tax-advantaged room is filled. Use index funds with low turnover; long-term capital-gains rates beat ordinary income.
| Account | Base limit | Catch-up |
|---|---|---|
| 401(k) employee deferral | $24,500 | +$7,500 (age 50+) · +$11,250 (age 60–63) |
| §415 total (incl. employer + after-tax) | $71,000 | — |
| IRA (Traditional / Roth) | $7,000 | +$1,000 (age 50+) |
| HSA (self-only HDHP) | $4,300 | +$1,000 (age 55+) |
| HSA (family HDHP) | $8,550 | +$1,000 (age 55+) |
Roth IRA phase-out 2026: single $150,000–$165,000 · MFJ $236,000–$246,000.
The optimizer routes your annual savings through six buckets in priority order. Each bucket fills to its cap before the next starts. The ordering is the Bogleheads consensus and is appropriate for most W-2 employees.
Free money, always first. We use grossIncome × matchCapPct as the dollar threshold to capture the full match.
Triple tax advantage — deductible going in, tax-free growth, tax-free withdrawal for qualified medical. Cap depends on coverage tier (self-only / family) and age 55+ catch-up.
Tax-free growth + tax-free withdrawals in retirement. Above the phase-out, contribution drops to zero and we recommend a Backdoor Roth (warning shown in the bucket label).
Tax-deferred growth. Cap reflects age-50+ catch-up and the SECURE 2.0 super-catch-up for ages 60–63.
After-tax contributions + in-plan Roth conversion up to the §415 total cap. Headroom = §415 − employee deferral − employer match dollars.
Once tax-advantaged buckets are filled. Use index funds with low turnover; long-term capital-gains rates beat ordinary income.
Annual savings capacity: 4,000 × 12 = $48,000 1. 401(k) match cap = $150,000 × 6% = $9,000 → fill $9,000 (capacity left $39,000) 2. HSA: not enabled → skipped 3. Roth IRA: gross $150K = at the phase-out floor; full $7,000 cap → fill $7,000 (left $32,000) 4. 401(k) rest: $24,500 cap − $9,000 already used = $15,500 headroom → fill $15,500 (left $16,500) 5. Mega Backdoor: not available → $0 6. Taxable: $16,500 Result: $31,500 in tax-advantaged buckets + $16,500 in taxable. Free employer match dollars: $9,000 × 50% = $4,500. Verdict: capacityExceedsCap = true (could absorb more if Mega Backdoor were available).
Every numeric input to this calculator traces back to one of the following authoritative documents.
Calculation logic is based on data verified for 2026 IRS contribution limits (Notice 2025-67, Rev. Proc. 2025-22).
No professional advice. This calculator is provided for informational and educational purposes only and does not constitute investment, financial, or tax advice. infoz.com is operated by Web Publishing Corp, which is not a certified public accountant, enrolled agent, attorney, registered investment adviser, or licensed financial professional in any jurisdiction. Use of this calculator does not create any professional, fiduciary, or advisory relationship.
No warranties. Results are best-effort estimates based on the inputs you provide and the data sources cited. Tax law and financial regulations change without notice; data may be revised, withdrawn, or superseded between releases. We make no warranty, express or implied, that the result is accurate, current, complete, or suitable for your situation.
No liability. To the maximum extent permitted by law, infoz.com, Web Publishing Corp, and the authors disclaim liability for any direct, indirect, consequential, or incidental loss arising from use of this calculator or reliance on its output. You assume all risk of your reliance on the result.
Assumptions baked in:
What this calculator does NOT cover:
Talk to a professional. For decisions that involve real money — filing a return, structuring compensation, choosing an investment strategy — consult a qualified, licensed professional who can review your full circumstances. The cost of one consultation is almost always less than the cost of a wrong decision.
See the full site-wide legal disclaimer and terms for additional notices, including AI-assisted content disclosures and third-party data attribution.
Free for any site, blog, or newsletter. Includes attribution + a backlink to the canonical page on infoz.com (we'd appreciate it but it's optional). The iframe is fully self-contained — no script loading on your page, GDPR-safe, works inside Notion / Substack / Ghost / WordPress / Webflow.
<iframe
src="https://infoz.com/embed/retirement-optimizer"
title="US Retirement Priority Optimizer — infoz.com"
width="100%"
height="1500"
style="border:1px solid #e5e7eb;border-radius:12px;background:#fff;max-width:760px;display:block"
loading="lazy"
referrerpolicy="no-referrer-when-downgrade">
</iframe>Need a custom height or branded styling? Contact us.
Last reviewed
April 29, 2026
Reviewed by
infoz Editorial Team — Editor, Web Publishing Corp
Bogleheads-flavored priority waterfall — limits sourced from IRS Notice 2025-67 + Rev. Proc. 2025-22 + SECURE 2.0 §109. Re-checked annually when the IRS publishes the next year's COLA notice.
Numbers, schedules, and source citations on this page are checked against primary sources during each review cycle. Spot something outdated or wrong? Report an inaccuracy — we triage every report within 7 days.