Free Historical What-If Calculator

Social Security Taxes vs. S&P 500 Calculator

Ever wonder how the Social Security taxes withheld from your paycheck might have grown if you had invested them instead?

Use your Social Security earnings history to run the historical what-if year by year, then compare the hypothetical investment balance with your monthly Social Security benefit.

Employee withholding firstHistorical S&P 500 total returns1981 forwardReviewed · Sep 21, 2026
What this does

Estimates each year's employee OASDI tax and models what those dollars could have become in an S&P 500 investment.

Have ready

Your complete Social Security earnings record — preferably the yearly “Earnings Taxed for Social Security” column — and your monthly benefit estimate.

Important

This is a historical investment what-if, not a claim that Social Security is equivalent to an investment account.

Terra approachTransparent assumptionsHistorical what-ifNo product recommendationSee methodology →
Step 1

Set the years

Choose the years covered by the earnings record you want to test. This first release supports 1981 forward.

The hypothetical account keeps compounding after work ends.
Step 2

Choose the information you have

The SSA earnings record is the easiest path for most W-2 employees.

Step 3

Paste your SSA earnings table

Copying the Medicare earnings column too is okay. Terra uses the first dollar amount after each year.

Where to find it: In my Social Security, open your complete earnings record and look for Earnings Taxed for Social Security. If a downloaded Statement combines older years into a range such as “1981–1990,” use the complete online record instead of the combined row. Open SSA guidance →
Data check

Make sure the history is complete

Terra checks for blanks, combined-year rows and values that do not fit that year's Social Security wage ceiling.

Waiting for earnings
Years entered0
Missing years—
Needs review—

If you had no Social Security-covered earnings in a year between your first and last work years, enter $0 rather than leaving that year blank.

Step 4

Add your benefit estimate

This lets Terra translate the hypothetical investment balance into a simple Social Security payback comparison.

Used only for the COLA-adjusted payback comparison.
Used only for years without a completed historical S&P return.
Your historical what-if

What the numbers show

Employee OASDI withholding is the default. Open Advanced assumptions to test other conventions.

Your employee Social Security tax$0
Amount hypothetically invested$0
Hypothetical investment value$0
Simple Social Security payback—
Payback with assumed COLA—
How to read “payback”: Terra divides the hypothetical investment value by your starting Social Security benefit, then separately shows a version where the benefit grows by your COLA assumption. It does not mean Social Security is an investment account or that benefits stop at the crossover age.

Hypothetical account growth

Enter your earnings to build the comparison.

Account valueTax invested
Advanced assumptions
Monthly converts the annual S&P return to an equivalent monthly rate and divides the annual tax into 12 equal contributions.
Social Security Tax Timeline — review or fix any year

YearSS taxable earningsStatusEmployee rateWage capSS taxS&P returnYear-end value
My Terra

Save this comparison in this browser

The annual earnings values and assumptions are saved only when you choose Save. Terra does not send those calculator values to analytics.

Nothing saved yet.
Keep the comparison in context

Social Security and an investment account do different jobs.

Social Security

Provides retirement income for life and includes disability, survivor and longevity protection. Benefits can receive cost-of-living adjustments.

Hypothetical S&P account

Carries market risk, can rise or fall sharply, and may leave a remaining asset balance that can potentially pass to heirs.

This calculator is an educational historical what-if. It does not estimate the value of disability or survivor benefits, model taxes on either path, or recommend replacing Social Security with an investment strategy.

Sources & method

What Terra uses

Social Security tax rates and taxable maximums: historical OASDI rates and contribution/benefit bases published by the Social Security Administration. SSA tax rates → SSA wage bases →
S&P 500 returns: annual total-return history including reinvested dividends. Historical return series →
Timing convention: the default monthly-paycheck method is an approximation using 12 equal contributions and a monthly rate mathematically equivalent to that year's annual total return. It does not reconstruct the actual day-by-day market path.
Help improve TerraWas this calculator helpful?

One click helps us see what needs improving. Terra does not send your earnings, benefit amount or calculator inputs with this feedback.