If you've worked at least 10 years (40 quarters) under Medicare-covered employment and paid Medicare taxes during that time, you qualify for premium-free Medicare Part A and will be automatically enrolled at age 65 even if you're still working.