Browse Valuation and Analysis

Covariance: The Raw Measure of How Two Assets Move Together

Learn covariance in finance, how it differs from correlation, and why it matters in portfolio variance and diversification analysis.

Covariance measures how two variables move together. In finance, it usually refers to how the returns of two assets vary relative to one another.

  • positive covariance means returns tend to move in the same direction
  • negative covariance means they tend to move in opposite directions
  • covariance near zero means there is little consistent linear co-movement

Covariance is an essential building block in portfolio theory because portfolio risk depends not only on each asset’s own volatility, but also on how assets interact.

Covariance Formula

For a sample of returns:

$$ \operatorname{Cov}(X,Y)=\frac{\sum_{i=1}^{n}(X_i-\bar{X})(Y_i-\bar{Y})}{n-1} $$

Where:

  • \(X_i\), \(Y_i\) are the observations
  • \(\bar{X}\), \(\bar{Y}\) are the sample means
  • \(n\) is the number of observations

The sign tells you the direction of co-movement. The magnitude is harder to interpret directly because covariance depends on the scale of the variables.

Why Covariance Matters in Finance

Covariance sits underneath:

Without covariance, you cannot properly estimate how a group of assets behaves as a portfolio.

Worked Example

Suppose two assets tend to rise and fall together during the same periods. Their covariance will usually be positive.

If one asset often rises when the other falls, covariance tends to be negative.

That does not automatically tell you how strong the relationship is, but it does tell you the direction and whether the pair is likely to amplify or offset one another inside a portfolio.

Covariance vs. Correlation

This distinction is critical:

  • covariance is the raw co-movement measure
  • correlation is the standardized version

Correlation divides covariance by the product of the assets’ standard deviations:

$$ \rho_{XY}=\frac{\operatorname{Cov}(X,Y)}{\sigma_X \sigma_Y} $$

That is why correlation is easier to compare across assets, while covariance is more directly embedded in portfolio math.

Covariance in Portfolio Construction

For a two-asset portfolio, risk depends partly on the covariance term:

$$ \sigma_p^2=w_1^2\sigma_1^2 + w_2^2\sigma_2^2 + 2w_1w_2\operatorname{Cov}(R_1,R_2) $$

If covariance is low or negative, portfolio risk can be reduced relative to a concentrated portfolio. That is one of the reasons diversification works.

Treating covariance like a clean standalone score

Its raw value is hard to interpret across different scales, which is why correlation is often better for communication.

Ignoring direction

The sign matters. Positive and negative covariance have very different diversification implications.

Focusing only on individual asset risk

Portfolio construction requires looking at how assets move together, not just how volatile each one is alone.

FAQs

Can covariance be negative?

Yes. Negative covariance means the two return series tend to move in opposite directions, which can be valuable for diversification.

Why do analysts talk about correlation more than covariance?

Because correlation is easier to interpret and compare. Covariance is still essential, but its raw scale is less intuitive.

Is zero covariance the same as independence?

No. Zero covariance means no linear co-movement, but the variables can still have a different kind of relationship.
Revised on Monday, May 18, 2026