“Tax-exempt investment account” is the phrase people reach for, but almost none of these accounts are actually tax-exempt. Each one is a deal with the IRS: you get a tax break at one or more points in the account’s life, in exchange for rules about how much goes in, what it can be used for, and when it comes out. Once you see where the break lands, every account on this list becomes easy to place.
The framework: three tax moments
Every dollar you invest can be taxed at three points:
- Contribution: when the money goes in (is it deducted from your income, or not?)
- Growth: while it’s invested (do dividends, interest, and gains get taxed each year?)
- Withdrawal: when it comes out (taxed as income, or free?)
A regular brokerage account gets no break at any point: you contribute after-tax dollars, pay tax on dividends and realized gains along the way, and pay capital gains tax when you sell. Every account below improves on that at one or more of the three moments. Three patterns cover nearly everything:
- Pre-tax (taxed later): deductible going in, grows untaxed, taxed as ordinary income coming out. Traditional 401(k)s and IRAs.
- Roth (taxed now): no deduction going in, grows untaxed, comes out completely tax-free. Roth 401(k)s and IRAs, and (for education) 529 plans.
- Triple advantage (never taxed): deductible going in, grows untaxed, tax-free coming out for qualified uses. Only one account does this, and it’s the HSA.
Retirement accounts
Traditional 401(k). The workplace default. Contributions come out of your paycheck pre-tax (up to $24,500 for 2026, more if you’re 50 or older), reducing your taxable income dollar-for-dollar in your highest bracket. The money grows untaxed and is taxed as ordinary income when withdrawn in retirement. The bet you’re making: your tax rate in retirement will be lower than your rate today. For most people in their peak earning years, that’s a good bet. If your employer matches contributions, that match is the highest guaranteed return available anywhere. (403(b) and 457(b) plans are the nonprofit and government siblings, with mostly the same mechanics. The 457(b) has one distinctive feature: no 10% penalty on withdrawals before 59½ once you leave the employer.)
Roth 401(k). The same account with the tax break moved to the other end: no deduction now, tax-free withdrawals later. It shares the $24,500 limit with the traditional side (that’s one combined limit, not two). The general pattern: Roth contributions make more sense in lower-income years, pre-tax in higher-income years, because the value of the deduction scales with your marginal rate.
After-tax 401(k) contributions (the “mega backdoor Roth”). Some plans allow contributions beyond the $24,500 employee limit, up to an overall plan limit of $72,000 for 2026 (counting your contributions plus any employer match). These extra contributions get no deduction, but if your plan allows converting them to Roth, the converted dollars then grow and come out tax-free forever. People sometimes dismiss this because it doesn’t lower this year’s tax bill, but that misses where the value is: the alternative home for that money is a taxable brokerage account, where growth gets taxed along the way. Decades of tax-free compounding on tens of thousands of dollars a year is one of the largest tax opportunities available to high earners, and it depends entirely on whether your plan offers the feature (many don’t).
Traditional IRA. An individual account, no employer needed, with a $7,500 limit for 2026. The contribution is allowed as long as you have earned income, but deductible only if your income is below certain thresholds (which drop sharply if you’re covered by a workplace plan), so for many people with good jobs the traditional IRA’s deduction isn’t actually available. It still grows tax-deferred either way.
Roth IRA. Same $7,500 limit, no deduction, completely tax-free growth and withdrawals. Direct contributions phase out at higher incomes, but there’s a well-established workaround (the “backdoor Roth”): contribute to a traditional IRA without deducting it, then convert to Roth. Done correctly, and with no other pre-tax IRA balances sitting around (that’s the pro-rata rule, and it’s the step that trips people up), the conversion is tax-free. Roth IRAs also have two features the 401(k) versions lack: you can withdraw your original contributions at any time without tax or penalty, and there are no required minimum distributions during your lifetime.
Self-employed versions. If you have self-employment income (even a side business), you can open your own retirement plan. A Solo 401(k) lets you contribute as both employee and employer, often sheltering far more than an IRA. A SEP-IRA is simpler to run but employer-contribution-only. A SIMPLE IRA exists for small businesses with employees. The mechanics differ, but the tax pattern is the familiar pre-tax one.
The health account that’s really a retirement account
HSA (Health Savings Account). The only account with all three advantages: contributions are deductible ($4,400 individual / $8,750 family for 2026), growth is untaxed, and withdrawals for qualified medical expenses are tax-free. You need to be enrolled in a high-deductible health plan to contribute. Three things make the HSA more powerful than it looks:
- Investable balances: most HSA providers let you invest the balance in funds, not just hold cash. An HSA left in cash is leaving most of the benefit on the table.
- No use-it-or-lose-it: unlike an FSA, the balance rolls over forever. There’s also no deadline to reimburse yourself, so medical receipts you pay out of pocket today can justify a tax-free withdrawal decades from now.
- The retirement backstop: after age 65, withdrawals for any purpose are penalty-free (non-medical withdrawals are just taxed as ordinary income, like a traditional IRA). So the worst case for an HSA is that it behaves like a traditional IRA, and the best case is that it’s never taxed at all.
One caveat: a couple of states (California and New Jersey) don’t recognize HSAs, so residents there pay state tax on the contributions and growth. The federal benefits still apply.
(An FSA, by contrast, is a spending account, not an investment account: use-it-or-lose-it, no investing, employer-owned. Useful for predictable medical costs, but it doesn’t offer broader planning opportunities.)
Education accounts
529 plan. The education account. Contributions are never federally deductible, but growth is untaxed and withdrawals are tax-free for qualified education expenses (college, up to $10,000 a year of K-12 tuition, student loans up to a lifetime cap). Points worth knowing:
- State deductions: most states offer a state income tax deduction or credit for contributions, usually requiring the contributions to be to a plan based in the home state.
- High limits: there’s no annual federal contribution limit, just gift-tax rules and large per-beneficiary aggregate caps. A special election lets you front-load five years of gift-tax annual exclusions at once (“superfunding”).
- Flexibility: the beneficiary can be changed to another family member, and unused funds can now be rolled into a Roth IRA for the beneficiary (up to $35,000 lifetime, subject to conditions including the account being open 15 years). The old fear of “trapped” 529 money is much weaker than it used to be.
- Non-qualified withdrawals: the earnings portion gets taxed plus a 10% penalty. Contributions come back untaxed.
Coverdell ESA. A smaller, older education account: $2,000 per year per child, income limits on contributors, but broader K-12 expense coverage than a 529. Mostly superseded by 529s, and worth knowing mainly so you can recognize one.
Honorable mentions
- Municipal bonds: not an account, but the one mainstream investment whose income is federally tax-exempt (and state-exempt if issued by your state). They live in regular taxable accounts and mainly make sense for high earners comparing after-tax yields.
- Series I savings bonds: interest is tax-deferred until redemption, state-tax-free always, and potentially federal-tax-free if used for education under income limits.
- Nonqualified deferred compensation (NQDC): some employers let executives defer salary or bonus into future years. Real tax deferral, but the deferred money is an unsecured claim against the employer (if the company fails, it’s gone), which puts it in a different risk category from everything above.
- Annuities: tax-deferred growth inside an insurance wrapper. The deferral is real, but costs are often high and withdrawals are ordinary income, so these generally come up only after the accounts above are exhausted.
- ESPPs: worth naming because they’re often lumped in. An employee stock purchase plan is a discount program, not a tax-advantaged account; the discount is taxable but the income is deferred until the shares are sold. Valuable, but a different animal.
How these stack
The three-moment framework produces a fairly consistent general ordering, but it can be better to treat it as a framework rather than a checklist: income, state, cash flow, and what your employer’s plan actually offers can all shift the exact order, and some of these accounts serve goals that don’t compete with retirement at all.
- Employer 401(k) match first: an instant, guaranteed return that no other account can match.
- HSA next, if eligible: the only triple-advantaged account, best treated as a long-term investment rather than a spending account.
- Max the 401(k): pre-tax in high-earning years, Roth in lower ones. This is usually the largest lever for reducing the current year’s tax bill.
- Backdoor Roth IRA: $7,500 of permanent tax-free growth that survives any income level, as long as the pro-rata rule is handled.
- Mega backdoor Roth, if the plan allows it: the biggest remaining shelter, potentially tens of thousands more per year into Roth.
- Education accounts: funded in parallel based on goals rather than in strict sequence, since education savings serve a different purpose than retirement.
- Taxable brokerage for the rest: no special treatment, but full flexibility, and its own set of tax-efficiency techniques.
Everything above is the general case; the interesting work is in the exceptions. Which accounts you can actually use, and in what order, turns on details (your plan documents, your income mix, your state) that no general guide can settle for you.
This article is for educational purposes only and is not tax, legal, or investment advice. Contribution limits and thresholds are illustrative and change over time; consult a qualified tax professional about your specific situation.