Enrolling in Medicare stops new Health Savings Account (HSA) contributions, though existing funds stay invested tax-free without lifetime required minimum distributions. Starting at age 65, your balance covers most Medicare premiums and qualified medical bills tax-free.
Before Medicare starts, IRC Section 223(c)(2) requires an eligible high-deductible health plan (HDHP) with a minimum 2026 deductible of $1,700 self-only or $3,400 family. IRS Form 8889 Line 3 then prorates your $4,400 or $8,750 annual limit in 2026 by your Medicare-free months.
2026 and 2027 HSA Contribution and Plan Eligibility Rules
To contribute to an HSA, you must carry an eligible HDHP under IRC Section 223(c)(2), have no Medicare or disqualifying secondary coverage, and not be claimed as a dependent.
Under the One Big Beautiful Bill Act (Pub. L.
119-21) and IRS Notice 2026-5, individual ACA Bronze and Catastrophic plans qualify as HDHPs starting in 2026, even off-Exchange. First-dollar telehealth coverage is also permanently HSA-compatible for plan years starting in 2025 or later.
Annual contribution and deductible thresholds under Revenue Procedure 2025-19 for 2026 and Revenue Procedure 2026-24 for 2027 apply as follows:
- 2026 HSA contribution limit: $4,400 self-only or $8,750 family, including any employer contributions.
- 2027 HSA contribution limit (announced for 2027): $4,500 self-only or $9,000 family.
- Age-55-and-older catch-up: $1,000 per eligible person in both 2026 and 2027.
- 2026 HDHP minimum deductible: $1,700 self-only or $3,400 family.
- 2027 HDHP thresholds (announced for 2027): $1,750 self-only or $3,500 family minimum deductible, with out-of-pocket maximums capped at $8,700 self-only or $17,400 family.
Last-Month Rule and Testing Period Warning
Use caution with the IRS last-month rule if you plan to enroll in Medicare within a year. Under IRS Publication 969, using December 1 eligibility to claim a full-year contribution requires staying HSA-eligible through December 31 of the following year.
Enrolling in Medicare during that 13-month testing period breaks the rule and makes the extra months taxable plus subject to an IRS penalty. Prorating monthly in the year before Medicare avoids that trap.

