Ledger Money
Ledger Taxes 15 min read

The HSA as a retirement account: three tax breaks, one deadline, and the trap at 65

The 2026 and 2027 limits, who still qualifies after this year's expansion, the receipt-keeping that makes the three tax breaks real, and what ends at 65.

Ledger Editorial Updated October 11, 2026

Two readers are holding this page, and they need different things from it.

The first has an HSA-eligible health plan, a paycheck, and some uncommitted saving capacity. The question is which account gets the next dollar: the health savings account or the 401(k).

The second is 63 or 64, has been contributing to an HSA for a decade, and is about to discover that the account has an expiry date on deposits — one set by a Medicare rule, not by a bank.

The short version, before the detail. The HSA is the only account you own whose withdrawals can be tax-free at any age for a cost almost everyone eventually pays in large quantities: medical care. It is also the only one whose contribution window closes on a date you may not have chosen and may not have noticed. Both of those facts are in the same statute.

The three tax breaks, and what each one actually requires

The phrase “triple tax advantage” is used loosely, so it is worth separating the three legs, because each has its own condition.

1. The contribution comes out before income tax. Contributions you or anyone other than your employer makes are deductible on your federal return, and the IRS is explicit that you can claim that deduction even if you do not itemize. Employer contributions — including contributions made through a cafeteria plan salary reduction — are excluded from your gross income instead. There is no income limit on who may contribute, and no requirement that you have earned income.

2. If the money comes through payroll, it also skips payroll tax. This is the leg people underuse. Contributions an employer makes to a qualified individual’s HSA are exempt from federal income tax withholding, social security tax, Medicare tax and FUTA tax. A salary-reduction election through a cafeteria plan is treated as an employer contribution, so it lands in the same place. The combined employee-side rate for 2026 is 6.2% for social security (on wages up to the $184,500 wage base) plus 1.45% for Medicare, which has no wage ceiling — so the payroll-tax saving is 7.65% of each dollar up to the wage base, and 1.45% above it. Dollars you contribute yourself from a bank account get break 1 but not this one.

3. Nothing is taxed on the way out, if the money buys medical care. The account itself is exempt from tax, so interest, dividends and capital gains are not taxed while they stay in it. Distributions used exclusively to pay qualified medical expenses are not included in your gross income at any age.

One comparison makes the third leg concrete. IRS Publication 15’s withholding table treats elective 401(k) deferrals as taxable for social security and Medicare purposes, and a pre-tax 401(k) withdrawal is ordinary income whenever it happens. An HSA contribution through payroll gets both exclusions, and an HSA withdrawal for a qualified medical expense is taxed by neither. That is the whole argument for using the HSA as a long-horizon account rather than a medical petty-cash drawer.

Set against that: you can only contribute while you are an eligible individual, and the balance is not free money — it is money you have decided not to spend on anything else this year.

Who is eligible in 2026 and 2027 — including what changed this year

Eligibility has four prongs, and they have been stable for years: you are covered by a high-deductible health plan (HDHP) on the first day of the month, you have no other health coverage except what the statute permits, you are not enrolled in Medicare, and you cannot be claimed as someone else’s dependent.

The numbers are indexed annually.

20262027
Your contribution limit, self-only coverage$4,400$4,500
Your contribution limit, family coverage$8,750$9,000
Additional contribution, age 55 or older$1,000$1,000
Minimum the plan’s deductible must be, self-only$1,700$1,750
Minimum the plan’s deductible must be, family$3,400$3,500
Maximum the plan’s out-of-pocket can be, self-only$8,500$8,700
Maximum the plan’s out-of-pocket can be, family$17,000$17,400

The last four rows describe the floor and ceiling for qualifying, not what your plan charges. A plan with a $2,500 deductible and a $6,000 out-of-pocket maximum qualifies; that is the point. The $1,000 additional contribution is fixed by statute rather than indexed — section 223(b)(3)(B) sets it at $1,000 for 2009 “and thereafter” — so it is not scheduled to move. Whether the higher deductible that buys you this account is worth it is a separate piece of arithmetic: we walked through the deductible-then-coinsurance-then-out-of-pocket-max sequence in what one bill actually costs.

