Covariance and Correlation: Formulas, Calculation, Indian Examples

When the Nifty 50 fell sharply during the COVID-19 crash of March 2020, gold did not follow it down. Gold moved in the opposite direction, rising as equity markets bled. An investor holding only equity lost significantly. An investor holding a mix of equity and gold experienced a much smaller drawdown. The reason this combination worked is rooted in one concept: negative correlation.

Covariance and correlation are the mathematical tools that measure how two investments move in relation to each other. They determine how much benefit diversification actually provides. A portfolio of 30 stocks in the same sector may offer little risk reduction. A portfolio of equity plus gold plus debt may offer substantial protection. The difference lies entirely in the correlation between the assets.

For CFP exam candidates in India, covariance and correlation are foundational concepts under Investment Planning (Module 4). They appear in portfolio standard deviation calculations, diversification theory, Modern Portfolio Theory, and asset allocation. This guide covers both concepts fully: definitions, formulas, step-by-step calculations, current Indian market data, and every exam point you need.

1. What Is Covariance?

Covariance is a statistical measure that quantifies the degree to which two variables move together over time. In finance, it measures how the returns of two investments move in relation to each other across multiple periods.

A positive covariance means the two assets tend to move in the same direction: when one rises, the other tends to rise as well. A negative covariance means they tend to move in opposite directions: when one rises, the other tends to fall. A covariance of zero means the two assets’ returns have no consistent directional relationship.

Covariance measures how two variables move together relative to their means over time. It is used in portfolio theory to determine which assets to include to reduce overall risk through diversification. Most assets of the same type have positive covariance as they are affected by common factors, while different asset types like stocks, bonds, and real estate may have lower or negative covariance.

Covariance is the foundation of portfolio risk mathematics. It is the key input that determines how much risk reduction is achieved when two assets are combined. However, covariance alone is difficult to interpret directly because it is expressed in squared units (percentage squared), which have no intuitive meaning. This limitation is addressed by converting covariance into correlation.

2. What Is Correlation?

Correlation is a standardised version of covariance. It expresses the strength and direction of the relationship between two assets’ returns on a scale from minus 1 to plus 1. This standardisation makes correlation directly interpretable and comparable across different pairs of assets.

Correlation is expressed as a number between negative 1 and positive 1. A coefficient of 0 indicates that there is no correlation between the two assets. A coefficient of 1 indicates perfect positive correlation, which means that the two instruments move together: if one rises by 10%, the other does too, and vice versa. In the case of perfect negative correlation, or negative 1, the ratio is inverse: if the first rises by 10%, the second loses 10%.

Correlation is also called the Pearson correlation coefficient or simply the correlation coefficient. In portfolio analysis, it is represented by the Greek letter rho (ρ) or the letter r.

The practical value of correlation is that it immediately communicates whether adding an asset to a portfolio will reduce risk, increase risk, or have no effect, depending on its correlation with the existing holdings.

3. The Relationship Between Covariance and Correlation

Covariance and correlation are mathematically linked through the standard deviations of the two assets:

Correlation (A, B) = Covariance (A, B) / [Standard Deviation (A) x Standard Deviation (B)]

Rearranging to get covariance from correlation:

Covariance (A, B) = Correlation (A, B) x Standard Deviation (A) x Standard Deviation (B)

This relationship means that covariance and correlation always carry the same sign: both are positive if the assets move together, both are negative if they move in opposite directions. The difference is that correlation is bounded between minus 1 and plus 1, while covariance can take any value depending on the scale of returns.

In portfolio calculations, you may be given either covariance directly or correlation plus individual standard deviations. The two formulas above allow you to convert between them as needed.

4. The Covariance Formula

Sample Covariance Formula:

Cov (A, B) = Σ [(Rₐᵢ - R̄ₐ) x (Rbᵢ - R̄b)] / (n - 1)

