Skip to content
Menu
Finabase Learn

Save for retirement Lesson 10 of 11

Retirement · Retirement accounts

The HSA as a retirement account: eligibility, limits and receipts

Using a health savings account for retirement: HDHP rules and limits for 2026 and 2027, the Medicare cutoff, reimbursing old receipts and withdrawals after 65.

On this page
  1. Who can contribute
  2. How much can go in
  3. Medicare ends contributions
  4. Withdrawals: the receipts approach
  5. An invested HSA against a taxable account
  6. Pitfalls and limits
  7. The HSA compared with retirement accounts
  8. How Finabase does it
  9. Frequently asked questions
  10. Summary
  11. Check your understanding
  12. Exercise

A health savings account, or HSA, is a tax-favored account for people covered by a high-deductible health plan. It was designed to pay medical bills. But its rules also make it one of the most efficient long-term savings accounts in the US tax code: money goes in before income tax, investment growth is not taxed, and withdrawals for medical costs are never taxed, with no deadline for when the cost is reimbursed. After 65 the account can be spent on anything, taxed like a traditional IRA.

The overview in Retirement accounts explained: 401(k), IRA, Roth and 2026 limits introduces the HSA in a paragraph. This lesson treats it as a retirement account: who is eligible in 2026 and 2027, how much can go in, why enrolling in Medicare stops contributions, how the "save the receipts" approach works under IRS rules, and what the account can be worth against an ordinary taxable account over 25 years.

Who can contribute

IRS Publication 969 defines an eligible individual. On the first day of a month the person must be covered by a high-deductible health plan (HDHP), have no other health coverage except types the law allows (such as dental, vision or specific-disease coverage), not be enrolled in Medicare, and not be claimable as a dependent on someone else's return.

An HDHP is defined by its numbers, which the IRS updates each year.

HDHP test 2026 self-only 2026 family 2027 self-only 2027 family
Minimum annual deductible $1,700 $3,400 $1,750 $3,500
Maximum out-of-pocket (not premiums) $8,500 $17,000 $8,700 $17,400

Sources: Rev. Proc. 2025-19 (2026) and Rev. Proc. 2026-24 (2027).

A plan with a lower deductible, or a higher out-of-pocket ceiling, is generally not an HDHP, and its members cannot contribute to an HSA even if the insurer calls it a "high-deductible" plan. The 2025 tax law (OBBBA) added exceptions from 2026: bronze and catastrophic plans of the kind sold on the health insurance exchanges count as HSA-compatible even when they miss these numbers, and enrollment in certain direct primary care arrangements no longer blocks contributions (IRS Notice 2026-5).

How much can go in

Contribution limit 2026 2027
Self-only HDHP coverage $4,400 $4,500
Family HDHP coverage $8,750 $9,000
Extra from age 55 $1,000 $1,000

Sources: Rev. Procs. 2025-19 and 2026-24. The $1,000 catch-up is set in the statute and is not adjusted for inflation.

The limits are monthly in principle: someone eligible for only part of the year gets a prorated amount. Publication 969's example is a person who turns 65 in July and enrolls in Medicare; their self-only limit for that year is six-twelfths of the annual amount, catch-up included. The last-month rule is the exception: a person eligible on December 1 may contribute the full year's amount, but must then stay eligible through a testing period that runs to December 31 of the following year. Failing it adds the extra contributions to income, plus a 10% additional tax.

Contributions by an employer, including the employee's own pay routed through a cafeteria plan, count toward the same limit. Publication 969 says those employer contributions are excluded from income and generally not subject to employment taxes. That means a payroll HSA contribution avoids Social Security and Medicare tax as well as income tax, something no 401(k) deferral does. A contribution made directly by the individual is deducted on the return instead and does not save payroll taxes. If both spouses are 55 or older, each can add $1,000, but only to an HSA in their own name.

Medicare ends contributions

Publication 969 is direct: beginning with the first month someone is enrolled in Medicare, their contribution limit is zero. The rule reaches backward. If a person applies for Medicare late and Part A coverage is backdated, contributions made for the backdated months become excess contributions. Anyone planning to keep working past 65 and keep funding an HSA has to manage the timing of Medicare enrollment, and Social Security benefits can affect it, a subject for the Social Security lessons.

Medicare ends contributions, not the account. The balance stays, keeps its tax treatment and can pay for qualified expenses for the rest of the owner's life. Publication 969 also allows the HSA to pay Medicare premiums once the owner is 65, except premiums for a Medicare supplement (Medigap) policy.

Withdrawals: the receipts approach

A distribution used for qualified medical expenses is tax-free. Two conditions in Publication 969 set the limits: the expense must have been incurred after the HSA was established, and it must not have been paid or reimbursed from another source or claimed as an itemized deduction.

What the rules do not set is a deadline. The IRS answered the question in Notice 2004-50, Q&A-39: a distribution in any later year can reimburse an expense from any earlier year, as long as the expense was incurred after the HSA was established, and "there is no time limit" on when the distribution must occur. The account owner must keep records that prove the expense, that it was not reimbursed elsewhere and that it was not deducted.

