Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

Beta and Correlation explained: formula, worked example and common mistakes

Measure how far a holding swings against the market, and how closely two holdings move together — the two numbers that decide what diversification is really buying you.

Updated

What is beta and correlation?

Beta and correlation are two statistical measures of how investments move in relation to each other. They are related, they are often confused, and they answer different questions.

Beta measures how much a holding moves relative to the market as a whole. At a beta of 1.0 it moves with the market: the market rises 10%, it tends to rise about 10%. At 1.5 it tends to move half as much again in both directions — up 15% on the market’s 10%, and down 15% on the market’s fall. At 0.5 it tends to move half as far. A negative beta, which is rare, means it tends to move the other way entirely.

Beta is the foundation of the capital asset pricing model, which holds that expected return is proportional to beta: more market risk, more expected compensation for taking it. In practice the relationship has proved a great deal looser than the model implies, but beta remains the standard measure of the market risk a holding carries.

For building a portfolio, beta tells you how much each holding contributes to the swings of the whole. A portfolio of high-beta holdings swings harder than the market in both directions. A portfolio of low-beta holdings swings less. Mixing the two gives something in between — but only to the extent the holdings are not moving in lockstep with each other, which is the second number.

Correlation measures how two investments move relative to each other, setting aside how large their moves are. It runs from −1 to +1. At +1 they move together exactly. At 0 they move independently. At −1 they move in opposite directions.

Correlation matters because it decides how much diversification two holdings actually give each other. Two holdings correlated at +1 give none: they rise and fall together, so holding both is holding more of the same thing. Two holdings correlated at 0 give a great deal, because one being down says nothing about the other. At −1 the two offset each other almost exactly.

True negative correlation between shares is rare. Most shares are positively correlated with each other, commonly somewhere between 0.3 and 0.8, because they are all exposed to the same economy and the same market mood. Bonds have sometimes shown low or negative correlation with shares, which is the mechanism behind the traditional mixed portfolio. Property, commodities and cash each behave differently again.

The aim when building a portfolio is a set of holdings with low correlations to each other. The lower the average correlation, the less the whole swings for the same expected return.

The beta and correlation formulas

Beta.

beta = covariance(holding, market) ÷ variance(market)

Where covariance is the average of (holding return − its mean) × (market return − its mean), and variance is the average of (market return − its mean)². Both use the sample form, dividing by one less than the number of periods — which cancels out of the ratio anyway.

Worked example. Ten periods. The holding returns 2, 1, −3, 4, 2, −1, 3, 2, −2, 1. The market over the same periods returns 1, 2, −2, 3, 1, −1, 2, 1, −1, 2.

mean of the holding      =  0.90
mean of the market       =  0.80
covariance               =  3.3111
standard deviation (hold)=  2.2336
standard deviation (mkt) =  1.6193
variance of the market   =  2.6222

beta = 3.3111 ÷ 2.6222 = 1.263

A beta of 1.263: this holding has moved about a quarter again as far as the market, in both directions.

Correlation.

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

On the same two series:

correlation = 3.3111 ÷ (2.2336 × 1.6193) = 0.915

At 0.915 these two are moving almost in step. The beta says the holding moves further than the market; the correlation says it moves at nearly the same times. Those are genuinely different statements, and a pair can score high on one and low on the other.

Beta, read as a band:

Beta What it describes
2.0 and above Moves about twice as far as the market
1.5 Half as much again as the market
1.0 In line with the market
0.7 Noticeably steadier than the market
0.5 About half the market’s swing
0 Unrelated to the market
Below 0 Tends to move the opposite way — rare

Correlation, read as a band:

Correlation What it describes
+1.0 Move together exactly
+0.7 to +0.9 Move together most of the time
+0.3 to +0.7 Move together some of the time
0 to +0.3 Weakly related
0 Independent
−0.3 to 0 Weakly opposed
−0.7 to −0.3 Move apart some of the time
−1.0 Move apart exactly

Portfolio beta is the weighted average of the holdings’ betas:

portfolio beta = Σ (weight of holding × beta of holding)

For three holdings at 40%, 35% and 25% with betas of 1.2, 0.9 and 1.5:

(0.40 × 1.2) + (0.35 × 0.9) + (0.25 × 1.5) = 0.48 + 0.315 + 0.375 = 1.17

