Modern Portfolio Theory Explained: Markowitz, the Efficient Frontier, CAPM and the Sharpe Ratio
How modern portfolio theory works, from Markowitz's 1952 paper to CAPM and the Sharpe ratio, with a worked two-asset efficient frontier on 98 years of data and the theory's limits.
Modern portfolio theory (MPT) is the framework, introduced by Harry Markowitz in 1952, for choosing a portfolio by looking at the expected return and risk of the whole portfolio rather than of each holding separately. Its central insight is that what an asset adds to a portfolio’s risk depends on how it moves with everything else, measured by covariance, so combining assets that don’t move together can lower risk without giving up return.
In short: for any set of assets, there is a set of portfolios that offer the highest expected return for each level of risk (measured as standard deviation). That set is the efficient frontier. Add a risk-free asset and the best risky portfolio becomes the one with the highest Sharpe ratio (excess return per unit of risk), and every investor’s best choice is some mix of that portfolio and the risk-free asset. William Sharpe’s capital asset pricing model (1964) took the next step: if everyone does this, the only risk the market rewards is the part you can’t diversify away, measured by beta. The ideas are foundational; the inputs are fragile, and the theory’s predictions have well-documented empirical problems.
Our introduction to diversification covers why holding many stocks reduces single-company risk. This piece covers the mathematics underneath it, with a worked example, and where it breaks.
The misconception: “diversification means owning lots of things”
Markowitz addressed this directly in “Portfolio Selection” (Journal of Finance, Vol. 7, No. 1, March 1952): “A portfolio with sixty different railway securities, for example, would not be as well diversified as the same size portfolio with some railroad, some public utility, mining, various sort of manufacturing, etc.” The reason, he wrote, is that “it is generally more likely for firms within the same industry to do poorly at the same time than for firms in dissimilar industries.” And: “in trying to make variance small it is not enough to invest in many securities. It is necessary to avoid investing in securities with high covariances among themselves.”
Diversification is about how holdings move together, not how many there are.
Markowitz 1952: the expected return-variance rule
Markowitz opened by separating portfolio selection into two stages: forming beliefs about securities, and choosing a portfolio given those beliefs. His paper is “concerned with the second stage.”
He first rejected the rule that an investor should simply maximise expected return. That rule, he showed, always points to putting everything in the single security with the highest expected return, so it “never implies that there is a diversified portfolio which is preferable to all non-diversified portfolios.” Since “diversification is both observed and sensible,” a rule that doesn’t imply it “must be rejected both as a hypothesis and as a maxim.”
He proposed instead the E-V rule: investors treat expected return (E) as desirable and variance of return (V) as undesirable, and should choose among the portfolios with “minimum V for given E or more and maximum E for given V or less.” Those are the efficient portfolios. Two features are often forgotten:
- He was explicit that the inputs are beliefs, possibly subjective, and that the paper “does not consider the difficult question of how investors do (or should) form their probability beliefs.”
- He recognised that diversification has a floor: “The returns from securities are too intercorrelated. Diversification cannot eliminate all variance.”
Markowitz shared the 1990 Nobel Memorial Prize in Economic Sciences with Merton Miller and William Sharpe.
The mathematics, for two assets
For a portfolio with weight w in asset 1 and (1 - w) in asset 2:
Expected return: E(Rp) = w x E(R1) + (1 - w) x E(R2)
Variance: Var(Rp) = w² x σ1² + (1 - w)² x σ2² + 2 x w x (1 - w) x ρ x σ1 x σ2
where σ is each asset’s standard deviation (its volatility) and ρ is the correlation between them. Expected return is a straight weighted average. Risk is not: unless ρ equals 1, portfolio standard deviation is less than the weighted average of the two standard deviations. That gap is the benefit of diversification, and its size depends entirely on ρ.
The weight that minimises variance is:
w(min) = (σ2² - ρσ1σ2) / (σ1² + σ2² - 2ρσ1σ2)
How many stocks? The covariance floor
Extend the formula to N stocks held in equal weights. If each stock has the same standard deviation σ and every pair has the same correlation ρ, portfolio variance is:
Var(Rp) = ρσ² + (1 - ρ)σ² / N
The second term shrinks as N grows; the first does not. That first term is the covariance floor Markowitz described. Take a stylised case: every stock has a standard deviation of 35% and every pair a correlation of 0.25.
| Number of stocks | Portfolio standard deviation |
|---|---|
| 1 | 35.00% |
| 5 | 22.14% |
| 10 | 19.95% |
| 20 | 18.77% |
| 50 | 18.02% |
| 500 | 17.55% |
| Limit (infinitely many) | 17.50% |
Most of the reduction comes from the first ten to twenty holdings. After that, adding stocks barely helps, because what remains is market-wide risk that every stock shares. Sharpe’s CAPM, below, is built on exactly this split between diversifiable and non-diversifiable risk.
Worked example: US stocks and Treasury bonds, 1928 to 2025
Using Aswath Damodaran’s annual US return data (S&P 500 including dividends, 10-year Treasury bonds and 3-month Treasury bills), computed from the 98 calendar years 1928 to 2025:
| Arithmetic mean | Standard deviation | |
|---|---|---|
| S&P 500 | 11.85% | 19.40% |
| 10-year Treasury bonds | 4.82% | 7.90% |
| 3-month Treasury bills | 3.41% | (used as risk-free) |
| Correlation of stocks and bonds | 0.02 |
The frontier
| Stocks / bonds | Expected return | Standard deviation | Sharpe ratio |
|---|---|---|---|
| 0 / 100 | 4.82% | 7.90% | 0.18 |
| 10 / 90 | 5.53% | 7.41% | 0.29 |
| 20 / 80 | 6.23% | 7.48% | 0.38 |
| 30 / 70 | 6.93% | 8.10% | 0.43 |
| 40 / 60 | 7.64% | 9.17% | 0.46 |
| 50 / 50 | 8.34% | 10.54% | 0.47 |
| 60 / 40 | 9.04% | 12.12% | 0.46 |
| 80 / 20 | 10.45% | 15.63% | 0.45 |
| 100 / 0 | 11.85% | 19.40% | 0.44 |
Three things stand out.
- Adding stocks to an all-bond portfolio first lowers risk. A 10/90 mix has higher return (5.53%) and lower volatility (7.41%) than 100% bonds. An all-bond portfolio is therefore not efficient in this data: there is a portfolio that beats it on both counts.
- The minimum-variance portfolio is about 13.8% stocks, with an expected return of 5.79% and a standard deviation of 7.36%. Everything with fewer stocks than that is below the frontier.
- The highest Sharpe ratio, using the average T-bill return of 3.41% as the risk-free rate, is the tangency portfolio: about 50.8% stocks and 49.2% bonds, with an expected return of 8.40%, standard deviation of 10.67%, and a Sharpe ratio of 0.467.
Correlation is the lever
Holding the means and volatilities fixed, here is the standard deviation of a 60/40 portfolio under different correlations:
| Correlation | 60/40 standard deviation |
|---|---|
| -0.5 | 10.43% |
| 0.0 | 12.06% |
| 0.5 | 13.50% |
| 1.0 | 14.80% |
At a correlation of 1.0 there is no diversification benefit at all: 14.80% is just 0.6 x 19.40% + 0.4 x 7.90%.
The problem is that correlation is not stable. In the same dataset:
| Period | Stock-bond correlation (annual returns) |
|---|---|
| 1928-1964 | -0.14 |
| 1965-1999 | +0.36 |
| 2000-2021 | -0.65 |
| 1928-2025 | +0.02 |
From 2000 to 2021, bonds tended to rise when stocks fell, which made the 60/40 portfolio unusually smooth. In 2008, the S&P 500 returned -36.55% while 10-year Treasuries returned +20.10%. In 2022, they fell together: -18.04% for stocks and -17.83% for bonds, in Damodaran’s data. A frontier drawn with 2000-2021 correlations would have badly understated the risk of 2022. (Our article on stocks vs bonds has more on why the relationship shifts with inflation.)
Adding a risk-free asset: Tobin and the capital market line
James Tobin (“Liquidity Preference as Behavior Towards Risk,” Review of Economic Studies, 1958) showed that once investors can hold a riskless asset, the choice splits in two. First, find the single best risky portfolio. Second, decide how much of your money to put in it versus the riskless asset. This is the separation theorem.
Mixing the tangency portfolio with the risk-free asset traces a straight line, the capital market line:
E(Rp) = Rf + [(E(Rt) - Rf) / σt] x σp
The slope is the tangency portfolio’s Sharpe ratio. In our example, an investor who wants a standard deviation of 12.12% (the 60/40 portfolio’s risk) could, in theory, hold 113.6% in the tangency portfolio, borrowing the extra 13.6% at the risk-free rate, for an expected return of 9.08%. That is barely above the 60/40 portfolio’s 9.04%, because in this long sample 60/40 sits very close to the tangency point. With different inputs, the gap can be large, and the theory’s prescription of leverage becomes more aggressive.
CAPM: Sharpe 1964
William Sharpe’s “Capital Asset Prices: A Theory of Market Equilibrium under Conditions of Risk” (Journal of Finance, Vol. 19, No. 3, September 1964) asked what happens if every investor behaves this way. He assumed a common pure rate of interest at which everyone can borrow or lend, and “homogeneity of investor expectations.” Then everyone holds the same tangency portfolio, which must be the market portfolio of all risky assets.
Sharpe described the market as offering investors two prices: “the price of time, or the pure interest rate,” and the price of risk. Individual assets, he showed, need not lie on the capital market line, because their “total risk is obviously not the relevant influence on its price.” What matters is what he called systematic risk, the part of an asset’s return explained by its relationship with the market portfolio. That gives the security market line:
E(Ri) = Rf + βi x [E(Rm) - Rf]
where beta is the covariance of the asset with the market divided by the market’s variance. John Lintner (Review of Economics and Statistics, 1965) and Jan Mossin (Econometrica, 1966) derived the model independently. The bracketed term is the market’s equity risk premium. The CAPM’s most durable practical consequence is the case for holding the market portfolio cheaply, which is the intellectual basis of index funds.
The Sharpe ratio
Sharpe introduced the “reward-to-variability” ratio in “Mutual Fund Performance” (Journal of Business, 1966) and revisited it in “The Sharpe Ratio” (Journal of Portfolio Management, Fall 1994):
Sharpe ratio = (portfolio return - risk-free return) / standard deviation of the excess return
In the example, 100% stocks earned (11.85% - 3.41%) / 19.40% = 0.44, and the tangency portfolio 0.47. (Strictly, the denominator should be the volatility of returns in excess of the risk-free rate; with T-bills being much less volatile than stocks, the difference is small here.)
Things that distort it:
- Non-normal returns. Strategies that sell insurance (for example, writing out-of-the-money options) can show high Sharpe ratios for years, then lose heavily. Standard deviation does not capture tail risk well.
- Smoothed prices. Assets valued by appraisal or by model (private equity, some real estate, some hedge funds) report artificially low volatility, inflating the ratio.
- Short samples. A Sharpe ratio estimated over a few years has a wide confidence interval.
- Leverage doesn’t change it. Borrowing to double a portfolio doubles both excess return and volatility, so the ratio is unchanged. That is a feature: it compares strategies independent of leverage. But it says nothing about whether the leverage can survive a drawdown.
The limits
Estimation error: “error maximisers”
The optimiser treats its inputs as known. They aren’t. Richard Michaud (“The Markowitz Optimization Enigma: Is ‘Optimized’ Optimal?”, Financial Analysts Journal, 1989) called mean-variance optimisers “estimation-error maximizers”: they put the most weight on assets whose expected returns are overestimated and whose risks are underestimated.
Even in our two-asset case, the sensitivity is large. Changing one input by one percentage point and recomputing the tangency portfolio:
| Change to input | Stock weight in tangency portfolio |
|---|---|
| Base case | 50.8% |
| Stock mean 1 point lower (10.85%) | 47.5% |
| Stock mean 1 point higher (12.85%) | 53.8% |
| Bond mean 1 point lower (3.82%) | 80.2% |
| Bond mean 1 point higher (5.82%) | 37.1% |
| Correlation -0.30 instead of 0.02 | 39.2% |
| Correlation +0.30 | 76.6% |
A one-point change in the expected bond return, well within the uncertainty of any forecast, moves the “optimal” stock weight from 37% to 80%. With dozens of assets and a full covariance matrix, the problem compounds: the optimiser finds spurious opportunities in noise.
Naive diversification often does about as well
Victor DeMiguel, Lorenzo Garlappi and Raman Uppal (“Optimal Versus Naive Diversification: How Inefficient Is the 1/N Portfolio Strategy?”, Review of Financial Studies, 2009) compared fourteen optimisation models with simply splitting money equally across assets. Out of sample, none of the optimised strategies consistently beat equal weighting on Sharpe ratio, because estimation error ate the theoretical gains.
CAPM’s empirical problems
- The beta-return line is too flat. Fischer Black, Michael Jensen and Myron Scholes (1972, in Studies in the Theory of Capital Markets) found that low-beta stocks earned more, and high-beta stocks less, than CAPM predicts.
- Beta does not explain the cross-section. Eugene Fama and Kenneth French (“The Cross-Section of Expected Stock Returns,” Journal of Finance, 1992) found that, for 1963 to 1990, average returns had little relation to beta once size and book-to-market were accounted for. This led to multi-factor models.
- The market portfolio is unobservable. Richard Roll (“A Critique of the Asset Pricing Theory’s Tests,” Journal of Financial Economics, 1977) argued that the true market portfolio includes all assets (real estate, private businesses, human capital), so CAPM cannot be tested with a stock index as a proxy.
Other simplifications
- Variance as risk. Investors care about losses and drawdowns more than about upside volatility. Variance treats them the same.
- One period. The original model has no rebalancing, no changing opportunities, no liabilities to fund, and no spending needs. Real investors have all of these.
- Borrowing at the risk-free rate. Individuals cannot. Black (“Capital Market Equilibrium with Restricted Borrowing,” Journal of Business, 1972) showed that restricting borrowing changes the predictions in ways consistent with the flat beta-return line.
- Taxes, costs, and constraints. Ignored in the base model; not ignored by real portfolios.
How professionals use it anyway
- Constraints. Practitioners cap weights, forbid short positions, and limit turnover, which stops the optimiser from making extreme bets on noisy inputs.
- Better inputs. Shrinkage estimators pull the covariance matrix toward a structured target (Olivier Ledoit and Michael Wolf, “Honey, I Shrunk the Sample Covariance Matrix,” Journal of Portfolio Management, 2004). The Black-Litterman model (Fischer Black and Robert Litterman, Financial Analysts Journal, 1992) starts from the expected returns implied by market weights and adjusts them only where the investor has explicit views.
- Risk budgeting. Some allocators skip expected returns entirely and size positions by their contribution to risk, which avoids the most error-prone input.
- As a language. Even when nobody runs an optimiser, MPT supplies the vocabulary: correlation, efficient, systematic versus idiosyncratic risk, Sharpe ratio, beta. The market-portfolio idea also underpins the long-running debate between active and passive management.
What can go wrong
- Trusting historical correlations. The 2000-2021 negative stock-bond correlation reversed in 2022.
- Optimising on point estimates. Small input changes produce very different portfolios.
- Mistaking volatility for all of risk. Liquidity, tail risk, inflation and the risk of needing to sell at a bad time are not in the standard deviation.
- Leverage on the capital market line. The theory says leverage a high-Sharpe portfolio to reach your target risk. In practice, borrowing costs more than the risk-free rate, and margin calls arrive at the worst moment.
- Over-reading the Sharpe ratio. High ratios from short or smoothed histories are common and unreliable.
The short version
Markowitz’s 1952 paper replaced “pick the best stocks” with “pick the best combination,” with risk measured by portfolio variance and driven by covariances. Using Damodaran’s 1928-2025 US data, adding a little equity to an all-bond portfolio lowered risk, the minimum-variance portfolio held about 14% stocks, and the highest Sharpe ratio portfolio held about 51% stocks. Tobin added the risk-free asset and the separation theorem; Sharpe’s 1964 CAPM concluded that only systematic risk, measured by beta, is rewarded; his 1966 ratio became the standard measure of risk-adjusted return. The limits are serious: optimal weights swing with tiny input changes, equal weighting often does as well out of sample, stock-bond correlations change sign over time, and CAPM’s beta has not explained returns well since at least Fama and French’s 1992 study. The framework is best used as a way of thinking about combinations and risk, not as a machine that produces the right portfolio. Nothing here is a recommendation of any allocation.
Related: Diversification Explained · Beta · Stocks vs Bonds · The Equity Risk Premium
Stay in the loop
New explainers, by email
One short email when a new plain-English explainer goes up. No price tips, no "next 100x coin", no selling your address. Unsubscribe any time.