Portfolio Standard Deviation Formula: A Two-Asset Example
Use the portfolio standard deviation formula with two assets, correlation, and weights. Check the result in Excel and distinguish constant weights from a historical replay.
The portfolio standard deviation formula combines position weights, each asset's volatility, and the correlation between their returns. Averaging the two assets' standard deviations leaves out how they move together. For a hypothetical 60%/40% allocation with monthly asset volatilities of 4% and 2% and zero correlation, portfolio volatility is about 2.53% per month, below the 3.20% weighted average.
You need matching return observations to make that comparison. The examples below use invented inputs, not actual securities or current market data. Sources checked December 2, 2026.
Portfolio standard deviation formula for two assets
For fixed weights applied to each observation, use:
``text Portfolio variance = wA² × sA² + wB² × sB² + 2 × wA × wB × sA × sB × correlation Portfolio standard deviation = square root of portfolio variance ``
Here, wA and wB are portfolio weights; sA and sB are the standard deviations of the two return series. For this unleveraged, fully allocated example, the weights add to one. Enter 60% as 0.60 and 4% volatility as 0.04.
The ACCA explanation of two-asset portfolio risk sets out this variance calculation. The cross-product term accounts for co-movement. You can replace sA × sB × correlation with the covariance of the two return series.
Use standard deviations and covariance calculated from the same dates, frequency, and statistical convention. Monthly inputs produce a monthly result. Mixing one asset's annual volatility with another's monthly volatility produces an invalid comparison.
A 60%/40% portfolio volatility example
Start with these hypothetical monthly inputs:
| Input | Value |
|---|---|
| Asset A weight | 60% |
| Asset B weight | 40% |
| Asset A standard deviation | 4% |
| Asset B standard deviation | 2% |
| Return correlation | 0.00 |
Using decimal returns:
```text Variance = 0.60² × 0.04² + 0.40² × 0.02² + 2 × 0.60 × 0.40 × 0.04 × 0.02 × 0 = 0.000576 + 0.000064 = 0.000640
Standard deviation = SQRT(0.000640) ≈ 0.025298 = 2.53% ```
The weighted average of the individual volatilities is 0.60 × 4% + 0.40 × 2% = 3.20%. That shortcut overstates the combined volatility for these inputs because the assets' returns have zero correlation.
Keep the weights and individual volatilities unchanged and vary only correlation:
| Correlation | Portfolio monthly standard deviation |
|---|---|
| +1.00 | 3.20% |
| +0.50 | 2.88% |
| 0.00 | 2.53% |
| −0.50 | 2.12% |
| −1.00 | 1.60% |
At perfect positive correlation, the formula reduces to the weighted average for these positive weights. At perfect negative correlation, the unequal weighted volatilities leave 1.60% of variation. Negative correlation alone does not make this portfolio's volatility zero.
These are algebraic comparisons, not estimates of future correlations or suggested allocations. The stock correlation guide explains how to measure co-movement from returns rather than price levels.
Calculate portfolio volatility in Excel from paired returns
You can check the variance formula against the standard deviation of a combined return series. Copy these four hypothetical months into a spreadsheet, with headers in row 1, Asset A in B2:B5, and Asset B in C2:C5. Enter each return as a percentage.
| Month | Asset A return | Asset B return | 60% A + 40% B |
|---|---|---|---|
| 1 | −4% | −2% | −3.2% |
| 2 | −4% | +2% | −1.6% |
| 3 | +4% | −2% | +1.6% |
| 4 | +4% | +2% | +3.2% |
In D2, type =60%*B2+40%*C2 and fill down through D5. Then use =STDEV.S(D2:D5). You should get about 2.92% monthly sample standard deviation.
This example has zero correlation, but its asset sample standard deviations are 4.62% and 2.31%, rather than the 4% and 2% assumed in the first example. Microsoft's STDEV.S documentation specifies the sample calculation's n − 1 denominator. Four observations are enough to inspect the arithmetic, not to assess an actual portfolio's risk.
Check the result through the covariance form:
``text =SQRT(60%^2*VAR.S(B2:B5)+40%^2*VAR.S(C2:C5) +2*60%*40%*COVARIANCE.S(B2:B5,C2:C5)) ``
Microsoft documents COVARIANCE.S as a sample covariance calculation. Both methods give 2.92% here. Use complete, aligned return pairs throughout; a missing observation should not become a zero return. Retain genuine zero returns.
You may encounter annualized volatility calculated as monthly standard deviation times SQRT(12). That convention assumes a return process for which square-root-of-time scaling is appropriate. Serial correlation and compounding can change the relationship; it is not a forecast or a guaranteed range of annual outcomes. CFA Institute discusses the limits of this scaling convention.
Constant weights and starting weights describe different histories
The spreadsheet above applies 60%/40% to each month's return. Maintaining those weights through successive periods would require adjustments as the assets' values change. This calculation describes a mathematical constant-weight series; it gives no instruction to rebalance.
Equity Replay applies entered weights once, at the start of the selected historical window. It combines normalized closing-price paths without interim trades. As those paths diverge, each component's share of the illustrative total changes.
For example, if A rises 10% and B stays flat in the first month, an initial 60%/40% mix becomes 66/106, or about 62.26% A, in the resulting value calculation. Using 60% for A again in month two would describe a different path. For a replay's realized historical volatility, calculate successive returns from the combined replay value series, then take their standard deviation over matching intervals. Starting weights plus full-window asset volatilities alone cannot reproduce a drifting-weight path's volatility.
The replay methodology explains the starting-weight calculation. Use Compare portfolios to inspect illustrative allocations over the same available dates, and use a spreadsheet for the volatility calculations in this article. Equity Replay does not supply this two-asset covariance calculation as a risk score.
Read volatility alongside the losses and the assumptions
Standard deviation counts both upward and downward variation around the mean. A low figure does not establish a positive return or a small worst loss. Inspect portfolio drawdown for peak-to-trough declines; use beta vs standard deviation to distinguish total variability from sensitivity to a benchmark.
Keep the measurement dates, return frequency, weights convention, and dividend treatment beside the number. Changing any of them can change the result. A portfolio's historical volatility also cannot reveal the full consequences of illiquidity, changing holdings, or future market conditions.
Equity Replay is an educational historical simulator, not investment advice, a broker, or a record of trades. Its closing-price replays exclude dividends, fees, taxes, deposits, withdrawals, buy-and-hold execution, and rebalancing. Historical measurements do not predict future returns or identify an allocation suitable for you.
About our educational content
Published by Equity Replay, an educational historical portfolio simulator operated by Quadri LLC. We use AI-assisted drafting. No independent financial, legal, or tax expert review is claimed.
Check the linked sources, article dates, and stated assumptions before relying on a number. Historical simulations are not forecasts, records of trades, or personal investment advice. Rules and market data can change after publication.
Found an error? Send a correction to our team.