HSA · Health Savings Account

The HSA as a Long-Term Investment Vehicle: Beyond the Healthcare Spending Account

A professional at a modern desk reviewing long-term investment options within a health savings account, representing the HSA as a retirement planning vehicle.
Health savings accounts carry a federal tax structure that no other retirement account fully replicates — but those properties interact with California state tax law, HDHP eligibility requirements, and the investor's broader retirement picture in ways that require individual analysis.
Image generated with AI assistance for educational purposes only.

Summary

What this post covers

  • How the HSA's federal tax structure works and what makes it distinct from other tax-advantaged accounts
  • The HDHP eligibility requirement and the constraints that most general descriptions understate
  • How California treats HSA contributions and investment earnings — and why the "triple tax advantage" framing is specifically a federal concept
  • The investment-oriented strategy: allowing contributions to compound rather than spending them on current healthcare costs
  • Distribution rules, the age-65 shift, and the deferred reimbursement approach
  • How the HSA interacts with Medicare premiums, IRMAA, and the broader retirement income picture

The core concept

  • The HSA is the only federally tax-advantaged account that offers a contribution deduction, tax-deferred growth, and tax-free qualified distributions — all three in combination
  • Eligibility to contribute requires enrollment in a qualifying HDHP; contribution eligibility ends once Medicare begins
  • California does not conform to federal HSA rules: contributions are not deductible at the state level and investment earnings are taxable in California each year
  • The investment-oriented strategy — covering current medical costs from other accounts while leaving HSA contributions to compound — may increase the account's long-term value for investors who can sustain that approach, depending on individual circumstances

For the full detail, continue reading.


An Account That Rarely Gets Its Due

Health savings accounts are frequently framed as healthcare spending tools. The standard description emphasizes using funds for copays, prescriptions, and out-of-pocket medical bills — which they can do, federal-tax-free. That framing, while accurate, obscures what the HSA can become when treated as a long-term investment vehicle rather than a healthcare debit card.

For eligible investors who can pay current medical costs from other sources, the HSA may function as a third category of retirement account alongside the traditional IRA and the Roth IRA — one with a federal tax structure that differs from both in ways that may be particularly relevant for healthcare-focused retirement saving. Unlike a traditional IRA, HSA contributions may be deducted regardless of income level (no phase-out for high earners). Unlike a Roth IRA, HSA distributions for qualified medical expenses are federal-tax-free without income limits or a five-year holding rule. Unlike either, the HSA carries no required minimum distributions and may be used to pay certain Medicare premiums in retirement.

The question for high earners enrolled in an HDHP is not simply whether to use an HSA, but how to integrate it into the broader retirement picture — and how California's non-conforming state tax treatment changes the calculation.


Eligibility: The HDHP Requirement

Contribution eligibility for an HSA is not income-based. It depends on whether the investor is enrolled in a qualifying high-deductible health plan and meets a set of disqualifying-condition rules.

To be HSA-eligible in any given month, an individual must:

  • Be enrolled in an HDHP that meets the IRS minimum deductible and maximum out-of-pocket thresholds for the coverage year
  • Not be enrolled in Medicare — Part A or Part B enrollment ends contribution eligibility regardless of other coverage
  • Not be claimed as a dependent on another person's return
  • Not be covered by any non-HDHP health plan that provides first-dollar benefits for services beyond preventive care

Coverage that typically does not disqualify eligibility:

  • Dental and vision plans
  • A limited-purpose FSA restricted to dental and vision expenses
  • Preventive care coverage under a separate arrangement

The HDHP deductible minimums and out-of-pocket maximums are set by the IRS and adjusted periodically; verify current thresholds with IRS guidance rather than relying on prior-year figures.

The Medicare cutoff is the principal constraint for near-retirees. Once Medicare enrollment begins — automatically at age 65 for those who have claimed Social Security — HSA contribution eligibility ends for that month. An investor who delays Medicare by continuing employer-sponsored coverage while working may extend the contribution window, but this involves coordination among Medicare enrollment rules, employer coverage, and Social Security claiming decisions that requires individualized attention. Failing to timely enroll in Medicare after losing employer coverage can trigger late enrollment penalties, which is a separate risk from HSA eligibility.


