A health savings account cuts your taxes and lets you build money for medical costs

A health savings account (HSA) is a tax-advantaged savings account paired with a high-deductible health plan. The main benefit is that money you put in is not taxed, the money you earn inside the account is not taxed, and withdrawals for may have access to medical expenses are not taxed. That triple tax break is the core reason HSAs exist—and why they save more money than a regular savings account for the same medical costs.

The second major benefit is that the money stays yours. Unlike a flexible spending account (FSA), which forces you to spend the money by the end of the year or lose it, HSA money rolls over indefinitely. You can let it grow year after year, and at age 65 you can withdraw it for any reason without penalty (though non-medical withdrawals are taxed like regular income).

The third benefit is control. You choose which medical expenses to pay from the account and which to pay out of pocket. This matters because you can let the account grow untouched while you pay small costs directly, then use the HSA for larger expenses later. Some people treat it as a retirement account for medical costs rather than a spending account for current bills.

Key Takeaways

  • Money you deposit into an HSA is not taxed, money it earns is not taxed, and withdrawals for medical costs are not taxed—a benefit no regular savings account offers.
  • HSA money does not disappear at the end of the year; it rolls over forever and can grow across decades.
  • You control when to spend the money, so you can let it accumulate while paying routine costs out of pocket and using the HSA for larger medical bills.
  • At age 65, you can withdraw HSA money for any reason without penalty, though non-medical withdrawals are subject to income tax.
  • The tax savings depend on your income and tax bracket; higher earners in higher brackets save more per dollar deposited.

How the tax savings work in practice

The tax benefit has three layers. First, money you contribute is deducted from your taxable income—the same way a traditional 401(k) contribution works. If you earn $60,000 and deposit $4,000 into an HSA, you pay income tax on $56,000 instead. At a 22% federal tax rate, that saves you $880 in federal taxes alone.

Second, any interest or investment gains inside the account are not taxed. If your HSA holds $10,000 and earns $500 in interest or investment returns, that $500 is not taxed. Over decades, this compounding effect can be substantial.

Third, when you withdraw money to pay for a may have access to medical expense—a doctor visit, prescription, dental work, vision care, or medical equipment—that withdrawal is not taxed. You are essentially getting a deduction for the expense twice: once when you deposited the money (because it reduced your taxable income) and again when you withdraw it (because the withdrawal itself is not taxed).

A regular savings account offers none of this. Interest earned is taxed as income, and money you withdraw was already taxed when you earned it. An FSA offers the first benefit (contributions are not taxed) but forces you to spend the money or lose it, and earnings are not taxed but also cannot accumulate.

The long-term wealth-building angle

Because HSA money rolls over and can be invested, many people use it as a supplemental retirement account specifically for medical costs. You can deposit the maximum allowed each year, invest it in stocks or bonds through your HSA provider, and let it grow untouched for 20 or 30 years. At retirement, you have a large pool of money that can pay for Medicare premiums, long-term care, hearing aids, or other medical expenses that typically increase with age.

This works because you are not required to spend HSA money in the year you earn it. You can pay routine medical costs out of pocket and leave the HSA alone. Keep receipts for those out-of-pocket costs—you can actually withdraw HSA money years later to reimburse yourself for old medical expenses, as long as you have the receipts. This flexibility lets you treat the HSA as a true investment account rather than a spending account.

The catch is that you must be enrolled in a high-deductible health plan to contribute to an HSA. Once you turn 65 and enroll in Medicare, you can no longer contribute, though you can still withdraw for medical costs. If you switch to a non-high-deductible plan before retirement, you lose the ability to contribute but keep the money already in the account.

Comparing HSA benefits to other tax-advantaged accounts

The HSA is unique because it is the only account where contributions, earnings, and withdrawals are all tax-free—but only for medical expenses. A 401(k) lets you invest and grow money tax-free, but you pay tax on withdrawals. An FSA offers the same tax-free contributions and withdrawals as an HSA but forces you to spend the money each year. A regular savings account offers no tax advantages at all.