Two spouses who both qualify, both have family coverage and are both 55 or older — and neither of whom is enrolled in Medicare — may each add the $1,000, so the pair can contribute the family limit plus $2,000. That is $11,000 for 2027 ($9,000 + $2,000), up from $10,750 in 2026 ($8,750 + $2,000). One spouse cannot take both: each additional contribution goes to that spouse’s own account. There is also no joint HSA; a married couple needs two accounts.

What is new in 2026. Three changes from the One, Big, Beautiful Bill Act widen the gate, and their effective dates matter:

  • Telehealth no longer disqualifies you. A plan may cover telehealth and other remote care services before the deductible is met without losing HDHP status, and an otherwise eligible individual may hold that coverage. This was made permanent and applies for plan years beginning after December 31, 2024 — retroactively covering 2025.
  • Bronze and catastrophic plans count as HDHPs. Since January 1, 2026, a bronze or catastrophic plan available as individual coverage through an Exchange is treated as an HDHP even if it fails the minimum deductible or maximum out-of-pocket tests above. The IRS has said that off-Exchange bronze coverage also qualifies.
  • A direct primary care arrangement no longer blocks you. Since January 1, 2026, a direct primary care service arrangement is not treated as disqualifying health coverage, and the periodic fee is a qualified medical expense the HSA can pay. The arrangement does not qualify if its fees for the month exceed $150, or $300 when it covers more than one person. Those figures are the same for 2027.

The practical effect of the second change is the largest of the three: a reader on a bronze marketplace plan who was told in 2024 that they could not have an HSA should re-check the plan year they are in now.

The eligibility trap that catches people before 65

“Other health coverage” is where most disqualifications happen, and the rule is stricter than people expect because it is not about what you use — it is about what you are covered by.

  • A general-purpose health FSA or HRA that reimburses medical expenses generally disqualifies you, because it pays first-dollar costs the HDHP is supposed to leave to you. A limited-purpose FSA covering only dental and vision does not.
  • Your spouse’s non-HDHP coverage is fine provided it does not cover you. Family coverage that includes you is not.
  • Coverage for accidents, disability, dental care, vision care, long-term care, and telehealth is explicitly permitted alongside the HDHP.

What the money can buy — and the permanent exception

Qualified medical expenses are amounts paid for medical care, as that term is defined in section 213(d) of the tax code, for you, your spouse and your dependents, to the extent insurance or anything else has not already covered them. For an HSA, the expense must be incurred after the account is established — and state law, not federal law, determines when that is. Opening the account early therefore has a value that has nothing to do with the balance in it.

Two details are worth flagging, one because it reverses an old rule and one because it widens the list of people whose care counts. Congress removed the rule that limited HSA spending on medicine and drugs to prescription drugs in 2020, so over-the-counter medicines bought with HSA funds are no longer a compliance error. And the expense does not have to be for you: a dependent’s care counts too.

Then there is the wall. The HSA may not pay for insurance, with exactly four exceptions:

  1. Long-term care insurance (subject to age-based premium limits).
  2. Health care continuation coverage required under federal law, such as COBRA.
  3. Health coverage while you are receiving unemployment compensation under federal or state law.
  4. At age 65 or older, any health insurance other than a Medicare supplemental policy.

That fourth item is the one to read twice, because it is stated as a negative and it is permanent: Medicare premiums qualify once you are 65, and Medigap never does, at any age. If you are planning to run a Medigap premium through an HSA, that plan does not work. Note also the direction of the age test: if you are under 65, Medicare premiums for a spouse or dependent who is 65 or older are generally not qualified expenses either.

The strategy that makes the third tax break real

Here is the mechanic most HSA holders never use, and it sits in the ordinary operation of the account rather than in an exception. The IRS’s wording is that you can receive tax-free distributions from your HSA to pay or be reimbursed for qualified medical expenses you incur after you establish the HSA. The distribution section of the statute — section 223(f), read in full — puts no clock on that reimbursement.

