The Fundamental IRS Rule: HSAs vs. Medicare
Under Internal Revenue Code Section 223, you can only make tax-deductible contributions to a Health Savings Account (HSA) if you are covered by an HSA-qualified High-Deductible Health Plan (HDHP) and have no other disqualifying health coverage.
Because Medicare Parts A, B, C, and D are not high-deductible health plans and provide first-dollar coverage for various services, enrolling in ANY part of Medicare immediately terminates your legal eligibility to contribute new funds to an HSA.
2026 IRS HSA Contribution Limits
If you were eligible for an HSA for only part of the calendar year prior to your Medicare effective date, your maximum annual contribution limit is prorated on a monthly basis:
| Coverage Tier | 2026 Base Limit | Age 55+ Catch-Up | Total 2026 Maximum |
|---|---|---|---|
| Self-Only (Individual) | $4,400 | +$1,000 | $5,400 |
| Family Coverage | $8,750 | +$1,000 per eligible spouse | $9,750 (or $10,750 if both 55+) |
The 6-Month Retroactive Part A Penalty Trap
The single most dangerous financial trap for seniors working past age 65 involves the 6-month retroactive effective date of Medicare Part A hospital insurance:
- If you apply for Medicare Part A or Social Security retirement benefits after your 65th birthday, federal law dictates that your Part A coverage is made retroactive by up to 6 months (or back to your 65th birthday month, whichever is shorter).
- Because Part A coverage is backdated, the IRS considers you to have had disqualifying coverage during those 6 prior months.
- Any HSA contributions made by you or your employer during those 6 retroactive months are classified as ineligible excess contributions.
What Happens If You Make Excess HSA Contributions?
If you or your employer contribute to an HSA while enrolled in Medicare, the IRS imposes severe tax consequences under IRS Form 5329:
- The excess contributions lose their tax-deductible status and must be added back into your gross taxable income.
- The IRS assesses a 6% excise tax penalty on the excess contribution amount for every year the funds remain in your HSA.
- How to Fix It: You must contact your HSA plan administrator before your federal tax filing deadline (typically April 15) and request a formal "Distribution of Excess Contribution." The administrator will return the excess funds plus any attributable investment earnings, avoiding the 6% annual penalty.
How to Spend Accumulated HSA Funds in Retirement
While you cannot contribute new dollars to an HSA after Medicare takes effect, your existing HSA account balance remains yours forever. You can withdraw and spend accumulated HSA funds 100% tax-free for a wide array of Medicare and retirement healthcare costs:
- Medicare Part B & Part D Premiums: HSA funds can be used completely tax-free to reimburse yourself for Medicare Part B monthly premiums ($202.90/month in 2026), Part B IRMAA surcharges, and Part D prescription premiums.
- Medicare Advantage Premiums: Tax-free reimbursement for monthly Part C Advantage plan premiums.
- Deductibles, Copays & Coinsurance: All Part A and Part B deductibles, doctor copays, surgical coinsurance, and prescription costs.
- Dental, Vision & Hearing: Dental cleanings, implants, dentures, prescription eyeglasses, contact lenses, cataract upgrades, and hearing aids.
- Qualified Long-Term Care Insurance: Tax-free HSA withdrawals to pay tax-qualified long-term care insurance policy premiums up to IRS age-based limits.
- The Medigap Exception: IRS rules strictly forbid using HSA funds to pay premiums for Medicare Supplement (Medigap) plans.
Frequently Asked Questions
Can my spouse still contribute to their own HSA if I am on Medicare?
Yes. HSA eligibility is determined on an individual basis. As long as your spouse is covered by an HSA-qualified High-Deductible Health Plan (HDHP) and is not enrolled in Medicare or any other disqualifying coverage, your spouse can contribute up to the full family maximum (plus a $1,000 catch-up if age 55+) into their own HSA.
Can I use HSA funds to pay for Medicare Supplement (Medigap) premiums?
No. IRS regulations specifically prohibit using tax-free HSA distributions to pay premiums for Medicare Supplement Insurance (Medigap) policies. However, you CAN use HSA funds tax-free to pay Medicare Part B premiums, Part D drug premiums, and Medicare Advantage (Part C) premiums.
What should I do if I already contributed to my HSA after enrolling in Medicare?
Contact your HSA custodian immediately and request a formal 'Distribution of Excess Contribution' before your tax filing deadline. The administrator will return the excess funds and any associated earnings. You will report the returned funds as ordinary income on your tax return, avoiding the IRS 6% excise penalty.
Can I decline Medicare Part A at 65 to keep contributing to my HSA?
You can only decline or delay Medicare Part A if you have NOT applied for Social Security retirement benefits. If you claim Social Security at 65 or later, enrollment in Part A is legally mandatory under federal law. If you have not claimed Social Security, you can delay Part A and Part B to keep contributing to an HSA under an employer HDHP.
How do I calculate my prorated HSA contribution limit for the year I turn 65?
Divide the annual contribution limit (including the $1,000 catch-up) by 12, and multiply that figure by the number of months prior to the first day of the month your Medicare coverage took effect. Remember to account for the 6-month retroactive Part A rule if enrolling after age 65.