Skip to content
Finance Lessons

Portfolio Theory

Correlation & Covariance: The Math of Moving Together

How covariance and correlation measure whether two assets move together — and the two-asset variance formula that turns low correlation into real portfolio risk reduction.

9 min Updated Jun 4, 2026

You already know how to measure a single asset’s risk: take the standard deviation of its returns and call it volatility. One number, one asset, done. But a portfolio isn’t one asset — it’s several, jostling against each other, and the surprise of Modern Portfolio Theory is that how they move together matters more than how wild any one of them is on its own.

Two assets can each be terrifyingly volatile and yet, glued into a portfolio, partly cancel each other out — like two people on a seesaw who, by leaning opposite ways, keep the plank steadier than either could alone. The tool that measures this “moving together” is covariance, and its tidy, unitless cousin is correlation. This lesson defines both from scratch, then shows the exact formula where low correlation pays off as lower risk.

Before you read — take a guess

Two stocks each have 20% annual volatility, and their returns are completely unrelated (correlation 0). You put half your money in each. What is the volatility of the 50/50 portfolio?

Covariance — how two assets move together

Volatility tells you how far an asset’s returns swing around their own average. Covariance asks a different question about two assets at once: when asset A is above its average, is asset B usually above its average too — or below it?

Think of two dancers. If they’re in sync — both stepping forward together, both back together — they have positive covariance. If they mirror each other — one forward exactly when the other steps back — that’s negative covariance. If they’re oblivious to each other, wandering the floor independently, their covariance is roughly zero.

The precise definition is the average product of each asset’s deviation from its own mean:

Cov(RA,RB)=E[(RAμA)(RBμB)]\mathrm{Cov}(R_A, R_B) = \mathbb{E}\big[(R_A - \mu_A)(R_B - \mu_B)\big]

Read the sign off the product inside. When both assets are above their means in the same period, both deviations are positive, so the product is positive. When both are below, both deviations are negative — and a negative times a negative is still positive. So moving the same direction (up together or down together) pushes covariance positive. Moving opposite directions makes one deviation positive and the other negative, so the product is negative.

  • Positive covariance → the assets tend to move the same direction.
  • Negative covariance → they tend to move opposite directions.
  • Near-zero covariance → no reliable relationship.

A worked example

Here are three years of returns for two assets, A and B:

YearRAR_ARBR_B
1+10%+4%
2−2%0%
3+4%+2%

First the means: μA=(102+4)/3=4%\mu_A = (10 - 2 + 4)/3 = 4\% and μB=(4+0+2)/3=2%\mu_B = (4 + 0 + 2)/3 = 2\%.

Now the deviations and their products:

YearRAμAR_A - \mu_ARBμBR_B - \mu_Bproduct
1+6+2+12
2−6−2+12
3000

Average the products: Cov(RA,RB)=(12+12+0)/3=8\mathrm{Cov}(R_A, R_B) = (12 + 12 + 0)/3 = 8. The covariance is +8 (percent-squared) — positive, so A and B tend to move together, which matches the table: when A jumped, so did B; when A fell, B fell too.

Warning:

The units problem

What are the units of that 8? Percent times percent — percent-squared. That’s meaningless to a human: nobody intuits “8 squared-percent of co-movement.” Worse, covariance scales with the assets’ volatilities, so a big number might just mean both assets are wild, not that they’re tightly linked. You can’t compare covariances across pairs. That’s exactly why we normalize it into correlation next.

When it matters

Covariance is the raw ingredient — it’s what actually appears inside the portfolio-variance formula later. But on its own it’s a poor summary, because its size is contaminated by the assets’ volatilities. Use covariance when you’re plugging into a formula; reach for correlation when you want to judge how related two things are.

Correlation — the normalized, unitless version

To fix covariance’s units problem, divide it by the product of the two volatilities. That strips out the scale and leaves a pure, dimensionless number called the correlation coefficient, written ρ\rho (Greek “rho”):

ρAB=Cov(RA,RB)σAσB\rho_{AB} = \frac{\mathrm{Cov}(R_A, R_B)}{\sigma_A\,\sigma_B}

The magic of that division is that ρ\rho is always trapped in a fixed range: 1ρ+1-1 \le \rho \le +1. Now the number means the same thing for any pair of assets, so you can finally compare. Read it like this:

  • ρ=+1\rho = +1perfect lockstep. The two move in exact proportion, every time. No diversification possible.
  • ρ=0\rho = 0unrelated. Knowing one tells you nothing about the other.
  • ρ=1\rho = -1perfect mirror. When one zigs, the other zags in exact proportion — the ideal hedge.
  • Anything in between is a partial relationship, e.g. ρ=0.6\rho = 0.6 is “fairly correlated but not glued.”

