STRASMORE/EXPLORE 2,170 QUERIES

SPY over five years, June 2021 to June 2026: price return vs return with dividends

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-07-26, from How Monthly Stock Returns Are Measured.

as of scalar 1×7read in context →
june 2021 close
428.07
june 2026 close
746.32
dividends paid per share
34.07
dividend payments
20
five year price return pct
74.35
five year return with divs pct
82.3
dividend points added
7.96
Rows × columns
1 × 7
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 over five years, June 2021 to June 2026: price return vs return with dividends, derived from the stored result.
ColumnTypeRangeNotes
june_2021_close number every row is 428.07 US dollars
june_2026_close number every row is 746.32 US dollars
dividends_paid_per_share number every row is 34.07
dividend_payments number every row is 20
five_year_price_return_pct number every row is 74.35 percent
five_year_return_with_divs_pct number every row is 82.3 percent
dividend_points_added number every row is 7.96

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 daily AS (
    SELECT toDate(toTimeZone(window_start, 'America/New_York')) AS day,
           argMaxIf(toFloat64(close), window_start,
               toTimeZone(window_start, 'America/New_York') >= toDateTime(concat(toString(toDate(toTimeZone(window_start, 'America/New_York'))), ' 09:30:00'), 'America/New_York')
               AND toTimeZone(window_start, 'America/New_York') < toDateTime(concat(toString(toDate(toTimeZone(window_start, 'America/New_York'))), ' 16:00:00'), 'America/New_York')) AS cl
    FROM global_markets.delayed_stocks_minute_aggs
    WHERE ticker = 'SPY'
      AND ((window_start >= '2021-06-28 04:00:00' AND window_start < '2021-07-01 08:00:00')
        OR (window_start >= '2026-06-26 04:00:00' AND window_start < '2026-07-01 08:00:00'))
    GROUP BY day
),
px AS (
    SELECT argMaxIf(cl, day, day <= '2021-06-30') AS start_close,
           argMaxIf(cl, day, day <= '2026-06-30') AS end_close
    FROM daily
),
dv AS (
    SELECT round(sum(cash_amount), 2) AS divs_per_share,
           count() AS payments
    FROM global_markets.stocks_dividends
    WHERE ticker = 'SPY'
      AND ex_dividend_date >= '2021-07-01'
      AND ex_dividend_date <= '2026-06-30'
)
SELECT round(start_close, 2) AS june_2021_close,
       round(end_close, 2) AS june_2026_close,
       divs_per_share AS dividends_paid_per_share,
       payments AS dividend_payments,
       round(100 * (end_close - start_close) / start_close, 2) AS five_year_price_return_pct,
       round(100 * ((end_close + divs_per_share) - start_close) / start_close, 2) AS five_year_return_with_divs_pct,
       round(100 * divs_per_share / start_close, 2) AS dividend_points_added
FROM px CROSS JOIN dv

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 analysisHow Monthly Stock Returns Are Measured
SPY June 2026: price return vs total return (June ex-dividend included) scalar 1×6 NVDA June 2024: a raw close-to-close calc vs the split-adjusted return scalar 1×6 SPY on June 30, 2026: official-close vs the final extended-hours print scalar 1×3 Sum vs compound: twelve SPY monthly returns linked three ways scalar 1×7 SPY monthly close-to-close returns: twelve months ending June 2026, simple and log series 12×4 June 2026 measured two ways: close-to-close vs open-to-close, NVDA and SPY table 2×7 See all 2,170 queries →