STRASMORE/EXPLORE 2,170 QUERIES

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-08-22, from SPY Dividend Yield: Why It Trails the Index.

as of ranking 7×3read in context →
SPY by calendar year: price change against dividends collected — 7 rows by 3 columns, computed from US exchange, SIP and OPRA data.
yearprice_return_pctdividend_return_pct
201928.622.25
202015.091.75
202128.751.55
2022-19.951.32
202324.821.74
2024241.49
202516.641.25
Rows × columns
7 × 3
Computed
Completeness
No missing values
Source
US exchange, SIP and OPRA market data
Licence
Strasmore terms · free, no signup
Formats
JSON · CSV · the SQL below

What each column holds

Column definitions for SPY by calendar year: price change against dividends collected, derived from the stored result.
ColumnTypeRangeNotes
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.

the exact SQL behind every number
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

Run your own version of this

The same 22 years of US equities and 12 years of options data are queryable in SQL or plain English. A free account runs 100 queries a day and takes no card.

More from this analysisSPY Dividend Yield: Why It Trails the Index
Days from ex-dividend date to pay date, last three years ranking 3×4 Trailing 12-month dividend yield: SPY against two open-end S&P 500 ETFs ranking 3×3 Every SPY distribution over the last three years, against the share price series 12×5 Monthly payers in the dividend record, by completed calendar year ranking 21×3 Time value left in deep in-the-money SPY calls, against the dividend at stake ranking 16×4 Biggest gainers and decliners: July 30 close vs July 29 close, $5M+ traded, splits excluded ranking 16×4 See all 2,170 queries →