Medicare's Part A and Part B sign-up runs through Social Security, not Medicare, because Social Security checks whether you (or a spouse) paid Medicare taxes long enough for premium-free Part A and processes Part B requests, as Medicare.gov explains. Medicare.gov calls applying online at Social Security the easiest and fastest way, and you need to create a secure my Social Security account first. The online application starts at ssa.gov/medicare/sign-up. What you need on hand depends on one thing: whether you are signing up at 65 with no job plan, or adding Part B at 65 or older after a job plan ends. The second case needs two forms, CMS-L564 and the Part B request, and a deadline of 8 months. The lists below come from Medicare.gov and from the CMS forms themselves, checked November 16, 2026.
Form CMS-18-F-5 (07/2025), the paper Part A and Part B application that Medicare.gov links to, prints its own list under "What information do you need to complete this application?": your Social Security number, date of birth, current address and phone number, work history, and Form CMS-L564 from your employer if you are signing up in a Special Enrollment Period. CMS estimates the paper form takes about 15 minutes, and Form CMS-40B and Form CMS-L564 carry the same 15-minute estimate. Have the same facts ready whether you apply online or on paper. For the click-by-click order of the online application, see the step-by-step guide to signing up for Medicare online.
Coverage Breakdown
Direct answer: what to have ready and how long it takes
Signing up online takes roughly 15 minutes, CMS's estimate for the paper Part A and Part B form, and you need a my Social Security account, your Social Security number, date of birth, address, work history and marriage dates. Already getting Social Security benefits 4 months before 65? You are signed up automatically. Leaving a job plan at 65 or older? Add Form CMS-L564 from your employer and sign up within 8 months after the job or plan ends.
Who does not need this list
Medicare.gov says people who start getting Social Security or Railroad Retirement Board benefits at least 4 months before they turn 65 get Part A and Part B automatically, and the welcome package with the Medicare card arrives 3 months before coverage starts. Those readers do not fill out an application at all. Part B carries a monthly premium, so you can turn it down, but dropping it without a plan from your own or your spouse's current job can lead to a late penalty later. Railroad workers and their spouses sign up through the Railroad Retirement Board at 1-877-772-5772, not Social Security's website. People under 65 who get Medicare because of a disability get Part A and Part B automatically after 24 months of disability benefits, so this page is written for people reaching 65 or leaving work after 65.
Signing up at 65 with no job coverage: what to have ready
Turning 65 with no health plan from a current job (yours or your spouse's) means you apply for Part A and Part B together in your Initial Enrollment Period, the 7 months that start 3 months before the month you turn 65 and end 3 months after it. COBRA and retiree plans do not count as a current job's plan. The checklist below follows the questions printed on Form CMS-18-F-5 (07/2025), the paper application Medicare.gov links to, plus the my Social Security account Medicare.gov says you need to apply online. Gather these before you open the application so you can finish in one sitting. The paper form asks for a phone number and email, so use ones you check.
- A secure my Social Security account (Medicare.gov says you create it to sign up online)
- Your Social Security number, and your name as it appears on your birth certificate if it is different now
- Your date of birth and the state or country where you were born
- Your mailing address, home address if different, phone number and email
- Work history: your total earnings last year and what you expect to earn this year, and whether you worked for a railroad
- Citizenship or lawful presence, and where you lived in the last 5 years if you were not in the U.S. the whole time
- Current spouse's name, date of birth, Social Security number and marriage date, and the same for any past marriage that lasted 10 years or ended in death
- Whether you have Medicaid, and any federal (OPM) retirement claim number for you or your spouse
Signing up for Part B after leaving a job at 65 or older: the two forms
Leaving a job plan at 65 or older opens an 8-month Special Enrollment Period that starts the month after the job or the job plan ends, whichever comes first, even if you take COBRA (42 CFR 406.24; Medicare.gov "Working past 65"). Medicare.gov's enrollment forms page says that to sign up for Part B in this situation you send Form CMS-L564 and the Part B request, Form CMS-40B, at the same time. If you already have Part A, Medicare.gov's sign-up page lets you apply for Part B online at ssa.gov/medicare/sign-up/part-b-only instead of the paper CMS-40B, then fax or mail Form CMS-L564 to your local Social Security office, found at ssa.gov/locator. If you have no Part A yet, apply for Part A and Part B together and include the CMS-L564. This works at any size employer: under 20 employees, Medicare pays first, so the risk of waiting on Part B there is unpaid claims, not a penalty.
Form CMS-L564 (Revised 03/2025) has two parts: you fill in Section A, and the employer fills in and signs Section B with the months you worked there and the months the group plan covered you. If the employer cannot fill it out, for example because the company closed, Medicare.gov says to complete Section B as best you can, leave it unsigned, and send proof of the job-based coverage. Medicare.gov lists the kinds of proof it accepts, shown below as checked November 16, 2026. Send copies and keep the originals. Keep your fax confirmation or mailing receipt too, because the date Social Security gets the form is what counts toward your 8 months.
- Your Medicare Number, if you already have Part A (Section 1 of Form CMS-40B asks for it)
- Form CMS-L564 with Section A filled in by you and Section B signed by the employer
- The months you (or your spouse) worked for the employer and the months the job plan covered you
- Any letter from an employer or insurer requiring you to sign up for Part B (item 4 of Form CMS-40B)
- If the employer cannot sign: an income tax form showing health insurance premiums paid, or W-2s showing pre-tax medical contributions
- Or pay stubs showing health insurance premium deductions, or health insurance cards with a policy effective date
- Or explanations of benefits paid by the employer group health plan, or statements or receipts showing premium payments
HSA owners: one step before you apply
Health Savings Account contributions are no longer allowed from the first month you have any part of Medicare, Part A included, and IRS Publication 969 says that rule covers backdated months too. At 65 or older, Medicare.gov says Part A starts up to 6 months back from the month you sign up or apply for Social Security benefits, but never before the month you turned 65. Form CMS-18-F-5 says to stop contributing before you apply, and Medicare.gov suggests you and your employer stop at least 6 months before. Waiting on Part B alone does not keep an HSA open, because Part A is what ends your eligibility to contribute. Contributions made during backdated Part A months count as excess contributions on your 2026 or 2027 tax return. You can still spend money already in the HSA on Medicare costs.
Worked examples: a June 2027 birthday and a job plan ending December 31, 2026
Turning 65 on June 15, 2027 with no job plan: the Initial Enrollment Period runs March 1 to September 30, 2027. Medicare.gov's start-date table says sign up online in March, April or May 2027 and Part B starts June 1, 2027; sign up in June or any of the 3 months after, and Part B starts the next month. Premium-free Part A starts June 1, 2027 either way. Born on the 1st of a month instead, such as July 1, 1962? Medicare.gov says coverage starts the month before you turn 65, so Part A starts June 1, 2027, and signing up by May 2027 lines Part B up with it.
Retiring at 66 on December 31, 2026, with the job plan ending the same day and Part A already in place: the 8-month window runs January 1 to August 31, 2027. Under 42 CFR 406.24(e), sign up in December 2026 (while the plan still covers you) or January 2027 (the first full month without it), and Part B can start the 1st of that month or, if you choose, the 1st of any of the next 3 months, so January 1, 2027 leaves no gap. Sign up in May 2027 instead and Part B starts June 1, 2027, leaving January through May with no Part B. Taking COBRA does not move any of these dates.
What happens after you submit
Medicare.gov says that when you sign up yourself, Medicare mails a welcome package with your Medicare card about 2 weeks after you sign up. The card shows a Medicare Number that is not your Social Security number, whether you have Part A (listed as HOSPITAL), Part B (listed as MEDICAL) or both, and the date your coverage begins. You need that number to create your secure Medicare.gov account, join a plan, or buy a Medigap policy. Once you are signed up, you can print your official card from your Medicare.gov account. If the card does not arrive, check your address in your my Social Security account, print or order a copy on Medicare.gov, or call 1-800-MEDICARE (1-800-633-4227). Choosing a drug plan, a Medicare Advantage plan or a Medigap policy is a separate step; a licensed agent or Medicare.gov's plan finder handles that choice.
Social Security handles questions about a pending application at 1-800-772-1213 (TTY 1-800-325-0778); press 2 for Spanish, as the CMS forms print it. Paper forms go to your local Social Security office by mail or fax, found at ssa.gov/locator, never to CMS in Baltimore. Your State Health Insurance Assistance Program, at shiphelp.org, gives one-on-one counseling at no cost and can review Form CMS-L564 with you before you send it. Write down the date you applied online and keep any confirmation page, because the sign-up date decides when Part B starts under the 2026 and 2027 rules shown above.
Frequently Asked Questions
I turn 65 in June 2027 and do not get Social Security yet; what do I need to have ready before I start the online application?
Create a my Social Security account, then gather your Social Security number, date of birth, birthplace, address and phone, last year's and this year's earnings, and the names, birth dates, Social Security numbers and dates of your current and past marriages. Form CMS-18-F-5, the paper version Medicare.gov links to, asks for these, and CMS estimates about 15 minutes. Apply March, April or May 2027 and Part B starts June 1, 2027.
I am 66, retiring on December 31, 2026, and already have premium-free Part A; which forms do I need to add Part B online?
You need the Part B request and Form CMS-L564. Apply for Part B online at ssa.gov/medicare/sign-up/part-b-only (or use paper Form CMS-40B), and have your employer sign Section B of Form CMS-L564, then fax or mail it to your local Social Security office. Your 8-month window runs January 1 to August 31, 2027. Sign up in December 2026 or January 2027 and you can pick a January 1, 2027 start.
My employer has 12 employees and I turn 65 in March 2027; do I have to sign up for Part B online right away or pay a penalty?
No penalty applies for waiting while you have a plan from current work, at any size employer, and you get the same 8-month window later. Under 20 employees, though, Medicare pays first, so the job plan may pay little or nothing for care Part B would have covered. Ask the plan in writing what it pays without Part B before you decide. Medicare.gov warns that at a company with fewer than 20 employees, job coverage might not pay if you do not have both Part A and Part B.
I am 65 and covered by my wife's job plan, and she is 62 and still working; what does Form CMS-L564 need to show when she retires?
Your wife is the employee on the form, so her employer fills in Section B with her work dates and the dates the plan covered you. You fill in Section A with your own details and hers. Your spouse's age does not matter; what counts is that the coverage comes from her current job. When she retires or the plan drops you, you have 8 months to sign up for Part B with that form.
I went on COBRA in August 2026 after leaving my job at 67; can I still sign up for Part B online, and what do I send?
Yes, if you are still inside the 8 months. Your window started the month after the job or the job plan ended, so if the job plan ended in July 2026 it closes at the end of March 2027, and COBRA does not extend it. Apply online and send Form CMS-L564 showing the date the job coverage ended, not the COBRA end date. Medicare.gov warns not to wait for COBRA to end.
I contribute to an HSA through my job and plan to sign up for Medicare at 67 in April 2027; what do I need to do before I apply?
Stop HSA contributions first. At 67, Part A starts up to 6 months back from when you sign up, so applying in April 2027 can make Part A start in October 2026, and IRS Publication 969 treats contributions in those backdated months as excess. Medicare.gov suggests stopping at least 6 months before you apply. Staying off Part B alone does not keep the HSA open.
I was born on July 1, 1962; does that change when my Medicare starts after I sign up online?
Yes, by one month. Medicare.gov says that if your birthday is on the 1st, coverage starts the month before you turn 65, so premium-free Part A starts June 1, 2027. Sign up online by May 2027 so Part B can start June 1, 2027 too. Everything you need to have ready stays the same: your my Social Security account, Social Security number, work history and marriage dates.
I submitted my Medicare application online in October 2026 at 65; when should my Medicare card arrive and what do I do if it does not?
Medicare.gov says the welcome package with your card comes about 2 weeks after you sign up. You do not have to wait for the mail: once you are signed up, you can create a Medicare.gov account and print your official card. If nothing arrives, check your address in your my Social Security account, order a copy on Medicare.gov, or call 1-800-MEDICARE (1-800-633-4227).