The Federal Tax Structure

The HSA's federal tax advantage operates on three levels, which is the origin of the "triple tax advantage" framing used in most descriptions of the account.

Federal Level 1: Contributions Reduce Federal Taxable Income

Contributions to an HSA made directly by the account holder are deductible as an above-the-line adjustment on the federal return, reducing adjusted gross income regardless of whether the taxpayer itemizes deductions. This distinguishes the HSA from the traditional IRA, where the deductibility phases out at higher income levels for those covered by a workplace plan.

Contributions made through payroll deduction under a Section 125 cafeteria plan also escape FICA taxes — Social Security and Medicare payroll taxes — which represents an additional federal tax benefit not available for traditional IRA or 401(k) contributions made through standard channels.

Employer contributions to an employee's HSA are excludable from the employee's federal taxable income and are also not subject to FICA.

Federal Level 2: Investment Earnings Accumulate Without Federal Taxation

Interest, dividends, and capital gains earned within the HSA are not subject to federal income tax while they remain in the account. There is no annual federal tax reporting requirement on HSA investment earnings and no requirement to distribute them at any particular time. The account may hold invested assets — stocks, mutual funds, ETFs — for decades without triggering a federal taxable event on growth.

Federal Level 3: Qualified Distributions Are Federal-Tax-Free

Withdrawals used for qualified medical expenses are excluded from federal gross income. Qualified expenses under IRS guidelines include most out-of-pocket healthcare costs: deductibles, copays, prescription medications, dental and vision expenses not covered by insurance, and more. After age 65, Medicare Part B, Medicare Part D, and Medicare Advantage plan premiums are also eligible for federal-tax-free reimbursement. The full list of qualifying expenses is defined in IRS Publication 502 and is subject to change.

The expense categories listed above reflect IRS guidance as of the date this article was written; verify eligibility for specific expenses with current IRS guidance or a qualified professional.


California Does Not Conform — A Meaningful Distinction

The "triple tax advantage" is a federal concept. California has its own income tax system and does not incorporate the federal HSA provisions into state law. For California residents, each of the three federal advantages interacts differently with state tax treatment.

Contributions: HSA contributions are not deductible on the California state income tax return. Where the federal return allows an above-the-line deduction, California adds that amount back to state taxable income. An investor contributing the family-coverage maximum effectively contributes post-California-tax dollars at the state level, even though those same dollars reduce federal taxable income. Contributions made through payroll deduction still avoid FICA, but the California income tax deduction is absent.

Investment earnings: Investment earnings within the HSA — including interest, dividends, and capital gains — are generally treated as taxable under California law in the year they are earned. Unlike the federal treatment where earnings compound without taxation until withdrawal, California generally requires the account holder to report HSA investment income annually. One exception: interest earned on U.S. Treasury securities (such as Treasury bills, notes, and bonds) is exempt from California income tax under federal law, so that portion of HSA earnings would not be subject to California tax even within the account. For California residents subject to the state's top marginal rate of 13.3%, this annual tax exposure on non-exempt earnings may reduce the effective accumulation benefit compared with the federal treatment.

Distributions: California does not impose state income tax on qualified HSA distributions used for medical expenses, consistent with federal treatment. The California tax exposure is specifically at the contribution and earnings stages, not at the qualified-distribution stage.

Non-qualified distributions before age 65: Non-qualified HSA withdrawals before age 65 are subject to federal income tax plus a 20% federal penalty. California does not impose a separate state penalty on these withdrawals, but because California does not conform to HSA tax advantages, earnings that have already been taxed annually at the state level may factor into the effective cost of a non-qualified distribution for California residents.

The net effect for California residents: the HSA retains its full federal tax advantage — the federal deduction and federal-tax-free growth and qualified distributions — while layering in annual California state income tax on investment earnings. The "triple tax advantage" accurately describes the federal experience. For California residents, the state experience is materially different and the long-term compounding benefit is correspondingly reduced.

This distinction shapes how the HSA fits into a California-based retirement plan and is one reason the account's value requires household-specific modeling rather than a general rule.


Contribution Limits

HSA contribution limits are set annually by the IRS.

2026 HSA Contribution Limits

