Medical savings accounts reduce your taxable income when you contribute, but only if you meet specific requirements

A medical savings account — usually a Health Savings Account (HSA) or Flexible Spending Account (FSA) — lets you set aside pre-tax dollars for medical expenses. The money you put in lowers your taxable income for that year, which means you pay less in federal income tax. The catch is that you must be enrolled in a may have access to high-deductible health plan (for HSAs) or a health plan with an FSA, and you can only use the money for may be able to access medical costs. If you withdraw funds for non-medical reasons, you'll owe income tax on that amount plus a penalty.

The tax deduction happens automatically when you contribute through payroll. Your employer deducts the contribution before calculating your income tax withholding, so you never pay tax on that money in the first place. If you contribute outside of payroll — which is rare — you claim the deduction on your tax return using Form 8889 (for HSAs) or your employer's FSA documentation.

Key Takeaways

  • HSA and FSA contributions reduce your taxable income dollar-for-dollar, lowering your federal income tax bill for that year.
  • You must be enrolled in a may have access to high-deductible health plan to open and contribute to an HSA; FSAs require enrollment in any employer health plan that offers one.
  • Contributions made through payroll are deducted before taxes are calculated, so the tax benefit is automatic.
  • Withdrawals for non-medical expenses trigger income tax plus a 20% penalty on HSAs, or forfeiture of the money in FSAs if not spent by year-end.

How the tax deduction works for HSAs

A Health Savings Account is tied to a high-deductible health plan (HDHP). For 2024, an HDHP has a minimum deductible of $1,600 for individual coverage or $3,200 for family coverage. When you contribute to an HSA — whether through payroll or directly — that contribution is deductible from your gross income, which lowers your taxable income and your tax bill.

The annual contribution limit for 2024 is $4,150 for individual coverage or $8,300 for family coverage. If you contribute the full amount through payroll, you reduce your taxable income by that full amount. If you earn $60,000 and contribute $4,150 to an HSA, your taxable income becomes $55,850. At a 22% tax bracket, that saves you about $913 in federal income tax.

The tax benefit applies only to contributions, not to the investment earnings inside the account. However, if you use HSA funds to pay for may have access to medical expenses, those withdrawals are also tax-free — meaning you get a deduction on the way in and tax-free growth on the way out.

How the tax deduction works for FSAs

A Flexible Spending Account works similarly to an HSA: contributions are deducted from your paycheck before taxes are calculated, lowering your taxable income. However, FSAs are "use-it-or-lose-it" accounts. Money you don't spend by the end of the plan year (usually December 31) is forfeited, though some employers offer a grace period of up to 2.5 months or allow you to carry over up to $640 into the next year.

FSA contribution limits for 2024 are $3,300 per person per year. If you contribute $3,300 and spend all of it on may have access to medical expenses, you've reduced your taxable income by $3,300 and paid no tax on those medical costs. If you contribute $3,300 but only spend $2,500, you lose the remaining $800 — it doesn't roll over and you don't get a refund.

Because of the forfeiture rule, many people contribute conservatively to FSAs, estimating only the medical expenses they're confident they'll incur. This means some people don't take full advantage of the tax deduction available to them.

Contribution limits and how they affect your tax savings

The IRS sets annual contribution limits for both HSAs and FSAs, and these limits change yearly. For 2024, HSA limits are $4,150 (individual) or $8,300 (family); FSA limits are $3,300 per person. These limits represent the maximum amount you can deduct from your taxable income through these accounts in a single year.

Your actual tax savings depends on your tax bracket. Someone in the 12% federal tax bracket who contributes $4,150 to an HSA saves about $498 in federal tax. Someone in the 24% bracket saves about $996 on the same contribution. State income tax may also apply — if your state has income tax, your savings are higher.

If you're self-employed or have income outside of an employer plan, you can still open an HSA and deduct contributions on your tax return, though the process is different from payroll deduction. You'll report the deduction on Form 8889 when you file your taxes.

