Educational

Social Security 35-Year Rule: How Your Benefit Is Calculated

Last updated: March 17, 2026

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.


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

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 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.

SituationDoes working longer help SS benefit?
Fewer than 35 years workedYes — every year helps
35+ years with some low/zero yearsYes, if new earnings exceed lowest year
35 high-earning yearsNo — additional years don't change PIA
Taking years off before claimingDepends 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:

  1. Look at your earnings record at ssa.gov/myaccount
  2. Identify your 35 highest-indexed years
  3. Compare what your earnings for ages 63–65 would be (projected) against your current 35th-highest year
  4. 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


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

For a detailed analysis of whether working additional years meaningfully improves your household Social Security benefits — including a 35-year review worksheet — the $67 Couples Strategy Kit at /couples-kit walks through this calculation for both spouses.

Disclaimer: This article provides educational information about Social Security. It is not financial, legal, or tax advice. For personalized guidance, consult a qualified professional. Benefora is not affiliated with the Social Security Administration.