So the sequence is: pay the doctor in cash today, keep the receipt, leave the HSA invested, and reimburse yourself years later, still tax-free. Done consistently, the growth on the money that would have been spent on health care compounds untaxed, and the eventual reimbursement is not income.

Be clear about what carries the weight in that plan. The absence of a deadline is an absence: no regulation or ruling blesses a thirty-year receipt file, and what makes the arrangement work is the IRS’s requirement that you be able to show the money went to a qualified expense. Three preconditions, and they are not decorative:

  • Records. You must be able to show that the distributions were exclusively to pay or reimburse qualified medical expenses, that those expenses were not already paid or reimbursed from another source, and that they were not claimed as an itemized deduction in any year. The IRS’s instruction is not to send those records with your return, only to keep them with your tax records — and the duty to produce them if there is ever a question is yours.
  • Cash flow. The strategy only works if you can absorb today’s medical costs from somewhere else. If you cannot, the HSA is still a pre-tax medical account and still worth funding — you simply lose the compounding.
  • The order of operations. If your employer matches 401(k) contributions, take the full match first; it is an immediate return that no deduction replicates. After the match, the HSA’s payroll-tax exclusion plus tax-free qualified withdrawals make the next dollar better placed there than in unmatched 401(k) deferrals — but only if you can leave it alone. Money you will spend this year is worth less in an HSA than the “triple” label suggests, because you are giving up investment growth to buy a tax break on spending you were going to do anyway.

The trap at 65, in five parts

The contribution window does not close at retirement, and it does not close when you stop working. It closes when Medicare starts.

1. The limit becomes zero — and it is entitlement, not enrollment, that counts. The statute reduces your monthly limit to zero “for the first month such individual is entitled to benefits under title XVIII of the Social Security Act and for each month thereafter.” The IRS puts the employer-facing version of the same rule bluntly: no contributions can be made to an individual’s HSA after they become enrolled in Medicare Part A or Part B. Part A alone is enough, even premium-free Part A, even if you never sign up for Part B.

2. Part A is often automatic, and can be backdated. CMS’s own handbook says that if you are already receiving Social Security or Railroad Retirement Board benefits, you are enrolled in Part A and Part B automatically starting the first day of the month you turn 65. And for people who sign up for premium-free Part A later, Medicare.gov states that coverage starts six months back from when you sign up or apply for benefits. That backdating is the sharp edge: the IRS says the zero-limit rule applies to periods of retroactive Medicare coverage, so contributions you made during those months were excess contributions even though nothing had changed on the day you made them.

3. The year is prorated, not lost. If you are eligible for part of the year, your limit is figured monthly. The IRS’s worked example is a person who turns 65 in July, enrolls in Medicare, has self-only coverage and is eligible for the additional $1,000: the limit is the annual amount times 6 ÷ 12. With the same method and 2027 figures, that is $5,500 × 6 ÷ 12 = $2,750. That arithmetic is ours, not the IRS’s — the agency publishes the method and the 2025 illustration, and the 2027 inputs come from Rev. Proc. 2026-24. The enrollment calendar this all hangs on — the initial enrollment period, the general enrollment period and when coverage actually begins — is set out separately.

4. Excess contributions are not deductible and carry a 6% excise tax. An excess contribution is reported on Form 5329, and the IRS is explicit that the excise tax applies to each tax year the excess contribution remains in the account. You can avoid it for an amount you withdraw by the due date of the return, including extensions, provided you also withdraw the earnings attributable to it and report those earnings as income. The failure mode here is not a penalty letter in the first year; it is the same 6% quietly repeating.

5. After 65 the account stops being a Roth and becomes an IRA. There is no 20% additional tax on distributions after you reach 65, become disabled, or die. But the 20% is the penalty exemption, not a tax exemption: a distribution after 65 that is not used for qualified medical expenses is still included in your gross income. In other words, a dollar taken out for a vacation at 70 is taxed exactly like a 401(k) dollar. The “triple tax” advantage survives retirement only if the money is spent on qualified medical care — which is the argument for banking receipts while you are working, since those receipts do not expire.

