The HSA
A health savings account is a savings account for medical costs that you can open only alongside a high-deductible health plan. It's the only account in the tax code that skips tax on the way in, while it grows and on the way out. Used as a long-term investment rather than a checking account for the pharmacy, it can do more for a retirement plan than an IRA.
Three tax breaks
- Money goes in before tax. Through payroll, it skips federal income tax and Social Security and Medicare tax too. Paid in yourself, it's deductible from income tax whether or not you itemize.
- Whatever it earns while invested isn't taxed.
- Withdrawals for qualified medical costs are tax-free, at any age, for you, your spouse and your dependents.
Take someone single in the 22% federal bracket who puts the 2026 self-only maximum, $4,400, into an HSA through payroll. That saves $968 of federal income tax and $337 of Social Security and Medicare tax, so the $4,400 costs $3,095 of take-home pay. A traditional 401(k) contribution saves the income tax but not the payroll tax, and a Roth saves neither up front. Spent on medical bills, HSA money is never taxed at all.
| Comes out of take-home pay | Income tax saved | Social Security and Medicare tax saved | |
|---|---|---|---|
| HSA, payroll | $3,095 | $968 | $337 |
| HSA, paid in yourself | $3,432 | $968 | $0 |
| Traditional 401(k) | $3,432 | $968 | $0 |
| Roth IRA | $4,400 | $0 | $0 |
The chart also shows why payroll is the better way in. An HSA you fund from your bank account gets the income tax back at filing time, but the 7.65% of Social Security and Medicare tax has already been paid on that money and doesn't come back. If your employer offers payroll contributions, use them.
| HSA | Traditional 401(k) | Roth IRA | |
|---|---|---|---|
| Income tax going in | None | None | Paid |
| Social Security and Medicare tax going in | None, through payroll | Paid | Paid |
| Tax on growth | None | None | None |
| Withdrawals for medical costs | Tax-free | Taxed | Tax-free if qualified |
| Other withdrawals before 65 | Taxed, plus 20% | Taxed, plus 10% before 59½ | Contributions free; earnings rules apply |
| Other withdrawals from 65 | Taxed, no penalty | Taxed | Tax-free if qualified |
| Required withdrawals | None | From 73 or 75 | None for the owner |
After 65, an HSA works like a traditional IRA for anything that isn't medical, and better than one for anything that is. Most retirees have plenty of medical costs to use it on: Medicare premiums alone are $202.90 per month per person for Part B in 2026, before Part D, dental, hearing aids and everything Medicare doesn't cover.
Who can contribute
You can put money into an HSA for any month in which you're covered by a qualifying high-deductible health plan (HDHP) and nothing else that pays before the deductible. For 2026, a plan qualifies if:
| 2026 | Self-only coverage | Family coverage |
|---|---|---|
| Deductible at least | $1,700 | $3,400 |
| Out-of-pocket maximum no more than | $8,500 | $17,000 |
| HSA contribution limit | $4,400 | $8,750 |
| Extra at 55 and over, per person | $1,000 | $1,000 |
Three things commonly make people ineligible without their noticing:
- Other coverage that pays medical bills before the deductible, including a spouse's general-purpose health care FSA, which can cover your bills too. A limited-purpose FSA, for dental and vision only, is fine.
- Medicare. Once any part of Medicare covers you, contributions have to stop. More on this below.
- Being claimed as someone else's dependent, which affects some young adults on a parent's plan.
A law passed in July 2025 widened eligibility from 2026. Bronze and catastrophic plans, the kind sold on the ACA marketplace, now count as HSA-compatible even when they don't meet the usual HDHP rules. People with certain direct primary care arrangements, which charge a monthly fee for unlimited visits to a doctor, can now contribute too, as long as the fees come to no more than $150 per month for one person or $300 per month for an arrangement covering more than one. The fees themselves can be paid from the HSA. And HDHPs can cover telehealth before the deductible without disqualifying you, a rule that had been temporary and is now permanent for plan years from 2025.
How the limits work
For 2026, the limit is $4,400 with self-only coverage and $8,750 with family coverage, which means anything covering at least two people. From 55, you can add $1,000 per year. Everything counts toward the limit: your payroll contributions, your own deposits and anything your employer puts in. If your employer adds $1,000, you can add $3,400 more with self-only coverage.
The IRS sets HSA figures each spring, and the ones for 2027 are already out: $4,500 for self-only coverage and $9,000 for family coverage, with the catch-up still $1,000. A qualifying plan for 2027 needs a deductible of at least $1,750 or $3,500 and an out-of-pocket maximum of no more than $8,700 or $17,400.
Married couples with family coverage share the $8,750 and can split it however they like between their two HSAs. The $1,000 catch-up is different: it's personal, so a spouse who is 55 or older needs an HSA in their own name to use it. A couple both over 55 with family coverage can put in $10,750 in total.
If you're only eligible for part of the year, the limit is normally prorated by month, counting each month in which you were eligible on the first day. Eight months of self-only coverage in 2026 allows eight-twelfths of $4,400, or $2,933. There's an exception, the last-month rule: if you're eligible on December 1, you can contribute the full year's amount, but you then have to stay eligible through the end of the following year. If you don't, the extra is added to your income with a 10% penalty. Like an IRA, an HSA takes contributions for each year until the tax filing deadline, April 15, 2027 for 2026.
Anything over your limit is an excess contribution. It isn't deductible, and it's charged a 6% tax for every year it stays in the account. You avoid the 6% by taking the excess out, along with whatever it earned, before your tax return is due.
Investing it, and paying yourself back later
Most HSAs start out as a savings account with a debit card. Many providers require a cash balance, often $1,000 or $2,000, before you can invest the rest in mutual funds. Left in cash, an HSA is a decent tax break on this year's medical bills. Invested, it's a retirement account.
What makes this work is that there's no deadline for reimbursing yourself. Any qualified medical cost you pay after the HSA was opened can be paid back from it, tax-free, years or decades later, as long as you kept the receipt and didn't deduct the cost elsewhere. So if you can afford to pay medical bills from your regular budget, you can leave the HSA invested, save every receipt, and treat the receipts as tax-free money you can draw on at any time.
| Years | Bills paid from the pocket, receipts saved | Same, after cashing in every receipt | Bills paid from the HSA as they come |
|---|---|---|---|
| 0 | $0 | $0 | $0 |
| 5 | $48,349 | $33,349 | $31,772 |
| 10 | $110,057 | $80,057 | $72,323 |
| 15 | $188,812 | $143,812 | $124,077 |
| 20 | $289,327 | $229,327 | $190,129 |
After twenty years, the family that paid its own bills has $289,327 in the HSA and $60,000 of receipts. Even after reimbursing every one of them, it has $39,198 more than the family that paid bills from the HSA as they came. That difference is twenty years of tax-free growth on the money that would otherwise have gone straight out. The cost is paying the bills from money that would otherwise have been saved somewhere else, so this only works if your budget can carry it.
Keep the records somewhere you'll still have them in twenty years: a scanned copy of each receipt or explanation of benefits in a folder, named by date. If the IRS ever asks, you need to show the expense was qualified, wasn't reimbursed by insurance and wasn't deducted.
HSA providers differ a lot in fees and fund choices. You don't have to keep the one your employer chose: you can move money to an HSA at a different provider by direct transfer, and many people move the balance once each year while still contributing through work.
Medicare ends contributions
Once you're enrolled in any part of Medicare, you can't contribute to an HSA, though you can keep spending what's there. Two details trip people up.
First, if you apply for Social Security at 65 or older, you're enrolled in Medicare Part A automatically, and you can't turn Part A down while you collect Social Security. So working past 65 with an HSA means delaying Social Security as well.
Second, when you sign up for premium-free Part A after 65, coverage is usually backdated up to six months, though not to before the month you turned 65. Any HSA contributions for those backdated months become excess contributions, with the 6% yearly tax described above until they're taken out. Medicare's own advice, if you're working past 65 with an HSA, is to stop contributing six months before you retire or apply for Medicare or Social Security. In the year you enroll, the limit is prorated for the months before Medicare started.
Say Sam, 67 and still working with self-only HDHP coverage, applies for Medicare in October 2026. Part A is backdated six months, to April 1. Sam was eligible for only January, February and March, so the 2026 limit is three-twelfths of $5,400 (the $4,400 limit plus the $1,000 catch-up), or $1,350. Anything Sam or the employer put in beyond that has to come back out.
Someone covered by an HDHP through current work can keep contributing past 65 by delaying both. At an employer with fewer than 20 employees, check first, since Medicare may be required to pay first there. Medicare covers the enrollment windows and the penalties for joining late.
Spending it in retirement
From 65, HSA money can come out for anything. Non-medical withdrawals are taxed as income, like a traditional IRA, with no penalty. Medical withdrawals stay tax-free, and qualified costs include several big ones for retirees:
- Medicare Part B and Part D premiums, and Medicare Advantage premiums. Medigap premiums don't count.
- Long-term care insurance premiums, up to a yearly limit that rises with age: for 2026, $1,860 per person at ages 51–60, $4,960 at 61–70 and $6,200 over 70.
- Dental, vision and hearing costs that Medicare doesn't cover, and copays and deductibles.
- Old receipts, from any year since the HSA was opened.
Before 65, a withdrawal for anything that isn't a qualified medical cost is taxed and charged an extra 20%, double the penalty on an early IRA withdrawal.
What happens to it when you die
A spouse named as beneficiary simply takes it over as their own HSA, with all the same tax breaks. Anyone else gets the full balance as taxable income in the year of death, all at once, with no ten-year spreading as an inherited IRA would have. The only relief is that an heir can subtract any of your medical bills they pay within a year of the death. For that reason, many people plan to spend an HSA during retirement, on Medicare premiums and other costs, and leave Roth money to children instead.
State taxes
Almost every state follows the federal treatment. California and New Jersey don't: they tax HSA contributions as income and tax the earnings as they're made, so in those states the HSA's advantage is federal only. State taxes covers how states treat retirement savings more generally.
Seeing it in your own plan
The Budget tool's Paycheck tab has an HSA line, ranked second by default, just after the 401(k) match. Choose your coverage, self-only or family, and it caps the line at the 2026 limit and takes it out before both income tax and Social Security and Medicare tax, so you can see how little of each dollar comes out of take-home pay. With two incomes, it splits the HSA evenly, unless only one of you earns under the Social Security wage cap; then it comes out of that pay first, where it also saves Social Security tax.
Income Tax shows the payroll tax effect exactly. Split your pre-tax deductions by kind and enter the HSA separately from the 401(k): the HSA comes off Social Security and Medicare tax as well, which a lump-sum entry would miss.
Common questions
How is an HSA different from an FSA?
A flexible spending account is also pre-tax, but it belongs to your employer's plan, has a lower limit ($3,400 for 2026) and is mostly use-it-or-lose-it: a plan can let you carry at most $680 into the next year. An HSA is yours, moves with you between jobs and carries over forever.
Is a high-deductible plan worth it just for the HSA?
Compare the two plans in full: premiums, deductible, out-of-pocket maximum and any employer HSA contribution. For people who are usually healthy, the lower premium plus the tax break often wins; for someone with large predictable costs, a low-deductible plan can cost less overall. Count the HSA as one part of that comparison.
Can I pay for my children's or spouse's care from my HSA?
Yes, for your spouse and tax dependents, even if they aren't on your health plan.
What if I switch to a plan that isn't an HDHP?
You stop contributing, but the account stays yours. You can keep it invested and spend it on qualified costs at any time.
In short
- An HSA skips tax going in, while growing and coming out for medical costs, and through payroll it skips Social Security and Medicare tax too.
- For 2026: $4,400 self-only, $8,750 family, plus $1,000 from 55, with a qualifying high-deductible plan.
- If you can pay bills from your budget, invest the HSA and save receipts to reimburse yourself later.
- Contributions stop when Medicare starts, which can be backdated six months.
- After 65 it can pay for anything, taxed like an IRA when it isn't medical; spend it rather than leave it to non-spouse heirs.
Lessons explain how things work. They aren’t personal financial, tax or legal advice.