TakeHomeTax
planning Guide

Tax-Advantaged Accounts Ranked: Where to Save Each Dollar

401(k), Roth IRA, HSA, 529, Traditional IRA, Backdoor Roth, Mega Backdoor Roth — there are 10+ tax-advantaged accounts with different rules. Here's the priority order most people should follow.

By NumbersLab · April 23, 2026 · 11 min read

When you have $50,000 of savings capacity per year, where should each dollar go? Most people direct savings inefficiently — maxing 401(k) match (correct), then putting the rest into a brokerage account (often suboptimal). The optimal priority depends on your tax situation, but most people benefit from a similar order: free money first (employer match), triple-tax-advantaged accounts second (HSA), Roth contributions third, employer 401(k) fourth, then advanced strategies. This guide ranks the accounts and explains the logic.

The Universal Priority Order

1. Employer 401(k) match: free money, immediate 100% return. If your employer matches 5% of salary, contribute at least 5% to capture it. Skipping this is leaving thousands on the table annually. Always priority #1.

2. HSA (if you have HDHP): triple tax advantage — deductible contributions, tax-free growth, tax-free withdrawals for medical expenses. After age 65, can withdraw for any reason at ordinary income rates (like Traditional IRA). The most powerful tax shelter available.

3. Roth IRA (or Backdoor Roth if income too high): tax-free growth and withdrawals forever, no RMDs during your lifetime. The $7,000/$8,000 annual limit means you can't accumulate enough Roth here alone for retirement, but it provides crucial tax-free space.

4. Max 401(k) elective deferral: up to $23,500 ($31,000 with catch-up) reduces current taxable income (Traditional) or grows tax-free (Roth 401(k)). Highly tax-efficient especially in high brackets.

5. Mega Backdoor Roth (if 401(k) plan supports): up to $46,500 of additional Roth contributions per year by maxing the $69K total 401(k) limit with after-tax contributions converted to Roth.

6. Taxable brokerage: necessary for early retirement bridge, accessible savings, and additional retirement savings beyond tax-advantaged limits.

Why HSA Beats 401(k) (Often)

The HSA is uniquely advantaged among tax-advantaged accounts. Three tax benefits: contributions are tax-deductible (above-the-line, like Traditional IRA), growth is tax-free (like Roth), and withdrawals for qualified medical expenses are tax-free (unique to HSA).

Compared to 401(k): 401(k) gives you 1 or 2 advantages (Traditional: deduction now, taxed on withdrawal = 1 advantage net; Roth 401(k): no deduction, tax-free growth and withdrawal = 2 advantages). HSA gives you 3.

HSA contribution limits are smaller ($4,400 single / $8,750 family in 2026), but the advantage is dramatic. Treating the HSA as a retirement account (paying current medical bills out of pocket, saving HSA receipts for later reimbursement, investing the HSA balance aggressively) maximizes the triple advantage.

After age 65, HSA functions like a Traditional IRA for non-medical withdrawals (taxed as ordinary income, no penalty). So worst case, your HSA is at least as good as a Traditional IRA. Best case (which is the typical case), it's dramatically better.

The catch: requires HDHP enrollment. If your employer offers a high-deductible health plan with HSA option, almost always choose it over a low-deductible plan UNLESS you have predictable high medical expenses that would exceed the deductible significantly.

Roth vs Traditional Decision

The classic question: Roth (pay tax now, no tax later) or Traditional (deduction now, tax on withdrawal). Depends on relative tax rates today vs. retirement.

Roth wins if you'll be in a similar or higher bracket in retirement. For young people just starting careers, almost certainly higher brackets later → Roth wins. For high earners assuming bracket sustainability into retirement, Roth is generally better given the no-RMD advantage and inheritance benefits.

Traditional wins if you'll be in a substantially lower bracket in retirement. For older workers near retirement (e.g., age 55, currently in 32% bracket, expecting 22% retirement bracket), Traditional contributions provide larger tax arbitrage.