Where:

  • Rₐᵢ = Return of Asset A in period i
  • R̄ₐ = Mean return of Asset A
  • Rbᵢ = Return of Asset B in period i
  • R̄b = Mean return of Asset B
  • n = Number of periods
  • Σ = Sum across all periods

Use (n minus 1) in the denominator for sample covariance, which is the standard in investment analysis. This is called the Bessel correction and ensures an unbiased estimate.

5. The Correlation Formula

ρ (A, B) = Cov (A, B) / [σ(A) x σ(B)]

Where:

  • ρ (A, B) = Correlation coefficient between Asset A and Asset B
  • Cov (A, B) = Covariance between the two assets
  • σ(A) = Standard deviation of Asset A’s returns
  • σ(B) = Standard deviation of Asset B’s returns

The result is always between minus 1 and plus 1, regardless of the scale or magnitude of the original returns.

6. Step-by-Step Calculation: Covariance

  1. Collect periodic returns (monthly or annual) for both assets over the same time period.
  2. Calculate the mean return for each asset separately.
  3. For each period, subtract the mean from each asset’s actual return to get the deviation.
  4. Multiply the two deviations together for each period.
  5. Sum all the multiplied deviations across all periods.
  6. Divide the sum by (n minus 1) to get the sample covariance.

7. Step-by-Step Calculation: Correlation

  1. Complete the covariance calculation (Steps 1 to 6 above).
  2. Calculate the standard deviation of each asset separately using the sample formula.
  3. Multiply the two standard deviations together.
  4. Divide the covariance by this product.
  5. The result is the correlation coefficient, always between minus 1 and plus 1.

8. Worked Example 1: Two Equity Mutual Funds

Two equity mutual funds have the following annual returns over five years:

YearFund A ReturnFund B Return
202122%25%
2022minus 5%minus 8%
202318%20%
202412%10%
20258%13%

Step 1: Mean Returns

Fund A Mean: (22 minus 5 plus 18 plus 12 plus 8) / 5 = 55 / 5 = 11% Fund B Mean: (25 minus 8 plus 20 plus 10 plus 13) / 5 = 60 / 5 = 12%

Step 2: Deviations and Products

YearA DeviationB DeviationProduct
20211113143
2022minus 16minus 20320
20237856
20241minus 2minus 2
2025minus 31minus 3

Step 3: Covariance

Sum of products = 143 + 320 + 56 + (minus 2) + (minus 3) = 514
Covariance = 514 / (5 minus 1) = 514 / 4 = 128.5

Step 4: Standard Deviations

Fund A SD = 10.58% (calculated from squared deviations) Fund B SD = 13.34% (calculated from squared deviations)

Step 5: Correlation

Correlation = 128.5 / (10.58 x 13.34)
            = 128.5 / 141.13
            = 0.91

Interpretation: The two funds have a correlation of 0.91, which is very high positive correlation. Holding both in a portfolio offers minimal diversification benefit because they move almost identically. A financial planner would recognise this as concentration risk disguised as diversification.

9. Worked Example 2: Equity and Gold (Indian Market Context)

A simplified illustration of the relationship between the Nifty 50 and gold returns during two contrasting market periods:

Period 1 (Bull Market, 2021): Nifty 50: plus 24% | Gold (INR): minus 4%

Period 2 (Bear Market, 2020 COVID crash): Nifty 50: minus 23% | Gold (INR): plus 28%

Period 3 (Recovery, 2023): Nifty 50: plus 20% | Gold (INR): plus 15%

Period 4 (Moderate, 2024): Nifty 50: plus 9% | Gold (INR): plus 22%

Period 5 (Volatile, 2025): Nifty 50: plus 10% | Gold (INR): plus 20%

Mean Nifty: (24 minus 23 plus 20 plus 9 plus 10) / 5 = 8% Mean Gold: (minus 4 plus 28 plus 15 plus 22 plus 20) / 5 = 16.2%

When you work through the covariance calculation, the products of deviations are mixed in sign: the 2020 period contributes a large negative product (equity down, gold up), while the 2023 to 2025 period contributes positive products (both rising together). The resulting correlation is low to moderately negative, confirming that gold and equity are effective diversifiers when combined in a portfolio.

