Portfolio & Risk

Stock Correlation Matrix: How to Read and Build One

One grid, one number per pair, each running from plus one to minus one. Read it right and it tells you whether you hold a spread of bets or one bet wearing many tickers.

AI-assisted, reviewed and edited by Beth Ruelos. How we use AI

6 min read

A stock correlation matrix is a grid. The same list of stocks or funds runs down the left and across the top, and every cell holds one number, the correlation between that row and that column, somewhere between plus one and minus one. Read along a row. At a glance you can see which of your holdings tend to rise and fall with it, which wander off on their own, and which rare few lean the opposite way when the market turns. The grid is easy to read. Learning what it says about your real risk, and what it hides, is the part that takes work, and the distance between a matrix anyone can read and one that is read correctly is exactly where most people who glance at a single cell and move on go wrong.

The grid, cell by cell

Open any correlation matrix and the shape repeats. Tickers on both axes. Numbers in the middle. A diagonal of perfect scores running corner to corner.

The diagonal is always 1.00, because every asset moves in perfect step with itself, so those cells carry no information and serve only to split the grid into two halves that mirror one another. The correlation of A with B equals the correlation of B with A. So you read one triangle and ignore its reflection.

Each off-diagonal cell is a single coefficient. Plus one means the two moved in lockstep across the window measured. Zero means their daily moves had no straight-line link at all. Minus one, which you will almost never see between two stocks, means a rise in one came with a proportional fall in the other, every single time. Most pairs of US stocks land between 0.3 and 0.8, because they all breathe the same market air: the same interest rates, the same recessions, the same tide of money arriving and leaving, and that shared weather is the reason a genuine diversifier, a holding that truly marches to its own beat, turns out to be so scarce and so quietly valuable.

Reading a small one

Picture a five-holding grid with round, invented numbers. A broad stock fund, a technology fund, a utilities fund, a long-term Treasury fund, and gold. The lower triangle looks like this.

Stocks Tech Utilities Treasuries
Tech 0.92
Utilities 0.55 0.40
Treasuries 0.10 negative 0.15 negative 0.35
Gold 0.05 0.00 0.20 0.30

Walk it slowly. The technology fund sits at 0.92 against the broad stock fund. Own both and you very nearly own one of them twice. Utilities at 0.55 bring a little separation. That is the quiet corner of the market, the one that leans on dividends and rates. The Treasury cells are the interesting ones. Slightly negative against both stock funds, they show the behaviour people buy bonds for: a tendency to rise on the exact days stocks fall. Gold floats near zero against almost everything. A genuine outsider, marching to the drum of real rates and fear.

That reading took a paragraph. The lesson sits in three cells. A portfolio of the first two funds is really one bet, and the Treasury line is the holding that changes how a bad week actually feels, because it is the single position placed to zig while everything else zags. The diversification guide works through the arithmetic of why a low-correlation pairing cuts the swing, and the live correlation matrix hands you real figures for forty-plus funds and large stocks, in place of these invented ones.

Building your own

You do not need special software. A spreadsheet and a column of prices will do.

Start with daily closing prices for each stock. Line up a year or so of them by date, each stock in its own column. Then convert the prices to returns. This step matters: correlating raw prices hands back a falsely high number that mostly reflects two things drifting upward together over the years, which is drift, not relationship. A daily return is simply today’s close over yesterday’s, minus one. Point the sheet’s CORREL function at two return columns and it returns the coefficient for that pair. Repeat across every pair and the matrix is built.

Three choices quietly settle the answer before any arithmetic runs. The window: a one-year matrix and a five-year matrix of the same stocks can disagree sharply, because the longer one averages across conditions the shorter never saw. The interval: daily, weekly and monthly returns give different numbers, and daily data is noisier but fresher. The gaps: when one stock did not trade on a day the other did, a holiday or a halt, line the dates up honestly or the function will compare days that do not belong together.

What the matrix leaves out

The matrix answers one question well and stays silent on several others. The silences are where portfolios get hurt.

It is blind to the size of moves. A pair correlated at 0.3 can cost you more than a pair at 0.8 if the first pair swings twice as hard, which is why a matrix belongs beside a measure of volatility, the subject of measuring portfolio risk. It is also a straight-line measure. Relationships that bend slip straight past it: two assets can look unrelated across a calm year and then plunge together in a crash, and the single averaged number washes that danger clean out. And it describes the window it was fed, with no promise at all about the next one.

There is a deeper trap for anyone using the matrix to pick pairs that move together. High correlation describes short-term co-movement. It can hold for months between two stocks whose prices are steadily drifting apart the whole time, and traders who build spreads on that confusion tend to discover the gap the expensive way. What actually tethers two prices is cointegration, a stronger and rarer condition that pairs trading and statistical arbitrage sets out, and correlation is a weak stand-in for it.

Putting it to work

The honest uses are modest and real. Pull up the funds you actually own and look at your own triangle. Deep, positive cells almost everywhere? You own one position several times over, and the row count on your statement was busy hiding it. A few cells near zero or below? Those are the holdings earning their keep, doing the quiet work of keeping a bad month from turning into a disaster.

From there the matrix feeds the rest of the toolkit. It points to which assets to pair when you size an allocation, the first decision in the asset allocation guide. It flags the sector funds that overlap your broad index, a duplication the sector ETFs guide covers. Read it as a snapshot of the recent past, check it again after any shock, keep it beside volatility, and never lean on it alone. Used that way, a single screen gives you about the clearest picture of portfolio risk you can get in one glance.

Frequently asked questions

What does a stock correlation matrix show?

It shows how closely each pair of stocks or funds in a list has moved together over some past window. The same tickers run down the side and across the top, and each cell holds one number between plus one and minus one. A high positive number means the two rose and fell together; a number near zero means their moves had little to do with each other.

What is a good correlation for a diversified portfolio?

Lower is better for diversification, so values near zero or below do the most work. Two holdings correlated at 0.9 behave almost as one position, while a pair near zero gives you two genuinely separate bets. There is no single target number, because what matters is the mix across every pair, not any one cell.

How do you calculate correlation between two stocks?

The common measure is the Pearson correlation of daily returns. You take each stock's percentage return each day, measure how far each day sits from that stock's own average, multiply the two stocks' deviations together day by day, and scale the total by each stock's variability. Most people let a spreadsheet function or a tool do it, because the arithmetic is fiddly and easy to get wrong by hand.

Does a negative correlation mean one stock hedges another?

Not reliably. A negative reading over the past year says the two tended to move in opposite directions during that window, and windows change. A real hedge holds its negative relationship in the exact weeks you need it, which is a stronger and rarer property than a negative average. Treat a negative cell as useful information with a short shelf life.

Why do correlations change over time?

Because the forces driving prices change. In calm markets, companies trade on their own news and correlations spread out. In a panic, almost everything falls at once and correlations jump toward one, which is when diversification helps least. The stock and bond correlation has even flipped sign across decades depending on whether inflation or growth was the bigger worry.