Coverage TypeAnnual Limit
Self-only HDHP coverage$4,400
Family HDHP coverage$8,750
Catch-up contribution (age 55 or older, not yet enrolled in Medicare)$1,000 additional

Contribution limits reflect figures in effect as of the date this article was written. These limits are adjusted periodically for inflation; verify current figures with the IRS or a qualified tax professional.

The catch-up contribution is available to account holders who are 55 or older and not yet enrolled in Medicare. When both spouses are 55 or older and each is HSA-eligible, each may contribute a catch-up amount — but only to their own separate HSA. One spouse cannot make a catch-up contribution to the other's account.

For couples approaching Medicare eligibility, the final contribution years may carry meaningful accumulation opportunity, particularly if contributions have been modest in earlier years. Coordination of the Medicare enrollment decision with the HSA contribution window — and with other retirement income planning decisions being made in the same period — is an area where getting the sequencing wrong can result in either excess contributions (which carry penalties) or an unnecessary early end to the contribution period.


The Investment Strategy: Compounding Rather Than Spending

The foundational behavioral decision with an HSA is whether to use contributions for current healthcare costs or invest them for the long term. Both are permissible; the strategic value as a retirement vehicle depends on how that decision is made.

The accumulation-oriented approach

An investor who can cover current out-of-pocket medical costs from other sources — a taxable account, cash reserves, or other assets — may leave HSA contributions invested in growth-oriented funds throughout the working years. Medical bills are paid from those other resources. Each year's HSA contribution, along with any employer contribution, is directed into the investment account rather than a cash sweep or spending.

Over a working career, the compounding effect within the account can be substantial. Because qualified medical distributions are federal-tax-free, the HSA is a uniquely efficient vehicle for funding one of the largest recurring expense categories in retirement: healthcare. The accumulation-oriented approach treats the HSA less as an insurance reimbursement mechanism and more as a dedicated retirement healthcare reserve — one with preferable federal tax properties for that specific purpose.

Provider selection is not secondary

Not all HSA providers offer equivalent investment quality. Some offer high-cost, limited fund menus. Some require a minimum uninvested cash balance before allowing investment of the remainder. Administrative fee structures vary considerably by provider.

For investors treating the HSA as a long-term investment account rather than a near-term spending tool, the provider's fund menu, cost structure, and balance requirements carry real long-term consequences — comparable in importance to selecting a brokerage for an IRA. Investors with HSAs at prior employers may have the option to consolidate balances into a preferred provider's account through a direct trustee-to-trustee transfer, which does not affect contribution limits.

The deferred reimbursement approach

IRS rules do not impose a time limit on when an account holder may reimburse themselves for a qualified medical expense from an HSA, provided the expense was incurred after the HSA was established and the documentation is adequate. This creates a planning option: pay medical expenses out-of-pocket during the accumulation years, retain documentation, and reimburse those expenses from the HSA in a future year — potentially decades later.

The practical effect is that a dollar paid out-of-pocket for a medical expense today can remain invested inside the HSA, compounding over years, and be withdrawn federal-tax-free at a later date when the documented expense is reimbursed. The IRS requires the expense to have been incurred after the HSA was opened and while the account holder was HSA-eligible; pre-existing expenses are not eligible regardless of when the reimbursement is taken.

This approach requires careful, durable recordkeeping. Receipts and documentation need to be retained indefinitely and remain accessible years or decades later. It is not a strategy suited for all investors, and disorganized documentation creates both compliance risk and potential disputes. For disciplined investors who maintain organized records, however, it extends the HSA's effective investment horizon beyond what would otherwise be available.


The Age-65 Shift

Before age 65, HSA distributions fall into two categories: qualified medical distributions (federal-tax-free) and non-qualified distributions (subject to federal ordinary income tax plus a 20% excise penalty). California does not impose a separate state penalty on non-qualified HSA withdrawals, but California does not conform to federal HSA tax advantages, meaning earnings are generally taxable annually at the state level regardless of how the account is eventually used.

At age 65, the 20% federal excise penalty on non-qualified distributions is eliminated. Distributions for non-medical purposes become subject to ordinary federal income tax but carry no additional federal penalty — effectively the same tax treatment as a traditional IRA distribution.

