Covariance Calculator

Covariance, correlation and beta for any two series

Measure how two series move together, free and without signing in: a stock or ETF by its ticker or name, or an economic series by its id or title. Choose how often to sample them and how far back to look, and read their covariance, correlation and beta, with the data behind them.

This product uses the FRED® API but is not endorsed or certified by the Federal Reserve Bank of St. Louis.

Why covariance matters in finance

How a lead works

From the Markets and Macro Quarterly, October 2026, Section 1.

How to use the calculator

The analyst: is the story in the data?

  • Test a macro thesis before writing it. "Rising real yields hurt technology stocks": pick DFII10 and a technology stock or sector fund, weekly or monthly, 5 to 10 years. The correlation says whether the relation exists; the beta says how large it is; the window says whether it is recent or long-standing.
  • Find what a company really moves with. A stock against oil, the dollar, the 10-year yield and credit spreads in turn: the strongest is its true macro driver, which is not always its sector label.
  • Check that a relation is not two trends. Run it on changes (the default), never on levels: two rising series always look related as levels.
  • Cite it. Every result names its data source; a pair, frequency and window can be shared as a link and reproduced by anyone.

Try an example: Exxon Mobil against WTI crude oil, daily, over 1 year

The portfolio manager: what does the book really hold?

  • Diversification check before adding a position. The correlation of the candidate with the portfolio's largest exposure (or with SPY): near 1 adds concentration, near 0 or below adds diversification.
  • Hidden factor exposure. Each holding against the 10-year yield, the dollar, oil or credit spreads: several holdings with large betas to the same series are one bet, whatever their sectors.
  • Stress view. The same pair over a calm and a volatile window (for example 2024 against 2020): correlations usually rise in sell-offs, so the diversification that shows in calm data is the most a book can count on, not the least.
  • Benchmark fit. A fund or ETF held in the book against its benchmark (for example a sector fund against SPY): the beta is the market exposure it actually carries, the R squared how much of its movement the market explains.

Try an example: a technology sector fund against SPY, daily, over 1 year

The trader: what has changed, and how much to hedge

  • Hedge ratio. The beta of the position on its hedge instrument, over a look-back that matches the holding period (1 to 3 months for a short-term trade); size the hedge as position value times beta.
  • Relative-value pairs. Two related names (KO and PEP, XOM and CVX): the correlation says whether the pair is still a pair; the beta gives the ratio to trade them in.
  • Regime check. The same pair over 1 month, 3 months and 1 year: a short-window reading far from the long one is the kind of aberration this paper tests for, and the first sign that a hedge or a pair has stopped working.
  • Macro event read. A sector against the series behind the next release (payrolls, CPI, claims), monthly, to see how strongly the sector has moved with that figure.

Try an example: Coca-Cola against PepsiCo, daily, over 1 month3 months1 year

From the Markets and Macro Quarterly, October 2026, Section 2.

What the Markets and Macro Quarterly, October 2026, found

Markets and Macro Quarterly, October 2026 (data through 2026-10-31). Each finding links to its section of the issue; the calculator opens on the pair behind it.

What the study expected and did not find

Explore your own ideas for free: every relation in this paper, and any pair of your own, can be measured in Gyre's free Covariance Calculator at gyreresearch.com/covariance.

Not investment advice, and not a recommendation to buy or sell anything.

See these measures at work: Markets and Macro, Gyre Research's quarterly, monthly and weekly publications on how markets and the economy move together. Read the latest issue and subscribe free.

The calculator

Automatic: percent change for prices and for FRED series not in percent; change in level for FRED series measured in percent. Two-day change (daily, both series): the same split over two trading days, for series measured at different times of day.
Daily commentary · November 17, 2026

SPY against the VIX carries both a low 21-change and low 63-change mark: the inverse link is the most negative in its roughly three-year history.

On November 17, 2026, the table's only marks are on SPY against VIXCLS, flagged low on both the 21-change and 63-change windows because the inverse relationship is more negative than at any comparable point since its history began in December 2023. Every other pair sits inside its own 1st-to-99th percentile range. Compared with November 14, 2026, one-year correlations and betas moved only slightly across all 17 pairs. Several pairs show short-window correlations that differ markedly from their one-year figures, including a near-zero dollar-gold reading and a positive recent SPY-yield reading against a negative annual one.

These figures measure co-movement only, from data beginning in December 2023, and show nothing about what drives any pair or where correlations go next.

This analysis was created with the assistance of large language model technology. It is written from this page's numbers for the day and describes the results; it is not a forecast or investment advice.

Past daily commentary

Daily table: 17 pairs

Computed November 17, 2026. Data through November 16, 2026. Daily changes (two-day changes where marked), computed by this calculator after each close. Select a pair to open it in the calculator.

