Free & independent. No insurance sales. Figures checked against SSA.gov and CMS.gov on October 30, 2026.Text size:
Home › Medicare › HSA and Medicare
Medicare › HSA and Medicare

HSA and Medicare: When to Stop Contributing

If you have a Health Savings Account and are about to turn 65, a timing mistake can create a tax penalty. Here is how to avoid it.

Last reviewed October 30, 2026 · Figures from SSA.gov and CMS.gov

$4,4002026 HSA limit, self-only
$8,7502026 HSA limit, family
+$1,000Catch-up at age 55+
6 monthsStop before applying for Medicare

The rule

You can contribute to an HSA only while you are covered by a qualifying high-deductible health plan and not enrolled in any part of Medicare, including premium-free Part A. Once you enroll, new contributions (including catch-up contributions) are no longer allowed. You can keep the money in the account and spend it.

The six-month trap

If you sign up for Medicare after 65 (or apply for Social Security benefits), Part A coverage can be backdated up to six months, but not before the month you turned 65. Contributions you made during those months can become excess contributions that face a tax penalty. To avoid this, stop contributing at least six months before you apply for Medicare or Social Security.

2026 HSA limits

Coverage2026 limit2027 limit
Self-only$4,400$4,500
Family$8,750$9,000
Catch-up (age 55 or older)$1,000$1,000

In the year you enroll in Medicare, your limit is generally prorated by the number of months you were eligible before Medicare began.

Using your HSA after you enroll

If you are still working at 65

If you have employer coverage and delay Medicare under a Special Enrollment Period, you can keep contributing to your HSA until you enroll. Remember Part A can be backdated, so plan six months ahead.

Social Security counts too. If you apply for Social Security at 65 or later, Medicare Part A starts automatically (and may be backdated). Time your HSA contributions around whichever happens first.
HSA and tax rules are detailed. Confirm your situation with the IRS (Publication 969) or a tax professional.

Related guides

Official sources