During the COVID-19 market crash of 2020, the correlation between gold and the Nifty 50 did not just drop but plunged to minus 59.31%, confirming gold’s role as a genuine portfolio airbag during crisis periods.

10. Interpreting Correlation: What Each Value Means

Correlation ValueInterpretationDiversification BenefitExample in India
Plus 1.0Perfect positive correlationNoneTwo identical index funds
Plus 0.7 to plus 1.0Strong positiveMinimalTwo large-cap equity funds in same style
Plus 0.3 to plus 0.7Moderate positivePartialEquity and corporate bonds
0No correlationSignificantSome market-neutral strategies
Minus 0.3 to 0Weak negativeGoodEquity and gold in normal markets
Minus 0.7 to minus 0.3Moderate negativeStrongEquity and government bonds (historically)
Minus 1.0Perfect negativeMaximum (theoretical)Not found in real markets

In practice, perfect negative correlation does not exist in real markets. Most effective diversification comes from pairs with correlation between minus 0.3 and plus 0.5. This is the realistic range where meaningful risk reduction is achieved without completely sacrificing return potential.

11. How Correlation Affects Portfolio Risk

The portfolio standard deviation formula for two assets demonstrates exactly how correlation drives risk reduction:

Portfolio SD = √[(w₁²)(σ₁²) + (w₂²)(σ₂²) + 2(w₁)(w₂)(σ₁)(σ₂)(ρ₁₂)]

The last term, which includes the correlation coefficient (ρ), is the key. When correlation is plus 1, the last term is at its maximum, and the portfolio standard deviation equals the weighted average of the two individual standard deviations. There is no risk reduction.

When correlation is less than plus 1, the last term decreases, and the portfolio standard deviation falls below the weighted average. The lower the correlation, the greater the risk reduction.

When correlation is minus 1 (theoretical), the portfolio standard deviation can be driven to zero with the right portfolio weights.

Numerical illustration:

Two assets, each with 15% standard deviation, combined 50-50:

Correlation of plus 1.0:

Portfolio SD = √[(0.25)(0.0225) + (0.25)(0.0225) + 2(0.5)(0.5)(0.15)(0.15)(1.0)]
             = √[0.005625 + 0.005625 + 0.01125]
             = √0.0225 = 15%

No reduction.

Correlation of 0.5:

Portfolio SD = √[0.005625 + 0.005625 + 2(0.5)(0.5)(0.15)(0.15)(0.5)]
             = √[0.005625 + 0.005625 + 0.005625]
             = √0.016875 = 12.99%

Risk reduced from 15% to 12.99%.

Correlation of minus 0.5:

Portfolio SD = √[0.005625 + 0.005625 + 2(0.5)(0.5)(0.15)(0.15)(minus 0.5)]
             = √[0.005625 + 0.005625 minus 0.005625]
             = √0.005625 = 7.5%

Risk reduced from 15% to 7.5%, a 50% reduction.

This is the mathematical proof of diversification. Risk reduction is largest when correlation is lowest.

12. The Portfolio Variance Formula: Covariance in Action

When using covariance directly instead of correlation and standard deviations, the two-asset portfolio variance formula is:

Portfolio Variance = w₁²σ₁² + w₂²σ₂² + 2(w₁)(w₂)(Cov₁₂)

This is functionally identical to the correlation-based formula because Cov₁₂ equals ρ₁₂ multiplied by σ₁ multiplied by σ₂. The CFP exam may present either version. Know both and recognise that they produce identical results.

For a three-asset portfolio, the variance formula expands to include three covariance terms: one for each pair of assets (A-B, A-C, B-C). For an n-asset portfolio, the number of unique covariance terms is n(n minus 1)/2. This is why covariance matrix calculations in large portfolios require computational tools.

13. Correlation Between Indian Asset Classes

The World Gold Council’s analysis provides data-backed correlation figures for Indian asset classes that are directly relevant to portfolio construction in India.