Correlation over the last N changes1-year look-back
Pair (A/B)1 month (21)3 months (63)1 year (252)Beta of A on BR squaredSt. dev. ASt. dev. BWindowObservations
ETFs
SPY/TLT-0.070.100.260.370.070.87%0.61%2025-11-17 to 2026-11-16251
SPY/GLD0.360.390.360.170.130.87%1.82%2025-11-17 to 2026-11-16251
SPY/QQQ0.960.940.930.590.870.87%1.36%2025-11-17 to 2026-11-16251
QQQ/IWM0.840.770.750.860.561.36%1.18%2025-11-17 to 2026-11-16251
SPY/EFA0.850.800.800.660.630.87%1.05%2025-11-17 to 2026-11-16251
SPY/EEM0.910.830.790.410.620.87%1.68%2025-11-17 to 2026-11-16251
SPY/HYG0.650.620.742.570.540.87%0.25%2025-11-17 to 2026-11-16251
TLT/GLD0.170.360.160.050.030.61%1.82%2025-11-17 to 2026-11-16251
ETF against a FRED series
SPY/VIXCLS two-day-0.98 low-0.94 low-0.85-0.090.731.19%11.01%2025-11-18 to 2026-11-13249
SPY/DGS10 two-day0.560.21-0.17-0.030.031.19%0.062025-11-18 to 2026-11-13247
SPY/DCOILWTICO two-day-0.35-0.43-0.38-0.090.151.19%5.30%2025-11-18 to 2026-11-11 (behind)247
GLD/DTWEXBGS two-day-0.01-0.31-0.49-3.240.242.53%0.38%2025-11-18 to 2026-11-06 (behind)243
Stocks
AAPL/MSFT0.550.430.160.120.021.57%2.14%2025-11-17 to 2026-11-16251
NVDA/AMD0.570.490.510.270.262.45%4.64%2025-11-17 to 2026-11-16251
XOM/CVX0.950.920.870.950.751.71%1.55%2025-11-17 to 2026-11-16251
JPM/BAC0.940.720.770.780.591.43%1.41%2025-11-17 to 2026-11-16251
KO/PEP0.800.710.620.540.381.19%1.37%2025-11-17 to 2026-11-16251

Correlations over the last 21, 63 and 252 changes (1 month, 3 months and 1 year of trading days), computed from the calculator's own aligned changes over all shared history. A 1-month or 3-month value marked high or low is above the 99th or below the 1st percentile of every earlier correlation of that pair over the same number of changes, against its history since December 4, 2023 (SPY/VIXCLS, SPY/DGS10, SPY/DCOILWTICO, GLD/DTWEXBGS: since December 5, 2023), about 3.0 years.

Beta, R squared, standard deviations, window and observations: the calculator's own result over a 1-year look-back. Standard deviation of each change: a percent for prices and series not measured in percent; in percentage points for a series measured in percent (its change in level).

two-day SPY/VIXCLS, SPY/DGS10, SPY/DCOILWTICO, GLD/DTWEXBGS: a security's 4 pm close against a FRED series recorded at another time of day, so the pair is measured on overlapping two-day changes (each spans two trading days, so a move one series records a day after the other still falls in a shared change). Its standard deviations are of two-day changes and its covariance is annualized by 126 (252 / 2).

How well do the estimates forecast?

For each of 17 pairs, at every day with a year of earlier changes, three estimates of the covariance were made and compared with what the next 21 trading days then showed. A loss of 0 would be a perfect forecast; lower is better. The comparison with last year's sample is a Diebold-Mariano test (t of -2 or lower = clearly better).

EstimateAverage lossError size against last year'sPairs with a smaller errorTest t
Last year's sample (the table's estimate)0.9701.000––
Exponentially weighted, decay 0.940.9301.1400-0.32
Last 3 months' sample0.9821.09800.15

Exponentially weighted estimate offered: no: mean loss 0.9300 against 0.9702, DM t -0.32, lower covariance RMSE in 0 of 17 pairs

Latest in Markets and Macro

Markets and Macro Quarterly, October 2026

Released · data through

What this issue says about this tool:

Read the issue · Download the PDF

Method

Every number on this page comes from the steps below, in this order. Nothing is smoothed, filled in or estimated.

  1. Data. A security's price is its daily adjusted close (the close for currencies and crypto, which have no adjusted close). Our price history begins on 2023-12-01, so a security can be looked back at most to that date. A FRED series is downloaded from the Federal Reserve Bank of St. Louis the first time anyone uses it and refreshed when FRED reports an update; FRED's "no value" marks are left out.
  2. Periods. Each series is put into periods at the chosen frequency (the day; the week, Monday to Sunday; the calendar month; the quarter; the year) and the last value in each period is kept. A weekly period is shown as its Friday, the others as their last day.
  3. Alignment. Only periods in which both series have a value are kept, so both changes are always measured over the same interval. A period that is not over by the end of the window (for example the current month) is left out and named in the notes.
  4. Changes. Each series is measured between consecutive kept periods as a percent change, a change in level, a log change, or left as its level. Percent and log changes need values above zero. A two-day change (daily frequency only, for both series) is measured from each day to the day two kept days later, as a percent change or, for a FRED series measured in percent, a change in level; the changes overlap, one per day. It is meant for two series recorded at different times of day (a stock's 4 pm close and a rate or currency fixed earlier): a move one series records a day after the other still falls inside a shared change.
  5. Statistics. Sample covariance with the N−1 denominator, Pearson correlation, R² (the square of the correlation), and each beta (the covariance divided by the other series' variance). The annualized covariance multiplies the per-period figure by the periods in a year: 252 trading days, 52 weeks, 12 months, 4 quarters or 1 year. A two-day change holds two days' worth of covariance per period, so it is annualized by 126 (252 divided by 2). Levels are not annualized.

Rules the calculator enforces

Reading the result

Covariance is in the units of the two measures multiplied together (for two percent changes, a fraction squared), so its size depends on the series. Correlation removes the units and runs from −1 to 1. The beta of the second series on the first is how much the second series' change moves, on average, for a one-unit change in the first.

FRED data and its owners

Each FRED series is listed with its source under the result. FRED marks some series as owned by a third party that requires permission before its data is used; the calculator does not offer those, nor series FRED gives no copyright status.

Economic data: Federal Reserve Bank of St. Louis, FRED®.

Work with Gyre

The Gyre Investment Analytics Hub is inexpensive and sits on top of your current OMS, EMS and accounting systems, dramatically enhancing decision support and analysis. Gyre also provides custom analytics to meet any proprietary need. Contact us today: team@gyreresearch.com

team@gyreresearch.com