Most people first become eligible for Medicare at age 65, but your Initial Enrollment Period (IEP) begins 3 months before the month of your 65th birthday, includes your birthday month and continues for 3 months after your birthday month.
Because there is a delay from the date of your enrollment to when Medicare coverage starts, try to sign up for Medicare during the 3-month period before your birthday to avoid a gap in your coverage.