We often say that risk and return are two sides of the same coin. So, when assessing the performance of a portfolio, we need to consider its risk as well as its return. In the previous lesson, we focused on portfolio return. Now, we turn our attention to portfolio risk.

#### Contents

## Portfolio risk calculator

You can use the **portfolio risk calculator** below for portfolios containing up to three assets. Please note the following instructions:

- For Asset 1, enter its variance (
) and its covariances with Asset 2 (σ*σ*_{1}^{2}) and Asset 3 (_{12}*σ*)._{13} - For Asset 2, enter its variance (
*σ*) and its covariance with Asset 3 (_{2}^{2}*σ*)._{23} - Finally, for Asset 3, enter its variance (
*σ*) only._{3}^{2} - If your portfolio consists of 2 assets only, just leave 0s in the fields that you don’t need.
- Make sure that investment weights add up to 100% (see the “sum of weights (%)” in the last row).
- The calculator allows for both positive investment weights and negative investment weights (i.e., short selling).

## Portfolio risk formula

In the previous lesson, we explained that a portfolio’s return is simply a weighted average of the returns of assets that constitute the portfolio. And, the weights are determined by the amount invested in each asset. This led us to the formula for portfolio return *R _{P}*:

where *w _{i}* is the investment weight for asset

*i*and

*R*is the realized return for asset

_{i}*i*. In an earlier lesson, we introduced the variance of returns (let’s denote that as

*σ*for asset

_{i}^{2}*i*) as a measure of risk. Could we then calculate the variance of returns on a portfolio

*as a weighted average of the variance of assets in that portfolio? In other words, would the following equation capture portfolio risk?*

*σ*_{P}^{2}The answer is no. When calculating * σ_{P}^{2}*, we need to consider not only the variance of each asset but also the

**covariance**between each pair of assets. To understand why, imagine a portfolio with two assets only. Suppose that when the price of one asset goes up, the price of the other tends to go down. These opposite movements would partially cancel out each other, reducing the volatility of portfolio returns. So, the

**portfolio risk formula**is:

where *w _{i}* is the investment weight for asset

*i*,

*w*is the investment weight for asset

_{j}*j*, and

*σ*is the covariance between assets

_{ij}*i*and

*j*.

### Portfolio variance with two assets

For a portfolio containing two assets (A and B), the general portfolio risk formula simplifies into:

So, in a two-asset portfolio, * σ_{P}^{2}* depends on:

- The variance of returns for each asset (
*σ*_{A}^{2}and*σ*_{B}^{2}). - The covariance between the returns of asset A and asset B (
*σ*)._{AB} - And, the investment weights (
*w*and_{A}*w*)._{B}

### Portfolio variance with three assets

If a third asset (C) is added to the portfolio, we have:

Then, in a three-asset portfolio, * σ_{P}^{2}* depends on:

- The variance of returns for each asset (
*σ*_{A}^{2},*σ*_{B}^{2}, and*σ*_{C}^{2}). - The covariance between each pair of assets (
*σ*,_{AB}*σ*, and_{AC}*σ*)._{BC} - And, the investment weights (
*w*,_{A}*w*, and_{B}*w*)._{C}

### Portfolio variance with *N* assets

If we kept adding assets to the portfolio, we’d end up with the following formula:

This means that for a portfolio of any size, portfolio risk depends on the individual risk of each asset in the portfolio (*σ*_{1}^{2}, *σ*_{2}^{2}, …, *σ*_{N}^{2}), the covariance terms (*σ _{12}*,

*σ*, …,

_{13}*σ*) and investment weights (

_{N-1 N}*w*,

_{1}*w*, …,

_{2}*w*).

_{N}##### Summary

In this lesson, we have explained the portfolio risk formula, highlighting the importance of covariances between asset pairs. We have also provided a handy portfolio risk calculator.

Further reading:

Markowitz (1991), “Foundations of Portfolio Theory“, *The Journal of Finance*, Vol. 46 (2), pp. 469-477.

##### What is next?

This lesson is part of our free course on investments.

**Next lesson**: We’ll investigate how investors can conduct mean-variance optimization to construct portfolios that are efficient in terms of risk and return.**Previous lesson**: We explained how to calculate portfolio returns.