HSA and Medicare in 2027: When Your Contributions Must Stop — and the 6-Month Trap That Costs You 6%
HSA and Medicare in 2027: When Your Contributions Must Stop — and the 6-Month Trap That Costs You 6%
Rana — Editor, Elite Era Trends
Checked against IRS Publication 969, IRS Rev. Proc. 2026-24 and Medicare.gov on December 5, 2026
If you are working past 65 with a health savings account, Medicare and HSAs do not mix — and the rule ending your contributions can reach back and turn money you put in into an excess contribution.
Short answer: Once Medicare starts, your HSA contribution limit is zero — and Part A can reach back six months, wiping out contributions you already made. If you work past 65 with an HSA, stop contributing six months before you apply, or the 6% excise tax applies to every dollar over the limit.
Why does Medicare end your HSA contributions?
Under 26 U.S.C. 223(b)(7) and IRS Publication 969, your HSA contribution limit is zero from the first month you are enrolled in Medicare, including months of retroactive coverage: “Beginning with the first month you are enrolled in Medicare, your contribution limit is zero.”
It is enrollment, not age, that ends eligibility — any part counts: Part B only or Part D only also ends it (IRS Notice 2004-50; Notice 2008-59). And claiming Social Security after 65 automatically enrolls you in Part A, silently ending your HSA contributions — worth knowing if you are turning 65 in 2027.
What are the 2027 HSA limits?
The IRS set the 2027 figures in Revenue Procedure 2026-24; the limits rise modestly, and the catch-up for savers 55 and over stays at $1,000.
| Figure | 2026 | 2027 | Change |
|---|---|---|---|
| HSA contribution limit — self-only | $4,400 | $4,500 | +$100 |
| HSA contribution limit — family | $8,750 | $9,000 | +$250 |
| Catch-up contribution (age 55+) | $1,000 | $1,000 | No change |
| Total with catch-up — self-only | $5,400 | $5,500 | +$100 |
| Total with catch-up — family | $9,750 | $10,000 | +$250 |
| HDHP minimum deductible — self-only | $1,700 | $1,750 | +$50 |
| HDHP minimum deductible — family | $3,400 | $3,500 | +$100 |
| HDHP maximum out-of-pocket — self-only | $8,500 | $8,700 | +$200 |
| HDHP maximum out-of-pocket — family | $17,000 | $17,400 | +$400 |
The limit covers everything going in — yours and your employer’s. At 55+, the monthly rate is $5,500 ÷ 12 = $458.33 self-only; $10,000 ÷ 12 = $833.33 family.
How does the 6-month lookback actually work?
This is the part that costs people money, because it works backwards. Apply for Part A more than six months after the first month you were eligible, and coverage is retroactive to the sixth month before the month you filed (42 CFR 406.6(d)(4)) — retire in July and file then, and Part A can start on January 1, making every HSA contribution from January to June suddenly excess. File within six months, and it is retroactive to your first month of eligibility. Social Security applications can also reach back six months (20 CFR 404.621).
Medicare.gov tells people working past 65 to stop contributing six months before retiring or applying; the lookback is automatic and cannot be waived. Enroll by December 7, 2026, and coverage starts January 1, 2027 — so your 2027 HSA limit is $0 if Part A starts then. See the Medicare 2027 hub and the Part B premium of $209.40 a month.
How much can you contribute if Medicare starts mid-year?
If Medicare starts part-way through 2027, your limit is pro-rated: yearly limit = annual limit × eligible months ÷ 12 (IRS Publication 969), catch-up included. “Eligible months” means the months before Medicare starts.
| Part A starts | Eligible months (2027) | Self-only limit (55+) | Family limit (55+) |
|---|---|---|---|
| January 2027 | 0 | $0 | $0 |
| February 2027 | 1 | $458.33 | $833.33 |
| March 2027 | 2 | $916.67 | $1,666.67 |
| April 2027 | 3 | $1,375.00 | $2,500.00 |
| May 2027 | 4 | $1,833.33 | $3,333.33 |
| June 2027 | 5 | $2,291.67 | $4,166.67 |
| July 2027 | 6 | $2,750.00 | $5,000.00 |
| August 2027 | 7 | $3,208.33 | $5,833.33 |
| September 2027 | 8 | $3,666.67 | $6,666.67 |
| October 2027 | 9 | $4,125.00 | $7,500.00 |
| November 2027 | 10 | $4,583.33 | $8,333.33 |
| December 2027 | 11 | $5,041.67 | $9,166.67 |
Note: the month Part A starts — not the month you file — sets your eligible months, and the lookback can move it backwards. And the last-month rule cannot rescue a late-year enrollment: it needs eligibility on December 1, which Medicare enrollment removes.
Worked example: when the 6-month trap costs you 6%
Dana, 67, has self-only coverage under a high-deductible plan and puts $2,750 into her HSA from January to June 2027, then retires and files for Medicare in July. Part A is retroactive to January 1, 2027, so her eligible months are 0 and her allowed contribution is $5,500 × 0 ÷ 12 = $0 — the full $2,750 is excess.
That is a 6% excise tax: $2,750 × 6% = $165 for 2027 — and the same $165 again in each later year the excess stays in the account.
Her fix: ask her HSA custodian for a “removal of excess contribution” — excess plus any earnings — by the due date of that year’s tax return, including extensions. Earnings are reported as other income; pre-tax employer contributions in the excess count as income.
Worked example: planning your stop date so nothing is excess
Lee, 68, plans to retire and file for Medicare in October 2027. Part A reaches back to April 2027, so Lee’s last eligible month is March — 3 eligible months — and the allowed contribution is $5,500 × 3 ÷ 12 = $1,375 self-only ($10,000 × 3 ÷ 12 = $2,500 family).
Lee puts in $458.33 a month from January to March — $458.33 × 3 = $1,374.99 — then stops. No excess, no 6% tax, no cleanup. Remember one date: stop contributing six months before you file for Medicare.
Worked example: turning 65 in the middle of 2027
Sam turns 65 on August 20, 2027 and signs up that month, so Part A starts August 1 — 7 eligible months, January through July — and the allowed contribution is $5,500 × 7 ÷ 12 = $3,208.33 self-only ($10,000 × 7 ÷ 12 = $5,833.33 family).
The birthday month matters more than the birthday itself: Part A starts on the first of the month you turn 65, so an August birthday means seven months, not eight. Use the table above with the month your Part A coverage starts; a late filing can push it earlier. Someone turning 65 in February 2027 who enrolls on time has Part A from February 1: 1 eligible month (January), a self-only limit of $458.33.
Should you delay Medicare to keep your HSA?
Delaying Medicare is allowed only with qualifying employer coverage from a job at a company with 20 or more employees; when it ends, you get an eight-month special enrollment period. COBRA and retiree coverage do not count as current-employment coverage. Do not delay with no employer coverage, an employer under 20 employees, or if you claim Social Security — claiming it enrolls you in Part A automatically.
| Delay Medicare, keep the HSA | Enroll in Medicare | |
|---|---|---|
| HSA contributions | Up to $5,500 / $10,000 (55+) in 2027 | $0 from the first month of enrollment |
| Annual tax saving (example) | ~$1,631 on $5,500 at a 22% bracket through payroll | None |
| Part B premium | Not paid while delayed | $209.40/month — $209.40 × 12 = $2,512.80/year |
| Part B deductible | — | $292 |
| Part A deductible | — | $1,776 |
| Part D out-of-pocket cap | — | $2,400 |
| Employer coverage needed | Yes — current job, 20+ employees | No |
| Special enrollment period | 8 months after employer coverage ends | Not needed |
| Risk | Coverage gap if employer coverage ends | 6-month Part A lookback can create excess contributions |
The formula: annual HSA tax saving = contribution × marginal tax rate. At $5,500 in a 22% bracket: $5,500 × 22% = $1,210. Through payroll you also save 7.65% FICA: $5,500 × 7.65% = $420.75. Together: $1,210 + $420.75 = $1,630.75, about $1,631 a year.
Part B alone costs $209.40 × 12 = $2,512.80 a year, before the $292 Part B deductible, $1,776 Part A deductible and $2,400 Part D cap. There is no universal winner: delaying works only while qualifying employer coverage continues, and Medicare’s value rises once you need care. On a low income, Medicare Extra Help or a Medicare Savings Program may help with these costs.
What can your HSA still pay for once you are on Medicare?
Enrolling in Medicare ends contributions, not the account: your HSA stays usable for qualified medical expenses, tax-free, for life. Once you are 65 or older, it can also pay Medicare premiums — with one exception.
| Expense | Can the HSA pay it, tax-free? |
|---|---|
| Qualified medical expenses | Yes — for life |
| Medicare Part A premiums | Yes (age 65+) |
| Medicare Part B premiums | Yes (age 65+) |
| Medicare Advantage (Part C) premiums | Yes (age 65+) |
| Medicare Part D premiums | Yes (age 65+) |
| Medigap premiums | No — the one Medicare premium the HSA cannot pay |
| Employer-sponsored health premiums | Yes |
| Qualified long-term-care premiums | Yes — up to IRS age-based caps |
| Non-medical withdrawal (age 65+) | Taxed as income, but no 20% additional tax |
The Medigap exception surprises people — you can pay its premiums from other savings, but not from the HSA. After 65, a non-medical withdrawal is taxed as ordinary income, with no 20% additional tax. So the HSA stays useful in retirement: the money you built up can keep paying your Part B premium, $209.40 a month in 2027, tax-free, for years.
What changed for HSAs in 2026?
Three changes took effect January 1, 2026, under the One Big Beautiful Bill Act and IRS Notice 2026-5: Marketplace bronze and catastrophic plans now count as HSA-qualified high-deductible plans even if they fail the usual deductible and out-of-pocket tests; direct primary care at or below $150 (individual) or $300 (family) a month no longer disqualifies you; and telehealth before the deductible is now permanently allowed.
The scale is large: 35% of HealthCare.gov marketplace plans are now HSA-eligible, up from 4% — around 7.3 million people affected.
What about your spouse’s HSA?
Your Medicare enrollment does not end your spouse’s eligibility. If your spouse still has family coverage under a qualifying high-deductible plan, they can contribute the full family limit into their own HSA — $10,000 in 2027 at 55 and over. There are no joint HSAs: each spouse needs a separate account, judged on their own status. So if you enroll but your spouse keeps working under a family plan, the household HSA moves to your spouse’s account.
What to do before December 7
Open Enrollment ends December 7, 2026 — three steps cover it:
- Check your filing date. If you plan to apply for Medicare in the first half of 2027, count back six months and stop then — or stop now if you are already inside the window.
- Work out your pro-rated limit from the table above, using the month Part A starts, and check your contributions against it.
- If you have already over-contributed, call your HSA custodian now and ask for a removal of excess contribution. Act before the tax-return due date, including extensions — expensive if you leave the excess sitting there at 6% a year.
This article is general information, not tax advice — if your situation involves a late filing, a retroactive enrollment or a prior-year excess contribution, talk to a tax professional before you act.
Sources & Methodology
- IRS Publication 969 — the zero-contribution rule, pro-rata formula, excess-contribution rules and the 6% excise tax. Read December 5, 2026. IRS Publication 969
- IRS Revenue Procedure 2026-24 — the 2027 HSA limits ($4,500 / $9,000, $1,000 catch-up) and HDHP thresholds. Read December 5, 2026. IRS Revenue Procedure 2026-24
- Medicare.gov, “Working past 65” — stop HSA contributions six months before retiring or applying. Read December 5, 2026. Medicare.gov, “Working past 65”
- 26 U.S.C. 223 — the HSA statute; the zero limit from the first month of Medicare enrollment (223(b)(7)). Read December 5, 2026. 26 U.S.C. 223
- RSM, “IRS Notice 2026-5” — the 2026 changes for Marketplace plans, direct primary care and telehealth. Read December 5, 2026. RSM, “IRS Notice 2026-5”
- IRS Notice 2004-50; IRS Notice 2008-59 — enrollment (not age) ending eligibility, any part of Medicare counting, spouse and premium-payment rules. Read December 5, 2026.
- 42 CFR 406.6(d)(4); 20 CFR 404.621 — the six-month Part A retroactivity rule and the six-month Social Security lookback. Read December 5, 2026.
- 26 U.S.C. 4973 — the 6% excise tax on excess HSA contributions. Read December 5, 2026.
- KFF, via TheStreet; White House Council of Economic Advisers, via TheStreet — 35% of HealthCare.gov plans now HSA-eligible (up from 4%); ~7.3 million people affected. Read December 5, 2026.
- 2027 Medicare figures — Part B premium $209.40/month, Part B deductible $292, Part A deductible $1,776, Part D out-of-pocket cap $2,400. Read December 5, 2026.
Methodology: Every figure comes from the official sources above and was checked on December 5, 2026. The worked examples are hypothetical; their arithmetic (pro-rated limits, the 6% excise tax, the tax-saving formula) is our own calculation from those official figures, not a quoted official number.
Learn More
- Medigap Explained: What Medicare Supplement Insurance Covers — and What It Doesn’t
- How to Use Medicare Plan Finder 2027
- Missed the December 7 Medicare Deadline? Your 2027 Options
- What Changes January 1, 2027: Medicare and Social Security
No. The moment Medicare enrollment starts, your HSA contribution limit drops to zero — and that includes months of retroactive Part A coverage. It does not matter whether you enrolled in Part A, Part B or Part D; any part of Medicare ends eligibility. You can still spend what is already in the account, but you cannot add a dollar.
Stop six months before the month you plan to file for Medicare. Part A coverage can be backdated up to six months, so contributions made in that window can become excess contributions after the fact. If you are still working and not claiming Social Security, you can keep contributing until six months before you apply.
Excess contributions are not deductible and face a 6% excise tax for every year the excess stays in the account. Fix it by asking your HSA custodian for a removal of excess contribution — the excess plus any earnings — by the due date of that year’s tax return, including extensions. Earnings withdrawn this way are reported as other income.
Yes — once you are 65 or older, your HSA can pay premiums for Medicare Part A, Part B, Medicare Advantage (Part C) and Part D, tax-free. The one big exception is Medigap: you cannot use HSA money to pay a Medigap premium. Your HSA also keeps paying for qualified medical expenses, tax-free, for life.
Yes. Your Medicare enrollment does not end your spouse’s HSA eligibility. If your spouse still has family coverage under a qualifying high-deductible plan, they can contribute the full family limit into their own HSA. There are no joint HSAs — each spouse needs a separate account.
Yes, if you have qualifying employer coverage from a job at a company with 20 or more employees. When that coverage ends, you get an eight-month special enrollment period to sign up for Medicare. Do not delay if you claim Social Security, though — claiming it enrolls you in Part A automatically.

Rana is the editor of Elite Era Trends, where he explains Medicare, Social Security and AI news for US readers in plain language — costs, deadlines and plan choices, checked against official sources.