The HSA Loophole: The Only Account That's Tax-Free Going In, Growing, AND Coming Out
The HSA Loophole: The Only Account That’s Tax-Free Going In, Growing, AND Coming Out
There is an account in the U.S. tax code that gives you a tax deduction when you put money in, lets your investments grow completely tax-free, and charges you zero tax when you take it out.
No, it’s not the Roth IRA (that’s taxed going in). It’s not the 401(k) (that’s taxed coming out). It’s not a 529 plan (that’s limited to education expenses).
It’s the Health Savings Account. And almost nobody uses it correctly.
According to the Employee Benefit Research Institute, only 9% of HSA holders invest their funds. The other 91% leave their money in a savings account earning a fraction of a percent, treating the most powerful tax-advantaged account in America like a medical debit card.
That ends today.
Want to see this in action? Try the HSA Supercharger tool and get personalized results in seconds.
What Makes the HSA’s Triple Tax Advantage Unique
Every other tax-advantaged account gives you one or two of the three tax benefits. The HSA gives you all three. Here’s how they compare:
| Account | Tax-Free Going In | Tax-Free Growth | Tax-Free Coming Out |
|---|---|---|---|
| HSA | Yes | Yes | Yes (qualified expenses) |
| Traditional 401(k) | Yes | Yes | No (taxed as income) |
| Roth IRA | No (after-tax) | Yes | Yes |
| Traditional IRA | Yes | Yes | No (taxed as income) |
| 529 Plan | No (after-tax) | Yes | Yes (education only) |
| Taxable Brokerage | No (after-tax) | No (dividends taxed) | No (capital gains taxed) |
Look at that chart. The HSA is the only row with three checkmarks. Financial planners call it the “triple tax advantage,” and it’s not a gimmick. It’s written directly into the Internal Revenue Code, Section 223.
Benefit 1: Tax-Free Going In
When you contribute to an HSA, the money comes off the top of your taxable income. If you earn $80,000 and contribute $4,300 (the 2025 individual limit), you’re only taxed on $75,700.
At a 22% federal tax bracket, that’s $946 in annual tax savings just from the contribution. Over 30 years, that’s $28,380 in tax savings before we even talk about investment growth.
If your employer offers payroll HSA contributions, you also skip FICA taxes (Social Security and Medicare at 7.65%), adding another $329 per year to the savings.
Benefit 2: Tax-Free Growth
Once the money is inside the HSA, any investment gains, dividends, and interest compound completely tax-free. No capital gains tax when you rebalance. No tax on dividends. No drag on returns.
In a taxable brokerage account, you’d pay 15% on long-term capital gains and qualified dividends each year. That tax drag slows your compounding significantly over decades.
A family contributing $8,550 per year (the 2025 family limit) for 25 years at an 8% average return accumulates approximately $631,000 in the HSA. In a taxable account, the same family would have roughly $490,000 after accounting for ongoing capital gains taxes. That’s a gap of over $140,000 from the growth benefit alone.
Benefit 3: Tax-Free Coming Out
When you withdraw HSA funds for qualified medical expenses, you pay zero federal tax. Zero state tax in most states. Nothing.
And here’s the part that makes the HSA truly special for retirement planning: after age 65, you can withdraw for any purpose. Non-medical withdrawals after 65 are taxed as ordinary income (like a Traditional IRA), but there’s no 20% penalty. Medical withdrawals remain completely tax-free at any age.
Given that the average retired couple will spend $315,000 or more on healthcare in retirement (according to Fidelity’s 2024 Retiree Health Care Cost Estimate), having a dedicated pool of tax-free money earmarked for those expenses is extraordinarily valuable.
The Math: $630,000 in Tax-Free Money
Let’s walk through a specific, realistic scenario.
The setup: A family with two working parents. Combined household income of $120,000. Both covered by a high-deductible health plan through one employer. They max the family HSA at $8,550 per year starting at age 35.
The assumptions:
- Annual HSA contribution: $8,550 (2025 family limit)
- Years of contributions: 30 (age 35 to 65)
- Average annual return: 8% (invested in a total stock market index fund)
- Federal tax bracket: 22%
- Starting HSA balance: $0
The results:
| Metric | Amount |
|---|---|
| Total contributions over 30 years | $256,500 |
| Total investment growth | $374,826 |
| HSA balance at age 65 | $631,326 |
| Tax saved on contributions (22%) | $56,430 |
| Tax saved on growth (vs. taxable account) | Approximately $56,000 |
| Tax saved on qualified medical withdrawals | Up to $138,892 |
That $631,326 is completely accessible tax-free for medical expenses. And since the average couple will spend $315,000+ on healthcare in retirement, most of it will be used for qualified expenses.
Compare that to the same family putting $8,550 per year into a taxable brokerage account: they’d invest only $6,671/year after paying 22% income tax on the contribution, and then lose additional returns to capital gains taxes along the way. Their ending balance would be approximately $490,000, and they’d owe capital gains tax on any withdrawals.
The HSA family keeps over $140,000 more. That’s the triple advantage in action.
Why Only 9% of HSA Holders Invest
If the HSA is this powerful, why does almost no one use it as an investment account?
Reason 1: HSA providers make it hard on purpose. Most employer-linked HSA providers (HealthEquity, Optum Bank, HSA Bank) default your money into a savings account earning 0.01% to 0.10%. They profit from the float. Your uninvested cash sitting in their savings account is money they can lend out. They have no financial incentive to encourage you to invest.
Many providers require you to maintain a minimum cash balance (often $1,000 or $2,000) before you can invest. Some charge monthly maintenance fees, investment fees, or per-trade commissions. The friction is intentional.
Reason 2: People treat it as a spending account. Most HSA holders use the account like a debit card, swiping it at the pharmacy and the doctor’s office. They never build a balance large enough to invest because they spend it as fast as they contribute.
Reason 3: Nobody explains the investment option. Employer HSA enrollment is usually a 10-minute section during benefits onboarding, sandwiched between dental insurance and parking passes. The tax triple advantage and investment strategy are almost never mentioned.
Reason 4: The name is misleading. “Health Savings Account” sounds like a medical expense account, not a retirement investment vehicle. If it were called “Triple Tax-Free Investment Account,” adoption rates would look very different.
The Optimal Strategy: Invest, Don’t Spend, Reimburse Later
Here is the strategy that maximizes the HSA’s value. It requires discipline, but the math makes it worth it.
Step 1: Max your HSA contribution every year
For 2025, the limits are $4,300 for individual coverage and $8,550 for family coverage. If you’re 55 or older, you can contribute an additional $1,000 catch-up contribution.
Prioritize the HSA immediately after getting your full employer 401(k) match. The contribution order should be:
- 401(k) up to employer match (free money)
- HSA to the max (triple tax advantage)
- Roth IRA to the max ($7,000 for 2025)
- Back to 401(k) up to the $23,500 limit
- Taxable brokerage with anything remaining
Step 2: Invest 100% of the balance
Move your HSA to a provider with low-cost investment options and no required cash balance (more on this below). Invest in a broad market index fund like a total stock market fund or an S&P 500 index fund. Leave nothing in cash.
Step 3: Pay medical bills from your checking account
This is the critical mindset shift. When you get a medical bill, do not pull money from the HSA. Pay it from your regular checking account or credit card. Let the HSA balance compound untouched.
Yes, this means you’re paying medical expenses with after-tax dollars in the short term. But you’re allowing that same money to grow tax-free for decades, which is worth far more.
Step 4: Save every medical receipt
The IRS has no time limit on HSA reimbursements. If you pay a $2,000 medical bill out of pocket today and save the receipt, you can reimburse yourself from the HSA 5, 10, or 30 years from now. The reimbursement is still tax-free.
This creates a powerful option: you’re building a growing stockpile of reimbursable receipts that you can tap at any time. Think of it as a tax-free ATM that gets bigger every time you have a medical expense.
Create a folder (digital or physical) where you store every medical bill, Explanation of Benefits (EOB), and receipt. Date each one. You’ll thank yourself later.
Step 5: Let it compound until retirement
The longer you let the HSA grow, the more powerful the triple advantage becomes. A 35-year-old who maxes the family HSA for 30 years at 8% returns has $631,000 at age 65. A 25-year-old who starts 10 years earlier has over $1.2 million.
Time is the multiplier. Every year of tax-free compounding widens the gap between the HSA and every other account type.
Choosing the Right HSA Provider
Your employer may offer an HSA provider as part of your benefits package. That doesn’t mean you’re stuck with it. You can transfer or roll over your HSA to any provider at any time, and the IRS allows one rollover per 12-month period.
Here’s how the major providers compare for investors:
Fidelity HSA (Recommended)
- Monthly fee: $0
- Investment minimum: $0 (no required cash balance)
- Investment options: Full Fidelity brokerage, including all mutual funds, ETFs, and individual stocks
- Why it wins: Zero fees, zero minimums, and access to Fidelity’s zero-expense-ratio index funds (like FZROX). This is the gold standard for HSA investors.
Lively
- Monthly fee: $0
- Investment minimum: $0
- Investment options: Partners with Schwab for a brokerage account
- Why it’s good: No fees and a clean interface. Slightly more friction than Fidelity since investments go through a linked Schwab account.
HealthEquity (Common employer provider)
- Monthly fee: $0 to $5.50/month depending on plan
- Investment minimum: $1,000 to $2,000 cash balance required
- Investment options: Limited fund lineup with expense ratios of 0.05% to 1.0%+
- Why it’s mediocre: The required cash balance means your first $1,000 to $2,000 earns almost nothing. Fees can eat into returns. If your employer uses HealthEquity, contribute through payroll (for the FICA savings), then do an annual rollover to Fidelity.
Optum Bank (Common employer provider)
- Monthly fee: $0 to $3.75/month
- Investment minimum: $1,000 to $2,000 cash balance required
- Investment options: Limited fund lineup
- Why it’s mediocre: Similar issues to HealthEquity. Use for payroll contributions, roll over to Fidelity annually.
The strategy for employer-linked HSAs: Contribute through payroll to get the FICA tax savings. Once your balance exceeds the minimum required cash threshold, initiate a rollover to Fidelity (or Lively) once per year. This gives you the best of both worlds: FICA savings from payroll deduction and Fidelity’s superior investment platform.
The Age 65 IRA Conversion: Your Safety Net
One common objection to the HSA investment strategy: “What if I’m healthy in retirement and don’t have enough medical expenses to use up the balance?”
First, that’s unlikely. Healthcare costs in retirement are substantial and growing. A 65-year-old couple can expect to spend $315,000+ on healthcare (Fidelity, 2024), and that number includes only premiums and out-of-pocket costs, not long-term care.
But even if you somehow have money left over, the HSA has a built-in safety valve. After age 65, you can withdraw from the HSA for any purpose. Non-medical withdrawals are taxed as ordinary income, exactly like a Traditional IRA. There is no penalty.
This means your HSA effectively converts into a Traditional IRA at age 65 for non-medical spending. You lose the “tax-free coming out” benefit on those withdrawals, but you still got tax-free going in and tax-free growth. That’s the same deal as a Traditional 401(k) or IRA.
So the worst-case scenario for an HSA is… it performs exactly like your 401(k). The best case is that it performs better than any other account type in existence. That’s a very favorable risk profile.
Eligibility Requirements: Who Can Open an HSA
Not everyone qualifies for an HSA. You must meet all of these criteria:
-
You’re enrolled in a High-Deductible Health Plan (HDHP). For 2025, that means a plan with a minimum deductible of $1,650 for individual coverage or $3,300 for family coverage. Maximum out-of-pocket limits are $8,300 (individual) or $16,600 (family).
-
You have no other health coverage that is not an HDHP (with limited exceptions for dental, vision, and certain preventive care plans).
-
You’re not enrolled in Medicare. Once you enroll in Medicare (typically at age 65), you can no longer contribute to an HSA. But you can still withdraw from it.
-
You can’t be claimed as a dependent on someone else’s tax return.
If your employer doesn’t offer an HDHP, you may be able to purchase one on the individual market through healthcare.gov or your state exchange. The premiums are typically lower than traditional plans, which can offset the higher deductible if you’re relatively healthy.
Common Mistakes to Avoid
Mistake 1: Using the HSA debit card for routine expenses. Every dollar you spend today is a dollar that can’t compound for 30 years. A $100 copay pulled from the HSA today could have been $1,006 in 30 years at 8% returns.
Mistake 2: Leaving money in the default savings account. At 0.10% interest, your $4,300 annual contribution grows to $134,000 after 30 years. Invested at 8%, it grows to $489,000. That’s $355,000 left on the table.
Mistake 3: Not doing the annual rollover. If your employer uses a mediocre HSA provider, you’re not stuck. Do a trustee-to-trustee transfer or a 60-day rollover to Fidelity once per year. It takes about 15 minutes of paperwork.
Mistake 4: Forgetting about state taxes. HSA contributions are tax-free at the federal level and in most states. However, California and New Jersey do not recognize HSA tax benefits at the state level. If you live in either state, you’ll owe state income tax on contributions and earnings. The federal triple advantage still applies, but factor in the state tax when doing your math.
Mistake 5: Not saving receipts. If you pay a medical bill out of pocket but don’t save the receipt, you lose the ability to reimburse yourself later. Digital copies are fine. Create a system and stick with it.
Frequently Asked Questions
Can I open an HSA if I’m self-employed?
Yes. You just need to be enrolled in a qualifying HDHP. You can open an HSA at Fidelity, Lively, or any other HSA provider without an employer connection.
What happens to my HSA if I change jobs?
The HSA is yours. It’s not tied to your employer. You keep the account and the balance regardless of where you work.
Can I use my HSA for my spouse’s or children’s medical expenses?
Yes. You can use HSA funds for qualified medical expenses for yourself, your spouse, and your dependents, even if they’re not covered by your HDHP.
What counts as a qualified medical expense?
The IRS defines qualified expenses in Publication 502. It includes doctor visits, prescriptions, dental work, vision care, mental health services, certain medical equipment, and more. Cosmetic procedures generally do not qualify.
Can I contribute to an HSA and an FSA in the same year?
Generally no. If you have access to a general-purpose Flexible Spending Account, you cannot also contribute to an HSA. However, you can pair an HSA with a Limited-Purpose FSA (which covers only dental and vision expenses).
What’s the penalty for non-medical withdrawals before age 65?
If you withdraw HSA funds for non-medical expenses before age 65, you owe income tax plus a 20% penalty. After age 65, the penalty drops to zero and you only owe income tax (just like a Traditional IRA).
Is there an income limit for HSA contributions?
No. Unlike the Roth IRA, there is no income limit for HSA contributions. Whether you earn $40,000 or $400,000, you can contribute the full amount as long as you’re enrolled in a qualifying HDHP.
Here’s the Thing
The HSA is hiding in plain sight. It has a boring name, it’s buried in benefits enrollment paperwork, and the companies that administer it profit from you not investing. But behind the bureaucracy is the single most tax-efficient account in the U.S. tax code.
No other account gives you a deduction on the way in, tax-free compounding on the growth, and zero tax on the way out. Not one.
A family that maxes their HSA for 25 years and invests it in a simple index fund accumulates over $630,000 in completely tax-free money. That’s not a projection from some optimistic financial model. That’s basic compound interest math at historical market averages.
What I’d Actually Do
If I had access to an HDHP and an HSA right now, here’s the exact playbook:
- Contribute through payroll to capture the FICA tax savings (7.65% on top of your income tax deduction).
- Max the contribution every year. $4,300 individual, $8,550 family. This comes before maxing the Roth IRA or going beyond the 401(k) match.
- Roll over to Fidelity once per year if your employer’s HSA provider charges fees or limits investment options.
- Invest 100% in a total stock market index fund. Fidelity’s FZROX has a 0.00% expense ratio. Set it and forget it.
- Pay every medical bill from checking. Not the HSA. Let it grow.
- Save every receipt in a dedicated folder. Date each one. This is your tax-free reimbursement stockpile.
- Don’t touch the HSA until retirement. Let 30 years of tax-free compounding do the heavy lifting.
The HSA won’t make headlines. It won’t show up in clickbait articles about “secret wealth hacks.” But for anyone with access to a high-deductible health plan, it is quietly the most powerful wealth-building tool available.
Use the HSA Supercharger tool to see exactly how much your HSA could grow based on your age, contribution, and tax bracket.
This article is for educational purposes only and does not constitute financial or tax advice. Tax laws change frequently. Consult a licensed financial advisor or tax professional for advice tailored to your specific situation.
Keep Reading
Explore more guides and calculators to help with your financial decisions.
Get money tips that actually help
Free account holders get weekly money tips, saved calculator results across devices, and early access to new tools.
Get Started FreeNo password needed. We'll send a secure magic link to your email.