That makes a particular strategy possible. A saver who can afford to pay medical bills from current income leaves the HSA invested, keeps the receipts, and lets the balance grow. Years later, any amount up to the total of saved receipts can be withdrawn tax-free, for any purpose, because it reimburses expenses already incurred. The risk is in the records: a lost receipt is a lost tax-free withdrawal, and the burden of proof is the account owner's.

Withdrawals not for medical costs

A distribution that is not for qualified medical expenses is included in income. Before 65 it also owes a 20% additional tax. Publication 969 lists the exceptions: there is no additional tax on distributions after the owner is disabled, reaches 65 or dies. From 65, a non-medical withdrawal is simply ordinary income, the same treatment as a withdrawal from a traditional IRA, and medical withdrawals remain tax-free. Unlike a traditional IRA, an HSA has no required minimum distributions; Publication 969 notes the owner does not have to make withdrawals each year.

At death

The beneficiary choice matters more than for most accounts. If the surviving spouse is the beneficiary, the HSA becomes the spouse's HSA. For anyone else, the account stops being an HSA and its fair market value is taxable to the beneficiary in the year of death, reduced by the decedent's medical expenses that the beneficiary pays within a year.

An invested HSA against a taxable account

The figure compares $4,500 of wages a year, the 2027 self-only limit, for 25 years. In the HSA the whole $4,500 goes in each year. In the taxable account the same wages are first taxed at 22%, so $3,510 goes in. Both earn 6% a year: 4% price growth and 2% dividends. In the taxable account the dividends are taxed at 15% each year and the remaining gain at 15% when the account is cashed. The assumptions are illustrative and leave out state taxes and payroll taxes.

An invested HSA vs a taxable account: $4,500 of wages a year for 25 years $0k $50k $100k $150k $200k $250k 0 5 10 15 20 25 HSA, spent on medical costs (no tax) HSA, spent on anything after 65 (taxed at 22%) Taxable account, after tax on gains $246,890 $174,434 Years (6% a year return; 22% income tax; 15% on dividends and gains; illustrative, nominal)
Illustrative comparison: $4,500 of wages a year for 25 years at 6% a year, 22% income tax, 15% on dividends and gains, nominal dollars. Computed by Finabase.

After 25 years the HSA holds $246,890. Spent on medical costs, or reimbursing saved receipts, all of it is spendable. Spent on anything else after 65 at a 22% rate, $192,574 is left. The taxable account ends at $174,434 after the tax on its gains. The medical-use HSA is ahead by $72,457, about 42%. Even used as a plain retirement account taxed on the way out, it beats the taxable account, because the 22% tax at the end is no larger than the 22% at the start while its growth was never taxed along the way. A payroll contribution would widen the gap further: 7.65% of $4,500 is about $344 a year of Social Security and Medicare tax not paid.

The result depends on the inputs. If the tax rate on withdrawals after 65 were higher than the rate saved on contributions, the non-medical line would fall. If the saver needed the HSA to pay current medical bills, little would be left to invest. And an HSA invested in shares can fall in value just before a large medical bill.

Pitfalls and limits

  • Losing eligibility mid-year. A change of plan or Medicare enrollment prorates the limit, and the last-month rule can claw contributions back with a 10% additional tax.
  • Backdated Medicare. Contributions in the backdated months become excess contributions.
  • Missing records. Tax-free reimbursement years later depends on receipts that prove the expense, its date after the HSA opened and that it was not paid or deducted elsewhere.
  • Leaving the cash uninvested. Some HSA providers keep balances in cash unless the owner chooses investments, and some charge fees or require a minimum cash balance first.
  • Naming a non-spouse beneficiary without a plan. The whole account becomes taxable to them in the year of death.

The HSA compared with retirement accounts

Feature (2027) HSA Traditional IRA / 401(k) Roth IRA
Who can contribute HDHP-covered, not on Medicare Anyone with earned income Earned income, under income limit
Limit $4,500 / $9,000 (+$1,000 at 55) $7,500 IRA; $25,500 401(k) $7,500
Tax on the way in None (and no payroll tax via employer) None Taxed
Tax on medical withdrawals None Taxed None if qualified
Tax on other withdrawals after 65 Ordinary income Ordinary income None if qualified
Additional tax on early withdrawals 20% before 65 (non-medical) 10% before 59½ 10% on earnings before 59½
Required minimum distributions None From 73 (75 if born 1960+) None during life

How Finabase does it

Finabase does not hold HSAs, know a reader's health plan or check eligibility, and it does not track medical receipts. Many HSA providers let the balance be invested in mutual funds and ETFs; Finabase symbol pages show those funds' prices, dividends and, where available, expense ratios, and Portfolio can follow an invested HSA alongside other accounts.

Frequently asked questions