Practical advice: most people should contribute partially to both. Roth provides tax diversification (you don't know future tax rates), while Traditional provides maximum current-year deduction. A 60/40 or 50/50 split between Traditional and Roth is reasonable for most middle-income earners.

Mega Backdoor Roth changes the calculus. Once you have access to Mega Backdoor Roth, you can effectively get massive Roth contributions without giving up the Traditional contribution deduction. Use Mega Backdoor for Roth space, Traditional for deduction. Best of both.

529 Plans: Education Savings

529 plans aren't typically retirement accounts, but they fit the tax-advantaged saving framework. Tax-free growth, tax-free withdrawals for qualified education expenses, plus state tax deduction for contributions in many states.

Where 529 fits in priority: depends on whether you have children or anticipate education expenses. If yes, 529 contributions should fit in roughly position #4-6 — after capturing 401(k) match, HSA, and Roth IRA, but ahead of additional taxable brokerage.

State tax deduction matters. New York allows $10K/$20K deduction; Illinois $10K single / $20K MFJ; Maryland $2,500/$5,000 with carryforward; Massachusetts $1,000. High-income earners in deduction states should max state-level contributions to capture the deduction.

529-to-Roth rollover (SECURE 2.0): up to $35,000 lifetime can roll from a 529 to the beneficiary's Roth IRA. Requires 15-year account hold and other restrictions. Solves the 'overfunding' problem with 529s — even unused balances can become retirement savings.

Strategic note: contribute to the state with the best deduction (your state of residence usually) but invest in the best plan (often a different state's plan). Most states allow this without losing the deduction. Compare expense ratios and investment options across plans.

Self-Employed Tax-Advantaged Options

Self-employed individuals have access to even higher contribution limits via Solo 401(k) or SEP-IRA — both with $69,000 total limits.

Solo 401(k) priority: at low-to-moderate self-employment income, Solo 401(k) wins over SEP-IRA because the employee elective deferral ($23,500) is available regardless of income level. SEP-IRA caps at 20% of net SE income.

Solo 401(k) supports Roth contributions and (with custom plans) Mega Backdoor Roth. SEP-IRA generally doesn't support Roth.

Defined benefit pension plans: for very high earners (50+, $400K+ income), allow $200K+ annual contributions. Complex setup but can dramatically reduce taxable income for the right candidate.

S-corp election with reasonable salary + Solo 401(k) on the salary: combines SE tax savings with retirement savings. Salary up to $100K creates $100K Solo 401(k) capacity (up to $69K total contribution). Distributions above the salary aren't subject to SE tax but also don't generate retirement contribution capacity.

When to Use Taxable Brokerage

Taxable brokerage accounts are a step down from all tax-advantaged accounts in tax efficiency. But they have one critical advantage: liquidity. No early withdrawal penalty, no age restrictions, no rules about qualified medical expenses or education.

Use taxable brokerage when: you've maxed out tax-advantaged accounts and have additional savings capacity (the right answer for high earners), you need accessible savings before retirement age (FIRE practitioners, near-term goals like home down payment), or you're already in a low tax bracket making tax-advantaged growth less compelling.

Tax-efficient holdings in taxable: broad index funds (low turnover, qualifying dividends), individual stocks held long-term, municipal bonds for high earners, international stocks (foreign tax credit only available in taxable). Avoid REITs, high-turnover active funds, and corporate bonds — these belong in tax-deferred accounts.

Step-up in basis at death: a unique advantage of taxable accounts is that holdings receive stepped-up basis when inherited. If you hold appreciated assets until death, your heirs receive them with the appreciation eliminated for tax purposes. Roth IRAs already have tax-free withdrawals; Traditional IRAs face the 10-year rule for heirs. Taxable accounts may actually have advantages over Traditional IRA for some legacy planning scenarios.

Key Takeaways

  • Universal priority order: employer match → HSA → Roth IRA (or Backdoor) → max 401(k) → Mega Backdoor Roth → taxable.
  • HSA is the only triple tax advantaged account; treat it as retirement account by paying current medical bills out-of-pocket.
  • Roth wins if you'll be in similar/higher brackets in retirement; Traditional wins if substantially lower.
  • 529 plans for education: tax-free growth + state deduction; SECURE 2.0 allows $35K rollover to beneficiary's Roth IRA.
  • Self-employed: Solo 401(k) with $69K combined limit beats SEP-IRA at most income levels.
  • Taxable brokerage for liquidity needs and after maxing tax-advantaged; hold tax-efficient assets here (index funds, munis).

Run the Numbers

Related Guides

How to Use Tax Data to Negotiate a Better Salary
Nominal salary lies. The same $150,000 offer can mean $96,000 take-home in California or $115,000 in Texas — a $19,000 difference. Here's how to use tax math to negotiate harder, evaluate competing offers correctly, and capture geographic arbitrage.
The Definitive Guide to Quarterly Estimated Taxes for 2026
If you owe more than $1,000 at filing, you must make quarterly payments. Miss them and the IRS charges ~8% annual interest. This guide covers the four 2026 due dates, safe harbor rules, the annualized income method for variable income, and exactly how to pay.
Marriage and Taxes: The Complete Planning Guide for 2026
Joint vs separate filing, the marriage bonus and penalty, the doubled SALT cap myth, spousal IRAs, and the divorce tax planning most people don't see coming. Comprehensive guide for couples.
The Take-Home Tax Guide
Weekly tips on reducing your tax burden, state tax changes, and salary negotiation strategies. Free.