Health Insurance explainer

What Happens to Your HSA When You Leave an HDHP

HSA card and medical receipts on a desk representing health savings account management after leaving an HDHP

Key Takeaways

  • Your HSA balance is permanently yours and does not expire when you leave an HDHP.
  • You can no longer contribute new dollars once you lose HDHP coverage, unless you re-enroll.
  • Existing funds can still be used tax-free for qualified medical expenses at any time.
  • The account can stay invested and continue growing even without active contributions.
  • Non-medical withdrawals before age 65 trigger income tax plus a 20% penalty.
  • After age 65, the penalty disappears and the HSA behaves similarly to a traditional IRA for non-medical expenses.

HSA After Leaving an HDHP

When you stop being enrolled in a high-deductible health plan (HDHP), your health savings account (HSA) remains yours — the money doesn't disappear, expire, or revert to anyone else. You lose the ability to make new contributions, but every dollar already in the account can still be spent on qualified medical expenses tax-free. The account simply shifts from an active savings vehicle to a spending-only account until you either return to HDHP coverage or reach age 65.

Under IRS rules, HSA contribution eligibility is determined on a month-by-month basis. The last-month rule and testing period provisions can affect how much you may contribute in the year you lose HDHP coverage — a detail worth reviewing before your plan change takes effect.

The Core Rule: Your HSA Belongs to You, Always

One of the most consequential features of a health savings account — and one that too few people fully appreciate until they're in the middle of a plan change — is that the account is entirely and permanently yours. It is not a benefit that reverts to your employer when you leave a job. It is not a use-it-or-lose-it fund like a flexible spending account. And critically, it does not close when you stop being enrolled in a high-deductible health plan.

What does change when you leave an HDHP is your ability to make new contributions. The IRS ties HSA contribution eligibility directly to HDHP enrollment. The moment your coverage shifts to a non-qualifying health plan — whether that's a traditional PPO, an HMO, Medicare, or Medicaid — you can no longer deposit new money into the account. That restriction kicks in on the first day of the month following the plan change for most enrollment scenarios.

But the funds already accumulated? They stay put. They remain tax-advantaged. They can continue to be invested. And they can be spent on qualified medical expenses at any point in the future, with no deadline and no penalty — regardless of what health insurance you're enrolled in at the time of the withdrawal.

This distinction matters enormously for financial planning. If you've spent years building up an HSA balance — particularly if you've been investing those funds in index funds or other growth assets — leaving an HDHP doesn't undo that work. It simply changes the account's operational mode from accumulation to preservation and spending.

Infographic showing HSA transitioning from active contribution phase to spending-only mode after leaving an HDHP
When you leave an HDHP, your HSA shifts from accumulation mode to a spending and investment preservation account.

For a foundational understanding of how HDHPs and HSAs are designed to work in tandem, see our overview of how these two accounts work together.

What You Can — and Cannot — Do After Losing HDHP Eligibility

Understanding the specific rules that apply post-HDHP helps you avoid costly mistakes. The two most important things to get right are the contribution cutoff and the spending rules, because errors on either side carry real financial consequences.

What you can still do:

  • Spend existing funds on qualified medical expenses — This remains fully intact. Dental care, vision, prescription drugs, copays, and hundreds of other IRS-approved items can all be paid from your HSA tax-free, regardless of your current insurance plan. For a detailed list of what qualifies, see our guide to qualified medical expenses.
  • Keep the account open — There is no rule requiring you to close the account when you leave an HDHP. Most custodians allow accounts to remain open indefinitely, though some charge a monthly maintenance fee if the balance falls below a threshold.
  • Continue investing the balance — If your HSA custodian offers investment options (mutual funds, ETFs, etc.), those investments continue to grow tax-deferred. You don't need HDHP coverage to maintain invested positions within the account.
  • Roll over or transfer the balance — You can move the funds to a different HSA custodian if your current one charges high fees or offers limited investment options. This is a direct trustee-to-trustee transfer and doesn't trigger taxes or penalties.

What you can no longer do:

  • Make new contributions — This is the primary restriction. Once you're no longer enrolled in a qualifying HDHP, new deposits to the HSA are not permitted and, if made in error, must be withdrawn or they become subject to tax and penalty.
  • Accept employer HSA contributions — If a former employer had been depositing money on your behalf as a benefit, that stops when your HDHP enrollment ends.

