An HSA used as a retirement account is a health savings account you fund during your working years, invest for growth, and draw on later for medical costs or income after you enroll in Medicare. The account is yours, not your employer’s, so the balance rolls over every year and follows you between jobs.

That ownership is what separates an HSA from a flexible spending account. An FSA can work with almost any employer health plan, but unspent money is generally lost at the end of the plan year and the account stays with your employer.

An HSA requires a high-deductible health plan, but the trade-off is a long-term account you can keep. See HSA vs FSA for the full comparison.

How does an HSA work as a retirement account?

An HSA works as a retirement account because it has three tax advantages: contributions go in pre-tax, investment growth is tax-free, and withdrawals for qualified medical costs are tax-free. Those three breaks are hard to match in one account.

The catch is eligibility. You need an HSA-eligible high-deductible health plan, and you cannot be covered by another disqualifying health plan, be claimed as a dependent, or hold a general-purpose FSA or HRA.

HSA Bank’s eligibility page also lists Medicare Part A/B, TRICARE, and certain VA coverage as disqualifying. If you clear those rules, the account stays yours when you change jobs.

You can pay current medical bills from it, or pay those bills out of pocket and let the HSA invest.

What makes an HSA different from a 401(k) or IRA?

An HSA is the only account that can be funded pre-tax, grow tax-free, and pay out tax-free for qualified medical costs. A 401(k) and a traditional IRA give you pre-tax contributions and tax-deferred growth, but ordinary withdrawals are taxed as income.

FeatureHSA401(k)Traditional IRA
EligibilityMust have HSA-eligible HDHPEmployer planIncome rules may apply
ContributionsPre-taxPre-tax or RothPre-tax or Roth
GrowthTax-freeTax-deferred or tax-free with RothTax-deferred or tax-free with Roth
Qualified withdrawalsTax-free for medicalTaxed as income in traditional planTaxed as income in traditional plan
Non-medical withdrawalsTaxed as income, extra penalty before MedicareTaxed as incomeTaxed as income

The HSA’s advantage is narrow but valuable: it is best for medical costs. If you have no medical costs, the HSA loses its tax-free withdrawal edge after Medicare enrollment. A 401(k) is usually better for general retirement income, especially if your employer matches contributions.

How do you use an HSA as a retirement account step by step?

Treat the HSA as a long-term investment account, not a debit card for every pharmacy visit. The steps below keep costs low and let the balance compound.

Step 1: Confirm you are eligible

You need an HSA-eligible high-deductible health plan. You also cannot be enrolled in Medicare, covered by another disqualifying plan, claimed as a dependent, or hold a general-purpose FSA or HRA.

If you are choosing between plans, compare the total yearly cost, not just the premium; the health plan calculator can compare two plans on expected annual cost and worst case. The PPO vs HMO vs HDHP guide explains how plan type affects the deductible you accept.

Step 2: Open an HSA with low fees and investment access

Fidelity HSA charges $0 account fees and has no minimum to open or invest. Lively is free for individuals and families, but its optional Schwab brokerage account costs $24 a year unless you keep $3,000 in cash. HealthEquity charges $2.50 a month and $25 to close, so it is a weaker fit for a long-term balance unless your employer covers the fee.

Step 3: Pay small medical bills out of pocket

If your cash flow allows, pay current medical bills from your checking account and leave the HSA invested. Keep the receipts and explanation of benefits. You can reimburse yourself later for qualified costs, as long as you can document them.

Step 4: Invest the balance above your cash cushion

Most providers let you invest only after a cash threshold. Fidelity has no minimum to invest.

Optum Bank’s investment threshold ranges from $500 to $2,000, and its Betterment option charges 0.50% a year. Lively’s Schwab brokerage access costs $24 a year unless you keep $3,000 in cash.

Pick a cash cushion you can cover, then invest the rest in low-cost funds.

Step 5: Use the money later

Qualified medical costs can be paid from the HSA tax-free at any age. Once you enroll in Medicare, you can also take non-medical withdrawals; they are taxed as income, but the extra penalty for non-medical withdrawals generally no longer applies. That makes the HSA a bridge for medical costs and a backup source of retirement cash.

Which HSA providers work well for long-term investing?

Fidelity HSA is the strongest low-cost pick for most people because it charges $0 account fees and has no minimum to invest. Lively is the best free option for individuals and families, but its Schwab brokerage access adds a $24 annual fee unless you keep $3,000 in cash.

ProviderCash yieldAccount feesInvestment accessBest for
Fidelity HSA3.56% 7-day yield via FDRXX as of October 4, 2026$0 account fees; $0 minimumNo minimum to investLow-cost long-term investing
LivelyVaries$0 monthly, opening, closing, transferSchwab brokerage $24/year or $3,000 cash; Guided Portfolio 0.50%Free individual or family HSA
HealthEquity0.01% APY on $0.01–$2,000; tiered up to 0.08%–0.33% on balances over $10,000$2.50 monthly; $25 closingVariesEmployer-provided accounts
HSA Bank0.05% under $5,000; 0.15% on $5,000–$24,999.99; 0.30% on $25,000–$49,999.99; 0.50% on $50,000+No monthly fees; $25 closingSelf-directed options via DriveWealth/LeafHouseNo monthly fee with tiered cash yield
Optum BankVariesMonthly maintenance $0.00–$3.00; $20 outbound transferInvestment threshold $500–$2,000; Betterment 0.50%Employer accounts with Betterment option

The fee gap is real: HealthEquity’s $2.50 monthly fee is $30 a year, and on a $10,000 balance that is 0.30% of the account — more than the cash yield at HSA Bank on balances under $5,000. Fidelity’s $0 fee and 3.56% cash yield are a different starting point, though its default cash fund is a money market fund, not FDIC-insured, and can lose value.

What does an HSA cost over time?

A low-fee HSA can add thousands of dollars to a long-term balance, while a monthly fee and low cash yield can erase the tax advantage. The exact cost depends on your balance, your provider, and whether you invest.

Suppose you keep $10,000 in cash at HealthEquity. The $2.50 monthly fee costs $30 a year, or 0.30% of the balance.

The cash APY on the first $2,000 is 0.01%, which is $0.20 a year on that tier. At Fidelity, the same $10,000 in the default cash fund would earn 3.56% at the stated 7-day yield, or $356 a year before expenses.

That is a difference of $355.80 before the $30 fee.

Now suppose you invest $3,000 at a hypothetical 7% annual return for 20 years. The math is $3,000 × 1.07^20 = $3,000 × 3.8697 = $11,609.

The $3,000 grows by $8,609. A 0.50% annual advisory fee on the same balance would reduce the ending value; the fee is charged along the way, so it does not simply subtract 0.50% once.

Common mistakes

  • Leaving the whole balance in cash. HealthEquity pays 0.01% APY on the first $2,000 and HSA Bank pays 0.05% under $5,000. Invest the long-term portion if your provider allows it.
  • Ignoring the monthly fee. HealthEquity charges $2.50 a month, or $30 a year; Optum charges up to $3.00 a month. A $0-fee HSA is usually better for a long-term balance.
  • Forgetting the closing fee. HealthEquity and HSA Bank each charge $25 to close an account. That matters if you move providers.
  • Contributing while covered by a general-purpose FSA or Medicare. You need HSA-eligible coverage; a limited-purpose FSA for dental and vision is the usual exception.
  • Throwing away receipts. You can reimburse yourself years later, but only if you can prove the expense was qualified.
  • Chasing a high cash yield without checking the investment menu. Fidelity’s cash fund is a money market fund, not FDIC-insured; Optum’s Betterment option charges 0.50% a year.