LearnFinance
← The Maths of Money Lesson 5 of 7 · 17 min · +50 XP
The Maths of Money · Lesson 05

Correlation: why diversification works

Mixing two risky things can give you a portfolio less risky than either one. The reason is one number, correlation. How to work it out step by step, the formula for a two-asset portfolio, why gold helps in a crash, how many shares are enough, and why owning 200 shares still can't save you from a market fall.

Facts reviewed Oct 2026

Picture two shops on the same Mumbai street. One sells umbrellas; the other sells ice cream. Each has a very unpredictable income. The umbrella shop does great in the monsoon and struggles in May. The ice-cream shop is the other way round. Lend money to either one and you’re taking a big risk.

Now own half of each. In a wet month, the umbrellas carry you; in a hot month, the ice cream does. Your total income barely moves, even though each shop on its own swings a lot. You’ve cut your risk without giving up any average income. That’s the closest thing finance has to a free lunch.

It works because of one number: correlation.

Correlation: a scale from −1 to +1

Correlation measures how two things move together. It runs from −1 to +1:

CorrelationWhat it meansExample
+1Always move the same way, in stepTwo Nifty 50 index funds
around +0.5Usually move together, but not alwaysTwo large private banks
0No steady linkTwo unrelated businesses
−1Always move in opposite directionsUmbrellas and ice cream (in an ideal world)

Working it out, step by step

Correlation is built from covariance: a measure of whether two things tend to be above or below their averages at the same time.

Worked example. Here’s how the two shops’ monthly profits changed over four months, in %:

MonthUmbrella shopIce-cream shop
1+10−2
2−5+8
3+15−6
40+4
  1. Find each average. Umbrellas: (10 − 5 + 15 + 0) ÷ 4 = 5. Ice cream: (−2 + 8 − 6 + 4) ÷ 4 = 1.
  2. Find how far each month is from its average. Umbrellas: +5, −10, +10, −5. Ice cream: −3, +7, −7, +3.
  3. Multiply the two distances for each month. (+5 × −3) = −15; (−10 × +7) = −70; (+10 × −7) = −70; (−5 × +3) = −15.
  4. Average those products. (−15 − 70 − 70 − 15) ÷ 4 = −42.5. This is the covariance. It’s negative, because when one shop is above its average, the other is usually below.
  5. Scale it by both volatilities. The umbrella shop’s volatility (standard deviation) is about 7.9; the ice-cream shop’s is about 5.4. So correlation = −42.5 ÷ (7.9 × 5.4) ≈ −1.0.

The two shops move almost perfectly in opposite directions, as you’d expect.

Correlation = Covariance(A, B) ÷ (Volatility of A × Volatility of B)

Dividing by the two volatilities is what squeezes the answer between −1 and +1, whatever the units.

The portfolio risk formula

For a portfolio with a share w in asset A and the rest, 1 − w, in asset B:

Portfolio variance = w²σA² + (1 − w)²σB² + 2w(1 − w) × ρ × σA × σB

Here σ (sigma) is each asset’s volatility and ρ (rho) is the correlation. Portfolio volatility is the square root of the variance.

The formula has three parts:

  • The first two are each asset’s own risk.
  • The third is how the two interact, and the correlation controls it.

When the correlation is +1, the portfolio’s volatility is just the weighted average of the two volatilities: no benefit from mixing. Anything below +1, and the portfolio is less risky than the weighted average. That gap is the benefit of diversification.

Worked example. 70% in shares (18% volatility) and 30% in gold (15% volatility), with a correlation of 0:

  1. Weighted average of the volatilities: 0.7 × 18% + 0.3 × 15% = 17.1%.
  2. Real portfolio volatility: √[(0.7 × 18)² + (0.3 × 15)² + 0] = √(158.8 + 20.3) ≈ 13.4%.
  3. Risk saved by mixing: 17.1% − 13.4% ≈ 3.7 percentage points.

The calculator below lets you try other mixes. The default numbers are rough long-term guesses, not forecasts.

Two-asset portfolio: shares + gold
Portfolio expected return
10.8%
Portfolio volatility
13.38%
Risk saved by diversifying
3.72%
Portfolio volatilityNo diversification (correlation +1)

Defaults: a 70/30 mix with zero correlation has about 13.4% volatility, against 17.1% if the two moved in step. Try a correlation of +1: the two lines join, and mixing does nothing. Try −1: at the right mix, volatility falls almost to zero.

Two things to notice as you play:

  • With low correlation, the curve dips below both assets. A mix of two risky assets can be calmer than either one alone.
  • The expected return is just a weighted average. Mixing lowers risk without averaging away return. That’s exactly why it’s called a free lunch.