Turning the covariance into a correlation

Take the example above. We found Cov=8\mathrm{Cov} = 8. Suppose the volatilities are σA=6%\sigma_A = 6\% and σB=2%\sigma_B = 2\% (computed from the same deviations). Then:

ρAB=86×2=8120.67\rho_{AB} = \frac{8}{6 \times 2} = \frac{8}{12} \approx 0.67

A correlation of about +0.67 — strongly positive, but not perfect. Notice how much friendlier 0.67 is than “8 percent-squared”: it instantly says “these two move together most of the time, but not in perfect lockstep,” with no units to wrestle and nothing to compare against.

Fill in the relationship between covariance and correlation.

Pick the right option for each blank, then check.

Covariance measures whether two assets move together, but its units are , which makes it . Dividing covariance by the gives the correlation ρ, which is always between . A ρ of means perfect lockstep, while a ρ of means a perfect mirror.

Why it matters for a portfolio

Here’s where it all pays off. Mix weight wAw_A of asset A and weight wB=1wAw_B = 1 - w_A of asset B. The portfolio’s variance is not the average of the two variances. It’s:

σp2=wA2σA2+wB2σB2+2wAwBρσAσB\sigma_p^2 = w_A^2\sigma_A^2 + w_B^2\sigma_B^2 + 2\,w_A w_B\,\rho\,\sigma_A\sigma_B

Three terms, and each earns its place:

  • wA2σA2w_A^2\sigma_A^2 — asset A’s own risk contribution, scaled by how much of it you hold (squared).
  • wB2σB2w_B^2\sigma_B^2 — the same for asset B.
  • 2wAwBρσAσB2\,w_A w_B\,\rho\,\sigma_A\sigma_B — the cross term, and the star of the show. It’s the only place ρ\rho appears. When ρ\rho is high, this term is big and positive, inflating portfolio variance. As ρ\rho falls, the cross term shrinks; at ρ=0\rho = 0 it disappears entirely; and when ρ\rho is negative it goes negative and subtracts from total variance.

That cross term is where diversification lives. The lower the correlation, the smaller (or more negative) it is, and the more your portfolio’s risk drops below the naive weighted average of the two volatilities. Drag the sliders below and watch the gap open up.

How correlation blends two assets' risk19.6%
Naive weighted averagePortfolio volatilityDiversification benefit: 5.4%0%9%18%26%35%−1Correlation (ρ)+1Portfolio volatility
Portfolio volatility
19.6%
Naive weighted average (no diversification)
25.0%
Diversification benefit
5.4%

