SPY by calendar year: price change against dividends collected
Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-09-20, from SPY Dividend Yield: Why It Trails the Index.
| year | price_return_pct | dividend_return_pct |
|---|---|---|
| 2019 | 28.62 | 2.25 |
| 2020 | 15.09 | 1.75 |
| 2021 | 28.75 | 1.55 |
| 2022 | -19.95 | 1.32 |
| 2023 | 24.82 | 1.74 |
| 2024 | 24 | 1.49 |
| 2025 | 16.64 | 1.25 |
- Rows × columns
- 7 × 3
- Computed
- Completeness
- No missing values
- Source
- US exchange, SIP and OPRA market data
- Licence
- Strasmore terms · free, no signup
What each column holds
| Column | Type | Range | Notes |
|---|---|---|---|
year |
number | 2,019 to 2,025 | |
price_return_pct |
number | -19.95 to 28.75 | percent |
dividend_return_pct |
number | 1.25 to 2.25 | percent |
Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.
Run it yourself
This is the exact query behind the result above. Change a ticker, a date or a column and run it against the warehouse — no account, no key. The no-signup tier is smaller than the one this page was computed on; a query that reaches past it comes back saying which plan runs it.
WITH
px AS
(
SELECT
toDate(toTimeZone(window_start, 'America/New_York')) AS d,
toFloat64(argMax(close, window_start)) AS close_px
FROM global_markets.delayed_stocks_minute_aggs
WHERE ticker = 'SPY'
AND window_start >= today() - 2950
AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60
+ toMinute(toTimeZone(window_start, 'America/New_York'))) >= 570
AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60
+ toMinute(toTimeZone(window_start, 'America/New_York'))) < 960
GROUP BY d
),
by_year AS
(
SELECT
toYear(d) AS year,
argMin(close_px, d) AS first_close,
argMax(close_px, d) AS last_close
FROM px
GROUP BY year
),
divs AS
(
SELECT
toYear(ex_date) AS year,
sum(cash_amount) AS year_dividends
FROM
(
SELECT
ex_dividend_date AS ex_date,
max(toFloat64(cash_amount)) AS cash_amount
FROM global_markets.stocks_dividends
WHERE ticker = 'SPY'
AND ex_dividend_date >= today() - 2950
GROUP BY ex_dividend_date
)
GROUP BY year
)
SELECT
by_year.year AS year,
round((by_year.last_close / by_year.first_close - 1) * 100, 2) AS price_return_pct,
round(divs.year_dividends / by_year.first_close * 100, 2) AS dividend_return_pct
FROM by_year
INNER JOIN divs ON divs.year = by_year.year
WHERE by_year.year > toYear(today() - 2950)
AND by_year.year < toYear(today())
ORDER BY year