iLearnFintech Glossary Formulas Cases Sandboxes
Investing/Portfolio theory

The efficient frontier

9 min readCoreUpdated December 2026
In short

Mixing assets that don't move together lowers risk without giving up return. Markowitz showed how to find the best mixes: for each level of risk, the portfolio with the highest expected return. Together they form the efficient frontier. Add a risk-free asset, and one risky mix becomes the best for everyone.

What it is

A portfolio's expected return is the weighted average of its assets' expected returns. Its risk is not. Volatility depends on how the assets move together, measured by their correlation. Unless the correlation is +1, the portfolio's volatility is below the weighted average of the volatilities.

Harry Markowitz turned this into a method, mean-variance optimisation:

  • Estimate expected returns, volatilities and correlations.
  • For every target return, find the weights with the lowest variance.
  • Plot the results. The curve is the minimum-variance frontier. Its upper half, from the minimum-variance portfolio upwards, is the efficient frontier. Portfolios below it are inefficient, because another mix gives more return for the same risk.

Now add a risk-free asset, such as short government bills. Combining it with any risky portfolio gives a straight line. The steepest such line touches the frontier at the tangency portfolio. That line, the capital market line, beats every other mix. So every investor should hold the same risky portfolio, and only choose how much to put in it versus the risk-free asset. This is called two-fund separation.

The weak point is the inputs. Expected returns are very hard to estimate, and the optimiser loves errors: it puts big weights on assets whose returns are overestimated. In practice, people add limits on weights or blend the inputs with market weights.

The intuition

An ice cream seller does well in sunny summers, an umbrella seller in rainy ones. Own half of each, and your income swings much less than with either one alone, while the average stays about the same.

The frontier is a menu. Every point on it is a fair deal between risk and return. Your own taste for risk decides what you order from the menu, not what is on it.

2%4%6%8%10%0%4%8%12%16%Risk-free 3.5%Bonds onlyLowest risk: 10% sharesBest mix: 45% sharesShares onlyCapital market lineRisk (volatility)Expected return
Mixes of a bond fund and a share fund. Holding only bonds is inefficient: putting 10% in shares gives more return with less risk. The dashed line combines the risk-free rate with the best mix, 45% shares, and beats every point on the curve.

The math

\[E[r_p] = w\,E[r_1] + (1-w)\,E[r_2]\]
\[\sigma_p^2 = w^2\sigma_1^2 + (1-w)^2\sigma_2^2 + 2w(1-w)\,\rho\,\sigma_1\sigma_2\]
\[\text{With many assets: } \sigma_p^2 = \mathbf{w}^\top \Sigma\, \mathbf{w}\]

Where

\(w\)
Weight of asset 1; the rest is in asset 2
\(\rho\)
Correlation between the two assets' returns
\(\Sigma\)
The covariance matrix of all the assets

In words: Return is a plain weighted average. Risk is below the average whenever the correlation is under 1, and that gap is the gain from diversifying.

An example

A bond fund is expected to return 4.5% with a volatility of 6%. A share fund is expected to return 8.5% with a volatility of 16%. Their correlation is 0.1, and the risk-free rate is 3.5%.

In sharesExpected returnVolatility
0%4.5%6.0%
10% (lowest risk)4.9%5.8%
45% (best mix)6.3%8.2%
100%8.5%16.0%

Adding 10% shares to bonds raises the return and lowers the risk. The best mix to combine with the risk-free asset holds 45% in shares. Its Sharpe ratio, the extra return per unit of risk, is 0.34, against 0.31 for shares alone. An investor who wants less risk holds some of the risk-free asset next to it. One who wants more borrows to buy more of it.

In Python

Trace the frontier for 101 mixes, then find the lowest-risk mix and the one with the best Sharpe ratio.

import numpy as np

er = np.array([0.045, 0.085])                 # bonds, shares
vol = np.array([0.06, 0.16])
cov = np.outer(vol, vol) * np.array([[1, 0.1], [0.1, 1]])
rf = 0.035

w = np.linspace(0, 1, 101)                    # weight in shares
W = np.column_stack([1 - w, w])
ret = W @ er
risk = np.sqrt(np.einsum("ij,jk,ik->i", W, cov, W))
i, j = risk.argmin(), ((ret - rf) / risk).argmax()
print("lowest risk: shares", w[i], "| return", round(ret[i] * 100, 1), "| risk", round(risk[i] * 100, 1))
print("best mix:    shares", w[j], "| return", round(ret[j] * 100, 1), "| risk", round(risk[j] * 100, 1),
      "| Sharpe", round((ret[j] - rf) / risk[j], 2))

In the real world

Portfolio Selection, 1952

In 1952 Harry Markowitz, then a graduate student at the University of Chicago, published an article called "Portfolio Selection". Investment advice had mostly been about finding good shares one at a time. Markowitz showed that what matters is how each share changes the risk of the whole portfolio. At his thesis defence, Milton Friedman argued that it wasn't economics; Markowitz got his degree anyway. In 1990 he shared the Nobel Prize in economics with William Sharpe and Merton Miller.

Think about it

A colleague runs an optimiser and gets a portfolio with 70% in one small emerging market, because its expected return was set at 14%. What would you do?

Show a model answer

Question the input before the output. A 14% guess for one market may be far too high, and the optimiser piled into it precisely because of that guess. Try a more modest estimate and see how far the weight drops. If it collapses, the result was driven by the guess, not by real diversification. Add sensible limits per asset, or start from market weights and tilt only where you have strong reasons.

Reading the result

Read a portfolio by its risk as a whole: what the mix does, not each holding alone. Check whether another mix would give more return for the same risk, and how much the "best" weights change when the expected returns change a little.

Good signs

  • Thinking about how a new asset changes the risk of the whole portfolio
  • Using limits or market weights to tame the optimiser
  • Testing how the weights change when the inputs change

Watch out

  • Trusting optimised weights built on guessed expected returns
  • Assuming correlations stay low in a crisis, when they tend to rise
  • Judging each investment only on its own risk

Remember

  • Return averages; risk diversifies away when correlation is below 1.
  • The efficient frontier gives the best return for each level of risk.
  • With a risk-free asset, everyone holds the same risky mix, in different amounts.

Check yourself

Question 1 of 2Two assets each have a volatility of 20%. When does a 50/50 mix have the lowest volatility?

Question 2 of 2A portfolio lies below the efficient frontier. What does that mean?

Read more

  • Bodie, Kane & Marcus, Investments: chapters on capital allocation and on optimal risky portfolios

Spotted a mistake or have a wish?

Tell us in a line or two. The page name is sent along automatically.