Historically, Indian government bonds tended to exhibit a negative correlation with equities, helping balance portfolio risks. However, over the past few years, the equity-bond relationship has turned increasingly positive, with the two asset classes moving more in tandem.

This shift is significant. The traditional 60-40 equity-bond portfolio relied on the negative correlation between the two to provide stability during equity sell-offs. As that correlation has turned positive in recent years, the traditional model provides less protection than it historically did.

The approximate correlation ranges between major Indian asset classes based on recent data:

Asset PairApproximate CorrelationDiversification Benefit
Nifty 50 vs Gold (INR)minus 0.1 to minus 0.3 (long-run); minus 0.59 in 2020 crashStrong to very strong
Nifty 50 vs G-Secs (historically)minus 0.2 to plus 0.3 (shifting positive in recent years)Weakening
Nifty 50 vs Corporate BondsPlus 0.1 to plus 0.4Moderate
Nifty 50 vs REITsPlus 0.3 to plus 0.5Partial
Large Cap vs Mid Cap (Nifty 50 vs Nifty Midcap)Plus 0.75 to plus 0.90Low
Large Cap vs Small CapPlus 0.65 to plus 0.80Low to moderate
Nifty 50 vs International Equity (MSCI World)Plus 0.4 to plus 0.6Moderate

These ranges are approximate and fluctuate over market cycles. During crises, correlations between risky assets tend to rise (the crash of 2020), while safe-haven assets like gold show lower or more negative correlation with equities during exactly those periods.

14. Why India’s Equity-Bond Correlation Has Shifted

Historically, when equity markets fell in India, investors fled to the safety of government bonds, driving bond prices up and yields down. This flight-to-safety dynamic created negative correlation.

Over recent years, this relationship has become less reliable. Several factors explain the shift:

Inflation and rate hike synchronicity: During the 2022 to 2023 global rate hike cycle, both equities and bonds fell simultaneously as rising rates compressed equity valuations and pushed bond prices down. Both asset classes suffered together, producing positive correlation.

Liquidity-driven market dynamics: As markets have become more liquid and interconnected, risk-off events often trigger simultaneous selling across both equities and bonds as investors move to cash.

FPI behaviour: Foreign portfolio investors, who hold significant positions in both Indian equities and bonds, sometimes sell both simultaneously during global risk-off episodes, creating correlated movements.

With equity-bond correlations turning increasingly positive, gold’s continued negative correlation with equities has reinforced its effectiveness as a diversifier during market stress.

This is precisely why gold has gained prominence in Indian portfolio construction discussions in 2026. As the traditional equity-bond diversification benefit has weakened, gold has emerged as the more reliable low-correlation anchor.

15. Gold as a Diversifier: The Correlation Case

Gold’s relationship with Indian equity markets is uniquely valuable for portfolio construction because of three specific properties:

Low to negative long-run correlation: One of gold’s biggest advantages is its low or near-zero correlation with equities, which means gold often behaves differently from stock markets. According to a recent AllianceBernstein report, this makes gold a useful tool to reduce overall portfolio risk.

Strengthening negative correlation during crises: Gold’s negative correlation to equities and other risk assets tends to strengthen during market sell-offs, helping cushion portfolio losses when it matters most. Gold often shows a positive correlation when markets are rising. This dual behaviour makes gold a consistently reliable and effective diversifier across market conditions.

Proven track record in India: B Padmanaban, a Certified Financial Planner, noted that gold and equity demonstrate a negative correlation, which results in reduced volatility when both are held in a portfolio. After analysing the returns of gold and small-cap investments over two years, while negative correlations do exist, there have been periods of co-movement between the two asset classes.

Portfolio allocation evidence: Allocating 7.5% to 15% to gold in an average Indian rupee portfolio over 19 years improved risk-adjusted returns and reduced drawdowns, supporting its role as a core holding.

