Oct 28, 2026
How to Calculate Portfolio Risk: Formulas, Examples, and Practical Tools

Portfolio risk determines whether your investment portfolio lets you sleep at night or keeps you refreshing your brokerage app at 2 a.m. To calculate portfolio risk, use portfolio standard deviation—a measure that combines each asset’s weight, its own volatility, and how the assets move in relation to one another—so you can replace a gut feeling with a number you can actually use.
For investors and portfolio managers who want to quantify risk before making allocation changes, this guide walks through the core concepts, the main formulas including two-asset and matrix methods, a full numerical example, and practical ways to apply the math. You’ll also see how portfolio risk connects to diversification, modern portfolio theory, different types of risk, measures beyond volatility, the main drivers of portfolio swings, and the tools and risk-management practices that help turn the calculation into better investment decisions.
Quick Answer: Portfolio Risk Formula and What It Tells You
Portfolio risk is the standard deviation of portfolio returns. It's a statistical measure that captures how much your portfolio's actual returns are likely to swing around the expected return, reflecting both portfolio volatility and exposure to downside risk.
For a two-asset portfolio, the portfolio risk formula is:
σp = √(w₁²σ₁² + w₂²σ₂² + 2w₁w₂σ₁σ₂ρ₁₂)
Where:
w₁, w₂ = each asset's weight in the portfolio
σ₁, σ₂ = standard deviation (volatility) of each asset
ρ₁₂ = correlation coefficient between the two assets' returns
For an N-asset portfolio, the general matrix form is:
σp = √(wᵀΣw)
Here, w is the vector of portfolio weights, and Σ is the variance-covariance matrix of asset returns.
A critical point: portfolio risk is not a simple weighted average of individual asset risks. The risk of a portfolio depends on how holdings move together, and understanding portfolio variance means looking beyond standalone asset risk. Correlations between assets are what make overall portfolio risk lower or higher than you'd expect from just averaging. Portfolio risk can be lower than the weighted average of individual risks when you're combining assets that don't move in lockstep.
The rest of this article walks step-by-step through how to calculate portfolio risk, interpret it, and use it to adjust your investment portfolio.
What Is Portfolio Risk? (And Why It's More Than Just Volatility)
Portfolio risk is the uncertainty of your portfolio return around its expected return over a specific time horizon. It's usually measured by standard deviation, which makes it a clean, comparable number across different portfolios.
Standard deviation captures both upside and downside movements equally. But most investors care far more about downside risk, drawdowns, and permanent loss of capital than they do about upside surprises. That's why portfolio risk measurement often goes beyond simple volatility, as you'll see later in this guide.
Portfolio risk differs from the individual risks of a single stock or bond. An individual asset's volatility only tells you about that one holding. For portfolio management, overall portfolio risk depends on how all holdings in the asset portfolio move together across a multi-asset mix, meaning it's driven by how assets interact through their correlations. A diversified portfolio can achieve lower volatility than any of its individual assets.
In modern portfolio theory, portfolio risk and portfolio expected return are the two core dimensions used to compare and optimize investment portfolios. Every allocation decision boils down to the trade-off between risk and return.

Key Risk Concepts: Standard Deviation, Variance, Correlation, and Beta
Before you can run any portfolio risk calculation, you need a solid grip on four building blocks.
Standard deviation measures volatility in a portfolio's returns. Higher standard deviation indicates greater price swings and uncertainty. It's the most commonly used risk metric because it's expressed in the same units as returns (percentages), making it intuitive to interpret.
Variance is the average squared deviation from the mean return. It weights large deviations more heavily, which means extreme events have an outsized impact. Standard deviation is simply the square root of variance, converting variance back into usable percentage terms.
Covariance measures how two assets' returns move together in absolute terms. In contrast, correlation measures scale this relationship to a range from -1 to +1 and indicate both the strength and direction of how two assets move relative to each other. A correlation of +1 means two assets move perfectly together; -1 means they move in exactly opposite directions; 0 means no linear relationship. Historically, US stocks and US bonds had an average correlation of roughly -0.3 during 2000–2023, which helped diversification. Before 2000, that correlation was actually positive (~+0.35), meaning less diversification benefit in earlier decades.
Beta measures portfolio sensitivity to market movements. It tells you how much a security or portfolio moves relative to a benchmark index like the S&P 500. Portfolio beta is a weighted average of individual betas. While beta focuses on market risk, full portfolio standard deviation also reflects asset-specific effects and the diversification impact of correlations between assets. Correlation affects portfolio risk by reducing overall volatility when assets don't move together.
Types of Portfolio Risk: Systematic, Unsystematic, and Downside Risk
Every source of risk in your portfolio falls into a few core categories. Understanding them helps you know which risks you can control and which you can't.
Systematic (market) risk covers broad market movements like global recessions, interest rates shifting, or inflation spikes. These affect nearly all risky assets simultaneously. You cannot diversify away systematic risk; it's the price you pay for holding risky assets. Higher potential returns are linked to higher risk in this category.
Unsystematic (idiosyncratic) risk comes from company-specific or sector-specific events: earnings surprises, fraud, regulatory changes. Diversification is essential for minimizing unsystematic risk in portfolios. By holding enough different asset classes and individual assets, you can shrink this component dramatically.
Other key risk dimensions include:
Liquidity risk: the danger that you can't sell holdings quickly without steep price concessions, as many investors experienced during the March 2020 liquidity crunch.
Currency risk: foreign-denominated holdings expose you to exchange-rate swings that add another layer of uncertainty.
Concentration risk: when a large portion of your portfolio sits in a few positions or the same sector, portfolio variance becomes dominated by those holdings.
Horizon risk: over short investment horizons, even fundamentally sound portfolios can suffer painful drawdowns.
Downside risk deserves its own focus. Metrics like maximum drawdown (which measures the largest peak-to-trough decline in portfolio value), semideviation, and the Sortino ratio emphasize losses rather than total volatility. These are increasingly popular with investors who want to understand the real-world pain of market drops, not just average swings.
Modern Portfolio Theory and the Logic Behind Portfolio Risk
Modern portfolio theory, formalized by Harry Markowitz in 1952, is where the math of portfolio risk originated. MPT showed that portfolio risk depends on both individual asset risks and the correlations between them. Diversification depends on the correlation between assets, not just owning "many" securities.
The efficient frontier is the central visual concept. It's a curve plotting portfolios that offer the highest expected return for each level of portfolio risk, with standard deviation on the x-axis and expected return on the y-axis. Portfolios on this frontier dominate everything below it.
The portfolio variance formula connects directly to MPT: the theory finds weights that minimize risk for a given expected return by optimally choosing asset allocation. Naive diversification (simply owning lots of stocks) differs from MPT-based diversification, which deliberately mixes low correlation assets or negatively correlated assets to push risk down.
However, MPT relies on historical return and covariance data, which can shift. Research from the IMF (February 2026) showed that since 2020, stocks and bonds have moved more in tandem during sharp selloffs, reducing the protective power of traditional 60/40 portfolios. Practitioners now supplement MPT with scenario analysis and stress tests to capture tail risks that historical averages miss.

Step 1: Calculate Portfolio Weights and Portfolio Expected Return
To calculate portfolio risk, start by determining your portfolio weights and expected returns.
Each asset's weight equals its market value divided by the total portfolio value. For example, on 31 December 2025:
Asset | Market Value | Weight |
|---|---|---|
Asset A | $60,000 | 0.60 |
Asset B | $40,000 | 0.40 |
Total | $100,000 | 1.00 |
Next, define the expected return for each asset as an annualized estimate based on historical data (such as a 5-year average) or forward-looking analyst forecasts.
The portfolio expected return formula is:
Rp = Σ wᵢRᵢ
If Asset A's expected return is 8% and Asset B's is 4%:
Rp = 0.60 × 8% + 0.40 × 4% = 6.4%
The expected return of a portfolio is a weighted average of asset returns. This is straightforward. Unlike portfolio return, portfolio risk depends on correlations between holdings, which is why the risk formula is more complex.
Step 2: How to Calculate Portfolio Risk for a Two-Asset Portfolio
Let's walk through a full numerical example for a two-asset portfolio.
Assumptions:
Parameter | Stock X | Bond Fund Y |
|---|---|---|
Weight | 70% (0.70) | 30% (0.30) |
Standard deviation | 18% | 6% |
| Correlation (ρ_XY) | 0.25 (based on monthly returns, Jan 2016–Dec 2025) |
The portfolio risk formula for two assets is:
σp² = w₁²σ₁² + w₂²σ₂² + 2w₁w₂σ₁σ₂ρ₁₂
Plug in the numbers:
First term: 0.70² × 0.18² = 0.49 × 0.0324 = 0.015876
Second term: 0.30² × 0.06² = 0.09 × 0.0036 = 0.000324
Covariance term: 2 × 0.70 × 0.30 × 0.18 × 0.06 × 0.25 = 0.001134
Portfolio variance = 0.015876 + 0.000324 + 0.001134 = 0.017334
Portfolio standard deviation = √0.017334 ≈ 13.17% annualized.
Notice that the portfolio's risk (13.17%) is well below Stock X's standalone asset's volatility (18%). Even Bond Fund Y's lower volatility (6%) contributes only modestly to total portfolio risk because of the correlation effect. Portfolio variance considers individual asset risks and their correlations, and here correlation can reduce total portfolio risk below individual asset risks. This is diversification at work.

Step 3: Extending Portfolio Risk Calculation to Many Assets (Matrix Method)
With multiple assets, portfolio risk calculation scales quickly. An N-asset portfolio requires N variances and N(N-1)/2 covariance pairs. For 30 assets, that's 435 covariances to estimate.
The variance-covariance matrix Σ organizes this: diagonal entries hold individual variances (σᵢ²), and off-diagonal entries hold covariances (σᵢσⱼρᵢⱼ). To compute σp² = wᵀΣw, multiply the covariance matrix by the weight vector, then take the dot product of that result with the weight vector again. The square root of that product gives you portfolio standard deviation.
For a 3-asset example (US stocks, international stocks, bonds) with weights of 50%, 30%, and 20%, the expanded formula has six terms:
σp² = w₁²σ₁² + w₂²σ₂² + w₃²σ₃² + 2w₁w₂σ₁σ₂ρ₁₂ + 2w₁w₃σ₁σ₃ρ₁₃ + 2w₂w₃σ₂σ₃ρ₂₃
In practice, you'll use Excel, Google Sheets, Python (NumPy/pandas), or R to build the covariance matrix from historical return data and perform the matrix multiplication. This matrix approach is the standard method professional risk engines use to calculate portfolio risk for large investment portfolios holding different asset classes.
Beyond Volatility: Measuring Downside Risk and Tail Scenarios
Standard deviation treats upside and downside equally. Many investors care more about large losses. Calculating portfolio risk involves statistical metrics and stress tests beyond simple volatility.
Maximum drawdown is the largest peak-to-trough loss over a period. During 19 February to 23 March 2020, US equity portfolios saw roughly 30–35% drawdowns. This single number tells you how bad the worst-case scenario actually looked.
Semideviation and Sortino ratio only consider negative deviations from a target return. The Sortino ratio formula is (Rp − T) / σd, where T is a target return and σd is downside deviation. A higher Sortino means more return per unit of downside risk.
Value at Risk (VaR) estimates maximum potential loss over a given time and confidence level. A 1-day 95% VaR of -3% means on 95% of days, the portfolio should not lose more than 3%. Conditional Value at Risk (CVaR) goes further, measuring the average loss beyond the VaR threshold for truly extreme scenarios. Monte Carlo Simulation generates thousands of potential future price paths for assets, giving a richer picture of tail risks than any single metric.
Stress testing evaluates portfolio performance under extreme market conditions. You might simulate a 2008-style credit crisis, a pandemic crash, or a sudden 2% spike in interest rates. These tests reveal whether your entire portfolio holds together when correlations spike toward 1 and diversification temporarily fails.
Use volatility-based measures for day-to-day risk management, but supplement them with drawdown and scenario metrics for managing risk during potential risks and extreme events.
Factors That Drive Portfolio Risk: Asset Allocation, Correlation, and Concentration
Asset allocation explains most of long-term overall risk. Consider three common splits:
Allocation | Equities | Bonds | Typical Annual Volatility |
|---|---|---|---|
Aggressive | 80% | 20% | ~12–15% |
Moderate | 60% | 40% | ~8–11% |
Conservative | 20% | 80% | ~4–6% |
Increasing allocation to equities raises both expected return and higher volatility. More bonds or cash allocation reduces portfolio risk but also lowers portfolio expected return.
The correlation structure is central. A portfolio of only US tech stocks (same sector, high internal correlation) behaves very differently from a mix of US stocks, global ex-US stocks, and investment-grade bonds. Combining low-correlation assets lowers total portfolio risk significantly. Diversification can reduce overall portfolio risk below individual asset risks precisely because of these correlation dynamics. Hedging protects against potential losses in investments and can complement diversification.
Concentration risk matters enormously. If one stock represents 40% of total portfolio value, that single position dominates your risk profile. Even non-correlated assets in the remaining 60% may not offset the concentration effect on overall portfolio risk.
Additional influences include macroeconomic regime changes, inflation cycles, central bank policy, and geopolitical events. During crises, correlations tend to spike, a phenomenon known as "correlations going to 1." This means that risk estimates based on calm periods may understate true risk. Understanding these drivers is essential before you try to calculate portfolio risk or adjust asset allocation.

How to Use Portfolio Risk in Practice: Rebalancing and Risk Targets
Many investors aim to set a target risk level based on their investor's risk tolerance. A moderate investor might target 8% annualized portfolio volatility and then choose asset allocation to stay near that number.
Rebalancing is a dynamic process that keeps your portfolio aligned with targets. After market movements cause drift (say equities rally from 60% to 70% of the portfolio), portfolio risk mechanically increases. Regular rebalancing maintains target risk profiles in a portfolio by trimming winners and adding to underweights. Investors aim to do this quarterly or annually.
Risk budgeting takes this further. Instead of only allocating capital, you allocate total portfolio risk across different investment strategies. For example, half of total risk from equities, half from alternatives. This approach focuses on marginal contributions to variance rather than dollar amounts.
Lifecycle example: An investor approaching retirement might gradually shift from a 75/25 equity/bond mix to a 40/60 split between 2026 and 2035. This lowers portfolio volatility and drawdown exposure as the time horizon shortens, reflecting evolving risk tolerance.
Portfolio risk management involves identifying and addressing potential risks continuously. Risk calculations should be updated whenever there are material allocation changes, large contributions or withdrawals, or major market regime shifts. Regular portfolio reviews align investments with changing risk tolerance, keeping your risk score consistent with your investment objectives.
Limits of Manual Portfolio Risk Calculation and When to Use Tools
Hand-calculating portfolio risk is realistic only for simple 2–3 asset portfolios. Beyond 10–20 holdings, tracking all the covariance pairs and ensuring data quality becomes impractical.
Common data challenges include needing clean price histories adjusted for dividends and splits, dealing with multiple currencies, handling missing data, and choosing appropriate lookback windows (3 years vs. 10 years can produce very different results).
Professional risk systems update variance-covariance matrices daily or weekly and often use exponentially weighted methods to react to recent volatility spikes. Individual investors should use a portfolio risk calculator, broker dashboard, or spreadsheet template rather than maintaining large covariance matrices by hand.
All risk estimates are backward-looking and model-based. Extreme events outside historical samples can still produce losses well beyond calculated portfolio risk. No model captures every possible outcome.
What an effective portfolio risk tool should provide:
Portfolio volatility (standard deviation)
Contribution to risk by individual assets
Correlation matrix across holdings
Scenario analysis and stress-test results
Downside metrics like VaR, CVaR, and maximum drawdown
FAQs on Portfolio Risk Calculation and Interpretation
How often should I recalculate portfolio risk? Portfolio risk should be calculated at least quarterly, and always after major allocation changes or large cash flows. In volatile markets, monthly recalculation helps you catch drift early.
Is higher portfolio risk always bad? Not necessarily. Higher risk often comes with higher expected return. Whether a given risk level is appropriate depends on your risk tolerance, time horizon, and investment objectives. Younger investors with decades ahead can typically absorb more volatility.
Can I reduce volatility without lowering expected return? Yes. Diversification across different asset classes with low or negative correlations can reduce risk for the same expected return. Adding non-correlated assets is the classic way investors aim to minimize risk without sacrificing returns. A diversified portfolio built on low correlation assets can deliver the same portfolio return at lower volatility.
What's the difference between portfolio risk and individual risk? Individual risks measure a single asset's volatility in isolation. Portfolio risk depends on weights, correlations, and how individual assets interact within the mix. A high-volatility asset can actually reduce overall portfolio risk if it's negatively correlated with existing holdings.
How does portfolio risk relate to Sharpe and Sortino ratios? Both are risk-adjusted return measures. The Sharpe ratio divides excess return by portfolio standard deviation (total volatility). The Sortino ratio uses only downside deviation, penalizing harmful volatility rather than all variability. These ratios help you judge whether the risk you're taking is being adequately compensated.
Portfolio risk isn't something you calculate once and forget. It's a living number that shifts with market movements, allocation drift, and changing correlations. Start with the two-asset formula to build your intuition, scale up to the matrix method as your portfolio grows, and use the right tools to keep your risk management strategies current. Recalculate your portfolio risk today, and make sure the number you get matches the risk level you're actually willing to live with.