Back to blog
methodology

Where to get free S&P 500 historical data

18 November 2026 6 min read
Live SPY daily price chart, built with Quadesto

Quick answer

The best free source of daily S&P 500 history is Cboe's SPX_History.csv, which holds every close since 2 January 1975 and matches FRED to the cent. FRED's SP500 series now serves only the last year, though its Dow series still has ten. For dividends and total return, use Robert Shiller's monthly dataset from shillerdata.com, which runs from 1871; the old Yale copy stops in September 2023.

The best free source of daily S&P 500 history right now is Cboe's own index file: one CSV with every close since 2 January 1975. FRED, the usual first stop, now serves only the last twelve months of its SP500 series. If you need dividends, and for any return longer than a few months you do, Robert Shiller's monthly dataset is the free option, going back to 1871.

SPY daily price (live) · built with Quadesto

The live chart above is SPY, the exchange-traded fund that tracks the index, drawn from daily Alpha Vantage prices. It is not the index itself, and the gap between "the S&P 500" and "a return you could have earned" is most of what this post is about.

Cboe's index history file (daily closes since 1975)

Cboe publishes a plain CSV at cdn.cboe.com/api/global/us_indices/daily_prices/SPX_History.csv. It has two columns, DATE in month/day/year order and SPX, and as of 17 November 2026 it held 13,079 rows, from a close of 70.23 on 2 January 1975 to 7,340.53 on 17 November 2026.

It is closes only. There is no open, high or low, so it will not draw a candlestick. I checked it against FRED on every day the two overlap (251 sessions to 16 November 2026) and the closes match to the cent.

One practical catch: the URL answers with a redirect before it serves the file. Browsers and pandas follow it without being asked. With curl you need the -L flag, or you save a short HTML page instead of the data. The same folder holds VIX_History.csv, with open, high, low and close since 1990, which is what the volatility cone post was built on.

FRED: one year of S&P 500, ten years of the Dow

FRED's SP500 page still says that FRED "will include 10 years of daily history" for S&P and Dow Jones series. That is not what it serves for this one. On 18 November 2026 the chart, set to its maximum date range, started on 17 November 2025, and the CSV download returned 251 observations from that date no matter what start date I asked for.

The Dow is different. FRED's DJIA series downloads from 18 November 2016, the full ten years the note describes. The Nasdaq Composite (NASDAQCOM) has no such limit and comes back complete from 5 February 1971.

If you have a script that pulls SP500 from FRED for a long backtest, check the row count. It will not throw an error. It will just hand you a year and let the chart start in November 2025.

Robert Shiller's dataset (monthly since 1871, with dividends)

Shiller's spreadsheet, the data behind Irrational Exuberance, has a monthly S&P composite price from January 1871 alongside dividends, earnings, CPI and the 10-year Treasury rate. It is the only free source I found that carries the dividend you need to build a total return.

Two details decide whether you get the right file. The current version lives at shillerdata.com; the old Yale address still answers, but the ie_data.xls it serves stops in September 2023. The file downloaded from shillerdata.com on 18 November 2026 ran to November 2026 for prices and September 2026 for dividends, because dividends and earnings are filled in with a lag.

The other detail is what a monthly value means. Shiller's price is the average of the month's daily closes, not the month-end close, and the latest month is a partial one. (I checked: the September and October 2026 values equal the average of Cboe's daily closes for those months to the cent.) That smooths the series. March 2020 shows as an 18.9% drop from February in this file, while the daily closes fell further peak to trough. Fine for decades of returns; wrong for drawdowns, which need daily data.

Price index or total return: decide before you download

Every daily source above is a price index. FRED says so in its own notes: it "does not contain dividends". Dividends paid by the member companies are never added back into a price index, so a price chart understates what a holder earned, and the shortfall compounds.

Using Shiller's monthly data, $10,000 in the S&P 500 in September 2016 grew to $35,545 by September 2026 on price alone, 13.52% a year. With dividends reinvested it grew to $41,750, 15.36% a year. That is a gap of 1.8 points a year in a decade when the dividend yield was low; it was 1.07% in September 2026. From January 2000 the same comparison is $53,798 against $86,510.

An official total return version of the index exists, but I did not find a free, official daily file for it. So for anything you call a return, use Shiller's monthly reconstruction or say plainly on the chart that it is price only. The growth of $10,000 post walks through building that line.

To rebuild the total return yourself, add a twelfth of the annual dividend to each month's price and chain the monthly ratios:

import pandas as pd

# ie_data.xls from shillerdata.com; the column headers sit on row 8 of the "Data" sheet
raw = pd.read_excel("ie_data.xls", sheet_name="Data", skiprows=7)
df = raw[["Date", "P", "D"]].copy()
df["Date"] = pd.to_numeric(df["Date"], errors="coerce")
df = df.dropna(subset=["Date"])
# Dates are stored as 2026.09 for September and 2026.1 for October
df["Date"] = pd.to_datetime(
    df["Date"].map(lambda d: f"{int(d)}-{round((d - int(d)) * 100):02d}-01")
)
df = df.set_index("Date").loc["2016-09-01":"2026-09-01"]

price_growth = df["P"] / df["P"].iloc[0]
monthly_tr = (df["P"] + df["D"] / 12) / df["P"].shift(1)
tr_growth = monthly_tr.fillna(1).cumprod()

print(round(10_000 * price_growth.iloc[-1]), round(10_000 * tr_growth.iloc[-1]))
# 35545 41750

The date column is the trap in that file. Shiller stores October as 2026.1, which a careless parse reads as January.

Loading the Cboe file

For daily closes, pandas reads the Cboe URL directly:

import pandas as pd

url = "https://cdn.cboe.com/api/global/us_indices/daily_prices/SPX_History.csv"
spx = pd.read_csv(url, parse_dates=["DATE"], date_format="%m/%d/%Y")
spx = spx.set_index("DATE")["SPX"]

print(len(spx), spx.index[0].date(), spx.index[-1].date(), spx.iloc[-1])
# 13079 1975-01-02 2026-11-17 7340.53

Pass the date format. The file uses month/day/year, and leaving pandas to guess is how 03/04 becomes 3 April in one script and 4 March in another.

Check the terms before the chart goes public

Downloading index data and publishing a chart of it are different permissions. FRED's SP500 page carries S&P's copyright notice, which says reproduction "in any form is prohibited except with the prior written permission" of S&P Dow Jones Indices. The index values belong to the index provider whichever free site you got them from. For a chart on your own screen, any of these sources is fine. For a chart on a public page or in a paid newsletter, read the terms of the source you used, and for an index-heavy product, ask the provider.

Where Quadesto fits

The Cboe file and a FRED series are both the kind of thing you can drop into Quadesto as a CSV or a connected source and get a chart you can publish as a live embed. Starting from the right file, with the basis stated on the chart, is the part no tool does for you. Start free.

Ready to try Quadesto?

Connect your data. AI builds the charts. Embed anywhere.

Get Started Free
s&p 500historical datadata sourcestotal returnpython