Skip to main content
Tax-Advantaged Accounts

What Is an HSA and Why Is It the Triple Tax Advantage?

Pomegra Learn

What Is an HSA and Why Is It the Triple Tax Advantage?

The Health Savings Account (HSA) is a secret weapon in the American tax code. It's the only account that combines three tax advantages: deductible contributions, tax-free growth, and tax-free withdrawals—but only for qualified medical expenses. Most people with access to HSAs use them incorrectly, treating them like temporary medical savings accounts and withdrawing all the money each year. In reality, an HSA is the most tax-efficient retirement account in America, and it should often be prioritized ahead of 401(k)s and IRAs. Understanding HSA mechanics, optimizing the investment strategy inside the account, and deferring withdrawals until late in life are essential to capturing its full power.

Quick definition: An HSA lets you contribute pre-tax dollars (reducing your taxable income), invest them tax-free, and withdraw them completely tax-free for qualified medical expenses. It's available only if you have a high-deductible health plan (HDHP), and it's the only account combining all three tax treatments: deductible contributions, tax-free growth, and tax-free withdrawals.

Key takeaways

  • HSAs require a high-deductible health plan (HDHP) to open, but offer the most powerful tax treatment: deductible contributions, tax-free growth, and tax-free withdrawals for medical expenses
  • The annual contribution limits (roughly $4,150 for self-only coverage, $8,300 for family as of 2024) are modest, but the tax benefits are enormous
  • Unlike Flexible Spending Accounts (FSAs), HSAs carry balances year to year—you don't lose unspent money
  • HSAs can be invested like IRAs, with decades of tax-free compounding if medical expenses are deferred
  • Withdrawal rules are strict: non-medical withdrawals before age 65 face 20% penalties on top of income tax, but after 65 they're taxed like traditional IRA withdrawals
  • Strategic HSA users delay withdrawals for medical expenses, let the account compound, and use it as a stealth retirement account

The three-part advantage: why HSAs are unmatched

HSA vs. Traditional 401k comparison

Most retirement accounts offer one of two tax treatments: either contributions are deductible (traditional 401(k)/IRA) or withdrawals are tax-free (Roth 401(k)/IRA). HSAs are singular: they offer both, plus tax-free growth in between. This triple advantage is why financial advisors increasingly recommend maxing out an HSA before maxing out a 401(k), even if the 401(k) has an employer match.

Here's the math. Suppose you contribute $4,150 to an HSA in a $50,000 income, 22% federal bracket. You save $912 in federal tax. The money grows tax-free inside the account. In 30 years, if invested at 7% annually, it becomes $42,000. If you then withdraw it for qualified medical expenses, you owe zero tax on the entire $42,000. By contrast, the same contribution to a traditional 401(k) would save $912 upfront, grow to $42,000, but then be fully taxable on withdrawal. At a 22% tax rate, you'd owe $9,240 in tax on the withdrawal, leaving you $32,760. The HSA leaves you $42,000—a $9,240 advantage on the same contribution and growth.

This is not theoretical. This is why savvy savers with HDHPs treat HSAs as their primary retirement vehicle.

Opening an HSA: the HDHP requirement

To contribute to an HSA, you must be enrolled in a qualified high-deductible health plan (HDHP). As of 2024, a qualified HDHP has:

  • Individual coverage deductible: At least $1,650 (some sources cite slightly different numbers due to updates, so verify current rules)
  • Family coverage deductible: At least $3,300
  • Out-of-pocket maximum: No more than $8,300 for individual or $16,700 for family

Many employer health plans are HDHPs, and many marketplace plans qualify too. If your employer offers an HDHP, you're eligible to open an HSA. If not, you can shop for individual coverage and open an HSA on your own (though this is often more expensive than group plans).

You cannot be enrolled in Medicare to contribute to an HSA, which creates an important planning consideration: once you turn 65 and become eligible for Medicare, you lose HSA contribution eligibility (though you can still withdraw from existing HSAs for medical expenses).

The contribution: deductible, with limits and deadlines

As of the mid-2020s, annual HSA contribution limits are:

  • Individual (self-only) coverage: $4,150
  • Family coverage (two or more people): $8,300

