Skip to content

Stock correlation calculator. Do these two move together?

Over the last year, XLK and XLE had a correlation of −0.14: almost no correlation (as of ).

Enter any two stocks or ETFs to get their correlation over 3 months, 1 year and 3 years. Correlation runs from −1 to +1 and shows whether two holdings really diversify each other.

Free · no account needed

DorianMiriamZakEnrique

Trusted by 141 investors

Two tickers in, one number out.

The correlation of their daily returns over three periods, the beta, and how the correlation has moved over time.
Updated after each US market close
Correlation calculatorFree · no account
XLK and XLE · the last year
−0.14Almost no correlation

Technology Select Sector SPDR (XLK) and Energy Select Sector SPDR (XLE). Their daily moves have had little to do with each other. That is what diversification looks for.

daily returns · as of
Correlation of XLK and XLE over each period
PeriodTrading daysCorrelation
3 months63 trading days0.06
1 year252 trading days−0.14
3 years756 trading days0.17
Beta of XLK to XLEMove of XLK for each 1% move of XLE, last year−0.19
Rolling 3-month correlation · since Jan 2024
Rolling 3-month correlation between XLK and XLE, Jan 2024 to Dec 2026.

Sector correlation matrix. The S&P 500 and its 11 sectors.

Over the last year the closest pair of sectors is Communication Services and Consumer Discretionary at 0.66. The most independent is Technology and Consumer Staples at −0.37.
Correlation matrix of the S&P 500 and its 11 sectors over the last 252 trading days, as of 4 December 2026
SPYXLKXLFXLREXLVXLIXLEXLCXLUXLYXLPXLB
S&P 500SPY10.880.550.280.230.74−0.170.570.130.77−0.050.54
TechnologyXLK0.8810.23−0.01−0.090.61−0.140.27−0.020.49−0.370.33
FinancialsXLF0.550.2310.500.440.49−0.110.500.150.570.250.48
Real EstateXLRE0.28−0.010.5010.520.38−0.070.360.580.400.540.49
HealthcareXLV0.23−0.090.440.5210.24−0.060.280.260.330.540.41
IndustrialsXLI0.740.610.490.380.241−0.120.310.340.550.050.64
EnergyXLE−0.17−0.14−0.11−0.07−0.06−0.121−0.200.05−0.330.04−0.05
Communication ServicesXLC0.570.270.500.360.280.31−0.2010.040.660.200.31
UtilitiesXLU0.13−0.020.150.580.260.340.050.0410.150.400.36
Consumer DiscretionaryXLY0.770.490.570.400.330.55−0.330.660.1510.220.54
Consumer StaplesXLP−0.05−0.370.250.540.540.050.040.200.400.2210.37
MaterialsXLB0.540.330.480.490.410.64−0.050.310.360.540.371

Daily returns over the last 252 trading days, as of . Each sector is measured through its Select Sector SPDR fund and the S&P 500 through SPY. Brighter cells are more correlated.

What correlation between two stocks is

Correlation measures how closely the returns of two investments move together. It is one number between −1 and +1, called the correlation coefficient.

At +1 the two rise and fall together every day. At −1 one rises whenever the other falls. At 0 the move of one tells you nothing about the move of the other.

It matters because of diversification. Two holdings that are highly correlated are, in practice, one bet. A portfolio becomes steadier only when its parts do not all fall at the same time.

How Zensei builds it

Three steps, from the daily prices of the two tickers. This is the standard Pearson correlation.

Correlation = covariance(returns of A, returns of B) ÷ (standard deviation of A × standard deviation of B)

01

Turn prices into daily returns

For each ticker we take the daily closing prices, adjusted for splits and dividends, and compute the percentage change from one day to the next. Only days on which both traded are used.

02

Measure how the returns move together

The covariance of the two return series says whether they tend to be above or below their own average on the same days. Dividing it by the two standard deviations scales the result to between −1 and +1.

03

Repeat over three windows

The last 3 months (63 trading days), 1 year (252) and 3 years (756). The chart repeats the 3-month calculation for every day, so you can see the correlation change over time.

We use returns, not prices. Two prices that both drift upwards over the years look correlated even when their daily moves have nothing in common. Returns remove that illusion.

Beta is shown next to the result. It is the slope of the first ticker's returns against the second's over the last year: a beta of 1.5 means the first has moved 1.5% for each 1% move of the second, on average.

What it is used for

Investors use correlation in three ways.

To check diversification

Two funds with different names can hold the same kind of company. If their correlation is above 0.9, owning both spreads your money over two tickers, not over two risks.

To find a hedge

An asset with a low or negative correlation to the rest of a portfolio softens its falls. Long government bonds and gold have often played that role against stocks, though not in every period.

To size a position

A new holding that is highly correlated with what you already own adds to the same risk. Many investors hold less of it than they would of something uncorrelated.

How to read the number

Read the sign first, then the size. The sign says whether the two move in the same or in opposite directions. The size says how reliably.

