Two assets and the efficient frontier
Markowitz turned diversification into a formula. This lesson sets out the risk of a two-asset mix, tests it on 25 years of real stock and bond returns, and shows which mixes are efficient and which can be ruled out. A calculator lets you change the correlation and the mix and find the lowest-risk portfolio.
- Level
- Beginner
- Reading time
- About 21 minutes
- Know this first
- Diversification and portfolio risk
By the end you will be able to:
- compute the expected return and volatility of a two-asset mix
- explain how correlation changes the risk of a mix and why a correlation of +1 gives no benefit
- find the lowest-risk mix of two assets with the formula
- tell efficient mixes from dominated ones
- read the efficient frontier of stocks and bonds from real data
- list what the method assumes and why the inputs are its weak point
From “don’t put all your eggs in one basket” to a formula
The diversification lesson showed with real data that a mix of stocks and bonds can have a lower volatility than the average of the two, because they do not move together. This lesson turns that observation into a method. It asks a sharper question: of all the ways to divide money between two assets, which are worth considering, and which can be ruled out without any need to know your taste for risk?
Harry Markowitz answered in a 1952 paper, “Portfolio Selection”, in the Journal of Finance. He showed how to measure the risk of each holding and to combine holdings to get the highest return for a given level of risk. He shared the 1990 economics prize with William Sharpe and Merton Miller for work in this field. The key move was to judge an investment by how it changes the risk of the whole portfolio, and not by its own risk.
This lesson sets out the formula for two assets, applies it to real US stock and bond returns from 2000 to 2024, and introduces the efficient frontier and the minimum-variance portfolio. A calculator lets you change the mix, the correlation and the risk of each asset. The lessons that follow add a risk-free asset, many assets, and the problem of not knowing the inputs.
The two assets
Return and risk need numbers. The table uses the same yearly data as the diversification lesson: the S&P 500 with dividends and the 10-year Treasury bond, for the 25 years from 2000 to 2024. The average is the arithmetic mean of the yearly returns, the volatility is their standard deviation, and the correlation measures how much the two moved together, from −1 (always opposite) to +1 (always together).
| 2000 to 2024 | Average yearly return | Volatility (standard deviation) |
|---|---|---|
| US stocks (S&P 500) | 9.25% | 18.08% |
| 10-year US Treasury bonds | 4.04% | 8.93% |
| Correlation of the two | -0.38 |
Stocks returned more and were much more volatile. The correlation of -0.38 was negative in this period, which helped. It has not always been negative: in some decades, such as when inflation and interest rates rose together, stock and bond returns have moved up and down together, and a mix then diversifies less. The figures describe the past 25 years and are not a forecast.
The risk of a mix
The expected return of a mix is easy: it is the weighted average of the two returns. Risk is not. For weights w in stocks and 1 − w in bonds, the variance of the mix is w²σS² + (1 − w)²σB² + 2w(1 − w)ρσSσB, where σ is the volatility of each asset and ρ (rho) is the correlation. The volatility is its square root.
The last term carries the diversification. When ρ = +1 the formula collapses to the plain weighted average of the two volatilities, and there is no benefit. When ρ is lower, the last term shrinks, and the risk of the mix falls below that average. When ρ is negative it can fall even below the risk of the safer asset.
As a check on the formula, take 60% stocks and 40% bonds with volatilities of 18% and 9% and a correlation of −0.4. The three terms are 0.36 × 324 = 116.64, 0.16 × 81 = 12.96, and 2 × 0.6 × 0.4 × (−0.4) × 18 × 9 = −31.10. The variance is 98.50 and the volatility is 9.92%. The weighted average of the two volatilities is 14.4%, so the mix removes 4.48 points of risk.
| Correlation | Volatility of the 60/40 mix | Risk removed compared with +1 |
|---|---|---|
| +1.0 | 14.40% | 0.00 |
| +0.5 | 12.98% | 1.42 |
| 0.0 | 11.38% | 3.02 |
| −0.5 | 9.52% | 4.88 |
| −1.0 | 7.20% | 7.20 |
The table shows how much the correlation matters for the same mix. With a correlation of +1 there is no benefit. At 0 the volatility falls from 14.4% to 11.38%. At −1 the swings of the two assets offset each other as much as they can, and the volatility is 7.2%. The returns are the same in every row, since a correlation does not affect the average.
Change the mix
The calculator below applies the formula. Choose the share in stocks, the correlation between the two assets, the expected return and volatility of stocks and the volatility of bonds, whose return is held at 4% a year. It shows the return and the volatility of your mix, how much risk is removed compared with no diversification, and the lowest-risk mix for the same inputs. The starting values are round numbers close to the 2000 to 2024 figures above.
A mix of 60% stocks and 40% bonds, with stocks returning 9.0% at 18% volatility, bonds 4% at 9% and a correlation of -0.4, has an expected return of 7.00% and a volatility of 9.92%. With no diversification benefit its volatility would be 14.40%, so combining the two removes 4.48% of risk. The lowest-risk mix holds 27.3% in stocks with a volatility of 6.42% and a return of 5.36%. Your mix holds at least as much in stocks as the lowest-risk mix, so it lies on the efficient part of the curve: more return can only be had by accepting more risk.
Five experiments. First, leave the settings alone. Stocks return 9% with 18% volatility, bonds return 4% with 9%, and the correlation is −0.4. A mix of 60% stocks has an expected return of 7.00% and a volatility of 9.92%. If the two moved together exactly the volatility would be 14.40%, so diversification has removed 4.48 points. The lowest-risk mix holds 27.3% in stocks and has a volatility of only 6.42%, lower than either asset alone.
Second, set the correlation to +1.0. The gain falls to zero and the volatility of the mix is 14.40%. The lowest-risk mix becomes all bonds. Third, set the correlation to −0.9. The volatility of the same mix drops to 7.72%. Fourth, return to −0.4 and move the mix to 100% stocks. The risk is 18% and nothing is removed, but this mix is on the efficient part of the curve, since it holds more stocks than the lowest-risk mix. Fifth, move the mix to 10% stocks. This holds less than the lowest-risk mix, so it is dominated: the lowest-risk mix has lower volatility (6.42% against 7.56%) and a higher return (5.36% against 4.50%).
The frontier
Now apply the formula to every mix of the real data, from all bonds to all stocks. The table gives the return and volatility of six mixes at the 2000 to 2024 averages, and of the lowest-risk mix.
| Mix | Average return | Volatility |
|---|---|---|
| 0% stocks, 100% bonds | 4.04% | 8.93% |
| 20% stocks, 80% bonds | 5.08% | 6.69% |
| 40% stocks, 60% bonds | 6.12% | 7.20% |
| 60% stocks, 40% bonds | 7.17% | 10.06% |
| 80% stocks, 20% bonds | 8.21% | 13.89% |
| 100% stocks, 0% bonds | 9.25% | 18.08% |
| Lowest-risk mix: 26.6% stocks | 5.43% | 6.51% |
Plot these points with volatility along the bottom and return up the side and they form a curve that bulges to the left. All bonds has a volatility of 8.93%, but the mix with 27% in stocks has a lower volatility of 6.51%, with a higher return (5.43% against 4.04%). Adding some stocks to an all-bond portfolio raised its return and lowered its risk at once. This was a feature of these 25 years, and it depends on the negative correlation.
Efficient and dominated mixes
The curve has two parts, divided at the lowest-risk point. Every mix below that point, with less in stocks, is dominated: there is another mix with the same or lower risk and a higher return, so no one who prefers more return to less would pick it. Every mix above it is efficient: more return can only be had by accepting more risk. The efficient part is called the efficient frontier.
This is the useful result. Without knowing anything about an investor’s attitude to risk, the dominated mixes can be eliminated. The choice of where to stand on the frontier then depends on how much risk the investor can bear: a person near retirement picks a point toward the left and a young saver may pick one further right. With many assets, the frontier is the outer edge of all the portfolios that can be built from them, found by the same formula with a table of volatilities and correlations.
What the method assumes
The frontier is an exact result given its inputs, and the inputs are the weak point. The method treats risk as volatility, so a rise as large as a fall counts equally, though investors dislike falls more. It assumes that returns, volatilities and correlations are known and stay the same, though they are estimated from a short period and change from one period to the next. It assumes returns are roughly symmetric, and in crashes assets that normally move independently often fall together.
The next lesson adds an asset with no risk, a Treasury bill, which makes one risky mix the best choice for everyone. Later lessons look at how errors in the inputs distort the answer, and at how portfolio returns can be explained by a few underlying factors.
What this lesson leaves out
- Past data. The averages, volatilities and correlation are from 2000 to 2024 and are not forecasts.
- Two assets only. Real portfolios hold many assets, and the frontier then needs a table of volatilities and correlations.
- Risk as volatility. The method counts ups and downs equally and does not look at the worst outcomes directly.
- Round numbers in the calculator. The starting values are round numbers near the 25-year figures, and bonds are held at a 4% return.
- No costs or taxes. Fees, taxes and trading costs are left out.
- Not advice. The lesson does not say what mix suits any person.
Common mistakes
Averaging volatilities
The volatility of a mix is below the weighted average of the two volatilities unless the correlation is +1.
Assuming the correlation is fixed
It changes over time and can rise in a crisis.
Reading the lowest-risk mix as the best
It is the safest point of the curve, and it may give too little return for a given investor.
Thinking diversification lowers returns
The return of a mix is the weighted average of the returns. Only the risk is lower.
Treating the frontier as a forecast
It is exact for its inputs, and the inputs are estimates.
Ignoring the dominated part of the curve
A mix with less in stocks than the lowest-risk mix gives up return and risk together.
Questions to answer
1. A mix has 60% in stocks returning 9% and 40% in bonds returning 4%. What is its expected return?
Show the working
0.6 × 9 + 0.4 × 4 = 7.0%.
2. Stocks have 18% volatility, bonds 9%, and the correlation is −0.4. What is the volatility of the 60/40 mix?
Show the working
The variance is 98.50 and the volatility is 9.92%.
3. What would its volatility be if the correlation were +1?
Show the working
The weighted average, 0.6 × 18 + 0.4 × 9 = 14.4%.
4. How much risk does diversification remove here?
Show the working
4.48 points of volatility.
5. What happens to the lowest-risk mix if the correlation is +1?
Show the working
It is all bonds, since no mix does better than the safer asset.
6. What does the real-data correlation of the two assets show?
Show the working
-0.38, so over 2000 to 2024 they tended to move in opposite directions.
7. What was the lowest-risk mix in the real data?
Show the working
About 27% in stocks, with a volatility of 6.51% and a return of 5.43%.
8. What makes a mix dominated?
Show the working
Another mix has the same or lower risk and a higher return.
9. Why is the method sensitive to its inputs?
Show the working
It assumes that returns, volatilities and correlations are known and fixed, and they are estimates from a limited period.
Where this is used
- An adviser compares mixes of stocks and bonds against a client’s tolerance for risk.
- A pension fund sets a target mix for its main asset classes.
- A fund of funds chooses how much to give to each manager.
- A company with several divisions asks how far their profits move together.
- An investor checks whether a new holding adds risk or reduces it for the whole portfolio.
- A student learns why a portfolio can be less risky than each of its holdings.
Key terms
- Expected return
- The weighted average of the returns of the holdings.
- Volatility
- The standard deviation of returns.
- Correlation
- A measure from −1 to +1 of how much two returns move together.
- Variance
- The square of volatility.
- Minimum-variance portfolio
- The mix with the lowest risk.
- Efficient frontier
- The set of portfolios with the highest return for each level of risk.
- Dominated portfolio
- A portfolio for which another has the same or lower risk and a higher return.
- Mean-variance analysis
- Choosing portfolios by their average return and variance.
- Diversification benefit
- The gap between the volatility of a mix and the weighted average of the volatilities of its holdings.
- Rho
- The Greek letter used for correlation.
Questions people ask
Why is the risk of a mix lower than the average of the two risks?
Because the two do not move together exactly, so gains in one partly offset losses in the other.
Can a mix have less risk than both of its assets?
Yes, if the correlation is low enough. The lowest-risk mix in the real data had a lower volatility than either stocks or bonds.
Does a negative correlation always last?
No. Stock and bond returns have moved together in some periods.
Is the efficient frontier a recommendation?
No. It shows which choices are worth considering, and the investor picks a point on it.
Why use volatility as risk?
It is simple and the formulas work with it, though it treats gains and losses alike and has other limits.
Should I hold the lowest-risk mix?
The lesson does not recommend a mix. It shows how the pieces fit, and a suitable mix depends on the person.
Sources and review
- Library of Economics and Liberty, Harry Markowitz, for the paper “Portfolio Selection” in the Journal of Finance, volume 7, number 1, pages 77 to 91 (1952), the idea of measuring the risk of holdings and combining them for the highest return at a given risk, and the 1990 prize in economic sciences shared with William Sharpe and Merton Miller.
- Aswath Damodaran, NYU Stern, Historical returns on stocks, bonds and bills: 1928-2024, for the annual returns of the S&P 500 including dividends and of the 10-year US Treasury bond for 2000 to 2024, the same dataset as the diversification lesson.
- US Securities and Exchange Commission, Investor.gov, Beginners’ guide to asset allocation, diversification, and rebalancing, for the point that different asset classes have not moved up and down at the same time. Read for the diversification lesson.
- Any corporate finance or investments textbook, for the formula for the variance of a two-asset portfolio and the minimum-variance weight. Standard results, written from general knowledge and checked here by a second method.
Review note: the 1952 paper and the 1990 prize were read on the page named above. The yearly returns come from the dataset in the diversification lesson, and the averages, volatilities and correlation shown here were computed from them for this lesson. The formulas are standard and were checked in code by a different method. The calculator uses round numbers near those averages and a bond return of 4%, and is not a forecast. The comments about the limits of the method are from general knowledge.
How the numbers were checked: each fact taken from a source was read from that source or from the summary named, and every number worked out in this lesson was recomputed in code by a second method. Returns, volatilities and correlations used in the examples are either computed from the dataset named above or are invented round numbers, as each example says.
The calculator in this lesson was checked by running its script and an independent calculation side by side at the starting settings and at every setting used in the experiments, and the two agreed.