The balance after you die

This one is a beneficiary-designation problem, and it is worth ten minutes.

If your spouse is the designated beneficiary, the HSA is treated as if your spouse were the account beneficiary — nothing is triggered. If your spouse is not the designated beneficiary, the account ceases to be an HSA as of the date of death and its fair market value is included in that person’s gross income for the year of your death. If your estate is the beneficiary, the value is included in your own gross income for your last taxable year. The two outcomes are the same in substance: a single-year taxable event on the whole balance, with no deferral left in it.

The asymmetry is not a loophole; it is the reason to review the beneficiary form when the balance stops being small — and to keep the unreimbursed receipts in the same file, because qualified medical expenses of the decedent paid by a beneficiary within one year after death reduce what is taxable to a beneficiary other than the estate. Beneficiary designations pass by contract and override a will, which is why the form is the document that decides this — the same point wills and advance directives makes about every other account that transfers this way.

The decision, stated plainly

  • Under 65, HDHP coverage, able to cover current medical costs out of pocket. Contribute through payroll if you can, to the annual limit plus the catch-up at 55. You are buying the only dollars you own that can go in untaxed and come out untaxed, for a cost you are nearly certain to incur eventually.
  • Under 65, unable to cover costs out of pocket. Contribute anyway if the budget allows, and expect to spend it — you are buying a discount on care you are about to buy. Do not borrow to fill the account.
  • 63 or 64. Find out your Medicare start month before you make a January contribution. If you receive Social Security benefits, assume Part A begins the month you turn 65 unless you have checked otherwise, and stop contributing in the month before it does. If you are still working and covered by an employer plan, the timing of your enrollment determines the answer — and the backdating rule means an enrollment decision can reach backwards.
  • 65 and older. You can spend, but you cannot add. Withdrawals for qualified medical expenses remain tax-free; withdrawals for anything else are ordinary income. Medigap is never on the list.

The state question, which is genuinely separate

The rules above are federal. State income tax treatment is a separate question, and states are not required to follow the federal rules — so the answer varies by state, and California is the clearest example of how far. Its Revenue and Taxation Code says flatly that section 223 of the Internal Revenue Code “shall not apply,” and the Franchise Tax Board’s adjustment publication follows that through: interest and taxable dividends earned inside an HSA are taxable in the year earned, employer contributions that are excluded from federal wages must be added back to California wages, and there is no state deduction for your own contributions. A California resident still gets the federal deduction and the payroll-tax saving, but the state leg of the “triple” advantage does not exist.

Before you assume your state matches the federal treatment, check your own state’s tax instructions for the year you are filing. This is one area where the federal answer is the beginning of the question rather than the end of it.

What to do

  1. Confirm you are an eligible individual for the months you intend to contribute — HDHP coverage, no disqualifying coverage, not entitled to Medicare, not someone’s dependent.
  2. Contribute through payroll if your employer offers it, so the dollars also escape social security and Medicare tax.
  3. Contribute up to the 2027 limit ($4,500 self-only, $9,000 family, plus $1,000 at 55 or older) — and remember you can still make a 2026 contribution until the April filing deadline.
  4. Open the account before you need it, since state law fixes the establishment date and only expenses after that date qualify.
  5. Keep the receipts, unclaimed and undated, if you intend to reimburse yourself later.
  6. Check the contribution deadline that Medicare sets, not the one your employer sets.
  7. Check the beneficiary designation once the balance is material.
  8. Check your state’s instructions before assuming the state-level breaks.

None of this is a reason to skip a 401(k) match, and none of it replaces advice about your own situation. It is a reason to stop treating the HSA as a spending account with a tax perk attached.

Frequently asked questions