Account TypeContributions Taxed?Earnings Taxed?Withdrawals Taxed?Money Rolls Over?Can Invest?
HSANoNoNo (medical only)Yes, foreverYes
FSANoNoNo (medical only)No (use or lose)No
Regular savingsYesYesYesYesLimited
401(k)No (traditional)NoYes (all withdrawals)YesYes

The table shows why the HSA stands out: it is the only account that avoids tax at every stage. The tradeoff is that the tax-free treatment only applies to medical expenses. If you withdraw for non-medical reasons before age 65, you pay income tax plus a 20% penalty.

Who benefits most from an HSA

People in higher tax brackets save more per dollar deposited because the tax deduction is worth more. Someone in the 37% federal tax bracket saves $37 in taxes for every $100 deposited; someone in the 12% bracket saves $12. State income tax also applies in most states, so the total benefit varies by location.

People who are healthy and do not expect large medical costs in the near term benefit most from the long-term growth feature. If you can afford to pay routine costs out of pocket and let the HSA grow, you build a substantial medical fund over time. People with chronic conditions or high expected medical costs may find an FSA more useful because they need to spend the money anyway and do not benefit from the rollover feature.

Self-employed people and small business owners benefit because HSA contributions reduce both income tax and self-employment tax. Employees benefit from the income tax reduction but not the self-employment tax reduction. This makes the HSA particularly valuable for self-employed workers.

What counts as a may have access to medical expense

may have access to expenses include doctor visits, hospital stays, prescription medications, dental work, vision care, hearing aids, and medical equipment like crutches or blood pressure monitors. Mental health care, physical therapy, and chiropractic care count. Over-the-counter medications like pain relievers and cold medicine count only if you have a prescription for them (as of 2020, the rules changed).

Expenses that do not count include cosmetic procedures, gym memberships, vitamins (unless prescribed), and most wellness products. If you are unsure whether an expense qualifies, your HSA provider can tell you, or you can check IRS Publication 502, which lists all may have access to medical expenses.

The key point is that you decide which expenses to pay from the HSA and which to pay out of pocket. You do not have to spend HSA money on every medical cost. This flexibility is part of what makes the account powerful—you can let it grow while paying small costs directly.

Contribution limits and how they change

The IRS sets annual contribution limits, and they increase most years to account for inflation. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. These limits change yearly, so check your HSA provider or the IRS website for the current year.

If you are 55 or older, you can contribute an extra $1,000 per year (called a catch-up contribution). This lets older workers build their medical fund faster before retirement. Your employer may also contribute to your HSA—if they do, that contribution counts toward the annual limit but does not reduce your tax benefit, since employer contributions are already tax-free.

Frequently Asked Questions

Can I use HSA money to pay for my spouse's medical costs?

Yes. HSA money can pay for may have access to medical expenses of you, your spouse, and any dependents you claim on your tax return, regardless of whether they are covered under your health plan. You do not need to be on the same plan.

What happens to my HSA if I change jobs?

The HSA stays yours. It is not tied to your employer or your health plan. You can take it with you, keep it invested, and continue to withdraw from it for medical costs. You can also roll it over to a new HSA at a different provider if you want to change banks or investment options.

Can I withdraw HSA money for non-medical costs?

Yes, but you will pay income tax on the withdrawal plus a 20% penalty if you are under 65. At 65 or older, you can withdraw for any reason without the penalty, though non-medical withdrawals are still taxed as income. This is why some people treat an HSA as a retirement account—after 65, it works like a traditional IRA.

Do I lose my HSA if I switch to a different health plan?

No. You can only contribute to an HSA while enrolled in a high-deductible plan, but the money you already have stays in the account. You can continue to withdraw from it for medical costs even after you switch plans or retire.

Is there a deadline to spend HSA money or file receipts?

No. You can withdraw HSA money years after you incur the expense, as long as you have a receipt. You can even reimburse yourself for old medical costs decades later. There is no time limit on may have access to expenses.