Portfolio Risk Formula for 3 Assets: Derivation + Example
November 21, 2026
Key takeaways
- Portfolio variance for 3 assets needs six unique numbers: three weights, three variances, and three pairwise covariances, since covariance symmetry collapses nine terms into six.
- Convert correlations to covariances with the shortcut σiσjρij, then compute portfolio standard deviation as the square root of the weighted sum of all variance and covariance terms.
- In the worked example (50/30/20 weights, 20%/10%/15% volatilities, low correlations), portfolio standard deviation came out near 11.9% annualized, well below the 15.5% weighted average of standalone volatilities.
- In Excel or Google Sheets, =MMULT(MMULT(TRANSPOSE(B1:B3),B3:D5),B1:B3) returns portfolio variance from a weights vector and a symmetric 3x3 covariance matrix.
- Only correlation can turn a variance term negative, so a negatively correlated asset cuts total risk without cutting exposure, while correlations estimated in calm markets tend to spike toward 1 in sell-offs.
The portfolio risk formula for 3 assets is σp = √(w1²σ1² + w2²σ2² + w3²σ3² + 2w1w2σ12 + 2w1w3σ13 + 2w2w3σ23), where the w terms are weights and the σij terms are covariances between each pair of assets. Plug in three weights and a filled 3x3 covariance matrix and it returns one number: your portfolio's standard deviation. Below you get the term-by-term derivation, a fully worked numeric example, and a cell-by-cell spreadsheet recipe.
What is the portfolio risk formula for 3 assets and where does each term come from?
Portfolio variance for three assets is the sum of every weighted variance and covariance term:
σ²ₚ = w₁²σ₁² + w₂²σ₂² + w₃²σ₃² + 2w₁w₂σ₁₂ + 2w₁w₃σ₁₃ + 2w₂w₃σ₂₃
The general n-asset version is defined the same way, as the weighted sum of all pairwise covariances (Investopedia, Portfolio Variance).
The full variance equation expanded
Written out term by term, you get nine pieces: w₁²σ₁², w₁w₂σ₁₂, w₁w₃σ₁₃, w₂w₁σ₂₁, w₂²σ₂², w₂w₃σ₂₃, w₃w₁σ₃₁, w₃w₂σ₃₂, and w₃²σ₃². Each w is a position weight (fraction of capital), each σ² a single-asset variance of returns, and each σᵢⱼ the covariance between two assets' returns.
Why there are nine terms and only six unique numbers
Covariance is symmetric, so σ₁₂ = σ₂₁, σ₁₃ = σ₃₁, and σ₂₃ = σ₃₂. That collapses nine terms into three variances plus three unique covariances, each multiplied by 2. Six numbers fully describe your portfolio risk.
Variance vs standard deviation: which one you report
The formula outputs variance. Take the square root to get portfolio standard deviation, the number you compare against per-position risk when setting entry/stop/target levels and position sizing. Sizing off variance directly understates risk. Treat any output as an estimate, not a promise, per your risk disclosure.
How do you build the 3x3 covariance matrix step by step?
Portfolio variance needs covariances between every pair of assets. You build them from two inputs you already track: each asset's volatility and the pairwise correlations.
Converting correlation to covariance: the σiσjρij shortcut
Covariance between assets i and j is their volatilities multiplied by their correlation: σᵢσⱼρᵢⱼ. If the S&P is 15% volatile, gold is 14% volatile, and their correlation is 0.2, the covariance is 0.15 × 0.14 × 0.2 = 0.0042. That single line converts your correlation matrix into the covariance matrix the variance formula consumes.
Reading the diagonal vs the off-diagonal cells
The diagonal holds each asset's variance, σᵢ², because an asset's correlation with itself is 1. The off-diagonal cells hold the σᵢσⱼρᵢⱼ terms, and the matrix is symmetric: cell (1,2) equals cell (2,1). Your spreadsheet only needs the upper triangle.
| Stocks | Bonds | Gold | |
|---|---|---|---|
| Stocks (σ=15%) | 0.0225 | 0.0009 | 0.0042 |
| Bonds (σ=10%) | 0.0009 | 0.0100 | 0.0014 |
| Gold (σ=14%) | 0.0042 | 0.0014 | 0.0196 |
Where to get realistic correlation and volatility inputs
Estimate σ from 60–100 days of daily returns, annualized by multiplying by √252. Correlations drift with the market regime, so recalculate them monthly rather than trusting a value from a bull market. If you want pre-computed asset ratings and relative strength context to sanity-check your inputs, Daily Market Desk packages that in one terminal (see our privacy policy).
How do weights and correlations change total portfolio variance in a worked example?
The inputs: three weights, three volatilities, three correlations
Take a 50% equities, 30% FX, 20% gold book. Annualized volatilities: equities 20%, FX 10%, gold 15%. Pairwise correlations: equities-FX 0.3, equities-gold 0.1, FX-gold 0.0. Convert to covariances by multiplying volatilities: cov(S,F) = 0.20 × 0.10 × 0.3 = 0.006, cov(S,G) = 0.20 × 0.15 × 0.1 = 0.003, cov(F,G) = 0. Covariances on the diagonal are variances: 0.04, 0.01, 0.0225. Estimating these from historical returns is standard practice; see the CFA Institute curriculum reading on portfolio risk and return.
Term-by-term arithmetic you can check by hand
Plug the weights and covariances into the three-asset formula and watch each term do its own job. The weighted diagonal terms are w₁²σ₁² = 0.25 × 0.04 = 0.0100, w₂²σ₂² = 0.09 × 0.01 = 0.0009, and w₃²σ₃² = 0.04 × 0.0225 = 0.0009, which sum to 0.0118. The cross terms each appear twice, so the formula carries a factor of 2: 2 × 0.5 × 0.3 × 0.006 = 0.0018 for equities-FX, 2 × 0.5 × 0.2 × 0.003 = 0.0006 for equities-gold, and 2 × 0.3 × 0.2 × 0 = 0 for FX-gold. Those cross terms add only 0.0024, and that is the whole point of the exercise: with low correlations, the three volatilities of 20%, 10% and 15% do not stack into a 15%-ish portfolio number by accident. The covariance structure, not the individual volatilities, decides how much risk the combination actually carries.
The final number: variance to standard deviation
Total variance = 0.0118 + 0.0024 = 0.0142. Take the square root: portfolio standard deviation ≈ 11.9% annualized, well below the 15.5% weighted average of the standalone volatilities. If you run a weekly market scan and want this number live next to your ratings, a structured terminal like Daily Market Desk keeps the inputs in one place so the arithmetic stays current as correlations drift.
How do you calculate three-asset portfolio risk in Excel or Google Sheets?
Setting up the weights vector and covariance matrix cells
Enter the weights in B1:B3 (0.5, 0.3, 0.2) and the covariance matrix in B3:D5, matching the worked example from the previous section. Keep the matrix symmetric: cell C3 must equal B4, and so on. Label rows and columns with each asset so you can spot mismatches when you edit later.
The one-line MMULT formula for portfolio variance
In a single cell, enter:
=MMULT(MMULT(TRANSPOSE(B1:B3),B3:D5),B1:B3)
In Google Sheets this evaluates directly. In older Excel versions, confirm it as an array formula with Ctrl+Shift+Enter. The result is portfolio variance; take the square root with =SQRT(...) to get portfolio standard deviation, which is the number you compare across allocations.
Stress-testing: change one correlation and watch the output
Change the stock-bond covariance in one cell and the variance updates instantly. Drop that covariance toward zero or negative and watch total risk fall even though weights are unchanged. That one-cell edit is the fastest way to see how correlation, not weight, drives combined risk.
What happens to portfolio risk when one correlation turns negative?
Re-running the worked example with ρ = -0.3
Take the same three assets and weights from the worked example: 50% in asset A, 30% in asset B, 20% in asset C, each with 20% annual volatility. Set the A-B correlation to -0.3 and leave the other pairs at 0.3. The covariance term A-B becomes 2 × 0.5 × 0.3 × 0.20 × 0.20 × (-0.3) = -0.0036, which subtracts from the sum instead of adding. Portfolio variance drops to 0.0136, so portfolio volatility is √0.0136 ≈ 11.7%, below every individual asset's 20%. If you scan daily returns instead of annual figures, convert with the square-root-of-time rule described in Wikipedia's standard deviation overview.
Why negative correlation is the only free lunch in the formula
Weights, volatilities and correlations enter the variance equation, but only correlation can turn a term negative. A negative pairwise correlation means one asset's drawdowns partially offset another's, cutting combined risk without cutting exposure. That is the mechanism behind a risk-defined weekly portfolio: pair assets that hedge each other and the same position sizing budget buys you a smoother equity curve.
How does the three-asset formula extend to diversification and position sizing decisions?
Using the formula to rank which position contributes most risk
Each weight-covariance row in the expansion is that asset's contribution to total variance. Multiply each weight by its row sum (wᵢ times Σ wⱼσᵢⱼ) and rank the three numbers. The largest contributor, not the largest position, is the one to trim first.
When a fourth asset reduces risk vs just adds exposure
Recompute the variance with the new asset at a small weight. If the covariance terms it adds are smaller than the variance it dilutes, total risk falls. A low or negative correlation asset can cut portfolio variance even at 10% weight; a highly correlated one only adds exposure.
Correlation instability across market regimes
Historical covariances break when correlations spike in drawdowns, so stress your matrix with crisis-period estimates. Research on extreme correlations shows they rise during market declines (Longin & Solnik, Journal of Finance).
What are the most common mistakes when applying the three-asset risk formula?
Mixing daily and annualized inputs
Variances and covariances must share one time horizon. If your daily variance is 0.0004 and you treat it as annual, your portfolio standard deviation shrinks by roughly 16x. Pick daily or annual, convert everything once, then compute.
Forgetting weights appear twice in cross terms
Each covariance term enters the variance twice: once as 2·w₁·w₂·σ₁₂ and again implicitly because σᵢᵢ terms use squared weights. Dropping the factor of 2, or using unsquared weights in the diagonal, understates risk in both directions. In the spreadsheet, reference the same weight cell for both the row and column of each pair.
Trusting correlations estimated in calm markets
Correlations estimated over a quiet year tend to spike toward 1 in a sell-off, so your 0.3 stock-bond correlation may not hold when you need it. Stress-test the formula with correlations at 0.7-0.9 and recompute portfolio variance before sizing positions. If the number only works at calm-market correlations, the position is too large.
FAQ
How many covariance terms are in the three-asset portfolio variance formula?
Six unique numbers: three variances on the diagonal and three pairwise covariances. The expanded equation has nine terms, but covariance symmetry means σ12 = σ21 and so on, collapsing each pair into one number multiplied by 2. So you need three weights, three variances, and three covariances to compute portfolio risk.
Can I use the same formula for crypto, forex and stocks in one portfolio?
Yes. The formula only cares about weights, variances, and pairwise covariances, not what the assets are. Estimate each asset's volatility from its own return history, compute or convert correlations to covariances, and keep every input on the same time horizon. Mixed-asset books often benefit most because cross-asset correlations tend to run low.
What is the difference between portfolio variance and portfolio standard deviation?
The formula outputs variance, measured in squared return units. Standard deviation is its square root, expressed in the same percentage units as the individual asset volatilities, which makes it comparable and intuitive. Sizing positions off variance directly understates risk, so take the square root before comparing against per-position risk or setting stops.
How do I annualize portfolio risk if I estimated covariances from daily returns?
Pick one horizon and convert everything once. Scale daily variances and covariances by 252 trading days (multiply by 252), which is equivalent to multiplying daily standard deviation by √252 before computing covariances. Mixing horizons is the classic error: treating a daily variance of 0.0004 as annual shrinks your portfolio standard deviation by roughly 16x.
Does adding a third asset always lower portfolio risk?
No. A new asset lowers portfolio variance only when the covariance terms it adds are smaller than the variance it dilutes. A low or negatively correlated asset can cut total risk even at a 10% weight, while a highly correlated one just adds exposure. Recompute the variance with the asset at a small weight to check.
Stop calculating risk by hand.
DAILY MARKET DESK structures the market for you every day.
Start your 7-day trial