This structural shift means that after age 65, the downside scenario for an investor who uses HSA funds for non-medical purposes is bounded: the tax cost is no worse than a traditional IRA withdrawal. For medical expenses — which tend to increase significantly with age — the HSA retains its full federal-tax-free advantage permanently.

The practical implication: an investor who accumulates a substantial HSA balance through years of investing and deferred reimbursement has built a pool of funds that may be directed toward healthcare costs (federal-tax-free) or, if those needs are lower than projected, drawn for other purposes at ordinary income tax rates. The account does not force a healthcare-only outcome, but the healthcare-cost application remains the most tax-advantaged use.


Medicare Premium Payments

After age 65, an investor may use HSA funds to pay certain Medicare premiums as qualified medical expenses, federal-tax-free:

  • Medicare Part B premiums (medical insurance)
  • Medicare Part D premiums (prescription drug coverage)
  • Medicare Advantage (Part C) plan premiums

One commonly misunderstood exclusion:

  • Premiums for Medicare supplement (Medigap) policies are not eligible for HSA reimbursement — they are explicitly excluded by IRS rules

For California-based retirees — where Medicare Advantage plan availability and attractiveness varies by county and many beneficiaries choose traditional Medicare with a Medigap supplement — this Medigap exclusion matters when estimating how much of an HSA balance can be used for federal-tax-free Medicare costs versus other medical expenses.

Medicare premium eligibility reflects IRS guidance in effect as of the date this article was written. Verify current rules with IRS Publication 969 or a qualified professional.


How the HSA Interacts With the Broader Retirement Picture

The HSA's value depends on how it fits with other accounts, income sources, and tax exposures — not on its properties in isolation.

IRMAA and federal Medicare premium surcharges: HSA contributions reduce federal adjusted gross income, which may affect IRMAA exposure. Because IRMAA surcharges on Medicare Part B and D premiums are based on MAGI from two years prior, high earners near IRMAA thresholds during their working years may find HSA contributions worth considering alongside other income-reduction strategies, depending on their overall tax picture. The federal MAGI reduction from HSA contributions does not carry over to California income (given CA non-conformity), and the two-year lookback means IRMAA planning involves projecting income well in advance.

Roth conversions and bracket management: In the early retirement window — after employment ends but before Social Security, RMDs, or both begin — investors often have an opportunity to pursue Roth conversions at relatively lower marginal rates. The presence of a substantial HSA balance changes the distribution sequencing analysis: drawing on HSA funds for medical expenses in those years rather than taxable or traditional IRA assets preserves more room for Roth conversions within preferred brackets. The exact sequencing is household-specific and depends on the investor's income projections, existing account balances, and tax exposure.

No required minimum distributions: The HSA carries no RMD requirement, unlike traditional IRAs and pre-tax 401(k) accounts. This allows the account to remain fully invested past age 73 without forced distributions, which is particularly relevant for investors who anticipate higher healthcare costs later in life and prefer to preserve the federal-tax-free medical distribution feature as long as possible.

Estate planning constraints: Unlike Roth IRAs — which may pass tax-efficiently to most heirs — HSAs may present less tax-efficient estate treatment for non-spouse beneficiaries, depending on the beneficiary's situation. A surviving spouse may inherit an HSA and treat it as their own, continuing to use it under the same rules. For non-spouse beneficiaries, the fair market value of the HSA is generally included in their gross income in the year of the account holder's death, treated as ordinary income with no step-up in basis and no graduated distribution period. Depending on the beneficiary situation, this treatment may make HSA assets a less efficient vehicle for wealth transfer beyond the spouse, and investors may prefer to exhaust the account during their own lifetimes rather than leaving it to non-spouse heirs as part of a legacy strategy.


Variables a Coordinated Plan Would Typically Address