The contribution is fully deductible from your taxable income. If you earn $60,000 and contribute $4,150, your taxable income drops to $55,850, saving you roughly $912 in federal tax at the 22% bracket.

Contributions can be made through an employer (most common, via payroll deduction) or by you directly (if you have self-only coverage and are self-employed or have no employer plan). The contribution deadline is typically April 15 of the following year (same as tax return filing), giving you extra time compared to 401(k) contributions, which must be made by December 31.

One critical rule: you must be HSA-eligible (enrolled in an HDHP) for the entire month to contribute that month's portion. If you switch to a non-HDHP plan mid-year, you can only contribute on a pro-rata basis for the months you were in the HDHP. This can trap people who leave an HDHP plan before year-end.

The growth: tax-free compounding, if you invest

Here's where most HSA users are leaving money on the table. Many HSAs are held in savings accounts earning 0% to 5% interest. Others are held in money-market funds, which are safe but low-growth. Sophisticated savers invest their HSAs in stock index funds, bonds, or mixed portfolios inside the HSA—exactly as they would in an IRA or 401(k).

This investment flexibility is critical. An HSA is only as powerful as the investments inside it. If you contribute $4,150 and leave it in a savings account earning 2%, in 30 years you'll have roughly $7,400. If you invest it at 7% annual return, you'll have $42,000. The $34,600 difference is the power of tax-free compounding over decades.

To invest an HSA, you need to open it at a custodian that allows investments—some do, many don't. Fidelity, Vanguard, Charles Schwab, and others offer HSAs with investment options. If your employer's HSA provider doesn't offer investments, you can roll it to a self-directed provider and invest it yourself.

Example: Over 30 years, you contribute $4,150 annually ($124,500 total). At 7% annual return, the balance grows to roughly $1.1 million. Of that, $124,500 is your contributions, and $975,500 is tax-free gains. If every dollar were withdrawn for medical expenses, you'd owe zero tax on all of it. If you used the same strategy with a traditional 401(k), you'd owe tax on all $1.1 million at withdrawal.

The withdrawal: tax-free for qualified medical expenses, taxable otherwise

This is where HSA rules get strict. Withdrawals fall into two categories:

Category 1: Qualified medical expenses (tax-free, no limits)

You can withdraw tax-free from your HSA for any IRS-qualified medical expense. This includes:

  • Doctor visits, hospital stays, surgery, prescription medications
  • Dental work, orthodontia, and dental cleanings
  • Vision care, eye exams, and eyeglasses
  • Physical therapy, mental health therapy, chiropractors
  • Deductibles, co-pays, and co-insurance under your health plan
  • Long-term care insurance premiums (with limits)
  • Medicare Part B, C, and D premiums (after age 65, using Medicare)

The IRS publishes a complete list of qualified medical expenses on Publication 502, which runs to dozens of pages. The rule is broad: if it's a medical service or good prescribed by a medical provider, it likely qualifies.

The beauty of this list: you can withdraw for a medical expense incurred anytime—even 10 or 20 years ago, if you can document it and haven't been reimbursed. Some savvy savers "warehouse" their medical expenses: they receive medical care, pay for it with after-tax money out of pocket, save the receipts, and later withdraw from the HSA for those old expenses. This isn't commonly known, but it's legal. It allows you to defer HSA withdrawals for decades while still benefiting from tax-free growth.

Example: In 2025, you pay $5,000 for dental work out of pocket. You don't withdraw it from your HSA; instead, you save the receipt. Your HSA continues to grow tax-free. In 2035, you need liquidity, and you withdraw $5,000 from the HSA, claiming the 2025 dental expense. The withdrawal is tax-free. Your HSA has had 10 extra years to compound on that $5,000.

Category 2: Non-medical withdrawals (taxable, with penalties)

If you withdraw from an HSA for something other than a qualified medical expense, the withdrawal is subject to:

  • Income tax at your ordinary rate (say, 22% federal + 5% state = 27% total)
  • 20% penalty (before age 65) or no penalty (age 65+)

