← All posts

Best and Worst S&P 500 Stock Each Year, 1980-2024

Best and worst S&P 500 stock each year, 1980-2024, from the rosters in force: today’s member list names the same best stock in 3 of 45 years, the worst in 4.

The best and worst S&P 500 stocks of each year are mostly companies that today’s member list cannot show: ranked on it, the best stock matches the real one in 3 of 45 years and the worst in 4. On the rosters in force from 1980 to 2024, only 18 of the 45 best stocks and 5 of the 45 worst are in the index now.

Why do yearly best-stock lists disagree?

A list of each year’s top and bottom stocks depends on which companies count as S&P 500 members. Built from the current constituents, it includes stocks that soared before joining and leaves out members that failed. That is survivorship bias: counting only the companies that lasted. Qualcomm gained 2,619% in 1999, yet it joined the index on 22 July of that year and was not on the roster when the year began.

Ranking each December roster through the next year

  1. Rosters: S&P 500 members on the last business day of each December 1979-2023, from xfl.index("sp500", as_of=...) (index membership reference). A stock added during a year becomes eligible the following January.
  2. Returns: total return with dividends and spin-offs, compounded from monthly bars. A member removed during the year counts through its last day in the index, or its last recorded trade if earlier; daily bars set the exit month for leavers near either end of the ranking.
  3. Comparison: today’s roster traced back, using its stocks that had a price the previous December and a return in every month of the year.
  4. Each share line is ranked separately, and a stock is "still in the index" when the same line is on today’s roster. Dell Computer, best in 1997 and 1998, was taken private in 2013 and counts as gone; the Dell listed now is a later line.

Code

import pandas as pd
import xfinlink as xfl

xfl.set_api_key("YOUR_API_KEY")  # free at https://xfinlink.com/signup

years = range(1980, 2025)
ros = {y: xfl.index("sp500", as_of=pd.date_range(f"{y-1}-12-01", f"{y-1}-12-31", freq="B")[-1].strftime("%Y-%m-%d"))
       for y in years}
today = xfl.index("sp500").dropna(subset=["entity_id"])
ids = sorted(set(pd.concat(list(ros.values()) + [today]).entity_id.astype(int)))
px = pd.concat([xfl.prices(entity_id=ids[i:i + 100], start="1979-12-01", end="2024-12-31", interval="1mo",
                           fields=["close", "adj_close", "return_daily"], max_rows=250_000)
                for i in range(0, len(ids), 100)], ignore_index=True)
px["month"] = pd.to_datetime(px.date).dt.to_period("M")
R = px.pivot_table(index="month", columns="entity_id", values="return_daily", aggfunc="first")
C = px.pivot_table(index="month", columns="entity_id", values="close", aggfunc="first")

def total_return(e, y, last=12):
    r = R[e].reindex(pd.period_range(f"{y}-01", periods=last, freq="M")) if last else pd.Series(dtype=float)
    return (1 + r.dropna()).prod() - 1

rows = []
for y in years:
    for x in ros[y].itertuples():
        e, out = int(x.entity_id), x.removed_date if isinstance(x.removed_date, str) else "9999"
        if out < f"{y}-01-01":  # last day in the index was the roster date itself
            continue
        out = out if out <= f"{y}-12-31" else None
        m = int(out[5:7]) if out else 12
        rows.append({"y": y, "e": e, "name": x.entity_name, "out": out, "ret": total_return(e, y, m),
                     "before": total_return(e, y, m - 1) if out else None})
d = pd.DataFrame(rows)
for y, g in d.groupby("y"):  # leavers near either end: daily returns to the last member day
    hi, lo = g.ret.nlargest(40).min(), g.ret.nsmallest(40).max()
    for i, r in g[g.out.notna()].iterrows():
        if max(r.ret, r.before) >= hi or min(r.ret, r.before) <= lo:
            q = xfl.prices(entity_id=int(r.e), start=r.out[:8] + "01", end=r.out, fields=["close", "return_daily"])
            q = q.return_daily.dropna() if len(q) else pd.Series(dtype=float)
            d.loc[i, "ret"] = (1 + r.before) * (1 + q).prod() - 1

now = {int(x.entity_id): x.entity_name for x in today.itertuples()}
t = pd.DataFrame([{"y": y, "name": n, "ret": total_return(e, y)} for y in years for e, n in now.items()
                  if e in R and pd.notna(C[e].get(pd.Period(f"{y-1}-12"))) and
                  R[e].reindex(pd.period_range(f"{y}-01", periods=12, freq="M")).notna().all()])