For a CFP professional building a client’s asset allocation in 2026, gold deserves explicit consideration not as a speculative position but as a low-correlation diversifier that strengthens portfolio resilience during the market conditions where it matters most.

16. Correlation vs Covariance: Key Differences

While the two measures are mathematically linked, they serve different purposes in portfolio analysis:

Covariance is used in portfolio variance and standard deviation formulas. It is the input into the two-asset and multi-asset portfolio risk calculations. Its value depends on the scale of the returns being measured, making it non-comparable across different pairs of assets.

Correlation is used for interpretation and comparison. Because it is bounded between minus 1 and plus 1, it allows direct comparison of the relationship strength between any two pairs of assets, regardless of their individual return scales.

In practice: use covariance for calculation and use correlation for interpretation and communication.

17. Limitations of Covariance and Correlation

Both are backward-looking: Covariance and correlation are calculated from historical data. The relationship between two assets can change significantly over different market regimes. The equity-bond correlation in India is a clear example: it was negative for many years and has turned positive in recent years.

Correlation is not causation: A high correlation between two assets does not mean one causes the other to move. Both may be driven by a common third factor.

Correlation changes during crises: During market stress, correlations between most risky assets tend to rise toward plus 1 as investors sell everything simultaneously. This correlation convergence means that diversification is least effective precisely when it is needed most, with the notable exception of safe-haven assets like gold.

Linear relationship assumed: The Pearson correlation coefficient measures only linear relationships. If two assets have a complex non-linear relationship (for example, one asset performs well at both extremes of the other’s range), the correlation coefficient may show near zero even though a significant relationship exists.

Covariance is scale-dependent: As mentioned, covariance depends on the units of the returns being measured, making it impossible to directly compare covariances across different pairs of assets. This is why correlation is needed for interpretation.

18. Comparison Table

ParameterCovarianceCorrelation
DefinitionMeasures how two assets move together in absolute termsStandardised measure of the strength and direction of co-movement
FormulaΣ[(Rₐᵢ minus R̄ₐ)(Rbᵢ minus R̄b)] / (n minus 1)Cov(A,B) / [σ(A) x σ(B)]
RangeAny value (unbounded)Minus 1 to plus 1
UnitsPercentage squaredUnitless
InterpretabilityDifficult: scale-dependentEasy: bounded and standardised
Use in portfolio formulaDirect input in portfolio variance formulaUsed to derive covariance or in correlation-based SD formula
SignPositive: same direction; Negative: oppositeSame as covariance
CFP exam relevancePortfolio variance calculationsInterpretation, diversification analysis

19. Key Exam Points

  1. Covariance formula: Σ[(Rₐᵢ minus R̄ₐ)(Rbᵢ minus R̄b)] / (n minus 1). Use (n minus 1) for sample data.
  2. Correlation formula: Cov(A,B) / [σ(A) x σ(B)]. Always between minus 1 and plus 1.
  3. Covariance to correlation: divide by the product of the two standard deviations. Correlation to covariance: multiply correlation by the product of the two standard deviations.
  4. Correlation of plus 1: no diversification benefit; portfolio SD equals weighted average of individual SDs.
  5. Correlation of minus 1: maximum theoretical diversification; portfolio SD can be reduced to zero.
  6. Portfolio variance formula: w₁²σ₁² plus w₂²σ₂² plus 2(w₁)(w₂)Cov₁₂ or equivalently 2(w₁)(w₂)(σ₁)(σ₂)(ρ₁₂).
  7. During the COVID-19 market crash of 2020, the correlation between gold and the Nifty 50 plunged to minus 59.31%, confirming gold as a genuine diversifier during crisis periods.
  8. Historically, Indian government bonds showed negative correlation with equities. Over recent years, this relationship has turned increasingly positive, reducing the diversification benefit of the traditional equity-bond portfolio.
  9. Allocating 7.5% to 15% to gold in an average Indian rupee portfolio over 19 years improved risk-adjusted returns and reduced drawdowns, as gold’s negative correlation with equities has strengthened during market stress periods.
  10. During market crises, correlations between risky assets converge toward plus 1, reducing diversification when it is most needed. Safe-haven assets like gold are an exception, strengthening their negative correlation precisely during equity sell-offs.
  11. Correlation measures only linear relationships. Non-linear relationships between assets are not captured by the Pearson coefficient.
  12. For a three-asset portfolio, there are three unique covariance pairs. For an n-asset portfolio, the number of unique pairs is n(n minus 1)/2.

