Finance September 4, 2026

How Do HSAs Work?

A 6-minute read

Most people use HSAs like a medical checking account. The smarter play: treat yours like a retirement account that happens to pay for your doctor visits.

At the end of 2023, the average HSA that had at least some money invested held $19,212, about 7.6 times the balance of an average funded account with no investments, according to the Devenir year-end 2023 HSA research report. Much of that gap comes down to whether the money was ever invested.

Most people treat their HSA like a dedicated medical checking account: load it up, pay the dentist, repeat. But the people building serious wealth with HSAs do something different. They pay their current medical bills out of pocket and invest every dollar they can, turning their HSA into something that looks a lot more like a retirement account than an insurance product.

The short answer

A Health Savings Account is a tax-advantaged account available to anyone with a high-deductible health plan. You contribute pre-tax dollars, those dollars grow tax-free when invested, and you withdraw them tax-free any time you pay a qualified medical expense. The account belongs to you permanently, not your employer. And after age 65, you can even withdraw for non-medical purposes, paying only ordinary income tax like a traditional IRA.

The full picture

The contribution rules

To open and contribute to an HSA, you must be covered by a high-deductible health plan on the first day of any given month. For 2026, the IRS defines an HDHP as one with a minimum annual deductible of $1,700 for self-only coverage or $3,400 for family coverage. Your maximum out-of-pocket expenses cannot exceed $8,500 for self-only or $17,000 for family coverage.

The 2026 contribution limits are $4,400 for individuals and $8,750 for families. If you are 55 or older, you can add a $1,000 catch-up contribution. These limits apply across all HSAs you hold, so you cannot double your contribution by splitting money between two accounts.

Contributions can come from you, your employer, or both. If your employer contributes, that money counts toward your annual limit. The key advantage is that whether you contribute through payroll (reducing your taxable wages) or directly (claiming the deduction on your tax return), your money enters the account pre-tax.

The tax math

HSAs are unusual because they offer three distinct tax benefits that stack together. First, your contributions are tax-deductible, reducing your taxable income in the year you contribute. Second, any investment growth, whether from dividends, interest, or capital gains, is entirely tax-free. Third, withdrawals for qualified medical expenses are completely tax-free.

Compare this to a 401(k), which gives you a tax deduction on contributions and grows tax-free, but taxes withdrawals. Or a taxable brokerage, which taxes both contributions and gains. The HSA is the only account that gives you all three tax benefits simultaneously, which makes it arguably the most tax-advantaged account in America.

The investment option

Once your HSA balance exceeds a threshold set by your provider (commonly $1,000 or $2,000), you can invest the excess in a selection of mutual funds and ETFs. The money in your HSA investment account grows just like it would in a brokerage or retirement account, but the gains are never taxed.

The HSA investment threshold is one reason the account balance gap is so stark. Most people keep their entire HSA in cash, earning minimal interest. People who invest their HSA balances aggressively tend to be the ones who understand that the account is not just for this year’s prescriptions.

Withdrawing for medical expenses

Qualified medical expenses include doctor visits, dental work, prescription medications, vision care, mental health services, and many other health-related costs that insurance does not cover. The full list is in IRS Publication 502. You can withdraw at any time for any amount, as long as it qualifies, and the withdrawal is entirely tax-free.

You do not need to withdraw money in the same year you incur the expense. You can save receipts for years and reimburse yourself from your HSA later, as long as you had the HSA at the time you paid the expense. This is one of the most powerful but underused HSA strategies. You pay a $200 dentist bill today from your regular checking account, invest that $200 in your HSA instead, and reimburse yourself in 2035, tax-free.

What happens after 65

Once you turn 65, the rules change slightly. You can withdraw from your HSA for any purpose without facing the 20% penalty that applies to non-medical withdrawals before age 65. However, non-medical withdrawals are taxed as ordinary income, just like withdrawals from a traditional IRA or 401(k).

The crucial difference is that medical withdrawals remain tax-free forever. If you use your HSA the way high-net-worth investors typically do, you pay for current medical expenses out of pocket, invest your HSA aggressively, and let it compound for 20 or 30 years. By retirement, you have a substantial pool of money that can fund both medical costs and general retirement spending.

Why it matters