How much can I put in an HSA for 2027?
For calendar year 2027 the annual limit is $4,500 with self-only coverage under a high-deductible health plan and $9,000 with family coverage, plus $1,000 if you are 55 or older at the end of the year. The 2026 limits are $4,400 and $8,750, with the same $1,000 catch-up. IRS Rev. Proc. 2026-24 sets the 2027 figures.
Do I lose the money if I don't spend it?
No. An HSA is not a use-it-or-lose-it account: the balance carries over every year, the account is portable if you change jobs, and interest or investment earnings inside it are not taxed while they stay in the account. That is the main difference from a health FSA.
Can I contribute to an HSA after I sign up for Medicare?
No. Your contribution limit is zero beginning with the first month you are entitled to Medicare, and the rule applies to retroactive Medicare coverage as well. Contributions made during those months are excess contributions: they are not deductible, and a 6% excise tax applies for each year the excess stays in the account.
Can I use HSA money to pay Medigap premiums?
No, at any age. HSA funds may pay Medicare premiums once you are 65 or older, but the statute excludes Medicare supplemental policies — Medigap — from qualified medical expenses permanently.

Sources

  1. IRS Revenue Procedure 2026-24, 2027 inflation-adjusted HSA amounts: self-only $4,500, family $9,000; HDHP minimum deductible $1,750/$3,500; maximum out-of-pocket $8,700/$17,400; DPCSA monthly fee cap $150/$300 — irs.gov/pub/irs-drop/rp-26-24.pdf
  2. IRS Revenue Procedure 2025-19, 2026 HSA amounts: self-only $4,400, family $8,750; HDHP minimum deductible $1,700/$3,400; maximum out-of-pocket $8,500/$17,000 — irs.gov/pub/irs-drop/rp-25-19.pdf
  3. IRS Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans — eligibility, the last-month rule and testing period, qualified medical expenses, the insurance-premium exceptions, the 20% additional tax and its exceptions, excess-contribution excise tax, and death of the account holder — irs.gov/publications/p969
  4. IRS Notice 2026-05, Expanded Availability of Health Savings Accounts under the One, Big, Beautiful Bill Act — telehealth, bronze and catastrophic plans as HDHPs, direct primary care service arrangements — irs.gov/pub/irs-drop/n-26-05.pdf
  5. Internal Revenue Code section 223 — (b)(2) contribution limits, (b)(3) additional contribution, (b)(7) Medicare, (b)(8) last-month rule, (c)(1) eligible individual, (c)(2) HDHP, (d)(2) qualified medical expenses, and the 20% additional tax in (f)(4)(A) with its exceptions in (f)(4)(B) and (f)(4)(C) — United States Code, 2023 Edition, Title 26
  6. Public Law 116-136 (CARES Act) section 3702(a)(1), which removed the rule limiting HSA medical expenses for medicine or drugs to prescribed drugs, as recorded in the amendment notes to 26 U.S.C. § 223
  7. IRS Publication 15-B (2026), Employer's Tax Guide to Fringe Benefits — HSA eligibility, employer contributions exempt from income tax withholding, social security tax, Medicare tax and FUTA, and the statement that no contributions can be made after enrollment in Medicare Part A or Part B — irs.gov/publications/p15b
  8. IRS Publication 15 (Circular E, 2026), Employer's Tax Guide — 2026 social security rate 6.2% and Medicare rate 1.45%, and the table treating elective 401(k) deferrals as subject to social security and Medicare taxes — irs.gov/publications/p15
  9. Medicare.gov, When does Medicare coverage start? — premium-free Part A coverage starting the month you turn 65, and Part A coverage beginning six months back from when you sign up — medicare.gov
  10. CMS, Medicare & You 2027 (Product No. 10050) — automatic Part A and Part B enrollment for people already receiving Social Security or Railroad Retirement Board benefits
  11. California Revenue and Taxation Code section 17215.4: 'Section 223 of the Internal Revenue Code, relating to health savings accounts, shall not apply' (added by Stats. 2005, Ch. 691) — leginfo.legislature.ca.gov
  12. California Franchise Tax Board Publication 1001 (2025), Supplemental Guidelines to California Adjustments — Health Savings Account section: state treatment of interest, dividends and contributions — ftb.ca.gov
#HSA#high-deductible health plan#Medicare#IRS#401(k)#tax-advantaged accounts#Medicare Part A