Stopping Contributions Before Medicare: At Age 65 vs. Past 65
HSA contribution eligibility ends the month your Medicare Part A or Part B coverage starts, even if you keep working with an employer HDHP. When you must stop contributing depends on whether you claim Medicare at 65 or delay past 65.
If you enroll right at age 65, Part A starts on the first day of your 65th-birthday month with no earlier lookback under 42 CFR 406.6. No six-month pre-65 contribution pause is required, though your 65th-year limit is prorated.
If you delay Medicare or Social Security past age 65, premium-free Part A takes effect retroactively up to six months before your application month, never earlier than your 65th-birthday month. Medicare guidance advises stopping HSA contributions six months before applying.
Active group coverage from an employer with 20 or more workers lets you delay Part B without penalty while keeping HSA eligibility. Plans from employers with fewer than 20 employees make Medicare primary at 65, and COBRA or retiree coverage never qualifies.
Prorating Your Final-Year HSA Limit on IRS Form 8889
Your final-year limit equals one-twelfth of your annual allowance, including the $1,000 catch-up, for each month you were HSA-eligible on the first day of the month. You compute the exact figure on the Line 3 worksheet in the Instructions for Form 8889.
A 67-year-old employee covered by a qualifying individual HDHP who files for retirement benefits on November 10, 2026 triggers retroactive Part A coverage back to May 1, 2026. Only January 1 through April 1 remain Medicare-free first-of-month eligibility dates.
That employee’s 2026 limit is $5,400 ($4,400 plus $1,000) multiplied by 4/12, or $1,800. By contrast, someone turning 65 on July 10, 2026 who enrolls at 65 has six eligible months (January through June), yielding a $2,700 limit.
Contributing above your prorated limit triggers an annual IRS excess-contribution excise tax until corrected. To avoid the penalty, ask your HSA custodian to return the excess plus attributable earnings before your tax-filing deadline, including extensions.
A State Health Insurance Assistance Program counselor through shiphelp.org can verify employer-plan size and Part B timing before you file, while a CPA or enrolled agent can review your Form 8889 proration and excess-contribution removal.
What HSA Funds Cover Tax-Free in Retirement
Once Medicare begins, existing HSA funds still cover qualified medical, dental, vision, and prescription bills tax-free under IRS Publication 502. Tax-free payment of Medicare Part A, Part B, Part D, and Medicare Advantage premiums starts strictly when the HSA owner turns 65.
The standard Part B monthly premium is $209.40 in 2027, up from $202.90 in 2026. Medigap premiums never qualify for tax-free HSA payment at any age.
| Retirement Expense | Tax-Free from HSA? | Controlling IRS and Medicare Rule |
|---|---|---|
| Medicare Part B premiums | Yes, at age 65+ | Standard 2027 premium is $209.40/month (up from $202.90 in 2026); qualified once HSA owner is 65 or older |
| Medicare Advantage (Part C) and Part D premiums | Yes, at age 65+ | Qualified once the HSA holder reaches 65; covers plan premiums and copays |
| Medigap (Medicare Supplement) premiums | No | Excluded under IRC Section 223; taxed as ordinary income (plus penalty before age 65) |
| Qualified long-term care insurance premiums | Yes, up to age caps | Capped annually by age under IRS guidance for 2026 and 2027 |
| Dental, vision, hearing aids, and Rx | Yes, at any age | Qualified medical expenses under IRS Publication 502 not covered by Original Medicare |
| General gym memberships and wellness items | Generally no | IRS nutrition and wellness rules allow them only to treat a physician-diagnosed condition such as obesity or diabetes |
| Non-medical cash withdrawals | No (taxable) | Taxed as ordinary income at age 65+, with no early-withdrawal penalty |
Qualified long-term care insurance premiums are HSA-eligible up to age-based caps ranging from $500 to $6,200 in 2026 (Revenue Procedure 2025-32) and $500 to $6,290 in 2027 (Revenue Procedure 2026-35). General gym memberships qualify only to treat physician-diagnosed conditions.

Reimbursing Past Expenses, Investing, and Inheriting an HSA
Under IRS Publication 969, you do not have to take HSA withdrawals in the same year you incur a medical bill. Paying current costs out of pocket while saving itemized receipts lets your HSA compound tax-free and reimburse you years later.
Reimbursement works only for expenses incurred after your HSA was established. Unlike traditional IRAs and 401(k)s, HSAs have no required minimum distributions during your lifetime, giving you full control over when you withdraw.
Keeping near-term Medicare premiums and deductible funds in an FDIC-insured cash sweep lets you invest remaining reserves without selling equities during a market drop. After age 65, non-medical withdrawals avoid early penalties and face only ordinary income tax.
At death, a surviving spouse named as beneficiary takes over the HSA as their own tax-free account. Any non-spouse beneficiary loses the account’s tax-exempt status on the date of death and owes ordinary income tax on the fair market value.
Medicare Transition Rules and Spousal Expense Audits
Separate Catch-Up Contributions for Married Couples
Both spouses can contribute the $1,000 annual catch-up (2026 and 2027) if each is at least 55, HSA-eligible, and not enrolled in Medicare. Each spouse must deposit that catch-up into a separate HSA in their own name.
Paying a Spouse’s Medicare Premiums Before Age 65
Tax-free HSA payment of Medicare premiums requires the HSA account owner to be at least 65. A younger owner can still withdraw funds tax-free for a spouse’s out-of-pocket medical, dental, or prescription costs.
Maintaining Accounts After Switching Plans or Moving Abroad
Your existing HSA remains open and tax-deferred regardless of whether you switch to Original Medicare or move abroad. You stop new contributions once Medicare takes effect and retain itemized provider bills and proof of payment for every tax-free withdrawal.



2 Comments
Comments are closed.