How much can I put in an HSA in 2027?

$4,500 with self-only HDHP coverage or $9,000 with family coverage, plus $1,000 if you are 55 or older. For 2026 the figures are $4,400 and $8,750.

Is there a time limit to reimburse myself from an HSA?

No. The IRS said in Notice 2004-50 that a distribution can reimburse a qualified expense from any earlier year, provided the expense came after the HSA was set up and you keep records showing it was not reimbursed or deducted elsewhere.

Can I contribute to an HSA after I start Medicare?

No. From the first month of Medicare enrollment your limit is zero, and backdated coverage makes contributions for those months excess. You can still spend the existing balance.

What happens to HSA withdrawals after 65?

Withdrawals for qualified medical expenses stay tax-free. Other withdrawals are taxed as ordinary income, like a traditional IRA, but no longer owe the 20% additional tax.

Summary

An HSA takes pre-tax money from anyone covered by a qualifying high-deductible plan, up to $4,400 self-only and $8,750 family in 2026 and $4,500 and $9,000 in 2027, plus $1,000 from 55. Growth is untaxed, medical withdrawals are tax-free with no deadline for reimbursement, and after 65 other withdrawals are taxed like a traditional IRA. Contributions stop with Medicare. Invested and left alone, with receipts kept, an HSA can outgrow a taxable account funded from the same wages by roughly 40% over 25 years in the example here; the gain depends on staying eligible, investing the balance and keeping the records.

Check your understanding

4 questions on this lesson. Each answer comes with the reason, and nothing is scored.

  1. Which person can contribute to an HSA in 2027?

    1. Someone with a $1,000-deductible employer plan who wants to save for health costs
    2. Someone with self-only coverage under a plan with a $2,000 deductible and an $8,000 out-of-pocket maximum, not on Medicare
    3. A 67-year-old enrolled in Medicare Part A who still works
    Show the answer

    B. Someone with self-only coverage under a plan with a $2,000 deductible and an $8,000 out-of-pocket maximum, not on Medicare For 2027 an HDHP needs a deductible of at least $1,750 (self-only) and out-of-pocket costs of no more than $8,700. Medicare enrollment makes the contribution limit zero.

  2. In 2027 an HSA owner pays a medical bill from her bank account and keeps the records. When can she reimburse herself tax-free from the HSA?

    1. Only in 2027
    2. By April 15 of 2028
    3. In any later year, with no time limit, if the expense came after the HSA was set up and was not reimbursed or deducted elsewhere
    Show the answer

    C. In any later year, with no time limit, if the expense came after the HSA was set up and was not reimbursed or deducted elsewhere IRS Notice 2004-50, Q&A-39, says there is no time limit on when the distribution must occur, provided the records support it.

  3. A 50-year-old takes $5,000 from her HSA for a vacation. What is owed?

    1. Nothing
    2. Income tax on $5,000 plus a 20% additional tax ($1,000)
    3. Income tax only
    Show the answer

    B. Income tax on $5,000 plus a 20% additional tax ($1,000) Non-medical distributions are income, and before 65 (unless disabled) they also owe the 20% additional tax. After 65 only income tax applies.

  4. Why can an HSA funded through payroll beat a 401(k) deferral of the same wages for someone who spends it on medical costs?

    1. HSA limits are higher
    2. Payroll HSA contributions also avoid Social Security and Medicare tax, and medical withdrawals are never taxed
    3. HSAs earn guaranteed interest
    Show the answer

    B. Payroll HSA contributions also avoid Social Security and Medicare tax, and medical withdrawals are never taxed Publication 969 says employer contributions, including cafeteria-plan salary reductions, are generally not subject to employment taxes. 401(k) deferrals are, and their withdrawals are taxed.

Exercise

One task to do in Finabase. Nothing is graded or saved.

Open VTI’s Dividends tab. Add the last four quarterly dividends and divide by today’s share price for a rough yield. The lesson assumes 2% dividends taxed at 15% every year in a taxable account. Work out the yearly tax on the dividends of $100,000 at your yield and at 2%.

Open VTI’s dividends
What you should find

At 2%, $100,000 pays $2,000 and the tax is $300 a year; a lower yield means a smaller yearly drag. So most of the invested HSA’s lead, about 42% in the lesson’s medical-use case, comes from the deduction going in and tax-free medical withdrawals coming out, not from sheltering dividends.

Sources and further reading

  1. Internal Revenue Service — Rev. Proc. 2026-24, 2027 HSA and HDHP amounts
  2. Internal Revenue Service — Rev. Proc. 2025-19, 2026 HSA and HDHP amounts
  3. Internal Revenue Service — Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
  4. Internal Revenue Service — Notice 2026-5, expanded availability of HSAs under OBBBA (bronze and catastrophic plans, direct primary care)
  5. Internal Revenue Service — Notice 2004-50, Q&A-39 (no time limit on reimbursing qualified medical expenses), Internal Revenue Bulletin 2004-33