What Happens If You Contribute to Your HSA After 65?

Contributing to an HSA after 65 is only a problem once you enroll in Medicare. Age by itself changes nothing. The moment any part of Medicare — A, B, C, or D — takes effect, your HSA contribution limit for that month and every month afterward drops to zero, and anything you put in beyond the prorated limit becomes an excess contribution subject to a 6% excise tax each year it sits in the account.1Office of the Law Revision Counsel. 26 USC 223 Health Savings Accounts2Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans

If you’re working past 65, haven’t claimed Social Security, and haven’t signed up for Medicare, you can keep contributing as long as you’re covered by a qualifying high-deductible health plan. That’s the planning lever most people miss.

When Medicare Actually Ends Your Eligibility

The common surprise is automatic enrollment. If you claim Social Security retirement benefits at or after 65, you are automatically enrolled in premium-free Part A, with no opt-out.3Social Security Administration. When to Sign Up for Medicare That enrollment alone ends HSA contribution eligibility, even if you’re still working and still on your employer’s HDHP.

Timing is tighter than people expect. Part A generally starts the first day of the month you turn 65. If your birthday is the first of a month, coverage starts the month before.4Medicare.gov. When Does Medicare Coverage Start A July 1 birthday means HSA eligibility ends June 1.

The Six-Month Lookback Trap

This one catches more workers over 65 than any other HSA rule. If you apply for Part A — or claim Social Security, which pulls you into Part A automatically — more than six months after turning 65, coverage is backdated up to six months from your application date.5Centers for Medicare & Medicaid Services. Original Medicare (Part A and B) Eligibility and Enrollment Any contributions you made during those backdated months become excess contributions, even though your HDHP coverage was perfectly valid at the time.

Say you turn 65 in March, keep working with HDHP coverage, and contribute every paycheck. You retire and enroll in Medicare in November. Part A is backdated to May 1. Every contribution from May through November is now an excess.

The practical rule: stop all HSA contributions at least six months before you plan to enroll in Medicare or file for Social Security. If your contributions run through payroll, tell HR well in advance, because payroll changes don’t always happen on the next check.

Prorating Your Limit in the Year Medicare Starts

When Medicare begins mid-year, your annual contribution limit is prorated by the number of full months you were eligible, measured by your status on the first day of each month.2Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans For 2026, the full-year limits are $4,400 for self-only HDHP coverage and $8,750 for family coverage.6Internal Revenue Service. Revenue Procedure 2025-19, 2026 Inflation Adjusted Amounts for Health Savings Accounts At 55 or older, you can add a $1,000 catch-up contribution, and the catch-up is prorated too.1Office of the Law Revision Counsel. 26 USC 223 Health Savings Accounts

Divide the full annual limit (including catch-up) by 12, then multiply by eligible months. Example: self-only HDHP, age 66, Part A starts July 1, 2026. Six eligible months. Prorated limit = 6/12 × ($4,400 + $1,000) = $2,700. Anything above that is excess. And remember the lookback can shrink those eligible months further than your enrollment date suggests.

What the Penalty Costs

The IRS charges a 6% excise tax on excess HSA contributions, and it applies every year the excess remains in the account.2Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans A $3,000 excess left alone for three years costs $540 in penalties on money that was never supposed to be there in the first place.

The excess amount also isn’t deductible. If you already deducted it, you’ll need to adjust. If it came in pre-tax through payroll, the excess becomes taxable wages for the year.

Fixing It Before the Deadline

You can avoid the 6% penalty for a given year by withdrawing the excess plus the earnings it generated before your tax filing deadline, including extensions.7Internal Revenue Service. Instructions for Form 8889 (2025) The earnings portion is reported as income. Your HSA custodian issues Form 1099-SA with distribution code 2 to flag it as a corrective withdrawal.8Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA

If you already filed without correcting, the IRS still gives you six months past the filing deadline (excluding extensions) to pull the excess and submit an amended return with “Filed pursuant to section 301.9100-2” written at the top.7Internal Revenue Service. Instructions for Form 8889 (2025) Include an updated Form 5329, which calculates and reports the excise tax.2Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans

Missing Both Deadlines

Past both windows, the 6% hits for that year and every subsequent year until the money comes out. There’s no statute of limitations. The IRS treats it as ongoing, not a one-time mistake, so penalties compound the longer the excess sits.

Using Your Existing Balance After Medicare

Medicare stops contributions but leaves your balance alone. The money keeps growing tax-free and can still be withdrawn tax-free for qualified medical expenses.2Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans No spend-down deadline, no requirement to close the account.

At 65 or older, you can use HSA funds for premiums on Part A (if you pay one), Part B, Part D, and Medicare Advantage. One category is explicitly excluded: Medigap premiums.2Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans That exclusion surprises people who assume all Medicare-related insurance qualifies. COBRA premiums and long-term care premiums (up to annual age-based limits) are also eligible, as are the usual deductibles, copays, prescriptions, dental, and vision costs.

Non-medical withdrawals change at 65. Before then, they’re taxed as income plus a 20% additional tax. After 65, the 20% penalty goes away, though the withdrawal is still ordinary income — essentially the same treatment as a traditional IRA distribution.2Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans

Can You Reverse Medicare to Restore HSA Eligibility?

Sometimes. If you claimed Social Security without realizing it would end HSA eligibility, you can withdraw the application within 12 months of initial approval by filing Form SSA-521, which includes an option to disenroll from Medicare. Eligibility is restored going forward, not for the months you were enrolled.

The price is steep. You must repay every dollar of Social Security received, every dollar Medicare paid out on your behalf, and any Part B premiums or tax withholdings. If you had a hospital stay during the enrollment period, the repayment can dwarf the Social Security checks. The option is realistic only for people who catch the mistake quickly and had almost no Medicare claims.