The HSA's potential as a long-term investment vehicle is real, but realizing that potential requires decisions that interact with the investor's broader financial picture in ways specific to each household:

  • HDHP suitability: Whether a high-deductible health plan is appropriate depends on health status, anticipated utilization, the premium differential relative to lower-deductible plans, and the ability to absorb out-of-pocket costs in high-utilization years — a calculation that varies materially by household and changes as health circumstances evolve
  • California tax drag on earnings: For California residents, the annual state income tax on HSA investment earnings reduces the compounding advantage relative to the federal description; the magnitude depends on the investment approach, the applicable California marginal rate, and the anticipated duration of the accumulation period
  • Spending vs. accumulation tradeoff: Whether to pay current medical costs from the HSA or from other resources involves tradeoffs among liquidity, current tax exposure, investment horizon, and documentation durability for deferred reimbursements — tradeoffs that interact differently across household situations
  • Provider selection and consolidation: For investors with HSAs from multiple prior employers, the investment quality and cost structure of each provider affects long-term outcomes; consolidation decisions involve trustee-to-trustee transfer mechanics and provider-specific minimums
  • IRMAA exposure and multi-year modeling: The federal MAGI reduction from HSA contributions may affect IRMAA thresholds two years forward; modeling that interaction alongside Roth conversion planning, equity compensation events, and other income variables requires projecting income across multiple future years
  • Medicare enrollment timing and the contribution window: The year Medicare begins is the final year of HSA contribution eligibility; for investors delaying Medicare by continuing employer coverage, the interplay with employer plan rules, COBRA, and Social Security claiming timing determines how long the contribution window remains open — and an error in Medicare enrollment timing can produce late-enrollment penalties independent of HSA implications
  • Estate planning sequencing: Given the potentially less favorable non-spouse beneficiary treatment under current law, investors with both Roth assets and HSA assets may consider drawing down the HSA preferentially during retirement to limit estate exposure, rather than preserving it as a bequest vehicle

These variables illustrate why the HSA, despite its relatively clear federal tax mechanics, sits at the intersection of insurance planning, healthcare cost estimation, tax strategy, and estate planning. An accumulation-oriented approach that is highly effective for one investor may be inappropriate for another, depending on factors that are not visible in a general description of how the account works.


This post is for general educational purposes only and does not constitute tax or investment advice. Individual tax situations vary; consult a qualified tax professional or financial advisor before making planning decisions.

Frequently Asked Questions

  • To contribute to an HSA, an individual must be enrolled in a qualifying high-deductible health plan (HDHP) that meets IRS minimum deductible and maximum out-of-pocket thresholds, must not be enrolled in Medicare (Part A or Part B), and must not be claimed as a dependent on another person's tax return. Enrollment in most non-HDHP health coverage that provides first-dollar benefits generally disqualifies contribution eligibility, though dental, vision, and limited-purpose FSA coverage may be permitted alongside an HDHP.

  • Many HSA providers offer investment menus that include mutual funds, index funds, and ETFs beyond a basic cash sweep. The quality and cost of available investments varies considerably by provider. Some providers require a minimum cash balance before allowing fund investments. Investors treating the HSA as a long-term retirement vehicle benefit from selecting providers with low-cost investment options, and those who have accumulated HSAs across multiple employers may have the option to consolidate balances into a preferred provider's account.

  • After age 65, HSA distributions for qualified medical expenses remain federal-tax-free. Distributions for non-medical purposes become subject to ordinary federal income tax but are no longer subject to the 20% penalty that applies to non-medical withdrawals before age 65 — treatment that is functionally similar to a traditional IRA distribution. The HSA retains its advantage for medical spending throughout retirement, and unlike traditional IRAs and 401(k) accounts, it carries no required minimum distributions.

  • California does not conform to the federal HSA provisions. Contributions are not deductible on the California state return, even though they reduce federal taxable income. Investment earnings within the HSA — interest, dividends, and capital gains — are generally subject to California income tax reporting in the year they are earned, rather than accumulating without taxation as under federal law. Qualified distributions for medical expenses are excluded from California taxable income, consistent with federal treatment. The practical effect is that California residents may face annual state income tax on HSA investment growth, which can reduce the compounding benefit relative to the federal treatment.

Found this useful?

More for high earners

Strategies for high-income professionals.

  • ISOs, AMT and equity compensation
  • Roth conversions and the backdoor
  • NUA and concentrated company stock

Fee-only · Fiduciary · No spam · Unsubscribe any time

Your Beneficiary Designations on Retirement Accounts: Why They Override Your Will and What Goes WrongTax-Gain Harvesting: Resetting Cost Basis at the 0% Federal Capital Gains Rate