Skip to main content

How a Health Savings Account Works: Contributions, Spending, and Tax Benefits

How an HSA account works

A Health Savings Account is a tax-advantaged savings account paired with a high-deductible health plan. You contribute pre-tax dollars (or get a tax deduction if you contribute after-tax), use the money to pay may have access to medical expenses, and any balance you don't spend rolls over to the next year. The account earns interest or investment returns, and withdrawals for medical costs are tax-free — making it the only account where contributions, growth, and withdrawals can all avoid federal income tax.

The mechanics are straightforward: you open an HSA through a bank, credit union, or insurance company; contribute money up to an annual limit; and then spend from it like a debit account when you have medical bills. You're not required to spend the money each year. Unlike a Flexible Spending Account (FSA), which has a "use it or lose it" rule, an HSA balance persists indefinitely and can grow like an investment account.

Key Takeaways

  • You can only open an HSA if you're enrolled in a high-deductible health plan (HDHP); having other health coverage usually disqualifies you.
  • Contributions reduce your taxable income whether you contribute through payroll or directly to the account, and the money grows tax-free.
  • You can withdraw funds tax-free only for may have access to medical expenses: deductibles, copays, prescriptions, dental, vision, and many other costs, but not insurance premiums or cosmetic procedures.
  • After age 65, you can withdraw money for any reason without penalty, though non-medical withdrawals are taxed as ordinary income.
  • Unused HSA money stays in the account indefinitely and can be invested to grow over decades, making it a long-term retirement savings tool.

Who can open and contribute to an HSA

You must be enrolled in a high-deductible health plan to open an HSA. The IRS sets the minimum deductible each year — for 2024, that's $1,600 for individual coverage and $3,200 for family coverage. Your plan cannot offer other first-dollar coverage (meaning it can't pay for routine care before you meet the deductible), though preventive care like vaccines and screenings are exempt from this rule.

You also cannot be claimed as a dependent on someone else's tax return, cannot be enrolled in Medicare, and cannot have other health coverage like a spouse's plan or military coverage. Some people have both an HSA and an FSA, but only if the FSA is a limited-purpose FSA that covers dental and vision only.

Contribution limits change annually. For 2024, you can contribute up to $4,150 for self-only coverage or $8,300 for family coverage. If you're 55 or older, you can add an extra $1,000 per year as a catch-up contribution. These limits are set by the IRS and typically increase slightly each year to account for inflation.

How contributions work and reduce your taxes

You can contribute to an HSA in three ways: through payroll deduction (if your employer offers it), by depositing money directly into the account, or through a combination of both. Payroll contributions are taken out before income tax is calculated, so they reduce both your federal income tax and your Social Security and Medicare taxes. Direct contributions to the account are deducted on your tax return (Form 8889), giving you the same tax benefit at tax time.

The tax savings are real and substantial. If you contribute $3,000 and you're in the 22% federal tax bracket, you save $660 in federal taxes alone. Add state income tax (which varies by state) and payroll taxes, and the total savings can exceed 30% of your contribution in some cases. This is why an HSA is often called a "triple tax advantage" account: contributions are tax-deductible, growth is tax-free, and withdrawals for medical expenses are tax-free.

If you contribute more than the annual limit, the excess is subject to a 6% excise tax each year it remains in the account. If you lose HSA may be able to access (for example, by switching to a non-HDHP or enrolling in Medicare), you can no longer contribute, but the money already in the account stays there and continues to grow tax-free as long as you use it for may have access to medical expenses.

What you can spend HSA money on

may have access to medical expenses are broadly defined by the IRS and include deductibles, copays, coinsurance, and out-of-pocket costs for doctor visits, hospital stays, surgery, and emergency care. Prescription medications and over-the-counter drugs (with a prescription from your doctor) are covered. Dental work, vision care, hearing aids, and mental health treatment all count. Physical therapy, chiropractic care, acupuncture, and many alternative treatments are also covered if they treat a specific medical condition.

Some expenses that surprise people: you can use HSA funds to pay for long-term care insurance premiums (up to an IRS limit), COBRA continuation coverage, and health insurance premiums while you're receiving unemployment benefits. You cannot use HSA money to pay regular health insurance premiums, life insurance, disability insurance, or cosmetic procedures (unless they're medically necessary, like reconstructive surgery after an accident).

The IRS publishes a detailed list of may have access to expenses on its website, and your HSA provider usually has a searchable database. When in doubt, you can ask your provider or consult a tax professional. Spending money on non-may have access to expenses triggers a 20% penalty plus income tax on the amount withdrawn, so it's worth verifying before you spend.

How to use your HSA and track spending

Most HSAs come with a debit card that works like a regular bank card at pharmacies, doctor's offices, and hospitals. Some accounts also offer online bill pay or direct transfers. When you use the card at a may have access to provider, the transaction is usually flagged as medical and doesn't require documentation at the time of purchase. However, you are responsible for keeping receipts and records in case the IRS audits your account.