for y in years:
    a, b = d[d.y == y].sort_values("ret"), t[t.y == y].sort_values("ret")
    print(y, a.iloc[-1]["name"], f"{a.iloc[-1].ret:.1%}", a.iloc[0]["name"], f"{a.iloc[0].ret:.1%}",
          "| today:", b.iloc[-1]["name"], f"{b.iloc[-1].ret:.1%}", b.iloc[0]["name"], f"{b.iloc[0].ret:.1%}")

Full script with formatting and visualisation: best-and-worst-sp500-stocks-by-year-python.py

Output

Two panels of dots by year, 1980-2024: the best S&P 500 stock’s total return each year on the roster in force (median 168%) and on today’s roster traced back (median 247%), and the worst stock’s return (median -71% against -57%)
45 December rosters 1979-2023: 22,519 member-years; today's roster traced back: 15,232 stock-years; 1,563 securities, 435,974 monthly bars
+ = in today's index; * = not an index member when the year began

year  best, roster in force                    worst, roster in force                     best, today list                     worst, today list
1980  GLOBAL MARINE INC                248.7%  MASSEY FERGUSON LTD                -63.4%  WESTERN DIGITAL CORP *       205.8%  FORD MOTOR CO DEL           -31.3%
1981  KENNECOTT CORP                   134.6%  INTERNATIONAL HARVESTER CO         -72.2%  WEST PHARMACEUTICAL SERV *    79.6%  ADVANCED MICRO DEVICES I *  -48.9%
1982  CHRYSLER CORP                    425.9%  DATAPOINT CORP                     -64.1%  PULTE GROUP INC *            413.1%  A P A CORP *                -44.9%
1983  INTERNATIONAL HARVESTER CO       170.6%  MATTEL INC                         -69.5%  ADVANCED MICRO DEVICES I *   167.7%  LENNAR CORP *               -36.7%
1984  MATTEL INC                       105.0%  STORAGE TECHNOLOGY CORP            -69.7%  TYSON FOODS INC *            117.5%  C M S ENERGY CORP *         -63.3%
1985  TONKA CORP                       169.6%  BEKER INDUSTRIES CORP              -76.1%  FRANKLIN RESOURCES INC *     407.9%  MICRON TECHNOLOGY INC *     -68.8%
1986  OWENS CORNING FIBERGLAS CORP     152.3%  WESTERN COMPANY OF NORTH AMERIC    -66.7%  C M S ENERGY CORP *          108.3%  ROSS STORES INC *           -73.6%
1987  BETHLEHEM STEEL CORP             168.0%  FINANCIAL CORP AMER                -85.0%  MICRON TECHNOLOGY INC *      227.8%  UNITEDHEALTH GROUP INC *    -56.7%
1988  ROPER CORP                       248.0%  GENENTECH INC                      -61.9%  ROSS STORES INC *            154.5%  COOPER COMPANIES INC *      -36.8%
1989  HOLIDAY CORP                     165.7%  INTERCO INC                        -84.5%  UNITEDHEALTH GROUP INC *     169.4%  MONSTER BEVERAGE CORP NE *  -55.6%
1990  HOME DEPOT INC +                  58.7%  PRIME MOTOR INNS INC               -97.4%  WASTE MANAGEMENT INC DEL *   258.5%  HOST HOTELS & RESORTS IN    -68.0%
1991  DATA GENERAL CORP                266.7%  CARTER HAWLEY HALE STORES INC      -66.7%  HENRY JACK & ASSOC INC *     431.3%  WESTERN DIGITAL CORP *      -46.2%
1992  D S C COMMUNICATIONS CORP        467.7%  WANG LABORATORIES INC              -91.3%  WESTERN DIGITAL CORP *       228.6%  GEN DIGITAL INC *           -69.4%
1993  LOTUS DEVELOPMENT CORP           180.3%  J W P INC                          -71.0%  ROPER TECHNOLOGIES INC *     262.7%  APPLE INC                   -50.4%
1994  AMERICAN CYANAMID CO             110.0%  USAIR GROUP INC                    -67.0%  COOPER COMPANIES INC *       227.3%  REGENERON PHARMACEUTICAL *  -80.6%
1995  USAIR GROUP INC                  211.8%  MORRISON KNUDSEN CORP              -68.6%  BIOGEN INC *                 817.6%  MONSTER BEVERAGE CORP NE *  -63.3%
1996  T J X COMPANIES INC NEW +        153.5%  ROADWAY SERVICES INC               -52.5%  JABIL INC *                  255.6%  LABCORP HOLDINGS INC *      -69.3%
1997  DELL COMPUTER CORP               216.2%  ECHO BAY MINES LTD                 -63.2%  BEST BUY COMPANY INC *       247.1%  I D E X X LABORATORIES I *  -55.7%
1998  DELL COMPUTER CORP               248.5%  HARNISCHFEGER INDUSTRIES INC       -70.4%  AMAZON COM INC *             966.4%  CIENA CORP *                -76.1%
1999  SPRINT CORP                      343.2%  HARNISCHFEGER INDUSTRIES INC       -89.6%  QUALCOMM INC *              2619.4%  DAVITA INC *                -77.4%
2000  REEBOK INTERNATIONAL LTD         233.9%  ARMSTRONG WORLD INDUSTRIES INC     -96.4%  LABCORP HOLDINGS INC *       377.3%  BOOKING HOLDINGS INC *      -97.2%
2001  OFFICE DEPOT INC                 160.2%  ENRON CORP                         -99.6%  BOOKING HOLDINGS INC *       343.4%  CORNING INC                 -83.0%
2002  PROVIDIAN FINANCIAL CORP          82.8%  DYNEGY INC NEW                     -95.3%  OLD DOMINION FREIGHT LIN *   124.0%  S B A COMMUNICATIONS COR *  -96.9%
2003  AVAYA INC                        428.2%  A M R CORP DEL                     -77.3%  AXON ENTERPRISE INC *       1938.9%  VERTEX PHARMACEUTICALS I *  -34.7%
2004  AUTODESK INC +                   209.6%  WINN DIXIE STORES INC              -58.5%  AXON ENTERPRISE INC *        361.1%  NETFLIX INC *               -54.9%
2005  VALERO ENERGY CORP NEW +         128.5%  DELPHI CORP                        -96.3%  MONSTER BEVERAGE CORP NE *   332.9%  AXON ENTERPRISE INC *       -78.0%
2006  ALLEGHENY TECHNOLOGIES           152.9%  DANA CORP                          -85.5%  INTERCONTINENTALEXCHANGE *   196.8%  DEXCOM INC *                -33.9%
2007  NATIONAL OILWELL VARCO INC       140.1%  E TRADE FINANCIAL CORP             -84.2%  FIRST SOLAR INC *            795.2%  PULTE GROUP INC             -67.9%
2008  FAMILY DOLLAR STORES INC          38.6%  LEHMAN BROTHERS HOLDINGS INC       -99.5%  DOLLAR TREE INC *             60.8%  AMERICAN INTERNATIONAL G    -97.3%
2009  X L CAPITAL LTD                  419.8%  C I T GROUP INC NEW                -83.4%  ADVANCED MICRO DEVICES I     348.1%  HUNTINGTON BANCSHARES IN    -51.6%
2010  CUMMINS INC +                    142.7%  DEAN FOODS CO NEW                  -51.0%  NETFLIX INC *                218.9%  MONOLITHIC PWR SYS INC *    -31.1%
2011  CABOT OIL & GAS CORP             101.0%  FIRST SOLAR INC +                  -74.1%  DOMINOS PIZZA INC *          112.9%  FIRST SOLAR INC             -74.1%
2012  PULTE GROUP INC +                187.8%  ALPHA NATURAL RESOURCES INC        -67.8%  REGENERON PHARMACEUTICAL *   208.6%  ADVANCED MICRO DEVICES I    -55.6%
2013  NETFLIX INC +                    297.6%  NEWMONT MINING CORP +              -48.5%  TESLA INC *                  344.1%  NEWMONT CORP                -48.5%
2014  SOUTHWEST AIRLINES CO +          126.3%  TRANSOCEAN LTD                     -59.9%  SKYWORKS SOLUTIONS INC *     156.3%  FREEPORT MCMORAN INC        -35.8%
2015  NETFLIX INC +                    134.4%  CHESAPEAKE ENERGY CORP             -76.8%  NETFLIX INC                  134.4%  TARGA RESOURCES CORP *      -73.4%
2016  NVIDIA CORP +                    226.9%  ENDO INTERNATIONAL PLC             -73.1%  ADVANCED MICRO DEVICES I *   295.1%  FIRST SOLAR INC             -51.4%
2017  N R G ENERGY INC +               133.7%  UNDER ARMOUR INC                   -50.3%  BLOCK INC *                  154.4%  GENERAL ELECTRIC CO         -42.9%
2018  ADVANCED MICRO DEVICES INC +      79.6%  COTY INC                           -65.7%  TWILIO INC *                 278.4%  FLEX LTD *                  -57.7%
2019  ADVANCED MICRO DEVICES INC +     148.4%  P G & E CORP +                     -73.2%  CARVANA CO *                 181.4%  P G & E CORP                -54.2%
2020  NVIDIA CORP +                    122.3%  COTY INC                           -72.6%  TESLA INC *                  743.4%  CARNIVAL CORP               -56.9%
2021  DEVON ENERGY CORP NEW +          196.1%  GLOBAL PAYMENTS INC +              -36.9%  DEVON ENERGY CORP NEW        196.1%  GLOBAL PAYMENTS INC         -36.9%
2022  OCCIDENTAL PETROLEUM CORP +      119.1%  GENERAC HOLDINGS INC +             -71.4%  OCCIDENTAL PETROLEUM COR     119.1%  CARVANA CO *                -98.0%
2023  NVIDIA CORP +                    239.0%  FIRST REPUBLIC BANK S F NEW        -97.1%  CARVANA CO *                1016.9%  MODERNA INC                 -44.6%
2024  NVIDIA CORP +                    171.2%  WALGREENS BOOTS ALLIANCE INC       -61.4%  APPLOVIN CORP *              712.6%  INTEL CORP                  -59.6%