The math on HSA investment growth is dramatic. A 35-year-old who contributes the family maximum of $8,750 per year for 30 years and invests it in a low-cost index fund earning 7% annually will have approximately $825,000 by age 65, before counting any future increases in the limit. If they withdraw that money for medical expenses in retirement, it all comes out tax-free. A traditional 401(k) holding the same $8,750 annually at 7% would grow to roughly the same pre-tax amount, but every dollar withdrawn would be taxed as ordinary income.

The practical implication is that an HSA is not just a way to save for doctor visits. For people in good health who rarely hit their deductible, it is a tax-sheltered investment vehicle that can replace or supplement a traditional retirement account. The Employee Benefit Research Institute found that only 15% of HSA accountholders invested in anything other than cash in 2023.

Even for people with significant annual medical expenses, the HSA still wins over a Flexible Spending Account. FSA funds expire at the end of each year or when you leave your job. HSA funds never expire and stay with you regardless of employment. That permanence is worth more than most people realize, especially in an era when job changes are common.

Common misconceptions

“HSAs are only useful for paying medical bills right away.”

This is the most costly misconception. The people building real wealth with HSAs rarely use them for routine expenses. Instead, they pay their current medical bills from regular income and invest every HSA dollar they can. The goal is to build a balance large enough that investment growth becomes the primary benefit. The tax-free compounding over 20 or 30 years dwarfs any savings from paying bills directly from the HSA.

“I need to use my HSA funds every year or I lose them.”

Unlike FSAs, HSA funds do not expire. The money in your HSA is yours forever, even if you change jobs, switch health plans, or go years without a major medical expense. There is no “use it or lose it” provision. This permanence is precisely why maxing out your HSA and investing it makes long-term financial sense for many households.

“My employer owns my HSA.”

This is false. Unlike your 401(k), which can have some employer-owned portions, your HSA is fully yours from day one. Employer contributions vest immediately and are yours entirely. If you leave your job, your HSA comes with you, and you can keep it, continue contributing to it, and invest it independently of any employer plan.

Key terms

High-deductible health plan (HDHP): A health insurance plan with a minimum annual deductible of $1,700 for self-only coverage or $3,400 for family coverage in 2026, and a maximum out-of-pocket of $8,500 or $17,000 respectively. Only HDHP holders can contribute to HSAs.

Triple tax advantage: The three tax benefits HSAs provide: contributions are tax-deductible, investment growth is tax-free, and withdrawals for qualified medical expenses are tax-free. No other account offers all three simultaneously.

Qualified medical expense: Medical costs defined by the IRS that are eligible for tax-free HSA withdrawal, including doctor visits, dental care, prescription drugs, vision care, and certain long-term care services.

HSA investment threshold: The minimum balance you must maintain in cash within your HSA before you can invest the excess. Set by your HSA provider, this is typically between $1,000 and $2,000.

Catch-up contribution: An extra $1,000 annual HSA contribution allowed for accountholders who are 55 or older, on top of the standard contribution limit.

Common questions

What is a Health Savings Account (HSA)?

An HSA is a tax-advantaged account you can open if you have a high-deductible health plan. You contribute pre-tax money, invest it, and withdraw tax-free for qualified medical expenses. Unlike Flexible Spending Accounts, HSA funds never expire and stay with you if you change jobs.

How much can I contribute to an HSA in 2026?

For 2026, the contribution limit is $4,400 for individuals with self-only coverage and $8,750 for families. If you are 55 or older, you can contribute an extra $1,000 as a catch-up contribution.

What is a high-deductible health plan (HDHP)?

An HDHP is a health insurance plan with a higher annual deductible than traditional insurance. For 2026, the minimum deductible is $1,700 for self-only coverage and $3,400 for family coverage. The maximum out-of-pocket is $8,500 for self-only and $17,000 for family.

Can I invest my HSA money?

Yes, most HSA providers offer investment options once your balance exceeds a threshold, typically $1,000-$2,000. You can invest in mutual funds, ETFs, and other securities just like a brokerage account.

What happens to my HSA when I turn 65?

At 65, you can withdraw HSA funds for any purpose without penalty. Non-medical withdrawals will be taxed as ordinary income, similar to a traditional IRA. However, you continue to get tax-free withdrawals for medical expenses, and your money keeps growing tax-free as long as it stays in the HSA.

What is the triple tax advantage of HSAs?

The triple tax advantage means: (1) contributions are tax-deductible, reducing your taxable income; (2) investment growth is tax-free; (3) withdrawals for qualified medical expenses are tax-free. Few other accounts offer all three.

That's the distilled version.