Educational
Social Security 35-Year Rule: How Your Benefit Is Calculated
Educational information only. Not financial, legal, or tax advice. Benefora is not affiliated with the Social Security Administration. For your official benefit estimate, visit ssa.gov.
Last Updated: March 17, 2026
Social Security calculates your benefit using your 35 highest-earning years, adjusted for inflation. According to the Social Security Administration, if you worked fewer than 35 years, zeros are averaged in — directly reducing your Primary Insurance Amount. For married couples, both spouses' benefit calculations follow this rule, and understanding it helps determine whether working additional years genuinely improves household lifetime income or merely replaces existing high-earning years with no net gain.
Many people assume that working longer automatically means a bigger Social Security benefit. That's only true if the additional years replace lower-earning years (or zeros) in your 35-year average. If you already have 35 high-earning years on record, additional work may add nothing to your benefit while delaying your retirement. Knowing where you stand before making late-career decisions can save couples from misaligned tradeoffs.
Free Tool
See how this applies to your situation
Estimate your benefit at 62, 67, or 70 and find the claiming age that fits your timeline.
The 35-Year Averaging Formula Explained
Social Security calculates your benefit from your Average Indexed Monthly Earnings (AIME). The formula works in three steps:
Step 1: Identify your 35 highest-earning years. SSA takes every year you paid into Social Security and indexes them for wage inflation — earlier years are adjusted upward to reflect what those wages would be worth in today's dollars. Then SSA selects the 35 highest-indexed years.
Step 2: Average those 35 years. The 35 selected years are summed and divided by 420 (35 years × 12 months). This gives your AIME — your Average Indexed Monthly Earnings.
Step 3: Apply the benefit formula. Your AIME is run through a progressive formula to produce your Primary Insurance Amount (PIA) — what you'd receive at Full Retirement Age.
The key mechanics:
- Only years with positive earnings count positively
- Years with $0 earnings count as $0 — they pull down the average
- If you worked 28 years, SSA uses those 28 years plus seven $0 years
- Years beyond 35 don't disappear — they can replace lower-earning years if they're higher
The Cost of Zero-Earnings Years
Zero-earnings years are the most underappreciated factor in Social Security benefit calculations. Many people took time away from the workforce — to raise children, care for a parent, pursue education, or manage a health issue — without realizing the permanent effect on their future benefit.
How much does a zero year cost?
The cost depends on what that zero is replacing. If you have 35 or more years of paid work, a zero doesn't factor in — your 35 best years are used. If you have fewer than 35 years, each zero directly reduces your AIME.
Example — single zero year with 34 years of work:
- 34 years of earnings averaging $5,000/month after indexing
- 1 zero year
- AIME = ($5,000 × 34 + $0 × 1) ÷ 35 = $4,857/month
- vs. 35 years of $5,000: AIME = $5,000/month
- Difference: $143/month in AIME → approximately $100–115/month in PIA
Over a 20-year retirement, that single zero year could cost $24,000–$27,600.
The spousal ripple effect: For the lower-earning spouse, their spousal benefit is calculated as up to 50% of the higher earner's PIA. If the higher earner's PIA is reduced by zero years, the spousal benefit ceiling drops proportionally.
Does Working Longer Increase Your Benefit?
The answer depends entirely on your existing earnings history.
Scenario A — You have fewer than 35 years of work: Each additional year of work replaces a zero in your AIME calculation. This directly increases your AIME and, therefore, your PIA. Working more years genuinely improves your benefit here.
Scenario B — You have exactly 35 years, with some low-earning years: Additional high-earning years replace low-earning years. If a new year's earnings (after indexing) exceed one of your current 35 years, that year replaces the lowest-earning year in your average. This can still meaningfully improve your benefit.
Scenario C — You have 35 years, all high-earning: Additional work doesn't improve your Social Security benefit if the new year can't displace any of your existing 35. You're essentially working for other income, not for an improved Social Security benefit.
| Situation | Does working longer help SS benefit? |
|---|---|
| Fewer than 35 years worked | Yes — every year helps |
| 35+ years with some low/zero years | Yes, if new earnings exceed lowest year |
| 35 high-earning years | No — additional years don't change PIA |
| Taking years off before claiming | Depends on when you plan to claim and earnings level |
The SSA's "my Social Security" portal at ssa.gov/myaccount shows your earnings record and estimated benefit — you can use it to see whether your recent years are adding to or sitting below your 35 highest.
When Stopping Work Early Makes Sense
Not every late-career year is worth working, from a pure Social Security optimization standpoint. If you already have 35 strong earning years, retiring at 63 instead of 65 may have minimal impact on your benefit.
The calculation to run:
- Look at your earnings record at ssa.gov/myaccount
- Identify your 35 highest-indexed years
- Compare what your earnings for ages 63–65 would be (projected) against your current 35th-highest year
- If the projected earnings are higher, continued work improves your PIA; if lower or similar, it doesn't
David and Margaret's example: David, 62, has 35 years of earnings. His lowest-indexed year in the 35 is $38,000. He expects to earn $95,000/year if he keeps working until 65. Each of those three additional years would displace a $38,000 year with a $95,000 year, increasing his AIME meaningfully. Margaret, 60, worked part-time for 20 years. Each additional year she works adds to her 35-year average and directly improves her own PIA — which also sets her spousal benefit ceiling.
How the 35-Year Rule Affects Spousal and Survivor Benefit Planning
For couples, the 35-year rule has implications beyond each person's individual benefit.
Spousal benefit ceiling: The lower-earning spouse's spousal benefit maximum is 50% of the higher earner's PIA. If the higher earner has zero years pulling down their AIME, the spousal benefit ceiling is lower than it could be.
Survivor benefit: When the higher-earning spouse dies, the surviving spouse receives 100% of what the worker was collecting. A PIA reduced by zero years means a lower survivor benefit for potentially 15–25 years of widowhood.
Strategic implication: For the higher-earning spouse, working enough years to replace all zeros is worth prioritizing — both for their own benefit and to protect the lower-earning spouse's future survivor income.
The stay-at-home spouse: A spouse who never worked has no earnings record. Their benefit is calculated entirely as a spousal or survivor benefit, not from a 35-year average of their own. This isn't a disadvantage — the spousal/survivor system is specifically designed for this scenario — but it means the higher earner's 35-year record is even more important. For details, see the stay-at-home spouse benefits guide.
Frequently Asked Questions
What happens if I worked fewer than 35 years for Social Security?
If you have fewer than 35 years of Social Security-covered earnings, the SSA fills the remaining years with zeros. Those zero years are included in your 35-year average, reducing your Average Indexed Monthly Earnings (AIME) and your Primary Insurance Amount (PIA). Each zero year directly lowers your lifetime benefit. Working additional years to replace zeros can meaningfully improve your benefit — each new year of earnings displaces one zero.
Does working past 35 years increase Social Security?
Only if the additional year's indexed earnings exceed your current lowest-earning year in the 35. Social Security uses your 35 highest-indexed years. If a new year of work is higher than one of your existing 35 years, it replaces that lower year and increases your AIME. If all your existing years are already higher, the additional year doesn't change your benefit. Check your earnings record at ssa.gov/myaccount to see your current 35-year picture.
Do years of part-time work count toward the 35 years?
Yes. Any year with Social Security-covered earnings counts as a year of work, regardless of whether it was part-time. Part-time years with lower earnings will show lower amounts in your record. If those lower part-time years are among your 35 highest, they contribute positively but at a lower level than full-time years. If your full-time years are already your 35 highest, part-time years in excess of that don't change your benefit calculation.
Can a stay-at-home spouse improve their Social Security benefit?
A non-working spouse doesn't have a 35-year record of their own — their benefit is based on the working spouse's record as a spousal or survivor benefit. The stay-at-home spouse cannot directly improve their own benefit by working (since they have no record). However, if they did work briefly, those years count and may qualify them for a small own benefit. In most cases, maximizing the working spouse's 35-year record is the most direct way to protect the non-working spouse's income.
Free Tool
See how this applies to your situation
Estimate your benefit at 62, 67, or 70 and find the claiming age that fits your timeline.
Next Steps
- How Social Security Benefits Are Calculated — detailed breakdown of AIME, PIA, and the benefit formula
- Verify Your Social Security Earnings History — check your earnings record for errors before they affect your benefit
- Stay-at-Home Spouse Benefits — how the spousal benefit works for non-working spouses
- Married Couples Strategy Guide — full household benefit coordination
- Spousal Benefits Calculator — model how your PIA affects spousal and survivor benefits
For a detailed analysis of whether working additional years meaningfully improves your household Social Security benefits — including a 35-year review worksheet — the Benefora Decision Kit ($47) turns your numbers into a complete, step-by-step claiming plan.
Free Download
The Social Security Claiming Checklist
A one-page checklist of the decisions and deadlines that determine how much you collect — the 8 things to confirm before you file. Free to your inbox.
No spam. Unsubscribe any time.