You don't have to spend the money immediately. Many people use their HSA as a long-term savings account, paying medical expenses out of pocket and letting the HSA balance grow. This strategy maximizes the tax-free growth potential. You can reimburse yourself for past medical expenses at any point in the future, as long as you have documentation of the original expense and you didn't already deduct it on your taxes.

Your HSA provider sends you an annual statement showing contributions, withdrawals, and the account balance. You'll also receive tax documents (Form 5498-SA) showing contributions and Form 1099-SA showing distributions. Keep these records along with your receipts for at least three years in case of an audit.

Investment options and long-term growth

Many HSA providers allow you to invest your balance in mutual funds, stocks, or other securities, similar to a brokerage account. This is where the long-term wealth-building potential emerges. If you have a high deductible and don't need to spend your HSA money each year, you can invest the balance and let it grow for decades. Withdrawals for medical expenses remain tax-free, even if the money has grown significantly through investment returns.

Not all HSA providers offer investment options — some only allow you to hold cash in a savings account earning minimal interest. If investment options matter to you, compare providers before opening an account. The investment choices, fees, and account minimums vary widely. Some employers' HSA plans are limited to a single provider, while others let you choose from several options.

This investment feature makes an HSA particularly valuable for younger people or those with good health who don't anticipate major medical expenses. Over 20 or 30 years, even modest annual contributions can grow to a substantial sum, creating a tax-free medical fund for retirement or a legacy for heirs.

What happens to your HSA after age 65 or if you lose may be able to access

Once you turn 65, you can withdraw money from your HSA for any reason without the 20% penalty that applies to non-medical withdrawals before age 65. However, non-medical withdrawals are still subject to ordinary income tax. This makes an HSA function like a traditional IRA after 65 — you pay tax on the money, but not the penalty. Medical withdrawals remain tax-free at any age.

If you lose HSA may be able to access (by switching to a non-HDHP, enrolling in Medicare, or being claimed as a dependent), you can no longer contribute, but the money in the account is yours to keep. You can continue to withdraw it tax-free for may have access to medical expenses indefinitely. If you withdraw for non-medical reasons before age 65, you owe income tax plus a 20% penalty on the amount withdrawn.

If you die, your HSA passes to your beneficiary. If the beneficiary is your spouse, they can treat it as their own HSA. If the beneficiary is anyone else, they must pay income tax on the full balance, though medical expenses of the deceased can be paid tax-free within a limited time frame.

HSA vs. FSA: key differences

An FSA is a separate account that also holds pre-tax dollars for medical expenses, but it operates under different rules. FSAs have a "use it or lose it" rule: money not spent by the end of the plan year is forfeited (though employers can allow a $610 carryover for 2024). HSAs have no spending deadline — your balance rolls over indefinitely.

FSAs don't require enrollment in a high-deductible plan, so they're available to more people. However, FSAs don't offer investment options and don't function as long-term savings accounts. An FSA is best for people who have predictable annual medical expenses and want to set aside money specifically for that year. An HSA is better for long-term savings and for people who want flexibility in when they spend the money.

Some employers offer both: an HSA paired with an HDHP, and an FSA for employees on other plans. If you have access to both, an HSA is generally the better choice because of the rollover feature and investment potential, but an FSA can be useful if you have high predictable expenses in a single year.

Frequently Asked Questions

Can I use my HSA to pay my health insurance premium?

No, you cannot use HSA funds to pay your regular monthly health insurance premium. You can use HSA money to pay COBRA premiums, health insurance premiums while you're receiving unemployment benefits, and long-term care insurance premiums (up to an IRS limit). Medicare premiums are also allowed after you turn 65.

What happens if I withdraw money for something that's not a may have access to medical expense?

You'll owe income tax on the amount withdrawn, plus a 20% penalty. For example, if you withdraw $500 for a non-may have access to expense and you're in the 22% tax bracket, you'd owe $110 in income tax plus $100 in penalties, totaling $210. After age 65, the penalty goes away, but you still owe income tax on non-medical withdrawals.

Can I open an HSA if my employer doesn't offer one?

Yes. You can open an individual HSA through a bank, credit union, or insurance company as long as you're enrolled in a high-deductible health plan. You won't get the payroll deduction benefit, but you can deduct your contributions on your tax return (Form 8889) and still receive the full tax advantage.

Do I have to spend my HSA money every year?

No. Unlike an FSA, an HSA has no spending requirement. You can let the balance grow year after year and spend it whenever you need to. Many people use their HSA as a long-term investment account and pay medical expenses out of pocket to maximize tax-free growth.

Can I invest my HSA balance?

Many HSA providers offer investment options, but not all. Check with your provider to see what's available. If investment options are important to you, compare providers before opening an account. Some employers' plans limit you to a single provider, while others let you choose.