20. FAQs

What is the difference between covariance and correlation? Covariance measures how two assets’ returns move together in absolute terms, expressed in squared units. Correlation standardises this relationship to a scale from minus 1 to plus 1 by dividing covariance by the product of the two standard deviations. Covariance is used in portfolio variance calculations. Correlation is used for interpretation and comparison across different asset pairs.

How does correlation affect portfolio risk? The lower the correlation between two assets, the greater the risk reduction when they are combined. When correlation equals plus 1, portfolio risk equals the weighted average of individual risks with no reduction. When correlation is less than plus 1, the portfolio’s standard deviation falls below the weighted average, providing diversification benefit. Negative correlation produces the greatest risk reduction.

What is the correlation between gold and Indian equity in 2026? In normal market conditions, the long-run correlation between gold (in INR) and Indian equity (Nifty 50) is low to moderately negative, ranging from approximately minus 0.1 to minus 0.3. During equity market crises, this correlation strengthens further. During the COVID-19 crash in 2020, the correlation plunged to minus 59.31%. In recent years including 2024 and 2025, both gold and equity have risen simultaneously at times, showing some positive correlation in rising markets.

Why has India’s equity-bond correlation become more positive? The traditional negative correlation between Indian equities and government bonds has weakened over recent years due to synchronised global rate hikes in 2022 to 2023 (which hurt both equities and bonds simultaneously), increased FPI selling across both asset classes during risk-off episodes, and greater market integration. This has reduced the diversification benefit of holding both equities and bonds together.

How is covariance used in portfolio risk calculation? Covariance is a direct input in the portfolio variance formula. For a two-asset portfolio: Portfolio Variance equals w₁² times σ₁² plus w₂² times σ₂² plus 2 times w₁ times w₂ times Cov(A,B). The covariance term captures the interaction risk between the two assets. Negative covariance reduces portfolio variance; positive covariance increases it relative to a scenario of zero correlation.

What correlation is needed for effective diversification? Meaningful diversification benefit begins when correlation is below plus 0.7. Effective diversification occurs in the range of minus 0.3 to plus 0.5. Perfect diversification (theoretical zero portfolio risk) requires correlation of minus 1, which does not exist in practice. In real portfolios, combining assets with correlations in the 0 to plus 0.4 range typically produces the best balance of risk reduction and return potential.

21. CFP Exam Quick Recap

  • Covariance: Σ[(Rₐᵢ minus R̄ₐ)(Rbᵢ minus R̄b)] / (n minus 1); measures directional co-movement; scale-dependent
  • Correlation: Cov(A,B) / [σ(A) x σ(B)]; bounded between minus 1 and plus 1; standardised and interpretable
  • Correlation plus 1: no diversification; minus 1: maximum diversification (theoretical)
  • Portfolio variance: w₁²σ₁² plus w₂²σ₂² plus 2(w₁)(w₂)(σ₁)(σ₂)(ρ) or equivalently using 2(w₁)(w₂)Cov(A,B)
  • Gold-Nifty correlation: minus 59.31% during COVID 2020 crash; low to negative in long run
  • India equity-bond correlation: historically negative, turned increasingly positive in recent years
  • Gold allocation of 7.5% to 15% improved Indian portfolio risk-adjusted returns over 19 years
  • During market crises, correlations between risky assets rise toward plus 1; gold strengthens its negative correlation
  • Number of unique covariance pairs in an n-asset portfolio: n(n minus 1)/2
  • Use covariance for portfolio variance calculations; use correlation for interpretation and comparison
Scroll to Top