A non-medical $10,000 withdrawal at age 50 would cost you roughly $2,200 in income tax plus $2,000 in penalties, leaving you $5,800. That's expensive, which is why you should avoid non-medical withdrawals while you're young.

However—and this is a huge exception—once you reach age 65, the 20% penalty disappears. Non-medical withdrawals after 65 are subject to income tax only, just like a traditional IRA. This transforms the HSA into a stealth traditional IRA at retirement, giving you maximum flexibility.

The age 65 transformation: HSA as a retirement account

Here's the game-changer for long-term HSA planning. After age 65:

  • The 20% penalty on non-medical withdrawals vanishes
  • You can withdraw for any reason and only pay income tax (no penalty)
  • You can continue withdrawing for qualified medical expenses tax-free

This means at age 65, an HSA becomes functionally identical to a traditional IRA for non-medical withdrawals, but it's still superior because you can withdraw for medical expenses tax-free. If you have significant accumulated medical expenses (which most retirees do—Medicare doesn't cover everything), you have decades of tax-free withdrawals available.

This age 65 rule is why building a large HSA balance over decades is so powerful. You're creating a retirement account with exceptional flexibility: use it tax-free for medical expenses, or use it like a traditional IRA (with tax-only, no penalty) for other purposes. It's the best of both worlds.

HSA vs. FSA: the critical difference

Flexible Spending Accounts (FSAs) are often confused with HSAs, but they're entirely different:

AspectHSAFSA
RequirementMust have HDHPAny health plan
Contribution limit$4,150 individual; $8,300 family$3,200 (2024 limit, varies by employer)
Carry-over balanceYes, unlimited year to yearNo (use-it-or-lose-it)
Investment optionsYes, at some custodiansNo, typically savings only
Withdrawals for medicalTax-free, unlimitedTax-free, up to balance
Tax treatment after age 65Tax-free for medical, income tax only for non-medicalFSAs don't exist at age 65 (forfeit unused balance)
Best forLong-term accumulation, young saversAnnual medical expenses, retirees

FSAs have a "use it or lose it" rule: if you don't spend your contributions by year-end, you forfeit the balance. There's a small "carryover" grace period in some plans, but it's limited. HSAs don't have this problem; balances roll over year after year, allowing you to build a large, tax-advantaged nest egg.

For most people with HDHP access, HSA is superior to FSA because of this carryover flexibility.

Real-world scenario: the 30-year HSA strategy

Consider Marcus, age 35, earning $70,000, with a family HDHP and an $8,300 HSA contribution room.

Year 1 (age 35): Contributes $8,300 to HSA, saves roughly $1,827 in federal tax (at 22% bracket). Invests the balance in a diversified stock/bond portfolio inside the HSA at a custodian that offers investments. Doesn't withdraw for any medical expenses that year; instead, pays medical costs out of pocket and saves the receipts.

Year 15 (age 50): HSA balance is roughly $145,000 (annual contributions of $8,300, invested at 7% annually). Marcus has $8,000 in saved medical receipts (from various dental, vision, and other expenses over 15 years). He withdraws $8,000 from the HSA, claiming those old medical expenses. The withdrawal is tax-free. The HSA still has $137,000, growing tax-free.

Year 31 (age 66, one year into Medicare): HSA balance is roughly $800,000. Marcus has accumulated $100,000 in historical medical expenses (over 30 years of receipts). He has two options:

  • Option A: Withdraw $100,000 tax-free by claiming the historical medical expenses. This leaves $700,000 in the account.
  • Option B: Leave the full $800,000 invested and withdraw only what he needs each year (using historical medical receipts to avoid the 20% penalty).

At age 65+, the 20% penalty is gone, so if Marcus needs money for anything other than medical expenses, he can withdraw it and only pay income tax (no penalty). This makes the HSA function like a traditional IRA with medical expense flexibility.

Over 30 years, Marcus contributed roughly $248,000, received tax deductions worth roughly $54,560 (in savings), and ended with an $800,000 balance. The tax-free growth of roughly $500,000 is the engine of the HSA advantage.

Common mistakes