Mid-Year Plan Changes and Prorated Limits

If you leave an HDHP partway through the calendar year, the IRS requires you to calculate a prorated contribution limit based on the number of months you held qualifying HDHP coverage. Contributions made above that prorated limit are considered excess and subject to a 6% excise tax. Most HSA custodians and tax software will help you calculate this, but it's worth double-checking before the tax filing deadline.

Medicare and HSA Contributions Don't Mix

Enrolling in any part of Medicare — including Part A, which many people accept automatically at age 65 — immediately ends your ability to contribute to an HSA. This catches many near-retirees off guard, particularly those who delay Medicare in favor of employer coverage. If you're approaching 65 and still on an HDHP, get clear on your Medicare enrollment timing before it affects your contribution eligibility.

Spending HSA Funds Under a Different Insurance Plan

There is no requirement that your health insurance plan be an HDHP in order to spend HSA funds. You can pay qualified medical expenses from your HSA even if you're on a PPO, HMO, Medicare, or any other plan type. The only restriction is on making new contributions. This flexibility makes the HSA uniquely portable across coverage changes. For a full list of what counts as a qualified expense, see <a href="/health-insurance/plan-types/hdhps-and-hsas/qualified-medical-expenses-what-your-hsa-can-and-cannot-pay-for">our qualified medical expenses guide</a>.

One nuance worth tracking: if you leave an HDHP mid-year, the IRS uses a prorated contribution limit based on the number of months you were HDHP-enrolled. If you contributed based on the full-year limit but were only eligible for part of the year, you may need to remove the excess contribution — typically by the tax filing deadline — to avoid a 6% excise tax on the excess amount.

The Prorated Contribution Rule and the Last-Month Trap

The year you leave an HDHP tends to generate the most confusion around HSA contributions, and it's worth slowing down here because the mechanics can create an unexpected tax problem if you're not careful.

In general, your HSA contribution limit for a given year is prorated by the number of months you were enrolled in an HDHP. So if you were on an HDHP from January through June and then switched to a PPO in July, you're eligible to contribute six-twelfths of the annual limit — not the full amount.

$4,150

2024 individual HSA contribution limit

Per IRS guidelines for 2024; the family limit is $8,300, with a $1,000 catch-up for those 55 and older.

6%

Annual excise tax on excess HSA contributions

The IRS charges a 6% excise tax for each year an excess contribution remains in the account uncorrected.

$315,000

Estimated healthcare costs for a retired couple

Fidelity's 2023 Retiree Health Care Cost Estimate projects an average 65-year-old couple will need approximately $315,000 for medical expenses in retirement.

20%

Penalty on non-qualified HSA withdrawals before 65

In addition to ordinary income tax, the IRS applies a 20% penalty on HSA funds used for non-qualified expenses prior to age 65.

There is, however, a provision called the last-month rule that allows you to contribute the full annual limit if you were HDHP-eligible on December 1st of that year. The catch is the testing period: you must remain HDHP-eligible for all 12 months of the following calendar year. If you fail the testing period — say, because you take a new job with non-HDHP coverage in March of the following year — the excess contribution amount becomes taxable income and you owe an additional 10% penalty.

This is a situation where planning ahead with a tax advisor pays dividends. Using the last-month rule is not inherently risky, but it requires a reasonably confident expectation that you'll maintain HDHP coverage through the following year — something that isn't always predictable.

Keep Receipts for Future Reimbursement

The IRS allows you to reimburse yourself from your HSA for qualified medical expenses incurred at any point after the account was opened — even years later. This means you can pay out-of-pocket now, let your invested HSA balance grow, and reimburse yourself later. Maintain organized digital records of all medical receipts tied to the account to protect this strategy in the event of an audit.

Review Custodian Fees After Leaving Your Employer

Employer-sponsored HSAs are often tied to a single custodian that may charge administrative fees once you're no longer an active employee. After a job change, it's worth comparing your current custodian's fee schedule against independent providers. A direct trustee-to-trustee HSA transfer is tax-free and penalty-free, and moving to a lower-cost provider with better investment options can meaningfully improve long-term outcomes.

