Do I Pay Capital Gains Tax on HSA?

When it comes to Health Savings Accounts (HSAs), many people wonder about the tax implications, including whether capital gains tax applies. HSAs are a tax-advantaged way to save for medical expenses, but how they are taxed can be confusing. One of the advantages of an HSA is that you can invest the funds in the account, potentially earning capital gains. Here's what you need to know about capital gains tax on HSAs:

Do I Pay Capital Gains Tax on HSA?

The good news is that capital gains earned within an HSA are tax-free as long as the money is used for qualified medical expenses. This means that if you invest the funds in your HSA and they grow over time, you won't owe capital gains tax when you withdraw them for medical costs.

Other Tax Benefits of HSAs:

  • Contributions to an HSA are tax-deductible
  • Withdrawals for medical expenses are tax-free
  • Interest or investment earnings within the HSA are tax-free
  • Unused funds can be rolled over from year to year

It's essential to keep track of your medical expenses and ensure that any withdrawals from your HSA are used for qualified medical costs to avoid any tax implications. If you withdraw funds for non-medical expenses before the age of 65, you may be subject to income tax and a 20% penalty.

In Conclusion:

Capital gains earned within an HSA are not subject to tax if used for qualified medical expenses, making HSAs a valuable tool for saving for healthcare costs. By understanding the tax benefits and rules associated with HSAs, you can make the most of this tax-advantaged account.


When considering the tax implications of your Health Savings Account (HSA), it's natural to have questions—especially about capital gains tax. HSAs are not just a means to save for medical expenses; they're also a powerful investment tool. You can grow your savings over time, and the best part? Those capital gains are tax-free if you use the funds for qualified medical expenses.

Download our FREE mobile app to get more of the following

Over 7,000+ HSA eligible items for sale.
Check on product HSA (Health Savings Account) eligibility
Get price update notifications
And more!

Did you find this page useful?

Subscribe to our Newsletter