A health savings account works like a three-part system: money goes in tax-free, you spend it on medical costs without paying tax, and anything left over rolls to next year and grows

Your HSA is a bank account that holds money specifically for medical expenses. Unlike a flexible spending account (FSA), which forces you to spend the balance by the end of the year or lose it, an HSA keeps whatever you don't use. The money you put in reduces your taxable income. When you withdraw it to pay for a doctor visit, prescription, or medical equipment, you pay no tax on that withdrawal. If you don't touch the money, it sits there earning interest or investment returns, depending on how your account is set up.

The catch is that you can only use an HSA if you're enrolled in a high-deductible health plan (HDHP) through your employer or the individual market. Once you have one, the account itself is yours to keep—if you change jobs or leave your HDHP, the money stays with you.

Key Takeaways

  • Money in your HSA is yours permanently and rolls over each year, unlike FSA funds that expire.
  • You can withdraw money for may have access to medical expenses—doctor visits, prescriptions, dental work, vision care, and medical equipment—without paying income tax on the withdrawal.
  • You access your HSA through a debit card, check, or reimbursement request, depending on which bank or custodian holds your account.
  • After age 65, you can withdraw money for any reason without penalty, though non-medical withdrawals are taxed as income.
  • Keeping receipts and records of medical expenses is your responsibility; the IRS can audit HSA withdrawals years later.

How money moves in and out of your HSA

If your employer offers an HSA, contributions usually come straight from your paycheck before taxes are calculated. You decide how much to contribute each year, up to a limit set by the IRS (the limit changes annually and depends on whether you have individual or family coverage). If you're self-employed or your employer doesn't offer an HSA, you can open one at a bank or through a custodian and contribute on your own, then deduct those contributions on your tax return.

To spend the money, most HSA providers give you a debit card that works like any other bank card at pharmacies, doctor offices, and hospitals. Some accounts let you write checks. Others require you to pay out of pocket and then submit a reimbursement request with receipts. The method depends on your specific account provider—check your account documents or call the customer service number on your card to confirm how yours works.

When you withdraw money for a may have access to medical expense, no tax comes out. The IRS defines may have access to expenses narrowly: they include doctor visits, hospital stays, prescriptions, dental work, vision care, hearing aids, crutches, wheelchairs, and some medical equipment. They do not include cosmetic procedures, most over-the-counter medications (unless prescribed), gym memberships, or vitamins. If you're unsure whether something qualifies, the IRS publishes a full list on its website, or you can ask your HSA provider.

What happens if you spend the money on something that isn't medical

If you withdraw money from your HSA for a non-may have access to expense before age 65, you owe income tax on that withdrawal plus a 20 percent penalty. So if you take out $500 for something that doesn't count as medical, you'd owe the income tax on $500 plus $100 in penalties. That makes it an expensive mistake, which is why tracking what you spend matters.

After you turn 65, the penalty goes away. You can withdraw money for any reason without the 20 percent penalty, though you still owe income tax on non-medical withdrawals. At that point, your HSA functions like a traditional IRA—useful for covering medical costs in retirement, but also available as a general savings account if you need it.

Keeping records and proving your expenses

The IRS doesn't require you to submit receipts when you withdraw money from your HSA. But the IRS can audit your account years later and ask you to prove that the money you withdrew was actually spent on may have access to medical expenses. If you can't produce receipts or documentation, the IRS will treat that withdrawal as non-may have access to, and you'll owe back taxes plus penalties.

Keep receipts and medical bills for at least three years after you withdraw the money, though seven years is safer. Store them digitally if possible—a photo of the receipt or a PDF of a medical bill works. Some HSA providers let you upload receipts directly into your account. If your provider doesn't, keep them in a folder or spreadsheet with the date, amount, provider name, and what the expense was for.

One common trap: if you use your HSA debit card at a pharmacy or doctor's office, the transaction alone doesn't prove what you bought. A pharmacy receipt might show you paid $45 but not whether it was for a prescription or shampoo. Keep the itemized receipt that shows what you purchased, not just the total.

Investment options and how your money can grow

Many HSA providers let you invest your balance in mutual funds, stocks, or bonds, similar to a 401(k). This is optional—you can leave your money in a cash account earning minimal interest if you prefer. But if you're young and don't plan to use the money soon, investing can let it grow over decades.

The tax advantage applies whether your money sits in cash or grows through investments. Any gains are tax-free as long as you eventually use the money for medical expenses. Some people use their HSA as a retirement savings tool specifically because of this: they contribute the maximum each year, invest it aggressively, and plan to use it for medical costs in retirement.

If you do invest, check what fees your provider charges. Some HSA custodians charge monthly maintenance fees, investment management fees, or transaction fees. These eat into your returns, so compare providers if you're planning to invest a large balance.

What to do when you change jobs or leave your HDHP

Your HSA belongs to you, not your employer. When you leave a job, the account stays open and the money stays in it. You keep the debit card or can request checks. You can continue to use the money for medical expenses for the rest of your life.

If you switch to a health plan that isn't a high-deductible plan, you can no longer contribute new money to your HSA. But you can still withdraw money from the existing balance for medical expenses. Once you enroll in another HDHP—whether through a new employer or the individual market—you can start contributing again.

If you want to move your HSA to a different bank or custodian, you can do a trustee-to-trustee transfer, which moves the money without triggering taxes or penalties. This is useful if your current provider charges high fees or doesn't offer investment options you want. The process typically takes one to two weeks.

Common mistakes and how to avoid them

The biggest mistake is treating your HSA like a general savings account and withdrawing money for non-medical expenses without realizing the penalty. The second is not keeping receipts and then being unable to prove your expenses if audited. The third is not knowing that you can carry the balance forward—some people think they have to spend it all by year-end like an FSA, so they rush to spend money unnecessarily.

Another trap: if you have both an HSA and an FSA through your employer, you can't use both in the same year. If your employer offers both, you have to choose one. An HSA is usually the better choice because the money rolls over, but read your employer's plan documents to see what each one covers.

Finally, don't assume your HSA provider will catch a non-may have access to withdrawal. The provider processes the transaction, but the IRS is the one who audits. You're responsible for knowing what counts as may have access to and keeping the proof.

Frequently Asked Questions

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

Yes, as long as your spouse is a dependent on your tax return. You can also use it for any dependent's medical expenses, including children and parents. The money doesn't have to be spent on the account holder—it just has to be for someone you claim as a dependent.

What if I withdraw money and later find out it wasn't a may have access to expense?

You can put the money back into your HSA within a certain timeframe, though the rules are complex and depend on your specific situation. The safest approach is to verify that an expense qualifies before you withdraw, not after. If you're unsure, contact your HSA provider or check the IRS list of may have access to expenses.

Can I use my HSA to pay for health insurance premiums?

You can use it to pay for COBRA premiums (continuation coverage after leaving a job) and long-term care insurance premiums. You cannot use it for regular health insurance premiums, including marketplace plans, unless you're receiving unemployment benefits. Medicare premiums are also not covered.

What happens to my HSA if I die?

The account becomes part of your estate. If your spouse is the beneficiary, they can continue using it as their own HSA. If a non-spouse inherits it, they owe income tax on the full balance, though they can still use it for the deceased person's medical expenses without the 20 percent penalty.

Do I have to use my HSA debit card, or can I pay out of pocket and reimburse myself later?

You can do either. Some people pay medical expenses out of pocket and reimburse themselves from their HSA months or even years later. This is legal as long as you keep receipts and the expense was incurred while you had an active HSA. It's a way to let your HSA balance grow longer before withdrawing.