Shift Your Investment Allocation If Withdrawals Are Imminent

If you anticipate using HSA funds within the next one to three years — for planned medical costs, dental work, or retirement expenses — consider moving a portion of the invested balance to more stable, liquid options. An equity-heavy allocation is appropriate for long horizons but introduces timing risk when withdrawals are near. Treat the near-term spending portion as you would a short-duration cash reserve.

For a comprehensive walk-through of how these rules apply across the full arc of HDHP and HSA ownership, our end-to-end HDHP and HSA guide covers every stage from enrollment through retirement.

Your Balance Can Keep Growing Even Without Contributions

A point that often surprises people: an HSA doesn't become dormant just because you stopped contributing. If your funds are invested — in index funds, bond funds, or other vehicles offered by your custodian — those investments continue to grow or decline based on market performance, regardless of whether new money is coming in.

This is one of the structural advantages of the HSA relative to other healthcare spending accounts. Unlike FSAs, HSA balances roll over indefinitely — there's no year-end forfeiture. A person who contributed aggressively during their HDHP years and invested those funds could, in theory, have a meaningful account balance decades later even without a single new deposit.

HSA account statement and investment growth chart on a desk illustrating continued account growth after leaving an HDHP
Invested HSA funds can continue growing tax-deferred even after contributions stop — a meaningful long-term advantage.

For those who have accumulated a substantial HSA balance and are now transitioning away from HDHP coverage — perhaps because of a job change, a life event, or Medicare enrollment — the most useful mental reframe is to think of the HSA not as a dormant savings account but as a dedicated healthcare reserve. It's capital earmarked specifically for medical costs, and those costs are highly predictable over a lifetime. The account doesn't stop serving you just because you stopped feeding it.

“The HSA is the only account in the tax code that offers a triple tax advantage — pre-tax contributions, tax-free growth, and tax-free withdrawals for qualified expenses. That structure doesn't disappear when you change health plans. It's one of the few benefits in the system that truly accumulates in the consumer's favor.”

— William Bernstein, Neurologist, financial theorist, and author of works on personal finance and asset allocation

That said, it's worth periodically reviewing the investment allocation within the account, especially if you now expect to draw on the funds sooner rather than later. An account in a growth-oriented allocation that was appropriate when you had a 20-year horizon may need to be shifted toward more stable investments once withdrawals are on the near-term horizon.

What Happens When You Reach Age 65

The rules governing HSA withdrawals shift meaningfully at age 65, and this inflection point is particularly relevant for people who accumulated a large balance during their working years and then transitioned off an HDHP — whether to a Medicare plan, a retiree health plan, or otherwise.

Before age 65, any withdrawal used for a non-qualified expense is subject to ordinary income tax on the withdrawn amount plus a 20% penalty. That penalty is steep enough to deter most people from treating the HSA as a general savings account — which is appropriate, because it isn't designed to be one.

At age 65, the penalty disappears entirely. Non-qualified withdrawals are still subject to ordinary income tax (just as a traditional IRA distribution would be), but there's no additional punitive charge. This effectively means the HSA functions as a supplemental retirement account for non-medical expenses once you reach Medicare age — with the added benefit that qualified medical expenses remain tax-free at any age.

Given that the average retiree couple is estimated to spend over $300,000 on healthcare costs in retirement, a well-funded HSA can be a genuinely powerful asset in the post-HDHP years. For a detailed breakdown of how this works, see our article on HSA withdrawals after age 65.

Keep Receipts for Future Reimbursement

The IRS allows you to reimburse yourself from your HSA for qualified medical expenses incurred at any point after the account was opened — even years later. This means you can pay out-of-pocket now, let your invested HSA balance grow, and reimburse yourself later. Maintain organized digital records of all medical receipts tied to the account to protect this strategy in the event of an audit.

Review Custodian Fees After Leaving Your Employer

Employer-sponsored HSAs are often tied to a single custodian that may charge administrative fees once you're no longer an active employee. After a job change, it's worth comparing your current custodian's fee schedule against independent providers. A direct trustee-to-trustee HSA transfer is tax-free and penalty-free, and moving to a lower-cost provider with better investment options can meaningfully improve long-term outcomes.

