Level 2 - 7 min read

What is an HSA? The triple tax advantage explained

A Health Savings Account has three tax advantages no other account can match: contributions are pre-tax, growth is tax-free, medical withdrawals cost nothing.

A Health Savings Account (HSA) is a tax-advantaged account with one distinction no other account type matches: it gets three separate tax breaks on the same money. Contributions reduce your taxable income going in. The balance grows without annual taxes on dividends or gains. Withdrawals for qualified medical expenses come out tax-free. No other account in the U.S. tax code offers all three simultaneously.

Most people who have an HSA use it as a spending account: contribute, pay a medical bill, repeat. That approach captures only the first tax benefit. The rest of this article explains the eligibility requirements, the full math, and the investing strategy that makes an HSA a serious long-term financial asset, not just a reimbursement account.

Who qualifies

To open and contribute to an HSA, you must be enrolled in a qualifying High-Deductible Health Plan (HDHP). An HDHP is a health plan that meets IRS minimums for both the annual deductible and the out-of-pocket maximum. These thresholds are adjusted annually; check irs.gov for the current figures (IRS Publication 969).

You are disqualified from contributing while you:

  • Have coverage under any non-HDHP health plan, including Medicare (Part A or B)
  • Are claimed as a dependent on someone else's tax return
  • Have a general-purpose Flexible Spending Account (FSA) covering the same expenses

You do not need to be employed. If you are self-employed or between jobs and enrolled in an HDHP, you can open an HSA directly through a bank, credit union, or brokerage that offers them.

HSA contribution limits are set annually by the IRS for self-only vs. family HDHP coverage. An additional catch-up contribution is allowed for account holders age 55 and older. Confirm the current limits at irs.gov (IRS Publication 969; the IRS typically announces updated figures each fall; as of July 2026, verify the current amounts there).

The triple tax advantage

The three tax benefits run in sequence: when money goes in, while it sits, and when it comes out.

  • Leg 1: contributions are pre-tax. If you contribute through your employer's payroll, the money comes out before federal income tax, state income tax, and FICA taxes (Social Security and Medicare). If you contribute directly, the contribution is deductible on your federal tax return. Either way, you get a dollar-for-dollar reduction in taxable income up to the annual IRS limit.
  • Leg 2: growth is tax-free. Interest, dividends, and capital gains inside the HSA are not taxed annually. The balance compounds without the drag that applies to a standard taxable brokerage account.
  • Leg 3: withdrawals for qualified medical expenses are tax-free. Qualified expenses include deductibles, copays, prescriptions, vision, dental, and many others. The full list is in IRS Publication 502.

For comparison: a Roth IRA gives you Legs 2 and 3 (tax-free growth and tax-free withdrawals), but contributions are after-tax, so there is no Leg 1 deduction. A traditional IRA gives you Leg 1 on the way in, but withdrawals are taxed, so you lose Leg 3. The HSA is the only account that captures all three for its specific use case.

The math: triple tax vs. a taxable account

Illustrative example with round numbers. You are in a combined 25% marginal tax rate. Both accounts earn the same assumed 7% annual return. After 20 years, you withdraw to pay a qualified medical expense.

  • HSA: You contribute $1,000 pre-tax (you kept the $250 you would have paid on that income as tax). It grows at 7% for 20 years to approximately $3,870. Withdrawn tax-free. Net: $3,870.
  • Taxable brokerage: You invest $750 (after paying $250 in income tax on the $1,000). It grows at roughly 6.5% after annual tax drag on dividends and distributions. After 20 years: approximately $2,600 before capital gains tax on the realized gain. After capital gains tax, somewhat less.

Each tax leg the HSA eliminates is a real compounding drag the taxable account carries. The difference grows larger the longer the money sits. These are illustrative figures; actual results depend on your tax rates, investment mix, and expenses paid each year.

The 7% figure is often cited as a long-run approximation for a broad equity index based on historical S&P 500 data. Returns are not guaranteed and vary by period and market conditions.

