A Health Savings Account (HSA) is a tax-advantaged account for medical costs, and when used well, it doubles as one of the best retirement accounts available. Contributions are generally tax-deductible, investments grow tax-free, and withdrawals for qualified medical expenses come out tax-free. After age 65, you can withdraw money for any purpose without penalty, although nonmedical withdrawals are subject to income tax.
Unlike traditional retirement accounts, HSAs have no required minimum distributions. Most people treat an HSA like a medical checking account. The people who get the most from it treat it like a long-term investment account that happens to pay for health care.
Two Ways to Use the Same Account
Consider two coworkers, Tom and Dana, both age 40, enrolled in the same high-deductible health plan and contributing the maximum to their HSAs each year.
Dana uses her HSA to pay for current medical expenses, including doctor visits, prescriptions, and other qualified costs. Her HSA provides valuable tax savings, but because she regularly withdraws money, her account balance doesn't accumulate significantly.
Tom takes a different approach. When his budget allows, he pays current medical expenses out of pocket and invests his HSA contributions for the long term. His goal isn't to reimburse himself for today's medical bills decades from now. Instead, he's building a pool of tax-free money to cover health care expenses in retirement, when medical costs are likely to be much higher.
By age 65, Dana has benefited from years of tax-advantaged medical spending, while Tom has potentially accumulated a substantial investment account dedicated to future health care expenses. Both have used their HSAs wisely, but Tom has taken greater advantage of the account's long-term investment potential.
This is a hypothetical illustration. Investment returns are not guaranteed, and results will vary based on contributions, withdrawals, investment performance, and medical expenses.
What an HSA Is, and How it Differs from an FSA
An HSA is available if you're covered by a qualifying high-deductible health plan (HDHP). You own the account, which means it stays with you if you change jobs, switch health plans, or retire.
That sets it apart from a flexible spending account (FSA), where unused money is often forfeited at the end of the plan year. HSA balances roll over every year, with no deadline for using them, so a modest annual contribution can turn into a meaningful pool of tax-advantaged money over time.
The Triple Tax Advantage of HSAs
Very few accounts offer what an HSA does! It is one of the most tax-efficient investment vehicles available because of these three benefits:
- Tax-deductible contributions. Contributions made through payroll are pre-tax and typically also skip Social Security and Medicare payroll taxes. Contributions you make on your own are deductible on your tax return.
- Tax-free growth. Interest and investment earnings inside the account are not taxed as they grow.
- Tax-free withdrawals. Money used for qualified medical expenses comes out with no income tax.
Who Qualifies and What You Can Contribute
To contribute, you generally need to be covered by an HSA-qualified HDHP, have no disqualifying other coverage (such as a general-purpose health FSA), not be claimed as someone else's dependent, and not be enrolled in Medicare.
For 2027, a plan qualifies as an HDHP if it has a deductible of at least $1,750 for self-only coverage or $3,500 for family coverage, with out-of-pocket costs capped at $8,700 or $17,400.
Contribution limits for the next two years:
Self-only coverage
2026: $4,440
2027: $4,500
Family Coverage
2026: $8,750
2027: $9,000
Catch-Up (age 55+)
2026: $1,000
2027: $1,000
Employer contributions count toward your annual limit. You have until the tax filing deadline to make contributions for the prior year, so 2026 contributions can still be made through April 2027.
A Medicare Warning for Anyone Approaching 65
Once you enroll in Medicare, you can no longer contribute to an HSA. What to watch out for is the timing: if you apply for Medicare Part A after 65 (including automatically when you begin Social Security), coverage can be retroactive by up to six months. Contributions made during that window can trigger a tax penalty. If you plan to enroll in Medicare or claim Social Security, a common rule of thumb is to stop HSA contributions six months beforehand. This is a good moment to check with your advisor and tax professional.
How to Grow Your HSA Instead of Spending
It Most HSA providers let you hold cash and invest the rest in funds, much like a retirement account. A practical approach:
- Keep a cash cushion. Hold enough to cover your near-term medical costs and deductible, often a few thousand dollars, then invest the balance.
- Invest for the long term. Low-cost index funds and ETFs are common choices, with the mix matched to how soon you expect to need the money.
- Watch the fees. Some employer-selected HSA providers charge account fees or offer limited investment options. You can keep contributing through payroll (to keep the payroll tax savings) and periodically transfer your balance to a provider with lower costs and better choices through a trustee-to-trustee transfer.
The Shoebox Strategy: Reimburse Yourself Later
This is the tactic that turns an HSA into a retirement tool. If you can afford to, pay current medical bills from your regular budget, keep the receipts, and leave the HSA invested. There is no time limit on reimbursing yourself, so you can withdraw that money tax-free years or even decades later, whenever you need cash.
The rules to follow:
- The expense must have been incurred after you opened your HSA.
- The expense must be a qualified medical expense that was not paid by insurance or deducted elsewhere.
- Keep clear records (receipts and proof of payment) in a place you won't lose them. A digital folder works better than a literal shoebox.
Using Your HSA In Retirement
Health care is one of the largest retirement expenses, and your HSA can help cover:
- Medicare premiums for Part B, Part D, and Medicare Advantage (Medigap premiums are not eligible).
- Dental, vision, and prescription costs that Medicare does not fully cover.
- Long-term care insurance premiums, up to annual limits that rise with age.
Unlike a 401(k) or traditional IRA, an HSA has no required minimum distributions for the original owner, so the money can keep growing for as long as you like.
After 65, you can also withdraw for non-medical expenses without the 20% penalty, though you will owe ordinary income tax, like a traditional IRA. Before 65, a non-qualified withdrawal is taxed and carries that 20% penalty, which is one more reason to treat the HSA as protected money.
What Happens to Your HSA Later
An HSA is unusual among retirement accounts because who inherits it changes the tax bill dramatically.
- A surviving spouse can generally treat the account as their own HSA, with the tax advantages intact.
- A non-spouse beneficiary, such as an adult child, inherits the account as taxable income. It stops being an HSA, and the value is generally taxed at the beneficiary's ordinary rates.
- A tax-exempt charity generally would not owe income tax on the same dollars.
That last point is worth a thoughtful conversation. For someone who intends to leave part of their estate to a church or ministry, HSA dollars left over after a lifetime of medical expenses can be one of the more tax-efficient assets to direct toward giving, while other assets pass to heirs. As with any account, make sure the beneficiary designation is current, because it's a form most people never revisit. If this connects with your giving plans, our guidance on giving in retirement and donating appreciated assets to charity covers related strategies.
Where an HSA Fits in Your Savings Order
Many people find this sequence a useful starting framework:
- Contribute enough to your 401(k) to capture the full employer match.
- Contribute the maximum to your HSA, if you're eligible.
- Add to other retirement accounts, such as a Roth IRA or additional 401(k) contributions.
The right order depends on your tax situation, income, and goals, so treat this as a starting point to refine with your advisor.
Common HSA Mistakes
- Spending the balance on small expenses when you could pay them from cash flow and let the account grow.
- Leaving everything in cash when you don't need it for years.
- Not saving receipts for future reimbursement.
- Missing the age 55+ catch-up contribution.
- Continuing to contribute after enrolling in Medicare.
- Never updating the beneficiary designation.
Key Takeaways
- An HSA offers tax-deductible contributions, tax-free growth, and tax-free withdrawals for qualified medical expenses.
- For 2027, the contribution limits are $4,500 (self-only) and $9,000 (family), plus a $1,000 catch-up at 55 or older.
- Investing the balance and paying current bills from cash flow turns an HSA into a long-term retirement asset.
- There are no required minimum distributions, and after 65 you can withdraw for any purpose (taxed as ordinary income when not used for medical costs).
- Stop contributing before you enroll in Medicare, with a six-month look-back if you claim Social Security.
- Who inherits an HSA affects the tax outcome, so keep beneficiaries current.
HSA and Retirement FAQs
Can I use HSA funds for non-medical expenses after 65?
Yes. After 65, withdrawals for any purpose carry no 20% penalty. Money not used for qualified medical expenses is taxed as ordinary income, like a traditional IRA withdrawal.
What happens to my HSA if I change jobs or health plans?
The account is yours. You can keep using it for qualified medical expenses, and if you're again covered by a qualifying HDHP, you can resume contributing.
Should I invest my HSA or keep it in cash?
If you can cover near-term medical costs from other savings, investing most of the balance gives it room to grow tax-free. Keep enough cash for your expected near-term costs and deductible.
Can I contribute to an HSA if I'm on Medicare?
No. Once you're enrolled in Medicare, you can't make new contributions, though you can keep using the money you've already saved. Because Part A can be retroactive for up to six months, many people stop contributing about six months before enrolling.
Is there a deadline to reimburse myself for past medical expenses?
There's no IRS deadline, if the expense occurred after you opened the HSA, was a qualified expense, and you have records showing it hasn't been reimbursed or deducted elsewhere.
What happens to my HSA when I die?
A surviving spouse can generally treat it as their own HSA. For other beneficiaries, the account stops being an HSA and the balance is generally taxable to them. A qualifying charity named as beneficiary generally would not owe income tax on it.
Connect with your advisor today to discover how incorporating this tax-efficient strategy can enhance your long-term wealth strategy.