The HSA: The Best Tax Shelter in the Code
A Health Savings Account is the only account in the US tax code where money can go in untaxed, grow untaxed, and come out untaxed. Used well, it is not a medical checking account at all. It is a stealth retirement account that most people spend down decades too early.
The triple tax advantage
Every other tax-advantaged account in the United States makes you pick a side. A traditional 401(k) or IRA gives you a deduction now and taxes the withdrawal later. A Roth account taxes the contribution now and lets the withdrawal out free. You get one break, not two.
The Health Savings Account gives you three:
- Contributions go in pre-tax. They reduce your taxable income, exactly like a traditional 401(k) contribution.
- Growth is untaxed. Interest, dividends, and capital gains inside the account are never taxed, exactly like any retirement account.
- Qualified withdrawals come out untaxed. Spend on qualified medical expenses at any age and the money is federally tax free, exactly like a Roth.
There is a fourth break that gets less attention and is worth real money: contributions made through your employer's payroll system also escape FICA taxes, the 7.65% you pay for Social Security and Medicare. No other account does this. A 401(k) contribution still gets hit for FICA. An HSA payroll contribution does not.
The catch is that eligibility is narrow and tied to a specific kind of health insurance, so this is not an account everyone can use. Whether an HSA-eligible plan is right for your family depends on your expected medical spending, your cash cushion, and your employer's plan menu. This guide is education, not individualized financial or medical advice.
Who can contribute: the HDHP rules
To contribute to an HSA you must be covered by a qualifying high deductible health plan (HDHP) and have essentially no other disqualifying coverage. The IRS sets the thresholds each year. For 2026, a plan qualifies if it has:
| Self-only coverage | Family coverage | |
|---|---|---|
| Minimum annual deductible | at least $1,700 | at least $3,400 |
| Maximum out-of-pocket cap | no more than $8,500 | no more than $17,000 |
Important: not every plan with a big deductible is HSA-qualified. The plan must be designated as HDHP-compatible by the insurer, which mostly means it cannot pay for services other than preventive care before the deductible is met. Your benefits paperwork will say plainly whether the plan is "HSA eligible." If it does not say so, assume it is not.
Things that disqualify you from contributing:
- Being covered by any non-HDHP health plan, including a spouse's plan that covers you.
- Being enrolled in any part of Medicare, including Part A alone.
- Being claimed as a dependent on someone else's tax return.
- Having a general purpose health FSA (yours or a spouse's) that can reimburse your expenses. A "limited purpose" FSA covering only dental and vision is fine.
Note the asymmetry that trips people up: these rules govern contributing. Once money is in an HSA, it is yours forever. You can lose eligibility, stop contributing, and still invest and spend the existing balance tax free for the rest of your life. Losing eligibility never costs you the account.
Contribution limits and the payroll trick
For 2026 the limits are:
| Coverage type | Annual limit | Catch-up (age 55+) |
|---|---|---|
| Self-only | $4,400 | plus $1,000 |
| Family | $8,750 | plus $1,000 per eligible spouse |
Employer contributions count against the limit. If your employer seeds $1,000 into your family HSA, you can add $7,750, not the full $8,750.
The age 55 catch-up is per person, not per account. A married couple both over 55 on a family plan can add $2,000 of catch-up, but each $1,000 must go into that person's own HSA. HSAs are individual accounts. There is no joint HSA, ever, no matter how joint your finances are. Couples in this situation need two accounts open.
Two special rules worth knowing:
The last-month rule. If you are HSA-eligible on December 1 of a year, the IRS lets you contribute the full annual limit for that year even if you were only eligible for part of it. The price is a testing period: you must remain eligible through the end of the following calendar year, or the excess gets pulled back into income plus a 10% penalty. Useful when you switch to an HDHP mid-year and expect to stay on it.
The once-per-lifetime IRA transfer. You may make one qualified funding distribution from an IRA to an HSA in your lifetime, up to that year's contribution limit. It counts against the limit rather than adding to it, so it is a way to move already-taxed-later IRA money into a never-taxed account. It is rarely the highest-value move, but it exists.
Deadline: HSA contributions for a tax year can be made until the tax filing deadline of the following April, the same as an IRA. If you realize in March that you underfunded last year, you can usually still fix it.
Why an HSA beats a 401(k) and a Roth IRA
Compare a single dollar of income routed three ways, assuming a 24% marginal federal bracket, 7.65% FICA, 30 years of growth at 7% per year (a factor of 7.61), and a 22% bracket in retirement.
| Traditional 401(k) | Roth IRA | HSA (spent on medical) | |
|---|---|---|---|
| Pre-tax dollars committed | $1.00 | $1.00 | $1.00 |
| Income tax on the way in | none | $0.24 | none |
| FICA on the way in | $0.0765 | $0.0765 | none |
| Amount actually invested | $0.9235 | $0.6835 | $1.00 |
| Value after 30 years | $7.03 | $5.20 | $7.61 |
| Tax on withdrawal | 22% | none | none |
| Spendable at the end | $5.48 | $5.20 | $7.61 |
The HSA delivers roughly 39% more spendable money than the traditional 401(k) and 46% more than the Roth on the same starting dollar. It wins on both ends at once, and it skips FICA on top.
The obvious objection: the HSA only wins if the money is spent on qualified medical expenses. Two responses. First, medical spending in retirement is not a hypothetical. Long-run estimates from health cost researchers put lifetime out-of-pocket medical costs for a retired couple, excluding long-term care, in the mid six figures. Almost nobody escapes this. Second, even in the worst case where you never have a qualified expense, after 65 the HSA simply behaves like a traditional IRA (taxable withdrawal, no penalty), which is the same outcome as the 401(k) column above, except you already banked the FICA savings. The downside case ties the 401(k). The upside case crushes it.
This is why the conventional savings order for most people with access to an HSA runs: capture the full employer 401(k) match first (that is an instant 50% or 100% return), then max the HSA, then continue with the 401(k) and IRA. The match beats everything; the HSA beats everything else.
The receipts strategy
Here is the maneuver that turns an HSA from a medical account into a retirement account.
The tax code puts no deadline on reimbursing yourself. If you incur a qualified medical expense today, pay it out of pocket, and keep the receipt, you may reimburse yourself from your HSA in five years, or twenty, or forty. The only requirements are that the expense was incurred after the HSA was established, and that it was never reimbursed by insurance or deducted on your tax return.
So the strategy is:
- Contribute the maximum every year.
- Invest the entire balance in low-cost index funds. Do not spend it.
- Pay current medical bills out of your regular cash flow.
- Scan every receipt and every explanation of benefits into a dedicated folder, with a running spreadsheet of date, provider, amount, and file name.
- Let the HSA compound untouched for decades.
- In retirement, reimburse yourself tax free for that entire accumulated stack of receipts, whenever you want the cash, for any purpose.
The receipts become a permanent, growing, tax-free withdrawal authorization. A $2,000 medical bill you paid at 35 is a $2,000 tax-free withdrawal you can take at 70, and in the meantime that $2,000 stayed invested and grew inside the shelter instead of leaving it.
On record keeping: keep the documentation in at least two places, one of them off your local machine, and keep it as long as you intend to hold the claim, which may be forty years. Cheap cloud storage plus a spreadsheet index is enough. Keep the annual Form 5498-SA and 1099-SA statements too. If the IRS ever questions a distribution, the burden of proof is yours, and a shoebox that burned in 2031 will not help.
What counts as qualified is broader than most people assume: deductibles, copays, coinsurance, prescriptions, dental, vision and eyeglasses, orthodontia, mental health care, physical therapy, chiropractic, most medical equipment, over-the-counter drugs and menstrual products, and travel to and from care at the IRS mileage rate. Insurance premiums generally do not count, with narrow exceptions covered below. Cosmetic procedures and general wellness spending do not count. IRS Publication 502 is the authoritative list and is worth a read once.
Investing the balance
The single biggest failure in HSA practice is that most balances sit in cash. Industry data has consistently shown that only a small minority of HSA holders invest any of their balance, which means the majority of this extraordinary tax shelter is earning money market rates. A tax shelter over cash is nearly worthless: there is little growth to shelter.
Practical steps:
- Check the investment threshold. Many custodians require a cash floor (commonly $500 to $2,000) before you can invest. Keep exactly that, plus your own comfort buffer, and invest the rest.
- Look at the fund menu and the fees. Good HSA custodians offer broad index funds at index fund expense ratios. Bad ones offer a short menu of expensive active funds plus a monthly administrative fee. A $3 monthly fee on a $3,000 balance is a 1.2% drag before you even pick a fund.
- Move the money if the plan is bad. You are not stuck with your employer's custodian. HSA transfers between custodians are unlimited and do not count as distributions. Keep contributing through payroll to capture the FICA break, then periodically transfer the balance out to a low-cost custodian of your choosing. Use a trustee-to-trustee transfer, not a rollover, and there is no 60-day clock and no once-per-year limit to worry about.
- Treat it as part of one portfolio. Because an HSA is your longest-horizon, most tax-favored account, it is a natural home for your highest-expected-return holdings, typically broad stock index funds. Look at your allocation across all accounts together rather than balancing each account separately.
What changes at 65
Before 65, a non-qualified HSA withdrawal is taxed as ordinary income and hit with a 20% penalty, which is twice the retirement account penalty and is deliberately harsh.
At 65 the penalty disappears entirely. From then on:
- Qualified medical withdrawals remain completely tax free, as always.
- Non-medical withdrawals are taxed as ordinary income with no penalty, exactly like a traditional IRA.
So the worst case for an over-funded HSA is that it becomes a traditional IRA, which is not a bad worst case. It also means an HSA is never "wasted."
Additionally, once you are 65 or on Medicare, several insurance premiums become qualified expenses that were not before: Medicare Part B, Part D, and Medicare Advantage premiums (but not Medigap supplemental premiums), and premiums for qualified long-term care insurance up to age-based limits. At any age, COBRA premiums and health insurance premiums while receiving unemployment compensation also qualify. Medicare premiums alone run several thousand dollars a year per person, so this creates a large, reliable, automatic stream of qualified expenses in retirement.
One more feature: HSAs have no required minimum distributions. Traditional IRAs and 401(k)s force money out starting in your seventies whether you want it or not. An HSA can sit untouched indefinitely, which makes it the natural last account to spend.
HSA vs FSA vs HRA
| HSA | Health FSA | HRA | |
|---|---|---|---|
| Who owns it | You | Employer | Employer |
| Portable when you leave the job | Yes, entirely | No | Usually no |
| Funds roll over year to year | Yes, forever | Limited, use it or lose it in substance | Employer's choice |
| Can be invested | Yes | No | No |
| Requires an HDHP | Yes | No | Varies |
| 2026 individual limit | $4,400 | about $3,400 | Set by employer |
The FSA is a one-year spending discount for known expenses. The HSA is an investment account that happens to have a medical label. They are not competitors, and a general purpose FSA actually blocks HSA eligibility. If your employer offers both, and you want the HSA, take the limited purpose FSA (dental and vision only) instead.
Dependent care FSAs are a separate program entirely and do not affect HSA eligibility at all.
Traps, state quirks, and Medicare
The Medicare six-month lookback. When you enroll in Medicare after your full retirement age, Part A coverage is applied retroactively up to six months. Any HSA contributions made during that retroactive window become excess contributions subject to penalty. The fix is simple and must be planned: stop HSA contributions six months before you enroll in Medicare or claim Social Security, since claiming Social Security after 65 automatically enrolls you in Part A.
State income tax. Federal treatment is uniform, but a small number of states do not conform. As of 2026, California and New Jersey tax HSA contributions and investment earnings for state income tax purposes. If you live in one of those states, the account still works, but the state-level bookkeeping on dividends and capital gains inside the account is a real annoyance, and holding low-turnover total market index funds rather than active funds keeps the paperwork small.
Adult children. An adult child under 26 who is on your family HDHP but is not your tax dependent can open their own HSA and contribute the full family limit. This is an odd and generous quirk of the rules and it lets some families shelter far more than the headline family limit.
Spouses and beneficiaries. Name a beneficiary. If your spouse is the beneficiary, the HSA becomes their HSA and keeps every tax benefit. If anyone else inherits it, the account terminates and the full value becomes taxable income to that person in the year of death, with no stretch and no step-up. That makes an HSA one of the worst assets to leave to children and one of the best to spend yourself. Plan your retirement drawdown accordingly.
Excess contributions. If you over-contribute, withdraw the excess plus its attributable earnings before your tax filing deadline and you owe income tax on the earnings only. Leave it in and you face a 6% excise tax for every year it stays.
Divorce and mid-year coverage changes. Your limit is prorated month by month if you are only eligible part of the year (subject to the last-month rule above). Switching from family to self-only coverage in July does not entitle you to the full family limit.
A worked lifetime example
Dana is 30, on a family HDHP, in the 24% federal bracket, and healthy. She contributes the family maximum through payroll every year and invests everything in a total stock market index fund. She and her spouse pay their real medical bills, about $2,500 a year, out of their checking account, and scan every receipt.
Assume for simplicity that the contribution limit and her spending both rise with inflation, and work in today's dollars with a 5% real return. Contributions are $8,750 per year for 35 years.
Step 1: the tax savings on the way in. Each year's $8,750 contribution avoids 24% federal income tax ($2,100) and 7.65% FICA ($669), a combined $2,769. Over 35 years that is roughly $96,900 in taxes never paid. Her out-of-pocket cost of funding the account is only $5,981 a year.
Step 2: the balance at 65. An $8,750 annual contribution growing at 5% real for 35 years, contributed at year end, gives 8,750 x [(1.05^35 - 1) / 0.05] = 8,750 x 90.32 = about $790,000 in today's dollars. Every dollar of that growth escaped tax on dividends and capital gains along the way.
Step 3: the receipt stack. Thirty-five years at $2,500 a year of documented out-of-pocket medical spending is $87,500 of accumulated, unreimbursed, qualified expenses. Dana can withdraw that amount at any moment, entirely tax free, for any purpose she likes: a car, a roof, a trip. The IRS does not care what she buys; it only cares that the receipts are valid.
Step 4: retirement medical spending. From 65 onward, Medicare Part B and Part D premiums for a couple plus ordinary out-of-pocket costs will plausibly run $10,000 to $15,000 a year. At $12,000 a year, the remaining $700,000 covers roughly 25 to 30 years of that spending, drawn tax free, with the balance still growing.
Step 5: what the alternative looked like. Suppose instead Dana had used a regular taxable brokerage account for the same after-tax amounts. She would have contributed only $5,981 per year (the after-tax equivalent), lost roughly 0.4 to 0.6 percentage points a year to taxes on dividends and rebalancing, and paid capital gains tax on the way out. A reasonable estimate of the ending after-tax value is in the low $400,000s. The HSA structure roughly doubles the outcome for the same sacrifice of current consumption, with no additional investment risk and no cleverness required. It is entirely a function of the tax wrapper.
Common mistakes
- Leaving the balance in cash. The most common and most expensive error. A tax shelter with nothing to shelter is just a checking account with paperwork.
- Using it as a spending account. Swiping the HSA debit card for every copay converts your best long-term account into a slightly discounted wallet. If you can pay from cash flow, do.
- Not keeping receipts. The receipts are the strategy. Without documentation, decades of out-of-pocket spending becomes unclaimable.
- Contributing while on Medicare. Including the six-month retroactive Part A window. This creates excess contributions and penalties.
- Accepting a bad custodian. High fees and a weak fund menu can be fixed with a transfer, and most people never bother.
- Picking an HDHP purely for the HSA. Run the actual numbers on your family's expected medical use, including the out-of-pocket maximum in a bad year. If a low-deductible plan genuinely costs your family less, take it. The tax break is not worth an underwater insurance choice.
- Forgetting the second account for spousal catch-up. Both spouses over 55 need their own HSAs to use both $1,000 catch-ups.
- Leaving it to a non-spouse heir. The account fully liquidates as taxable income to them. Spend it yourself and leave them the Roth instead.
Bottom line. An HSA is the only quadruple tax-advantaged account available to American savers, and the strategy that unlocks it is unglamorous: max it, invest it, do not touch it, save the receipts. It is education, not individualized advice, and eligibility depends on your insurance situation, but for anyone with access to a qualifying plan and the cash flow to pay medical bills out of pocket, this is close to the highest-value savings move in the code after the employer match.