For most people, the short answer to how long you have to work to get retirement benefits is ten years. That is the threshold for Social Security retirement payments and for premium-free Medicare Part A. But “retirement benefits” covers several different systems, and each one sets its own clock. A private pension might vest in five years. A 401(k) employer match can vest in as little as two, or immediately under some plans. A federal civilian pension needs five years of service to vest but more to collect a full annuity. Military retirement demands twenty.
Social Security: Ten Years of Covered Work
Social Security is built on “credits,” sometimes called quarters of coverage. You need 40 of them to qualify for retirement benefits, and you can earn a maximum of four per calendar year.1Office of the Law Revision Counsel. 42 USC 414 – Insured Status for Purposes of Old-Age and Survivors Insurance Benefits Ten years of work at or above the annual earnings threshold is the fastest path there. Earning more doesn’t speed things up: a $500,000 salary and a $40,000 salary both produce four credits a year.
The credits count only if they come from work that pays into Social Security. Wages and self-employment income subject to Social Security payroll taxes qualify. Some state and local government jobs and some foreign employment don’t. If your paycheck never had Social Security tax withheld, that time doesn’t move you toward the 40-credit mark.
Credits never expire. Six years of work, a decade off, and a return to the workforce leaves you with 24 credits still on your record and 16 to go. That’s what makes the ten-year figure workable for people who take breaks for caregiving, school, or a career change. But the threshold is a hard line. Thirty-five credits gets you nothing. You either reach 40 or you don’t qualify for a retirement payment at all.
When You Can Actually Start Collecting
Qualifying is not the same as collecting. The earliest you can claim Social Security retirement is age 62, and claiming that early permanently reduces your monthly check. The unreduced benefit begins at your “full retirement age,” which depends on your birth year:2Social Security Administration. Retirement Benefits
- Born 1943 through 1954: full retirement age is 66.
- Born 1955 through 1959: full retirement age rises in two-month increments, from 66 and 2 months to 66 and 10 months.
- Born 1960 or later: full retirement age is 67.
Claiming at 62 with a full retirement age of 67 cuts your monthly benefit by about 30%. Waiting past full retirement age increases the benefit until age 70, and there’s no further gain from delaying beyond that. So there are really two timing questions: how long you worked (which determines whether you qualify) and when you start (which determines how much you get).
Medicare Uses the Same Ten-Year Rule
The 40-credit threshold also decides whether Medicare Part A is free. Workers who reach 40 credits through Social Security–taxed employment pay nothing for hospital coverage at 65.3Social Security Administration. Social Security Credits and Benefit Eligibility Fall short and you pay a monthly premium for the same coverage.
In 2026, workers with 30 to 39 credits pay $311 per month for Part A, and those with fewer than 30 credits pay $565.4CMS. 2026 Medicare Parts A and B Premiums and Deductibles That’s $3,732 or $6,780 a year for coverage most retirees receive free. For many people this is the more expensive consequence of not reaching ten years of covered work.
Private Pensions: Five or Seven Years
If your employer offers a traditional defined benefit pension, federal law sets minimum vesting timelines. Employers pick one of two structures.5Office of the Law Revision Counsel. 29 US Code 1053 – Minimum Vesting Standards
- Five-year cliff vesting: you have no right to employer-funded benefits until you complete five years of service, at which point you’re 100% vested. Leave at four years and eleven months and you walk away with nothing.
- Three-to-seven-year graded vesting: 20% after three years, then 20% more each year until you’re fully vested at seven.
These are minimums. An employer can vest you faster but never slower.
401(k) Employer Match: Shorter Clocks
Your own 401(k) contributions belong to you from the first paycheck. You can quit on day one and take every dollar you put in. Employer matching contributions are the part with a vesting schedule, and the Internal Revenue Code sets shorter maximums than for traditional pensions.6Office of the Law Revision Counsel. 26 USC 411 – Minimum Vesting Standards
- Three-year cliff vesting: you own none of the match until three years of service, then all of it.
- Two-to-six-year graded vesting: 20% vested at two years, another 20% each year until fully vested at six.
Safe Harbor 401(k) plans are a separate case. In exchange for automatically satisfying certain nondiscrimination tests, the employer’s required contribution (either a match or a flat 3%) must be immediately and fully vested. If your plan is a Safe Harbor plan, every dollar the employer puts in belongs to you the moment it hits your account. That matters most for workers who change jobs frequently.
Federal Civilian Employees: FERS
Federal employees hired after 1986 fall under the Federal Employees Retirement System. Five years of creditable civilian service gives you a permanent right to a future annuity. When you can actually start drawing that annuity depends on a combination of age and years worked:7U.S. Office of Personnel Management. Eligibility
- Age 62 with 5 years of service: the lowest service threshold for an unreduced annuity.
- Age 60 with 20 years of service.
- Minimum Retirement Age with 30 years of service. The MRA ranges from 55 to 57 depending on birth year; workers born in 1970 or later have an MRA of 57.
Federal workers who reach their MRA with at least 10 but fewer than 30 years of service can still retire, but the annuity is reduced by 5% for every year they’re under 62. That reduction is permanent. Five years is the vesting floor, but the practical retirement question for federal workers is which age-and-service combination they hit.
State and Local Government Plans
State and local pension plans set their own rules and vary widely. Across the 50 states, vesting periods run from 4 to 10 years, with a weighted median of 5 years. Nine states lengthened their vesting from 5 to 10 years for new employees after 2009.8Social Security Administration. Vesting Requirements and Key Benefit-Formula Features of State and Local Government Pension Plans Public safety and local government workers tend to face longer vesting than teachers or state employees. Leave before you’re vested and you typically get a refund of your own contributions, sometimes with interest, but no lifetime pension. For a teacher who leaves after four years in a state with a five-year cliff, that refund is usually a small fraction of what the pension would have paid over decades. If you’re in a public-sector job, look up your specific plan’s vesting period early.
Military Retirement: Twenty Years
Military retirement asks for a substantially longer commitment. Under both the legacy High-3 system and the newer Blended Retirement System, active-duty service members need 20 years of qualifying active service to receive a pension.9Military OneSource. Blended Retirement System Separate at 19 and you get no pension under either system. The Blended Retirement System added automatic and matching Thrift Savings Plan contributions, so service members who leave before 20 years still have a retirement account, just no monthly annuity.
Reservists and National Guard members need 20 qualifying years, with each year requiring at least 50 retirement points. Even after 20 qualifying years, they generally can’t collect retirement pay until age 60.10Military Compensation and Financial Readiness. Reserve Retirement Reservists activated after January 28, 2008, can reduce that age 60 threshold based on cumulative active service, but most collect at 60.
Disability and Survivor Benefits Ask for Less
Not every Social Security benefit requires the full 40 credits. Disability and survivor benefits scale with the worker’s age at the time of the disability or death, because these needs can arise long before someone has ten years of work history.
Social Security Disability Insurance uses two tests, a “recent work” test and a “duration of work” test, both keyed to how old you are when the disability begins.11Social Security Administration. Disability Benefits A worker disabled before age 24 may need as little as 1.5 years of recent work. A worker disabled at 50 generally needs 7 years of total work. Younger workers haven’t had time to accumulate credits, so the system adjusts.
Survivor benefits work the same way. The credits a deceased worker needs depend on their age at death, with younger workers needing fewer. Under a special rule, surviving children and a spouse caring for them can receive benefits if the worker earned just 6 credits in the three years before death.12Social Security Administration. Social Security Credits and Benefit Eligibility Nobody needs more than 40 credits for survivor benefits.