Can You Contribute to an HSA on Medicare?

By Last Updated: February 3, 2026
HSA on Medicare

Can You Contribute to an HSA on Medicare? In short, no you cannot contribute to a health savings account while on Medicare. And you cannot contribute to it 6 months prior to enrolling in Medicare if you delay your enrollment to after age 65. 

Backstory

In order to understand the rules, it is important to understand the history of Medicare and Health Savings Accounts. 

Medicare 

In response to rising private healthcare costs for the elderly, President Lyndon B. Johnson signed the Social Security Amendments of 1965, enacting Medicare into law. The program was later expanded in 1972 to cover younger individuals with long-term disabilities or end-stage renal disease (ESRD). Major amendments have since added other benefits, most notably the prescription drug benefit (Part D) and the expansion of private plan options (Medicare Advantage or Part C) through the Medicare Modernization Act of 2003. 

Health Savings Account 

Health Savings Account (HSA) began in 2003 under the Medicare Prescription Drug, Improvement, and Modernization Act. These plans were created as a replacement to the previous medical savings account (MSA) system. The primary purpose being to help individuals on high-deductible health plans save for qualified medical expenses while also receiving various tax advantages. HSAs are triple tax advantaged accounts; contributions are tax-deductible, earnings and interest grow tax-free, and withdrawals for qualified medical expenses are tax-free. This makes it one of the best accounts to have in your retirement planning wheelhouse. 

The Rule

You must meet two criteria to be eligible to contribute to a Health Savings Account (HSA): you must be covered by an HSA-qualified High-Deductible Health Plan (HDHP), and you cannot have other disqualifying health coverage. Medicare (Part A or Part B) is considered disqualifying health coverage.

6 Month Lookback

If you are still working and have access to employer healthcare coverage, oftentimes individuals will delay enrollment in medicare until their retirement. This is where the problem arises. Medicare has a 6 month lookback from the start of your coverage in order to ensure all necessary medical expenses are covered. That means that when you choose to enroll in Medicare, your part A coverage is applied retroactively for up to six months from the date of your application. The IRS considers you ineligible to contribute to an HSA for any month you were covered by Medicare, even if that coverage is applied retroactively. You are ineligible to make contributions to an HSA for any month during which you had Medicare coverage, according to IRS rules. This is true even if the Medicare coverage is applied retroactively. Employer or individual contributions made to a Health Savings Account (HSA) during the six-month retroactive period are designated as “excess contributions.” An individual’s excess contributions left in the account face an annual 6% excise tax for each year they remain, in addition to being subject to income tax.

In order to prevent the additional taxes and penalties, be sure to proactively stop all contributions to your HSA six months prior to Medicare enrollment. After you are enrolled in Medicare you are no longer eligible to contribute to your HSA. 

If you begin Medicare coverage in the month you turn 65 and do not delay enrollment, the 6-month lookback period for HSA contributions is not an issue. This is because you are not eligible for Medicare coverage six months prior to your 65th birthday. The lookback for HSA contribution eligibility only applies to individuals who delay their Medicare enrollment.

Understanding the intersection of HSA contributions and Medicare is critical for retirement planning. Since Medicare, even if delayed, is disqualifying coverage, the key is to stop all HSA contributions six months before your planned Medicare enrollment, especially if you enroll past age 65, to avoid retroactive Part A tax penalties. While you can’t contribute after enrolling, you retain the ability to use your HSA funds tax-free for qualified medical costs throughout retirement. Always consult with a financial advisor or tax professional to ensure your strategies comply with current IRS and Medicare rules.

Michaela Dowdy
Financial Advisor, Wiser Wealth Management

You May Also Like

Share This Story, Choose Your Platform!

Wiser Wealth Management, Inc (“Wiser Wealth”) is a registered investment adviser with the U.S. Securities and Exchange Commission (SEC). As a registered investment adviser, Wiser Wealth and its employees are subject to various rules, filings, and requirements. You can visit the SEC’s website here to obtain further information on our firm or investment adviser’s registration.

Wiser Wealth’s website provides general information regarding our business along with access to additional investment related information, various financial calculators, and external / third party links. Material presented on this website is believed to be from reliable sources and is meant for informational purposes only. Wiser Wealth does not endorse or accept responsibility for the content of any third-party website and is not affiliated with any third-party website or social media page. Wiser Wealth does not expressly or implicitly adopt or endorse any of the expressions, opinions or content posted by third party websites or on social media pages. While Wiser Wealth uses reasonable efforts to obtain information from sources it believes to be reliable, we make no representation that the information or opinions contained in our publications are accurate, reliable, or complete.

To the extent that you utilize any financial calculators or links in our website, you acknowledge and understand that the information provided to you should not be construed as personal investment advice from Wiser Wealth or any of its investment professionals. Advice provided by Wiser Wealth is given only within the context of our contractual agreement with the client. Wiser Wealth does not offer legal, accounting or tax advice. Consult your own attorney, accountant, and other professionals for these services.