Shift Your Investment Allocation If Withdrawals Are Imminent

If you anticipate using HSA funds within the next one to three years — for planned medical costs, dental work, or retirement expenses — consider moving a portion of the invested balance to more stable, liquid options. An equity-heavy allocation is appropriate for long horizons but introduces timing risk when withdrawals are near. Treat the near-term spending portion as you would a short-duration cash reserve.

Practical Steps to Take When Leaving an HDHP

If you know a plan change is coming — or if it's already happened — a short checklist of actions can help you preserve the value of what you've built and avoid inadvertent errors.

  1. Calculate your prorated contribution limit. Count the months you were HDHP-enrolled and multiply by the monthly contribution limit (one-twelfth of the annual IRS limit). Ensure you haven't over-contributed. If you have, correct it before the tax filing deadline.
  2. Freeze new contributions immediately. Stop any payroll deductions or automatic transfers once your HDHP coverage ends. An over-contribution that sits in the account accrues a 6% excise tax for every year it remains.
  3. Evaluate your custodian. If your HSA was set up through an employer's designated provider, you may now be paying unnecessary fees. Many independent custodians offer zero-fee accounts with robust investment menus — a direct HSA-to-HSA transfer (not a withdrawal and redeposit) is tax-free and penalty-free.
  4. Review your investment allocation. Your risk tolerance and time horizon may have changed. Adjust accordingly — particularly if you anticipate drawing on the funds within the next few years.
  5. Keep your receipts. The IRS doesn't require you to spend HSA funds in the same year the qualified expense was incurred. You can reimburse yourself years — or decades — later for past medical costs, as long as those costs were incurred after the HSA was opened. Keeping organized documentation protects this strategy.
  6. Understand your new plan's cost structure. Leaving an HDHP typically means higher premiums and lower deductibles. The tradeoff in cost structure affects how aggressively you'd want to spend down your HSA versus preserving it for future years. See our overview of premiums and deductibles for context on evaluating those tradeoffs.

The Bottom Line for Long-Term Financial Planning

Leaving an HDHP is not an HSA emergency. It's a change in the account's operating status — from active accumulation to spending preservation — but it doesn't diminish the value of what's already there. For people who've used their HDHP years strategically to build a meaningful HSA balance, that account continues to serve as one of the most tax-efficient assets in their financial picture.

The three-pronged tax advantage of the HSA — contributions are pre-tax, growth is tax-deferred, and qualified withdrawals are tax-free — doesn't dissolve when your plan type changes. What you contributed under an HDHP retains all those characteristics indefinitely. The account simply stops accepting new deposits.

Thinking clearly about this distinction helps you avoid two common mistakes: prematurely spending down the balance out of a mistaken belief that the money will otherwise be lost, and continuing to contribute to an account you're no longer eligible for. Both carry consequences that are entirely avoidable with a little advance planning.

If your plan change intersects with a broader life transition — retirement, Medicare enrollment, a new employer — it's worth reviewing how the HSA fits into the larger picture of your healthcare cost exposure and retirement income strategy. The account is too valuable a tool to manage reactively.

For a full-spectrum view of how HDHPs and HSAs interact across your financial life — from initial enrollment through your final withdrawal — our comprehensive HDHP and HSA guide provides that framework in one place.

Frequently Asked Questions

Simone Treadwell

Author

Simone Treadwell

M.S. in Financial Planning, Kansas State University, Certified Financial Planner (CFP)

Simone Treadwell is a certified financial planner who specializes in insurance-integrated financial planning, with particular depth in disability income, long-term care, and health coverage structures like HDHPs and HSAs. She helps clients at key life transitions — marriage, parenthood, career change, and retirement — map their insurance choices to long-term financial goals. Her writing translates complex policy mechanics into decisions readers can actually act on.

long-term disabilitylong-term careHDHPs & HSAslife-stage planningdisability income
View all articles by Simone Treadwell →

All claims in this article are backed by peer-reviewed research. We follow strict editorial guidelines to ensure accuracy and reliability. Sources available on request from our editorial team.

Disclaimer: The content on Insure Ninja is for informational purposes only and is not a substitute for professional advice. Always consult a qualified professional for guidance specific to your situation.

Related articles