TradeLabs AILearn

Correlation and Beta Calculator

Free correlation and beta calculator. Paste two lists of returns to get correlation, beta, alpha per period and R squared for a stock, fund or strategy.

Beginner3 min readUpdated 3 Oct 2026
Markdown
Lesson 11 of 19

How closely does a stock follow the market? How much would a 1% market move change your portfolio? Would adding this asset diversify you or just add more of the same risk? Correlation and beta answer these questions. Correlation measures how consistently two series move together, from minus 1 to plus 1. Beta measures how much one moves for each 1% move in the other. Paste matching lists of returns for a benchmark and an asset, and this calculator gives correlation, beta, alpha and R squared.

Calculator#

Calculator
Turn on JavaScript to use it, or use the formula below

How it works#

Correlation = Covariance(asset, benchmark) / (SD(asset) × SD(benchmark))
Beta = Covariance(asset, benchmark) / Variance(benchmark)
Alpha per period = Mean asset return - Beta × Mean benchmark return
R squared = Correlation²

Alpha here is a simple regression intercept without subtracting a risk free rate, so treat it as a rough figure. If the lists differ in length, only the matching pairs from the start are used. See Covariance and Correlation and Alpha and Beta.

Reading correlation#

CorrelationMeaning
0.8 to 1.0Move together strongly; little diversification
0.3 to 0.8Moderate relationship
minus 0.3 to 0.3Weak or no linear relationship; good diversifier
Below minus 0.3Tend to move in opposite directions; natural hedge

Reading beta#

BetaMeaning
Above 1Amplifies the benchmark's moves
About 1Moves like the benchmark
0 to 1Dampened moves
About 0Little market sensitivity
NegativeTends to move opposite

Beta and correlation are related but different. A stock can have low correlation but high beta if it is very volatile, or high correlation but low beta if it is calm. See R-Squared.

Getting good results#

  1. Use returns, not prices; prices trend and produce misleading correlations. See Stationarity, Differencing and Unit Roots.
  2. Match the periods exactly: same dates, same order.
  3. Use enough data: at least 30 observations, ideally more, such as two to five years of weekly or monthly returns.
  4. Choose the right benchmark: a technology stock against a technology index, a small company against a small cap index.
  5. Check stability: correlations and betas change, and they often rise in crises. See Correlation Management.

Uses#

UseHow
DiversificationAdd assets with low correlation to your portfolio. See Diversification
HedgingUse beta to size an index hedge
Position sizingSize correlated positions smaller. See Correlation-Adjusted Sizing
Performance reviewCheck whether returns are just market exposure. See Information Ratio and Tracking Error

Where to find return data#

Download daily, weekly or monthly closing prices for both series from your charting platform or a data provider, then convert them to percentage changes over the same dates before pasting them in.

Frequently asked questions#

What is the difference between correlation and beta?#

Correlation measures how consistently two series move together; beta measures how large one series' moves are relative to the other's.

How many data points do I need for beta?#

At least about 30 is a reasonable minimum, and more gives more reliable estimates, though very old data may no longer be relevant.

Can correlation change over time?#

Yes. Correlations shift with market conditions and often rise sharply during crises.

Next, estimate potential losses with the Portfolio Volatility and VaR Calculator.

Check your understanding

3 quick questions on this lesson. Get them all right to finish it.

Turn on JavaScript to take the quiz.

Finished this lesson?Sign in to save your progress across devices.
Next lessonPortfolio Volatility and VaR CalculatorFree value at risk calculator. Enter portfolio value, daily volatility, confidence level and horizon to estimate VaR and expected shortfall in dollars.

Mentioned in