If you have a private high-deductible health insurance plan (HDHP), you are eligible to open a HSA. Which can help you save tax-free money for medical expenses. But once you enroll in Parts A and B, you will no longer be eligible to make HSA contributions. If you want to avoid paying a tax penalty. You should stop making HSA contributions at least six months before you plan to enroll.