Drag ρ from +1 down toward −1: the solid bar (true portfolio volatility) falls away from the faint tick (the naive weighted average you'd get at ρ=+1). The green gap is the diversification benefit — pure risk reduction, no return given up.

The three cases

To make the cross term concrete, hold a 50/50 mix of asset A (σA=30%\sigma_A = 30\%) and asset B (σB=20%\sigma_B = 20\%), and walk ρ\rho through its three signature values. With wA=wB=0.5w_A = w_B = 0.5, the formula becomes σp2=0.25(900)+0.25(400)+2(0.5)(0.5)ρ(30)(20)=225+100+300ρ=325+300ρ\sigma_p^2 = 0.25(900) + 0.25(400) + 2(0.5)(0.5)\,\rho\,(30)(20) = 225 + 100 + 300\rho = 325 + 300\rho.

ρσ_p² = 325 + 300ρσ_p = √(σ_p²)vs. weighted avg (25%)
+1325 + 300 = 625625=25%\sqrt{625} = 25\%no benefit
0325 + 0 = 32532518.0%\sqrt{325} \approx 18.0\%7.0% cut
−1325 − 300 = 2525=5%\sqrt{25} = 5\%20.0% cut

The arithmetic tells the whole story:

  • At ρ=+1\rho = +1, σp\sigma_p equals the weighted average, 0.5(30)+0.5(20)=25%0.5(30) + 0.5(20) = 25\%. The assets move in perfect lockstep, so blending them buys you nothing — you just average the risk.
  • At ρ=0\rho = 0, the cross term vanishes and risk drops to ≈18.0%, well below the 25% average. Two unrelated assets partly cancel.
  • At ρ=1\rho = -1, the cross term goes fully negative and risk collapses to 5% — far below either asset’s own volatility. A perfect mirror lets the swings hedge each other out. (With the right weights you could even drive it to zero.)
Info:

The punchline of all of portfolio theory

ρ=+1\rho = +1 gives zero diversification benefit. Every value below it cuts your risk, and the lower ρ\rho goes, the bigger the cut — all the way to a near-perfect hedge at ρ=1\rho = -1. You reduce risk without reducing expected return. That free lunch is diversification, and it’s entirely powered by the cross term in the variance formula.

Pitfalls

Correlation is powerful and routinely abused. Four traps to keep in mind:

  • Correlation is not causation. Two assets can move together because of a shared driver (interest rates, oil prices) or pure coincidence. A high ρ\rho tells you they did move together; it never tells you why, and certainly not that one causes the other.
  • ρ is unstable over time — and spikes in crises. A pair that looked uncorrelated for years can snap toward ρ=+1\rho = +1 in a crash, when everyone sells everything at once. This is tail dependence: correlations rise exactly when you were counting on them to be low, so diversification evaporates at the worst moment.
  • ρ only captures linear co-movement. Correlation measures straight-line relationships. Two assets can be tightly linked in a curved or threshold way and still show ρ0\rho \approx 0. A low correlation does not prove independence.
  • A single ρ hides regime changes. One number averaged over a long window can mask the fact that the relationship was strongly positive in calm markets and strongly negative in stressed ones. The average flatters; the regimes bite.

No — but it’s weaker than the long-run number suggests, and it fails right when you most want it. The fix isn’t to abandon diversification; it’s to (1) stress-test portfolios using crisis-period correlations rather than calm averages, (2) hold genuinely different risk drivers (e.g. assets whose value rises in a panic, like certain government bonds), and (3) treat any historical ρ\rho as an estimate with a wide error bar, not a constant of nature. Diversification still works; just don’t assume a backtested ρ\rho of 0.1 will hold when the market is on fire.

A new asset is added to a portfolio. Based on its correlation with the existing holdings, sort each ρ into how much diversification benefit it brings.

Place each item in the right group.

  • ρ = +0.6
  • ρ = −0.4
  • ρ = +1.0
  • ρ = −0.9
  • ρ = +0.2

Match each term to its precise meaning.

Pick a term, then click its definition.

Key Takeaways

Success:

What to remember

  • Covariance measures whether two assets move together: positive = same direction, negative = opposite, zero = unrelated. Its units (percent-squared) make it impossible to interpret or compare directly.
  • Correlation ρ=Cov/(σAσB)\rho = \mathrm{Cov}/(\sigma_A\sigma_B) fixes that — a unitless number always between −1 and +1. +1+1 is perfect lockstep, 00 unrelated, 1-1 a perfect mirror.
  • Portfolio variance is σp2=wA2σA2+wB2σB2+2wAwBρσAσB\sigma_p^2 = w_A^2\sigma_A^2 + w_B^2\sigma_B^2 + 2w_Aw_B\,\rho\,\sigma_A\sigma_B. The cross term is the only place ρ\rho lives, and it’s where diversification happens.
  • The lower the correlation, the bigger the risk cut. A 50/50 mix of 30% and 20% assets gives 25% at ρ=+1\rho=+1, ≈18% at ρ=0\rho=0, and just 5% at ρ=1\rho=-1.
  • Watch the traps: correlation ≠ causation, ρ\rho is unstable and rises toward 1 in crises, it only captures linear co-movement, and a single number hides regime changes.

Big picture

Correlation & covariance at a glance

  • Moving together
    • Covariance
      • Avg product of deviations
      • Sign = direction
      • Units: percent-squared (messy)
    • Correlation ρ
      • Cov ÷ (σ_A·σ_B)
      • Always −1 to +1
      • +1 lockstep, 0 unrelated, −1 mirror
    • Portfolio variance
      • Own risks: w²σ² each
      • Cross term: 2·w_A·w_B·ρ·σ_A·σ_B
      • Lower ρ → lower σ_p
    • Pitfalls
      • ρ ≠ causation
      • ρ spikes in crises
      • Only linear; hides regimes
The one-screen map of this lesson — the cross term is the bridge to everything that follows.

Lesson 2 check

Question 1 of 50 correct

Two assets each have 10% volatility and a correlation of 0. For a 50/50 portfolio, what is σ_p?

Check your answer to continue.

Next up: combining assets into a portfolio and watching the risk–return curve bend — how mixing two assets traces a curve in risk–return space that bows inward exactly because of the correlation math you just learned.

Mark lesson as complete