What happens when you withdraw money for medical versus non-medical expenses

Withdrawals from an HSA for may have access to medical expenses are tax-free. may have access to expenses include doctor visits, prescriptions, dental work, vision care, mental health treatment, and many other health-related costs. You don't report these withdrawals on your tax return, and you don't owe tax on them.

If you withdraw HSA money for a non-medical expense before age 65, you owe income tax on that amount plus a 20% penalty. For example, if you withdraw $1,000 for a non-medical expense and you're in the 22% tax bracket, you owe $220 in income tax plus $200 in penalty — a total of $420. After age 65, you can withdraw HSA money for any reason without the penalty, though you still owe income tax on non-medical withdrawals.

FSA withdrawals work differently. Money you withdraw from an FSA for may have access to medical expenses is tax-free. Money you don't spend by the end of the plan year is simply forfeited — you don't get it back, and you don't owe tax on it. There is no penalty for non-medical withdrawals from an FSA because the account is designed to be spent down each year.

Coordinating medical savings accounts with other tax deductions

If you have an HSA or FSA, you cannot deduct the same medical expense twice. For example, if you use HSA funds to pay for a dental crown, you cannot also deduct that expense on Schedule A (itemized deductions) on your tax return. The deduction happens when you contribute to the account, not when you spend the money.

This is actually an advantage: you get the tax benefit upfront through the lower contribution, and then the withdrawal is tax-free. You don't need to itemize deductions or meet any threshold to benefit from HSA and FSA contributions — the deduction is automatic and available to everyone who contributes.

If you have both an HSA and an FSA through your employer, contributions to both accounts reduce your taxable income. However, some employers don't allow employees to have both simultaneously, so check your plan documents.

Tracking contributions and reporting them on your tax return

If you contribute to an HSA or FSA through payroll, your employer handles the tax reporting. You'll see the contribution amount on your W-2 form in Box 12, coded as "W" for HSA contributions or "D" for FSA contributions. You don't need to do anything else — the deduction is already reflected in your withholding.

If you make contributions outside of payroll — which is possible for HSAs but rare — you'll report the deduction on Form 8889 when you file your tax return. Keep records of all contributions and withdrawals, especially if you withdraw money and need to prove it was for a may have access to medical expense.

The IRS can audit HSA and FSA accounts, particularly if withdrawals seem unusually high or if you claim non-medical expenses as medical. Keep receipts and documentation for all medical expenses you pay with HSA or FSA funds, even if you don't need to submit them when you withdraw the money.

Frequently Asked Questions

Can I deduct HSA contributions if I'm self-employed?

Yes. You can open an HSA as long as you're enrolled in a may have access to high-deductible health plan, regardless of employment status. You deduct contributions on Form 8889 when you file your tax return. Self-employed people can also deduct HSA contributions as an above-the-line deduction, which means you get the benefit even if you don't itemize.

What if I contribute to an FSA but don't spend all the money?

The unspent money is forfeited — you lose it. However, you still got the tax deduction on the contribution. Some employers offer a grace period (up to 2.5 months into the next year) or allow you to carry over up to $640. Check your plan documents to see what your employer offers.

Do HSA and FSA contributions reduce my Social Security and Medicare taxes?

No. HSA and FSA contributions reduce your federal income tax, but you still pay Social Security tax (6.2%) and Medicare tax (1.45%) on the full amount of your wages. The tax savings come only from the reduction in income tax.

Can I deduct medical expenses paid with an HSA on my tax return?

No. You get the tax benefit when you contribute to the HSA, not when you spend the money. Withdrawals for may have access to medical expenses are tax-free, but you cannot also deduct them as medical expenses on Schedule A.

What counts as a may have access to medical expense for HSA withdrawals?

may have access to expenses include doctor and dentist visits, prescriptions, mental health treatment, vision care, hearing aids, and many other health-related costs. Cosmetic procedures, gym memberships, and over-the-counter medications (except insulin) generally don't count. The IRS publishes a full list of may have access to expenses on Publication 969.