A portfolio beta of 1.17: about 17% more movement than the market, in both directions.

How to use this calculator

  1. Collect the holding’s returns — at least three years of monthly figures if you want the answer to be stable. Percentage returns, one per period.
  2. Collect the market’s returns for exactly the same periods. A gap in one series and not the other will quietly shift the answer; rows missing a value are dropped and counted, so you can see how many were lost.
  3. Paste the pairs in, one per row, as the holding’s return then the market’s return. The order matters: beta divides by the variance of the second column.
  4. Read the beta and the correlation. Both come out of the same covariance, so the calculator shows that working too.
  5. For two holdings instead of a holding and the market, switch the first box. The arithmetic is identical; only the reading changes — between two holdings the correlation is the number that matters and the beta is a secondary curiosity.

When to use a beta and correlation calculator (and when not to)

Use this calculator when:

  • You want to know how far a holding tends to swing against the market before you size it.
  • You are aiming the whole portfolio at a particular level of movement and need each holding’s contribution.
  • You want to see how much diversification you are actually getting from holdings you already own.
  • You are weighing up something new and want to know whether it moves differently from what you have.
  • You need beta figures as inputs to a stress test.

When another calculator fits better:

Common mistakes people make

1. Running too short a series. Twelve monthly returns produce a beta that bounces around from one year to the next and a correlation that can be nearly anything. Three to five years of monthly data is the usual minimum before the figure means much.

2. Treating beta as a fixed property. A company’s beta moves as its business mix, its debt and its competitive position change. A figure worked out five years ago describes a company that may no longer exist in the same form.

3. Assuming the past figure predicts the next one. Both measures describe what happened. In a crisis, correlations converge towards 1 and betas rise, which is precisely when the historical numbers are most misleading.

4. Reading correlation as cause. Two holdings often move together because both are driven by something else entirely — rates, energy prices, a single customer industry. Knowing what the common driver is tells you more than the coefficient does.

5. Ignoring the downside separately. Ordinary correlation treats a shared rise and a shared fall as the same evidence. A pair can look uncorrelated overall and still fall together every time the market drops, which removes the protection exactly when it was supposed to work.

6. Trusting a calm-market figure for a crisis. Correlations measured over a quiet stretch overstate how much a mix will protect you in a violent one. If the mix matters, test it against a crash rather than against an average.

Frequently asked questions

What is beta?

Beta measures how far a holding moves relative to the market. A beta of 1.0 moves with the market. A beta of 1.5 tends to move half as much again in both directions. A beta of 0.5 tends to move half as much.

What is correlation?

Correlation measures how two investments move relative to each other, on a scale from −1 to +1. At +1 they move together exactly, at 0 they move independently, at −1 they move in opposite directions. The lower the correlation between two holdings, the more diversification they give each other.

What is the difference between beta and correlation?

Beta is one number per holding, measured against the market, and it carries the size of the moves. Correlation is one number per pair, it ignores size, and it only describes how closely the two move in step. Beta is about market risk; correlation is about diversification.

How do you work out portfolio beta?

Multiply each holding's beta by its share of the portfolio and add the results. A portfolio half in a 1.2-beta holding and half in a 0.8-beta holding has a beta of 1.0.

How much data do I need?

More than most people use. Twelve months of monthly returns produces a figure that moves a great deal from one year to the next. Three to five years of monthly returns is the usual minimum for anything you intend to rely on.

Why do correlations rise in a crisis?

Because in a panic people sell whatever can be sold to raise cash, regardless of what it is. Holdings that looked unrelated in calm markets fall together, which means measured correlations overstate how much protection the mix will give when it is needed.

Does a high beta mean higher returns?

In theory, a higher beta carries more market risk and is therefore expected to carry a higher return. The historical record is a good deal messier than the theory, and the relationship has often been weaker than the model predicts.

Can correlation be negative between two shares?

Rarely, and rarely for long. Most shares are exposed to the same economy and the same market, so pairs usually sit somewhere between 0.3 and 0.8. Genuinely negative correlation is more often found between different kinds of asset than between two shares.

This tool shows math, not advice.

Cite this page

Copy this line into a reference list, a report or a spreadsheet note.

Investment Math Calculator. “Beta and Correlation Calculator”. Updated 2026-10-27. https://investmentmathcalculator.com/guides/beta-correlation-calculator/

Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.