The investing strategy most people miss

The default behavior: contribute, use the balance to pay each medical bill as it arrives, end the year near zero. This captures Leg 1 and Leg 3 on that year's expenses, but forfeits decades of tax-free compounding growth.

The alternative: pay current medical expenses out of pocket (or on a credit card you pay in full each month), leave HSA contributions invested in a low-cost index fund, and let the balance grow.

The IRS does not require you to reimburse yourself in the same year as the expense. You can pay a medical bill today, keep the receipt, and withdraw from your HSA to reimburse yourself years later. The withdrawal is still tax-free as long as the expense was qualified and occurred after you opened the HSA (IRS Publication 969).

In practice: your HSA can accumulate for decades, and you can draw it down later using documented past medical expenses. The account functions as a parallel retirement asset for healthcare costs.

After age 65: non-medical withdrawals are taxed as ordinary income with no additional penalty, making the HSA function similarly to a traditional IRA at that point. Before age 65: non-medical withdrawals are subject to income tax plus a 20% penalty (IRS Publication 969).

Investment options vary by HSA custodian. Not all providers offer full investment menus, and some require a minimum cash balance before you can invest the rest. If your employer-sponsored HSA has limited investment options, check whether you can transfer funds to an HSA with broader choices.

HSA vs. FSA: the rollover difference

These are two different account types with similar names and different rules.

A Flexible Spending Account (FSA) is generally use-it-or-lose-it: funds must be spent by the end of the plan year. Employers may offer a small grace period or carryover option, but unused balances typically revert to the employer. The FSA also belongs to your employer; if you leave the job, the balance does not come with you (IRS Publication 969).

An HSA belongs to you. Unused balances roll over every year with no deadline. If you leave your job, the account stays yours. You can contribute to it through any future qualifying employer or directly on your own.

You generally cannot hold both an HSA and a general-purpose FSA simultaneously. Some employers offer a "limited-purpose FSA" restricted to dental and vision alongside an HSA; that combination is permitted.

Common mistakes

  • Treating the HSA as a spending account instead of an investment account. Contributing and immediately spending the balance forfeits the growth potential. Even a modest balance invested over a working career can cover a substantial share of retirement healthcare costs.
  • Leaving the balance in cash. Most HSA custodians default new accounts to a cash or money market position. You typically have to opt in to invest. Check your HSA dashboard and confirm whether your balance is invested or sitting idle.
  • Not keeping receipts. Every medical expense you pay out of pocket while the HSA exists is a potential future tax-free withdrawal. Keep receipts or a running log. Without documentation, the withdrawal loses its tax-free status.
  • Contributing after becoming ineligible. If you switch to a non-HDHP plan or enroll in Medicare, you must stop contributing. Contributions made while ineligible are subject to income tax plus a 6% excise penalty (IRS Publication 969).
  • Assuming any high-deductible plan qualifies. The plan must formally meet the IRS definition of an HDHP. Having a high deductible is not sufficient on its own. Confirm with your plan administrator or the plan documents.

Related

  • Insurance and risk: the full cluster on protection and risk management
  • Term vs. whole life insurance: the other major insurance decision most people face, with the same math-first approach
  • 401(k) and IRA: tax advantages most people miss: once your employer match is captured and an IRA is funded, a fully invested HSA is the next tax-advantaged layer worth maximizing
  • How to read a pay stub: if your HSA contributions run through payroll, they appear as a pre-tax deduction under Section 125; that article covers exactly where to find them and how they reduce your taxable wages

Sources: IRS, Publication 969 (HSAs and other tax-favored health plans), irs.gov. IRS, Publication 502 (qualified medical and dental expenses). IRS, Section 223 of the Internal Revenue Code (statutory authority for HSAs). Last reviewed: July 2026.

Uncle Nobody: educational content, not financial, investment, tax, or legal advice. Just the math.

← Back to the full library