Guides

How a health savings account (HSA) works: limits and tax benefits

An HSA pairs with a qualifying high-deductible plan. Contributions, growth and qualified withdrawals can all be tax-free, and the balance stays yours for life.

A health savings account (HSA) is a personal account for medical costs that you can open only while you are covered by a qualifying high-deductible health plan. Money goes in before income tax (or is deducted when you file), can be invested and grow without tax, and comes out tax-free when spent on qualified medical expenses. The balance never expires, belongs to you if you change jobs or plans, and can be used in retirement. For 2026 you can contribute up to $4,400 for self-only coverage or $8,750 for family coverage, and for 2027, $4,500 or $9,000.

Who can contribute

You can contribute for any month in which, on the first day, you meet all of these conditions:

  • You are covered by an HDHP that meets the IRS definition.
  • You have no other health coverage that is not high-deductible, such as a general-purpose health FSA (yours or your spouse's).
  • You are not enrolled in Medicare.
  • You cannot be claimed as someone else's dependent on their tax return.

For 2026 a qualifying plan has a deductible of at least $1,700 (self-only) or $3,400 (family) and an out-of-pocket maximum of no more than $8,500 or $17,000. The 2027 figures are $1,750 and $3,500, and $8,700 and $17,400 (IRS Rev. Proc. 2025-19 and 2026-24). Bronze and catastrophic marketplace plans are treated as HSA-compatible for months beginning after December 31, 2025, under a 2025 law and IRS Notice 2026-5; ask the insurer whether your plan qualifies. A direct primary care arrangement of up to $150 a month ($300 for more than one person) no longer disqualifies you for those months, and the telehealth first-dollar-coverage exception is permanent.

The limits

The yearly limit covers everything that goes in, including employer contributions:

Year Self-only Family Age 55+ catch-up
2026 $4,400 $8,750 $1,000
2027 $4,500 $9,000 $1,000

If you are covered by a family plan, the family limit applies to the household, and each spouse who is 55 or older can make a separate $1,000 catch-up into their own account. If you are eligible for only part of the year, the limit is generally prorated by month, with a special "last-month rule" that carries conditions; IRS Publication 969 explains both. Contributing more than the limit triggers a 6% excise tax for each year the excess stays in the account unless you withdraw it. You have until the tax filing deadline, generally April 15, to contribute for the prior year.

The triple tax advantage

  1. Contributions are pre-tax. Payroll contributions skip federal income tax and usually Social Security and Medicare payroll taxes. Contributions you make yourself are deducted on your return.
  2. Growth is tax-free. Interest, dividends and gains inside the account are not taxed. Many HSA custodians let you invest the balance beyond a minimum cash amount.
  3. Qualified withdrawals are tax-free. Spending on qualified medical expenses is not taxed, including deductibles, copays, prescriptions, dental and vision care, and some Medicare premiums.

A few states do not follow the federal treatment, so check your state's rules or ask a tax professional.

A worked example

Here is a labeled hypothetical. Say you are 45, have self-only coverage and your 2027 contribution is the $4,500 limit, with a 22% marginal federal income tax rate.

  • Federal income tax avoided: $4,500 x 22% = $990.
  • You spend $1,000 on a deductible and prescriptions during the year, tax-free.
  • $3,500 stays in the account for later years.

Now say you withdraw $500 for something that is not a qualified expense. The withdrawal is added to taxable income and, because you are under 65, usually carries an additional 20% tax: $500 x 22% = $110 plus $500 x 20% = $100, or $210. After age 65, non-medical withdrawals are taxed as income but without the 20% add-on. The HSA contribution and tax savings calculator lets you test your own figures.

Using and keeping the money

You do not have to spend the balance in the year you contribute, and you can reimburse yourself years later for an expense paid out of pocket, as long as the expense occurred after the HSA was opened and you keep records. That feature is why some people pay current bills from cash and let the account grow. Keep receipts, since the IRS expects you to show a withdrawal was qualified.

HSAs belong to you, not to the employer or the insurer. You can move the account to a different custodian, and if you leave a job you keep it, though you can only add money while you have a qualifying plan. Fees and investment options vary by custodian, so compare them. The account cannot be used to pay most health insurance premiums, with exceptions such as COBRA, qualified long-term care premiums, and some Medicare premiums.

Common mistakes

  • Assuming every high-deductible plan qualifies. The plan must meet the IRS deductible and out-of-pocket rules, and some plans cover things before the deductible in ways that disqualify you.
  • Forgetting employer money counts toward the limit. If your employer deposits $1,000, your own room under the limit shrinks by $1,000.
  • Keeping a spouse's general-purpose FSA. If it can reimburse your expenses, it can disqualify you.
  • Contributing after Medicare starts. Enrollment in Medicare ends eligibility, and Part A can be backdated.
  • Skipping the tax form. Contributions and withdrawals are reported on IRS Form 8889 with your return, and custodians send year-end forms to help.
  • Losing receipts. Without them, a later tax-free reimbursement can be hard to prove.

Weighing the trade-offs

Supporters say an HSA rewards people who spend carefully and lets healthier households build a reserve. Critics note that the required high-deductible plan can lead some people to delay care and that the tax benefit is larger for people in higher tax brackets who can afford to leave the money invested. Compare the total yearly cost of the plan and the account together; High-deductible health plans (HDHPs) explained: pros and cons covers the plan side, and FSA vs HSA: the differences in eligibility, limits and rollover compares the two accounts.

If you are close to 65, plan for the end of contributions: HSAs and Medicare: when you must stop contributing.

Key takeaways

  • You need a qualifying high-deductible plan, no disqualifying other coverage and no Medicare enrollment to contribute.
  • Limits for 2026 are $4,400 / $8,750 and for 2027 $4,500 / $9,000, plus $1,000 at age 55 and over.
  • Money goes in pre-tax, grows tax-free and comes out tax-free for qualified medical expenses.
  • Non-qualified withdrawals are taxed, plus a 20% additional tax before age 65.
  • The balance rolls over forever and stays with you; a tax professional can answer questions about your own return.

Terms used in this guide

Related tools

Latest on this topic