Best of the year still in the index today: 18 of 45; worst: 5 of 45
  1980-1999 best 2/20, worst 0/20; 2000-2024 best 16/25, worst 5/25
Ten best still in the index: 178 of 450 (40%); ten worst: 86 of 450 (19%)
All member-years still in the index: 45%
Today's list names the same best stock in 3 of 45 years and the same worst in 4
Today's-list best was not a member when the year began: 41 of 45; worst: 27 of 45
Median best: 168.0% in force, 247.1% today's list; median worst: -71.4% in force, -56.7% today's list
Worst stock down 90% or more: 8 years in force, 4 today's list; removed in its worst year: 20 of 45

Who topped and bottomed the index?

Failures fill the bottom of the real list. Enron lost 99.6% in 2001 before its removal, Lehman Brothers 99.5% in 2008, Delphi 96.3% in 2005 and First Republic 97.1% in 2023. Of the 45 worst stocks, 20 left the index in the year they came last. Counting only the time as a member cuts both ways: AMR and PG&E rank last in 2003 and 2019 on their losses up to removal. In 1991 Carter Hawley Hale and Pan Am tie at -66.7%; in 2008 Family Dollar (38.63%) edges Wrigley (38.59%).

Some names appear at both ends. Mattel was worst in 1983 and best in 1984, USAir worst in 1994 and best in 1995; International Harvester went from last in 1981 to first in 1983. The 1999 winner, listed as Sprint, is the Sprint PCS tracking stock. Nvidia led in 2016, 2020, 2023 and 2024.