Quick check

Two assets each have 20% volatility and zero correlation. What is the volatility of a 50/50 mix?

A real Indian example: gold in a crash

Over long periods, gold has had a low correlation with Indian shares, often close to zero. Better still, it has tended to do well just when shares do badly:

  • 2008: the Sensex fell by about half over the year. Gold in rupees rose sharply, helped both by a higher world gold price and a weaker rupee.
  • 2020: after the Covid crash in March, gold ended the year well up in rupee terms.

That’s why many Indian investment plans, and multi-asset mutual funds, hold some gold, even though its long-term return is usually lower than shares’. Gold’s job isn’t to be the best performer. It’s to go up, or at least hold steady, when shares go down.

How many shares are enough?

The same maths shows the limits of spreading money across more and more shares. Every share carries two kinds of risk:

  • Company risk: a fraud, a failed product, a bad boss. Owning many shares averages this away. If one company collapses, it’s a small part of your money.
  • Market risk: recessions, interest-rate rises, a pandemic. Every share is exposed to it, so owning more shares can’t remove it.

For N shares in equal amounts, each with volatility σ and an average correlation ρ with each other:

Portfolio volatility = σ × √(1/N + (1 − 1/N) × ρ)

As N grows, the 1/N part shrinks towards zero. What’s left is a floor, σ × √ρ, set by the correlation: that’s the market risk.

Spreading money across more shares
Portfolio volatility
17.36%
Floor with unlimited shares
16.43%
Portfolio volatilityMarket-risk floor

Defaults: 20 shares give about 17.4% volatility, against 30% for one share. The floor is about 16.4%, however many you add.

Most of the benefit comes from the first 15–25 shares. After that, the curve is almost flat. An index fund with 50 or 500 shares isn’t much “safer” in a market crash than a well-spread 25-share portfolio. What it gives you is almost no company risk, at low cost.

Going further: correlation isn’t a fixed number. Correlations change over time. Gold and Indian shares have sometimes moved together for a few years and apart for others. And a correlation measured over calm years can be badly wrong in a crisis. So treat correlations as rough guides, and don’t build a portfolio that only works if one exact number holds. Portfolio Management shows how professionals deal with this.

Common mistakes

  • Owning many similar things and calling it diversified. Ten bank shares or five large-company funds mostly move together.
  • Thinking diversification lowers returns. It lowers risk; the expected return is just the weighted average.
  • Expecting more shares to protect you in a crash. Market risk stays. Mix different kinds of assets instead.
  • Judging an asset only on its own return. Gold may earn less than shares, but it can make the whole portfolio steadier.
  • Trusting one correlation number forever. Correlations shift, and they jump in crises.
Practice 1: You hold 60% shares (20% volatility) and 40% high-quality bonds (6% volatility), with a correlation of 0.1. What's the portfolio's volatility? How much risk does mixing save?
  1. Shares part: (0.6 × 20)² = 144.
  2. Bonds part: (0.4 × 6)² = 5.76.
  3. Interaction: 2 × 0.6 × 0.4 × 0.1 × 20 × 6 = 5.76.
  4. Variance: 144 + 5.76 + 5.76 = 155.5, so volatility ≈ 12.5%.

The weighted average of the two volatilities is 0.6 × 20 + 0.4 × 6 = 14.4%. Mixing saves about 1.9 percentage points of risk.

Practice 2: Use the second calculator. With 30% volatility per share and a correlation of 0.3, how much volatility do 5 shares, 20 shares and 50 shares give? What does that tell you?
  • 5 shares: about 19.9%.
  • 20 shares: about 17.4%.
  • 50 shares: about 16.8%.

Going from 1 share (30%) to 5 shares removes most of the extra risk. Going from 20 to 50 shares removes very little. The floor of about 16.4% is market risk, which no number of shares can remove.

Key takeaways

  • Correlation runs from −1 to +1 and measures how two things move together. It’s covariance divided by both volatilities.
  • In the portfolio risk formula, correlation controls how the assets interact. Anything below +1 makes the portfolio less risky than the weighted average of its parts.
  • Diversification cuts risk without cutting the expected return, which is why it’s called a free lunch.
  • Owning more shares removes company risk but not market risk. Most of the benefit comes from the first 15–25 shares.
  • Correlations jump in crises, so real protection comes from mixing different kinds of assets, such as shares, bonds and gold.

Go deeper

Complete this lesson
Pass the quiz below (60% or more) to earn +50 XP and unlock the next lesson.
Quiz not passed yet
🧠

Quiz: Correlation and diversification

5 questions · pass 60% to complete