Mistake 1: Using the HSA as an annual medical spending account. The biggest mistake is withdrawing the full balance every year for current medical expenses, "using it or lose it" like an FSA. HSAs don't have this rule. Optimal HSA use is to pay medical expenses out of pocket (if you can afford it), save the receipts, let the HSA compound tax-free, and withdraw decades later. For people with large HSA balances, this can mean decades of tax-free growth.

Mistake 2: Not investing the HSA. Many people keep their HSA in a savings account earning near 0%. This is a massive opportunity cost. An HSA should be invested like an IRA or 401(k), in index funds or diversified portfolios. The triple tax advantage is only fully realized if the money compounds at reasonable returns.

Mistake 3: Forgetting to save medical receipts. If you pay for a medical expense out of pocket and later want to withdraw from the HSA for it, you need documentation: receipts, invoices, or medical bills. Don't throw these away. Some savers create a spreadsheet or envelope system to track reimbursable expenses and their dates. You can reimburse yourself years later if you have the original documentation.

Mistake 4: Switching from HDHP to a non-HDHP mid-year without understanding the contribution impact. If you're enrolled in an HDHP for 7 months, you can only contribute on a pro-rata basis. Some people contribute the full $8,300 and then discover they weren't eligible for the full amount—a tax-filing surprise.

Mistake 5: Underestimating retirees' medical expenses. Many people accumulate large HSA balances expecting to use them in early retirement. But retirees have substantial medical expenses: deductibles, copays, vision, dental, hearing aids, long-term care insurance, etc. It's realistic to assume $500+/month in retiree medical expenses, which is $6,000/year. An $800,000 HSA balance could cover 130+ years of medical expenses, giving you decades of tax-free withdrawals.

FAQ

Can I open an HSA if my employer doesn't offer one?

Yes. If you're enrolled in an HDHP (through an individual marketplace plan, spouse's employer, or other source), you can open an HSA independently at any institution that offers them (Fidelity, Vanguard, etc.) and contribute up to the annual limits. This is less common than employer-based HSAs but is available.

What happens to my HSA if I leave my job?

Your HSA stays with you. The contributions and the balance are yours, not your employer's. You can roll it to another custodian, continue using it, or let it sit. If you lose HDHP coverage, you can't make new contributions, but you can still withdraw for medical expenses tax-free (and make non-medical withdrawals after age 65).

Can I contribute to both an HSA and an FSA at the same time?

No, with rare exceptions. The IRS generally does not allow simultaneous contributions to an HSA and a regular FSA. However, some employers offer a "limited-purpose FSA" that covers only dental and vision, which can be paired with an HSA. Check with your employer's plan documents.

Are prescription medications qualified medical expenses?

Yes, both over-the-counter medications (with a prescription) and prescription medications are qualified. However, there's a quirk: over-the-counter medications (like ibuprofen) require a prescription from a doctor to qualify. If you buy them over-the-counter without a prescription, they don't qualify. This rule is strict and often misunderstood.

What happens to my HSA if I go on Medicare at 65?

You can no longer make contributions to your HSA once you're on Medicare (Medicare and HSA contributions are mutually exclusive). However, your existing HSA balance stays with you forever, and you can withdraw from it for any purpose after 65 (with income tax but no 20% penalty if non-medical). You can continue withdrawing tax-free for qualified medical expenses (including Medicare premiums, deductibles, copays, etc.).

Can I invest my HSA in anything, or are there restrictions?

You can invest in almost anything, depending on your HSA custodian. Most custodians that offer investments allow stocks, bonds, index funds, and mutual funds. Some allow self-directed investments (real estate, private placements, etc.), but this is rare. Check with your custodian about investment options available.

Summary

HSAs are the most tax-efficient accounts in the U.S. tax code, combining deductible contributions, tax-free growth, and tax-free withdrawals for medical expenses. Available only to those with high-deductible health plans, HSAs are often underutilized. The optimal strategy is to defer withdrawals, let the account compound tax-free for decades, and use accumulated medical receipts to withdraw tax-free in retirement. After age 65, HSAs function like traditional IRAs for non-medical withdrawals (income tax only, no penalty) while retaining tax-free withdrawal for medical expenses. For young savers with HDHP access, maxing out an HSA should often take priority over other retirement savings vehicles.

Next

529 Plans and Taxes