Mastering Portfolio Risk with the Cosine Rule

The Cosine Rule and Investments: Angle Your Risk, Not Just Your Returns

A geometric law with a Wall Street accent: how the angle between assets shapes your total portfolio volatility.


From Triangles to Portfolios

The Cosine Rule (Law of Cosines) in a triangle says:

c² = a² + b² − 2ab cos(C)

Translate that into investing and you get a striking echo of the portfolio variance formula. Think of side lengths as risk contributions from two assets, and the angle C as their relationship. In markets, that relationship is measured by correlation, usually denoted ρ (rho).

Mapping the Math

Let:

  • a = w₁σ₁ (weight × volatility of asset 1)
  • b = w₂σ₂ (weight × volatility of asset 2)
  • ρ = correlation between asset returns (from –1 to +1)

Portfolio variance for two assets is:

σp² = a² + b² + 2ab ρ

Compare that with the cosine rule by noting that cos(π − C) = −cos(C). If we set the “diversification angleΘ = π − C, then cos(Θ) = ρ, and the formulas align. Bottom line: the angle between assets functions like their correlation. Smaller angle (cosine near +1) → they move alike. Larger angle (cosine near –1) → they move opposite.

Cosine-to-Correlation Decoder

  • ρ ≈ +1 → angle is tiny → almost the same motion → diversification minimal.
  • ρ ≈ 0 → right-angle vibes → motions independent → solid diversification.
  • ρ < 0 → obtuse angle → opposite motion → powerful diversification.

A Quick, Concrete Example

Two-asset portfolio: 60% / 40%. Volatilities: σ₁ = 20%, σ₂ = 15%. Compute a = 0.6×0.20 = 0.12, b = 0.4×0.15 = 0.06.

Correlation (ρ) Interpretation Portfolio Volatility (σp)
+1.0 Move together; angle small 18.0%
+0.3 Mildly related 14.94%
0.0 Orthogonal; independent 13.42%
−0.5 Often offsetting 10.39%
−1.0 Perfect hedge; angle near 180° 6.0%

Same assets, same weights—only the angle (ρ) changed. Notice how volatility shrinks as the angle opens. That is the cosine rule whispering, “diversify by angles, not labels.”

A Visual Mental Model (No Calculator Needed)

  • Clustered lines (small angles): tech-on-tech, growth-on-growth. Fast together, fall together.
  • Right-angled lines: stocks with cash-like or certain macro hedges. Steadier ride.
  • Wide, opposing lines: equity vs. defensives/tail hedges (select commodities, rates, options). Cushion built-in.

Actionable Playbook

  1. Quantify your angles: pull a correlation matrix for your holdings (weekly or monthly returns).
  2. Hunt for orthogonality: add assets whose ρ with your core is low or negative.
  3. Recheck seasonally: correlations drift—angles flex with regimes. Update quarterly.
  4. Don’t over-hedge: too much “opposite” can suffocate returns. Blend, don’t cancel.
  5. Think in vectors: your portfolio is a sum of arrows; arrange them so shocks don’t all point the same way.

Cheat Sheet—Cosine Rule for Investors

  • Cosine = correlation. Bigger cosine → smaller angle → more sameness.
  • Angle = diversification. Wider angle → stronger risk dampening.
  • Variance adds like a triangle. It’s not magic; it’s geometry of risks.
  • Rebalance = redraw. Every rebalance redraws your triangle; keep the angle healthy.
You don’t just pick assets. You pick angles. The market rewards portfolios that refuse to point in one direction.

Disclaimer: This article is for educational purposes only and does not constitute financial advice. Investing involves risk, including possible loss of principal. Always do your own research or consult a licensed advisor.