HSA Investing Explained: The Triple Tax Advantage and How to Use Your Health Savings Account as a Retirement Account
May 9, 2026 · guides · 14 min read
HSA Investing Explained: The Triple Tax Advantage and How to Use Your Health Savings Account as a Retirement Account
Most people treat a Health Savings Account as a healthcare expense account -- a place to park money for copays, prescriptions, and deductibles. That framing costs them a six-figure opportunity. The HSA is the single most tax-efficient savings vehicle available to working Americans, and the investors who understand it use it as a secondary retirement account that outperforms a Roth IRA for long-term accumulation.
This guide covers everything: what qualifies you for an HSA, how the triple tax advantage actually works in dollar terms, the "super Roth" strategy, how to pick the right custodian, and what happens to the account when you turn 65. If you have access to a High Deductible Health Plan and are not maxing your HSA and investing the balance, you are leaving money on the table.
What Is an HSA and Who Can Contribute?
A Health Savings Account is a tax-advantaged savings and investment account available exclusively to people enrolled in a High Deductible Health Plan (HDHP). The IRS defines the eligibility rules. You cannot open or contribute to an HSA if you are enrolled in Medicare, covered by a traditional PPO through a spouse, enrolled in VA health benefits (with limited exceptions), or participating in a general-purpose Flexible Spending Account (FSA) -- even if your spouse's employer offers one.
The HDHP thresholds for 2024 are:
- Minimum deductible: $1,600 for self-only coverage, $3,200 for family coverage
- Maximum out-of-pocket: $8,050 for self-only, $16,100 for family
If your health plan meets both tests, you can contribute to an HSA for that calendar year.
2024 Contribution Limits
- Self-only HDHP coverage: $4,150
- Family HDHP coverage: $8,300
- Catch-up contribution (age 55 or older): additional $1,000
These limits are indexed to inflation and typically increase by $50-$100 per year. Contributions can be made through payroll deduction (pre-tax, avoiding both income tax and FICA) or directly to the HSA and deducted on Schedule 1 of your federal return (avoids income tax but not FICA).
This distinction matters: payroll contributions avoid FICA taxes -- 7.65% combined Social Security and Medicare -- while direct contributions only avoid income tax. If your employer allows it, always contribute through payroll to capture the full FICA savings. On a $4,150 contribution, the FICA difference alone is worth roughly $317 annually.
The Triple Tax Advantage: What It Actually Means in Dollar Terms
No other account in the U.S. tax code provides all three of the following benefits simultaneously:
- Contributions are pre-tax (or deductible), reducing your taxable income in the year you contribute
- Investment growth inside the account is completely tax-free -- no capital gains, no dividend tax, no year-end distributions
- Withdrawals for qualified medical expenses are tax-free at any age
Compare this to other tax-advantaged accounts:
- A traditional 401(k) gets #1 (pre-tax contributions) and #2 (tax-deferred growth), but withdrawals are taxed as ordinary income at any age. It is a two-benefit account.
- A Roth IRA gets #2 (tax-free growth) and #3 (tax-free withdrawals), but contributions are after-tax. It is a two-benefit account.
- An HSA used for qualified medical expenses gets all three. It is the only three-benefit account.
Dollar Example: 30-Year-Old Investing $4,150 Annually
Assume a 30-year-old in the 22% federal bracket contributes $4,150 per year to an HSA through payroll for 35 years (to age 65), earns 7% annually, and uses the balance entirely for qualified medical expenses at retirement.
- Pre-tax contribution value annually: $4,150 x 22% = $913 in income tax savings + $317 in FICA savings = $1,230 annual tax benefit at contribution
- Growth: $4,150/year for 35 years at 7% = approximately $576,000 at age 65
- Federal tax on withdrawal for medical expenses: $0
- State tax in most states: $0 (California and New Jersey are exceptions -- they do not conform to federal HSA tax treatment)
If that same $576,000 had grown in a taxable brokerage account and was withdrawn at the long-term capital gains rate of 15%, the tax bill would be approximately $78,000 on the gain alone, before accounting for the annual drag of dividend taxes.
The lifetime tax advantage of a fully maximized HSA invested in equities, used for medical expenses in retirement (which are substantial -- Fidelity estimates an average retired couple needs $300,000+ for healthcare costs in retirement), can exceed $150,000 in tax savings compared to a taxable account.
After Age 65: The Account Transforms
At age 65, the HSA changes behavior in an important way. It becomes functionally equivalent to a Traditional IRA for non-medical withdrawals:
- Non-medical withdrawals are taxed as ordinary income (same as a Traditional IRA distribution)
- The 20% penalty for non-medical withdrawals before age 65 disappears entirely
- Medical expense withdrawals remain completely tax-free, indefinitely
This means the worst-case scenario for an HSA holder -- "what if I have more money in here than I spend on medical expenses" -- is simply paying ordinary income tax on withdrawals, which is identical to drawing from a 401(k) or Traditional IRA. The downside is the same as a pre-tax retirement account. The upside (triple tax-free for medical expenses) has no equivalent.
At age 65, you also become eligible for Medicare, which means you can no longer make new HSA contributions. But existing balances can grow and be withdrawn indefinitely.
The Implicit Value of the Medical Expense Carve-Out After 65
The IRS list of qualifying medical expenses under Publication 502 is broad. After 65, the following all qualify for tax-free HSA withdrawals:
- Medicare premiums (Parts B, C, D, and Medigap supplemental premiums) -- this is one of the most valuable uses, since Medicare premiums are a fixed, predictable expense in retirement
- Long-term care insurance premiums (up to age-based limits)
- Dental and vision care
- Prescription drugs
- Out-of-pocket costs for doctor visits, procedures, and hospital stays
Medicare Part B premium alone for 2024 is $174.70 per month ($2,096/year). For a married couple, that is $4,193 per year in tax-free HSA withdrawals. Over a 20-year retirement, paying Medicare premiums from an HSA avoids roughly $18,000 in taxes for a couple in the 24% bracket -- on a fixed, predictable expense.
The "Super Roth" Strategy: Paying Medical Costs Out of Pocket and Waiting Decades
This is the most powerful and underused HSA strategy available, and it is completely legal under current tax law.
The core insight: there is no time limit on HSA reimbursements, as long as the medical expense was incurred after the HSA was opened. You can pay a $500 medical bill in 2024, keep the receipt, leave the HSA balance invested, and reimburse yourself in 2044 -- 20 years later. The reimbursement is tax-free regardless of when it occurs.
How It Works Step by Step
Step 1: Open an HSA and begin contributing. Keep a separate document (a spreadsheet, a folder in Google Drive, a physical file) tracking every qualified medical expense you pay out of pocket after this date. Photograph or scan every Explanation of Benefits (EOB), receipt, and invoice.
Step 2: Pay all current medical expenses from your checking account, not the HSA. This leaves the full HSA balance invested.
Step 3: Invest the HSA balance aggressively -- a total market ETF or S&P 500 index fund if your custodian offers it.
Step 4: Let the balance compound for 20-30 years.
Step 5: At any point -- in retirement, or even before -- withdraw money from the HSA as a reimbursement for the accumulated medical expenses. The withdrawal is completely tax-free because you are reimbursing qualified medical expenses, regardless of when they occurred.
Dollar Illustration
Assume $2,000 in annual out-of-pocket medical costs starting at age 35. Instead of withdrawing from the HSA, you pay from your checking account and track every expense.
At age 65:
- Accumulated unreimbursed medical expenses: $2,000 x 30 years = $60,000 in receipts
- HSA balance that was invested instead of spent: assuming $4,150/year contributions at 7% growth = approximately $430,000
You now have $60,000 in documented medical expenses you can reimburse yourself from the HSA, tax-free. You withdraw $60,000 -- zero tax. The remaining $370,000 continues to grow and can be used for Medicare premiums, future medical costs, or as an IRA-equivalent for non-medical expenses.
The critical requirement: documentation must be preserved. The IRS does not require you to submit receipts to the HSA custodian, but you must be able to produce them if audited. Keep records permanently. There is no statute of limitations on the documentation requirement for this strategy -- if you claim a 2024 medical expense in 2044, you need the 2024 receipt.
Choosing the Right HSA Custodian
This is where many HSA holders lose significant value. Employer-sponsored HDHPs often come with a default HSA custodian that charges monthly fees, offers poor investment options, and requires high minimum balances before investing. Once funds are in the HSA, you can typically roll them over to a preferred custodian once per year without tax consequences.
The Custodian Comparison Framework
The variables that matter:
- Monthly maintenance fee: some custodians charge $2-$3/month ($24-$36/year) regardless of balance
- Investment threshold: the minimum balance required before you can invest (common thresholds: $1,000, $2,000)
- Fund options: mutual funds only vs. ETFs available, expense ratios of available funds
- Commissions: whether trading ETFs inside the HSA is commission-free
Fidelity HSA: The Benchmark
Fidelity's HSA has become the gold standard for long-term investors:
- No monthly fees
- No minimum balance required to invest -- you can invest from day one
- Commission-free ETF trading, including FZROX (Fidelity Zero Total Market Index, 0.00% expense ratio) and access to Vanguard, iShares, and SPDR ETFs
- No account opening fees
- FDIC-insured cash positions
The ability to invest from dollar one, with zero fees and zero-expense-ratio index funds, compounds meaningfully over 30 years. A $2/month fee on a $10,000 balance is 0.24% annually -- equivalent to owning a fund with a 0.24% expense ratio just for the privilege of custody. Over 30 years, that fee drag at 7% growth costs approximately $3,500 per $10,000 initial balance.
If your employer's default custodian charges fees or limits investment options, initiate a trustee-to-trustee transfer to Fidelity. You can keep contributing through payroll to the employer custodian (to capture FICA savings) and transfer the balance to Fidelity periodically -- typically once or twice per year.
Investment Allocation Inside the HSA
For the long-term "super Roth" strategy, allocate the investable portion of the HSA to equities. The logic:
- Medical expenses in the near term (next 1-3 years) should be held as cash or short-term instruments, since you will spend that money
- Money you intend to let grow for decades should be in broad equity index funds with low expense ratios
A simple allocation for someone in their 30s-40s using the super Roth strategy: 90-100% in a total market equity index fund, since the account horizon is 20-30 years and the spending need is being funded from other accounts.
HDHP vs. PPO: When Does the Math Work?
Choosing between a High Deductible Health Plan (which enables HSA contributions) and a traditional PPO requires actual math, not rule of thumb. The comparison has three moving parts:
- Premium differential: what is the annual difference in premiums between the HDHP and the PPO?
- Expected out-of-pocket costs: based on your health history, what do you realistically spend on deductibles and copays?
- HSA contribution tax benefit: what is the tax value of contributing to the HSA, which you cannot do on the PPO?
The Break-Even Calculation
Example:
- PPO annual premium: $3,600 (employee share after employer contribution)
- HDHP annual premium: $1,800 (employee share)
- Premium savings by choosing HDHP: $1,800/year
- HDHP deductible: $2,000 self-only
- PPO deductible: $500 self-only
- Expected additional out-of-pocket on HDHP: $1,500 more than PPO in a typical year
Net HDHP cost advantage (before HSA): $1,800 savings - $1,500 additional OOP = $300/year ahead on HDHP.
HSA tax benefit at 22% bracket + FICA savings on $4,150 contribution: approximately $1,230.
Total HDHP advantage: $300 + $1,230 = $1,530/year ahead.
Worst case (serious illness, hitting full deductible):
- Additional OOP exposure: $3,500 more than PPO scenario
- Reduced advantage: $1,800 - $3,500 = -$1,700 (PPO better before HSA tax benefit)
- After HSA tax benefit: -$1,700 + $1,230 = -$470
Even in the worst case (a high-expense medical year), the HDHP + HSA scenario is only slightly behind the PPO -- and the comparison ignores the long-term compounding value of having invested the HSA.
The HDHP + HSA combination typically loses the comparison only for people with chronic high medical costs who regularly hit the maximum out-of-pocket limit. For healthy individuals and families with modest medical utilization, it wins on total cost in almost every scenario.
HSA vs. FSA: Not the Same Account
A Flexible Spending Account (FSA) is often confused with an HSA. They are fundamentally different:
HSA: funds roll over indefinitely, year after year, with no expiration. The account belongs to you, not your employer.
FSA: subject to "use it or lose it" rules. The IRS allows a grace period of 2.5 months or a rollover of up to $640 (2024 limit) to the next plan year, but any amount above that is forfeited to the employer.
HSA: portable. If you change jobs or lose insurance, the account stays with you.
FSA: typically forfeited or partially accessible on termination.
HSA: can be invested in equities.
FSA: held as cash only, no investment option.
HSA: requires HDHP enrollment.
FSA: available with any health plan, including PPOs.
If you are enrolled in an FSA through your employer while your spouse is enrolled in a general-purpose FSA, you are disqualified from contributing to an HSA. This is the "disqualifying coverage" rule that catches many employees off guard during open enrollment.
A Limited Purpose FSA (for dental and vision only) is compatible with HSA enrollment and can be used alongside an HSA to cover dental and vision costs while leaving the HSA balance invested.
HSA vs. 401(k): Contribution Order of Operations
The optimal contribution sequence depends on your goals:
- Contribute to 401(k) to the employer match maximum. This is always the first dollar -- a 50% or 100% match is an immediate guaranteed return.
- Max the HSA. At $4,150 (individual) or $8,300 (family), the HSA is a smaller dollar amount than the 401(k) limit ($23,000 for 2024), but the triple tax advantage makes it more efficient per dollar for medical expenses.
- Max a Roth IRA (if income-eligible). $7,000 for 2024, with phase-out beginning at $146,000 (single) / $230,000 (married filing jointly).
- Return to the 401(k) and contribute additional amounts above the match.
- Taxable brokerage for additional savings beyond tax-advantaged limits.
The HSA occupying the #2 position reflects its superior per-dollar efficiency for healthcare costs -- but it does not beat a 401(k) employer match, which is a 50-100% immediate return on investment.
HSA vs. Roth IRA: The Comparison That Matters Most
Both accounts offer tax-free growth and tax-free withdrawals (on qualified expenses or qualified distributions). The key differences:
- HSA contributions are deductible or pre-tax. Roth IRA contributions are after-tax. The HSA wins at contribution time.
- Roth IRA has no restrictions on what you withdraw at 59.5 -- any expense qualifies. HSA non-medical withdrawals before 65 carry a 20% penalty plus ordinary income tax. The Roth wins for pre-65 flexibility on non-medical withdrawals.
- Roth IRA has income limits ($161,000 single / $240,000 married for 2024 for direct contributions). HSA has no income limit. High earners who cannot contribute to a Roth may still maximize HSA contributions.
- Roth IRA allows contributions at any age without an earned income minimum (income phase-outs permitting). HSA requires HDHP enrollment.
For someone who qualifies for both: max the HSA first if you have substantial expected medical expenses in retirement, because the HSA is more tax-efficient for that specific purpose. If you are in perfect health and expect minimal medical expenses, the Roth's flexibility on withdrawal purpose gives it an edge.
In practice, an investor using the super Roth strategy and investing the HSA for decades gets the best of both: pre-tax contributions (better than Roth at contribution), tax-free growth (same as Roth), and tax-free withdrawals for a large category of retirement expenses.
Record-Keeping Requirements
The self-reimbursement strategy only works if you can document every expense. The practical requirements:
- Keep a master log of every qualified medical expense: date, provider, amount, and whether it was reimbursed by the HSA or paid out of pocket
- Save every Explanation of Benefits (EOB) from your insurer -- these documents the claim and the amount you paid
- Save every receipt for prescription drugs, vision, dental, and other out-of-pocket costs
- Store records permanently. The IRS can audit HSA distributions at any time if the documentation does not exist
Digital storage recommendation: scan every document and save to a dedicated cloud folder (Google Drive or similar) organized by year. Back up locally. A decade of medical receipts in a shoebox is a liability -- digitize them.
IRS Publication 502 is the authoritative list of qualifying medical expenses. It is broadly inclusive: dental and vision care, long-term care insurance premiums (age-based limits), psychiatry and therapy, fertility treatments, hearing aids, prescription eyeglasses, and many over-the-counter medications with a prescription are all qualified. Cosmetic procedures, gym memberships, and general health supplements are generally not qualified.
Estate Planning: What Happens to Your HSA When You Die?
The answer depends on your beneficiary designation:
- Spouse beneficiary: the account transfers to the surviving spouse and becomes their HSA, fully intact with all tax benefits. This is the ideal outcome -- the account continues to grow tax-free and can be used for the survivor's medical expenses.
- Non-spouse beneficiary (including children, even adult children): the account is distributed to the beneficiary and included in their ordinary taxable income in the year of death. There is no stretch or multi-year distribution option for non-spouse HSA beneficiaries, unlike inherited IRAs.
- No beneficiary designated: the account passes through the estate and is subject to probate plus ordinary income tax.
The estate planning implication is significant for large HSA balances: a $200,000 HSA balance inherited by a non-spouse beneficiary in the 32% bracket generates roughly $64,000 in immediate income tax in the year of inheritance. There is no way to avoid this under current law.
For married couples, this is generally not a problem -- the surviving spouse inherits the account as their own HSA. For single individuals with large HSAs, the estate tax inefficiency of leaving a large balance to non-spouse heirs is a consideration. Strategies:
- Spend the HSA balance in late retirement (it will be used for Medicare premiums and medical costs anyway)
- Name a charity as beneficiary if you have a very large balance -- charities receive the account tax-free
- Coordinate with a financial planner to balance HSA growth against projected medical spending
The 55+ Catch-Up Contribution
At age 55, the IRS allows an additional $1,000 HSA contribution per year above the standard limit. For a married couple where both spouses are 55 or older and each enrolled in an HDHP with their own HSA, both can make the $1,000 catch-up -- for a total additional contribution of $2,000 per year. Note that the catch-up contribution cannot be made to a joint account; each spouse must have their own HSA to receive the catch-up.
For a couple at 55 maxing $8,300 + $2,000 catch-up = $10,300 annually, invested at 7% for 10 years until 65, that is approximately $142,000 additional accumulation -- entirely with pre-tax dollars, growing tax-free.
Practical Checklist for Getting Started
The steps in order:
- During open enrollment, compare HDHP vs. PPO using the premium differential plus expected out-of-pocket calculation described above.
- If the HDHP wins the math (it usually does for healthy individuals), elect it and open an HSA.
- Elect payroll contributions to the full annual limit through your employer's payroll system.
- If your employer's default custodian charges fees or limits investment options, open a Fidelity HSA and set up periodic rollovers.
- Set up auto-invest within the custodian -- most allow you to configure an automatic investment sweep into a selected fund when the cash balance exceeds a threshold.
- Begin tracking all out-of-pocket medical expenses in a dedicated spreadsheet or document.
- Pay current medical expenses from your checking account, not the HSA.
- Review the balance annually and confirm the investment allocation remains appropriate for your timeline.
The HSA is not complicated to operate. The difficulty is behavioral: resisting the urge to spend the balance on current medical costs when you have the option to let it compound. Every dollar you spend from the HSA instead of investing it and paying out of pocket is a dollar that loses 20-30 years of compounding at 7%.
An investor who treats the HSA as untouchable, invests it aggressively, and pays medical costs from cash flow will arrive at retirement with a tax-free medical account that covers decades of healthcare costs. That is the account most investors have but almost nobody actually builds.
Summary
The HSA is the only account in the U.S. tax code offering pre-tax contributions, tax-free growth, and tax-free withdrawals simultaneously -- and it remains tax-free at withdrawal beyond age 65 for any medical expense, including Medicare premiums. The self-reimbursement strategy (tracking receipts and delaying reimbursement for years or decades) turns the HSA into a long-term investment account with no equivalent in the tax code. Choosing the right custodian (Fidelity), contributing through payroll to capture FICA savings, and investing the full balance in low-cost equity index funds maximizes the account's long-term value. For anyone enrolled in a qualifying HDHP, maxing the HSA contribution and letting it grow untouched is one of the highest-return, lowest-risk financial decisions available.
This article is for educational purposes only and does not constitute financial, tax, or legal advice. Consult a qualified tax professional or financial planner before making decisions about your health insurance enrollment, HSA contributions, or investment strategy.