How to read a correlation coefficient between two investments
CoefficientWhat it means
+0.8 to +1.0Very strong. They move almost as one, so holding both adds little diversification.
+0.6 to +0.8Strong. They usually move in the same direction. A correlation of 0.7 is here: about half of the movement of one is shared with the other.
+0.2 to +0.6Weak to moderate. They share a direction on many days, but each also goes its own way.
−0.2 to +0.2Uncorrelated. The move of one says almost nothing about the other. Good for diversification.
−0.2 to −1.0Negative. They tend to move in opposite directions. The closer to −1, the better one hedges the other.

Squaring the coefficient gives the share of one investment's movement that is explained by the other. A correlation of 0.7 squared is 0.49, so about half. A correlation of 0.3 squared is 0.09: less than a tenth.

Most stocks are positively correlated with each other, because they share the same market. Among the 11 S&P 500 sectors over the last year, the closest pair is Communication Services and Consumer Discretionary at 0.66 and the most independent is Technology and Consumer Staples at −0.37.

One tool answers one question. The Index reads the whole market.

Correlation describes two holdings. The Zensei Index reads ten signals of valuation, credit, liquidity, volatility and trend, and turns them into one score from 0 to 100. Today it reads Stressed, 56 out of 100. Lower is healthier.
See today's Index readingFree to view · no account needed.

What it does not tell you

Correlation changes. It is measured on the past and it moves. In sharp sell-offs, the correlations between stocks rise towards 1, which is when diversification is needed most.

It ignores size. A stock that moves 0.1% whenever another moves 3% can still show a correlation near 1. Look at beta for the size of the moves.

The window matters. Three months can show a very different number from three years. A short window is noisy; a long one hides recent changes.

Correlation is not causation. Two tickers can move together because both respond to something else, such as interest rates or the market as a whole.

History here is limited. The tool uses up to three years of daily prices and covers the stocks and funds Zensei tracks.

One number never describes a market. To see how valuation, credit, liquidity, volatility and trend stand together today, open the Zensei Index: it is free to view.

Zensei is an analytics tool, not a registered investment adviser, and nothing on this page is investment advice. Read the full disclaimer.

Where the data comes from

One input per ticker. Zensei does the arithmetic.

Data sources of this page
InputSourceUpdated
Daily closing prices of each ticker, adjusted for splits and dividendsEnd-of-day prices from the US exchanges where the ticker tradesAfter each US market close

Further reading

Calculation and text by Zensei. Explanation last updated . Data as of . Found an error? Tell us.

Correlation, in plain answers.

Over the last year, XLK and XLE had a correlation of −0.14, which is almost no correlation (daily returns, as of 4 December 2026). Their daily moves have had little to do with each other. That is what diversification looks for.

Take the daily closing prices of both stocks and turn them into daily percentage returns. Compute the covariance of the two return series and divide it by the product of their standard deviations. The result is between −1 and +1. The calculator on this page does it for you.

A correlation of 0.7 is a strong positive correlation: the two investments usually move in the same direction. Squared, it is 0.49, so about half of the movement of one is shared with the other. Holding both gives some diversification, but not much.

The lower, the better. Below about 0.5 two holdings start to diversify each other in a way you can notice. Near 0 they are uncorrelated. Below 0 one tends to rise when the other falls, which makes it a hedge.

Among the 11 S&P 500 sectors over the last year, the most correlated pair is Communication Services and Consumer Discretionary at 0.66. The least correlated pair is Technology and Consumer Staples at −0.37. The sector that follows the S&P 500 most closely is Technology at 0.88.

Uncorrelated assets are investments whose returns have a correlation near 0: the move of one says nothing about the move of the other. Stocks, government bonds, gold and cash have often had low correlations with each other, but the numbers change from one period to the next.

It depends on the period. For most of 2000 to 2020, US stocks and Treasury bonds were negatively correlated, so bonds cushioned stock falls. In 2022, when inflation rose, both fell together and the correlation turned positive. Enter SPY and TLT in the calculator to see the current number.

Correlation says how consistently two investments move in the same direction. Beta says how much one moves for each 1% move of the other. A stock can follow the market closely (high correlation) and still move less than it (low beta).

Yes. Correlation is measured on past returns and it shifts with the economy and with market stress. In sharp sell-offs, correlations between stocks rise towards 1. That is why the calculator shows three windows and a rolling chart, not one number.

Rising correlation between stocks is one sign of stress. The Zensei Index measures stress directly, with ten signals of valuation, credit, liquidity, volatility and trend. The Zensei Index is at 56 out of 100 today (Stressed; lower is healthier).

Yes. Every tool on this page is free to use, with no account and no card. A free Zensei account adds today's market regime and the sector rotation map; Premium adds full sector coverage, history and alerts.

Diversification is one question. See the whole market today.

The Zensei Index reads ten signals of market stress and tells you the regime, and the rotation map shows which sectors lead. Free, with no card required.
DorianMiriamZakEnrique

Trusted by 141 investors