Surviving to today is not the same at both ends. Companies on today’s roster account for 45% of all member-years, 40% of the yearly ten best and 19% of the yearly ten worst.

How does today’s list change the ranking?

Today’s-list winners came from outside the index: 41 of the 45 were not members when their year began, because a large rise is what earns a place. Its median best stock returned 247.1% against 168.0% on the real rosters. Tesla’s 743.4% in 2020 ended days after it joined on 21 December, and Carvana supplies both the best stock of 2023 (1,016.9%) and the worst of 2022 (-98.0%), though it joined in December 2025.

At the bottom, the median worst stock lost 56.7% on today’s list and 71.4% on the real rosters. Losses of 90% or more appear in 8 years on the rosters in force and in 4 on today’s list. Three of the 4 were not yet members and later recovered to join: Booking, then Priceline (2000), SBA Communications (2002) and Carvana (2022).

Using a best-and-worst list in research

Any study of extreme winners or losers, such as a momentum or distress screen, should fix the roster before the year begins and keep the companies that left. The historical S&P 500 constituents page lists the members on any date back to 1925. A count of S&P 500 stocks that beat the index applies the same rosters to longer holding periods, and a study of stocks before their removal follows leavers through their final two years. The ten largest members of each year are listed separately.

Built with xfinlink — free financial data API for Python.