Core Path · L3.1.08

The risk-free asset and the capital market line

12 minPortfoliosAsset pricing

Know these first

By the end you will be able to

  1. 1Show that mixing a risky portfolio with a risk-free asset gives a straight line, the capital allocation line, with slope equal to its Sharpe ratio.
  2. 2Find the tangency portfolio, w ∝ Σ⁻¹(μ − r_f1), as the risky portfolio with the highest Sharpe ratio.
  3. 3Use two-fund separation to build a portfolio for any appetite for risk by lending or borrowing.
  4. 4Describe how the picture changes when borrowing costs more than lending.
  5. 5Explain why, in equilibrium, the tangency portfolio is the market portfolio, and state the capital market line.

Why it matters

Add one more asset, a Treasury bill paying 3.0% for certain, and the question “which efficient portfolio should we hold?” gets a surprising answer: the same risky portfolio for everyone. A cautious pension fund and an adventurous hedge fund should hold global equities, emerging markets and bonds in the same proportions; they differ only in how much of their money sits in T-bills, or is borrowed.

Core explanation

One straight line beats the curve

Illustrative dataRiskAtoms Group's investment portfolio

The group invests £1bn of surplus assets across five asset classes. The expected returns, volatilities and correlations are round, made-up long-run assumptions in pounds, a year, not estimates from market data. The risk-free rate (a one-year Treasury bill) is 3.0%. The same numbers run through the whole module.

Asset classExpected returnVolatilitySharpe ratio
Global equities7.0%16%0.250
Emerging-market equities8.5%22%0.250
Government bonds3.5%6%0.083
Corporate bonds4.5%8%0.188
Property6.0%18%0.167

Mixing with a risk-free asset

A risk-free asset pays a known return rfr_f: no variance and no covariance with anything. Put a share yy of your money in a risky portfolio P and 1−y1 - y in the risk-free asset. The two-asset formula of L3.1.01: Portfolio return and risk loses two of its three terms, and both expected return and volatility scale with yy. Plotted, the mixes form a straight line from (0,rf)(0, r_f) through P: the capital allocation line (CAL).

The slope is P's Sharpe ratio, met in L2.1.03: Risk and return: the extra expected return for each extra point of volatility. Below P on the line (y<1y < 1) you are lending; above it (y>1y > 1), you are borrowing to hold more than 100% of P.

The steepest line

Every risky portfolio has its own line. The group's current mix (5.45% at 9.50%) has a Sharpe ratio of 0.258; government bonds alone, 0.083; global equities, 0.250. A steeper line gives more return for every level of risk, so rotate the line upwards until it just touches the efficient frontier. The point it touches is the tangency portfolio T: the risky portfolio with the highest Sharpe ratio, here 0.288.

efficient frontier (risky assets)CAL through TCAL through the current mixCAL through government bonds
0%2%4%6%8%10%0%4%8%12%16%20%24%volatility (a year)expected returnGlobal eq.EM eq.Gov. bondsCorp. bondsPropertycurrentT
All lines start at the risk-free rate, 3.0%. Short sales allowed; illustrative inputs.

The calculus is in the formal version below; the answer is a formula you have nearly met before. In L3.1.07: Mean-variance optimisation the frontier was built from Σ−1μ\Sigma^{-1}\mu and Σ−11\Sigma^{-1}\mathbf 1. The tangency portfolio uses the excess returns instead:

The tangency portfolio

wT=Σ−1(μ−rf1)1′Σ−1(μ−rf1),Sharpe ratioT=(μ−rf1)′ Σ−1(μ−rf1)w_T = \frac{\Sigma^{-1}(\mu - r_f\mathbf 1)}{\mathbf 1'\Sigma^{-1}(\mu - r_f\mathbf 1)}, \qquad \text{Sharpe ratio}_T = \sqrt{(\mu - r_f\mathbf 1)'\,\Sigma^{-1}(\mu - r_f\mathbf 1)}

For global equities, emerging-market equities, government bonds, with the inverse from L3.1.07: Mean-variance optimisation:

Σ−1(μ−rf1)=(90.09−48.9415.05−48.9447.29−4.3815.05−4.38280.99)(0.0400.0550.005)=(0.98750.62181.7662)\Sigma^{-1}(\mu - r_f\mathbf 1) = \begin{pmatrix} 90.09 & -48.94 & 15.05 \\ -48.94 & 47.29 & -4.38 \\ 15.05 & -4.38 & 280.99 \end{pmatrix}\begin{pmatrix} 0.040 \\ 0.055 \\ 0.005 \end{pmatrix} = \begin{pmatrix} 0.9875 \\ 0.6218 \\ 1.7662 \end{pmatrix}
sum=3.3755,wT=(0.29250.18420.5232),μT=5.44%,  σT=8.51%,  Sharpe=0.2873\text{sum} = 3.3755, \qquad w_T = \begin{pmatrix} 0.2925 \\ 0.1842 \\ 0.5232 \end{pmatrix}, \qquad \mu_T = 5.44\%,\ \ \sigma_T = 8.51\%,\ \ \text{Sharpe} = 0.2873

Check the shortcut: (μ−rf1)′z=0.2873\sqrt{(\mu - r_f\mathbf 1)'z} = 0.2873, the same Sharpe ratio. For all five asset classes, T holds 29.4% global equities, 18.3% emerging-market equities, 41.8% government bonds, 13.1% corporate bonds, −2.6% property: 5.51% expected return at 8.72% volatility.

Two-fund separation

Once T is found, the investor's appetite for risk decides only one number: how much to put in T. This is two-fund separation: every mean-variance investor holds the same two funds, the risk-free asset and T. With a volatility target σ∗\sigma^*, hold y=σ∗/σTy = \sigma^*/\sigma_T in T:

InvestorVolatilityIn TIn T-billsExpected returnBest risky-only
Cautious4.00%45.9%54.1%4.15%not reachable
Balanced8.72%100.0%0.0%5.51%5.51%
Adventurous12.00%137.7%−37.7%6.46%6.39%

The cautious investor lends 54% of its money at 3.0%: no portfolio of risky assets alone has volatility as low as 4% (the minimum is 5.27%). The adventurous one borrows 38% and earns 6.46%, more than the 6.39% of the best risky-only portfolio with the same risk. Except at T itself, the line lies above the curve. The two-fund theorem of L3.1.07: Mean-variance optimisation needed two risky funds; with a risk-free asset, one of the two funds is risk-free.

When borrowing costs more

Few investors can borrow at the Treasury bill rate. If lending earns 3.0% but borrowing costs 3.5%, there are two tangency portfolios: T for lending and a second one, Tb, for the borrowing rate, with 7.42% expected return at 16.16% volatility. The best set of portfolios is now in three pieces: the lending line up to T, the risky frontier from T to Tb, and a flatter borrowing line beyond. At 12% volatility the best portfolio is on the frontier itself (6.39%). At 18%, borrow 11% at 3.5% to earn 7.87%, against 8.19% if borrowing cost only 3.0%. And if the borrowing rate reaches the minimum-variance portfolio's return (3.92%), borrowing is never worth it.

The market portfolio and the capital market line

Now suppose every investor uses mean and variance, agrees on the inputs, and can lend and borrow at rfr_f. Then every investor holds the same T. Add up all their holdings and you get T, scaled up; but together investors must hold every risky asset there is. So in equilibrium T must be the market portfolio M, every asset in proportion to its market value. Its capital allocation line has a name of its own, the capital market line (CML):

E[Rp]=rf+E[RM]−rfσM σp\mathbb E[R_p] = r_f + \frac{\mathbb E[R_M] - r_f}{\sigma_M}\,\sigma_p

Its slope, the market's Sharpe ratio, is the market price of risk. The CML prices efficient portfolios only: single assets and inefficient mixes, such as the group's current one, lie below it. What return a single asset should offer is the question of L3.1.09: CAPM, beta and the security market line.

Assumptions, and the real world

The argument needs investors who care only about mean and variance over one period, agree on every input, trade without costs or taxes, and lend and borrow freely at one rate. None of these holds exactly. Investors disagree, face different borrowing costs and constraints, and hold liabilities that change which asset is “risk-free” for them. The result is a benchmark, not a description: it explains why a broad index fund plus cash is a sensible default, and gives L3.1.09: CAPM, beta and the security market line its starting point.

The formal version

Risky assets with expected returns μ and covariance matrix Σ; a risk-free asset with return rf<A/Cr_f < A/C (the minimum-variance portfolio's return, 3.92% here).

CAL through P:E[R]=rf+μP−rfσP σ,σ=y σP, y≥0Tangency:wT=Σ−1(μ−rf1)1′Σ−1(μ−rf1)=Σ−1(μ−rf1)A−rfCMaximum Sharpe ratio:θT2=(μ−rf1)′Σ−1(μ−rf1)=B−2rfA+rf2CCML (in equilibrium):E[Rp]=rf+E[RM]−rfσM σp\begin{aligned} &\text{CAL through } P: && \mathbb E[R] = r_f + \frac{\mu_P - r_f}{\sigma_P}\,\sigma, \qquad \sigma = y\,\sigma_P,\ y \ge 0 \\ &\text{Tangency:} && w_T = \frac{\Sigma^{-1}(\mu - r_f\mathbf 1)}{\mathbf 1'\Sigma^{-1}(\mu - r_f\mathbf 1)} = \frac{\Sigma^{-1}(\mu - r_f\mathbf 1)}{A - r_f C} \\ &\text{Maximum Sharpe ratio:} && \theta_T^2 = (\mu - r_f\mathbf 1)'\Sigma^{-1}(\mu - r_f\mathbf 1) = B - 2r_fA + r_f^2 C \\ &\text{CML (in equilibrium):} && \mathbb E[R_p] = r_f + \frac{\mathbb E[R_M] - r_f}{\sigma_M}\,\sigma_p \end{aligned}

The same answer another way. With a risk-free asset, the budget constraint disappears from the risky weights: whatever is not invested is lent. Minimise 12w′Σw\tfrac12 w'\Sigma w subject only to a target excess return w′(μ−rf1)=ew'(\mu - r_f\mathbf 1) = e; the Lagrangian of L3.1.07: Mean-variance optimisation gives w=λ Σ−1(μ−rf1)w = \lambda\,\Sigma^{-1}(\mu - r_f\mathbf 1). Every optimal risky holding points in the same direction, and only its size λ\lambda depends on the target. Rescaled to add up to one, it is wTw_T.

How T moves with the rate. T depends on rfr_f. As the rate rises towards A/CA/C, the tangency point slides up the frontier and leverage in the risky weights grows; at A/CA/C itself, A−rfC=0A - r_f C = 0 and there is no tangency portfolio on the efficient half.

Risk-free rateT: expected returnT: volatilitySharpe ratioGovernment bonds in T
1.0%4.42%5.70%0.60086.4%
2.0%4.68%6.23%0.43075.7%
3.0%5.51%8.72%0.28841.8%
3.5%7.42%16.16%0.243−36.3%

Try it

Start with lending at 3.0% and a 10% volatility target: you borrow a little to hold more than 100% in T. Raise the cost of borrowing and watch the line kink and the second tangency point move up. Then lower the volatility target until you are lending, and switch to long-only to see how little the ban on short sales changes T here.

Try itLend, hold or borrow

Risky assets

Global eq.33.8%
EM eq.21.0%
Gov. bonds47.9%
Corp. bonds15.0%
Property−3.0%
T-bills−14.7%
Borrowing
5.88%
Volatility10.00%
In risky assets114.7%
Tangency Sharpe ratio0.288
Risky frontier at this risk5.87%

Borrow 15% of your capital at 3.0% and hold 115% in the tangency portfolio T.

risky assets onlybest with T-bills (and borrowing)your portfoliocurrent mix
0%2%4%6%8%10%0%4%8%12%16%20%24%volatility (a year)expected returnrisk-freeT

Small dots: the five asset classes. Illustrative inputs.

Worked example

Moving the group onto the capital market line

From the current mix to T plus T-bills

Step 1 of 4
  1. 1

    Where the group is

    Current mix: 5.45% expected return, 9.50% volatility, Sharpe ratio (5.45%−3.0%)/9.50%=0.258(5.45\% - 3.0\%) / 9.50\% = 0.258.

All figures use the module's illustrative inputs. In practice the group would weigh liabilities, liquidity and capital, not only volatility.

Regulatory lens

Regulation has to decide what counts as risk-free, and it treats a government's own debt in its own currency generously. Under the bank capital rules (in the EU, Article 114 of the Capital Requirements Regulation), such exposures can carry a 0% credit risk weight. In the EU, Solvency II's standard formula exempts a member state's central government debt in its own currency from the spread and concentration risk charges an insurer such as RiskAtoms Insurance must hold, but not from interest-rate risk: free of default risk is not free of price risk. In September 2022 long-dated gilt yields rose so fast that the Bank of England announced temporary purchases of long-dated gilts on 28 September to restore orderly markets (Bank of England, 2022). Insurers also value their liabilities with a prescribed risk-free rate curve, published by EIOPA in the EU and by the PRA in the UK. More on this in M4.6: Solvency II and insurance regulation.

Spark Atoms

Spark AtomEggs and baskets
James Tobin set out the separation result in 1958, in a paper about why people hold money. After he won the 1981 Nobel prize, he summed up his portfolio work for journalists as “don't put all your eggs in one basket”.
Spark AtomReward to variability
William Sharpe introduced the ratio in 1966 to compare mutual funds, calling it the “reward-to-variability” ratio. Others named it after him; in a 1994 article he called it the Sharpe ratio himself and set out how to use it.

Key takeaways

  • Mixing a risky portfolio with a risk-free asset gives a straight line, the capital allocation line, whose slope is the portfolio's Sharpe ratio.
  • The best line touches the frontier at the tangency portfolio, w_T ∝ Σ⁻¹(μ − r_f1), the risky portfolio with the highest Sharpe ratio.
  • Two-fund separation: everyone holds the same risky portfolio; appetite for risk only sets how much is lent or borrowed.
  • If borrowing costs more than lending, the best set kinks: a lending line, part of the frontier, then a flatter borrowing line.
  • In equilibrium the tangency portfolio is the market portfolio, and its line is the capital market line: the price of risk for efficient portfolios.

Reaction

Check what stuck

Question 1 · objective 1

The risk-free rate is 2%. Portfolio P expects 8% with 20% volatility. You put 60% in P and 40% in the risk-free asset. What is your volatility, in per cent?

%

Question 2 · objective 1

Same P (8% expected return, 20% volatility) and a 2% risk-free rate. What is the slope of its capital allocation line?

Question 3 · objective 3

The tangency portfolio has 10% volatility. You want 15% and can borrow at the risk-free rate. What share of your capital goes into the tangency portfolio, in per cent?

%

Question 4 · objective 2

Which risky portfolio should an investor who can lend and borrow at r_f combine with the risk-free asset?

Question 5 · objective 4

Borrowing costs more than lending. What does the best set of portfolios look like?

Question 6 · objective 5

Why, in equilibrium, is the tangency portfolio the market portfolio?

Glossary

Risk-free asset
An asset whose return over the holding period is known in advance: no variance, and no covariance with anything. In practice, a short-dated government bill in the investor's own currency.
Capital allocation line
The straight line of all mixes of the risk-free asset with one risky portfolio P, in the risk-return picture. Its slope is P's Sharpe ratio.
Sharpe ratio
Excess return over the risk-free rate divided by volatility: (μ − r_f)/σ. The slope of a capital allocation line.
Tangency portfolio
The risky portfolio with the highest Sharpe ratio, where the steepest capital allocation line touches the efficient frontier.
Two-fund separation
With a risk-free asset, the choice of risky portfolio (the tangency portfolio, the same for everyone) is separate from the choice of how much risk to take (how much to lend or borrow). Tobin, 1958.
Lending portfolio
A mix with part of the money in the risk-free asset (y < 1): less risk and less expected return than the tangency portfolio.
Borrowing portfolio
A mix that borrows at the risk-free rate (or more) to hold more than 100% in the risky portfolio (y > 1): leverage.
Market portfolio
All risky assets, each held in proportion to its total market value.
Capital market line
The capital allocation line through the market portfolio: E[R] = r_f + (E[R_M] − r_f)/σ_M × σ. It holds for efficient portfolios.

Deep Dives & Origins

Deep Dives

  • J. Tobin, “Liquidity Preference as Behavior Towards Risk”, Review of Economic Studies, 25(2), 1958. Advanced.
  • Z. Bodie, A. Kane and A. J. Marcus, Investments, McGraw-Hill, the chapters on capital allocation and optimal risky portfolios. Intermediate.

Origins

  • J. Tobin, “Liquidity Preference as Behavior Towards Risk”, Review of Economic Studies, 25(2), 1958, pp. 65–86.
  • W. F. Sharpe, “Capital Asset Prices: A Theory of Market Equilibrium under Conditions of Risk”, Journal of Finance, 19(3), 1964, pp. 425–442.
  • W. F. Sharpe, “Mutual Fund Performance”, Journal of Business, 39(1), Part 2, 1966, pp. 119–138.
  • W. F. Sharpe, “The Sharpe Ratio”, Journal of Portfolio Management, 21(1), 1994, pp. 49–58.
  • Bank of England, market notice on gilt market operations, 28 September 2022.

Watch this lesson

Video version

Prefer to watch? The same lesson as a 12-minute video will sit here, made from this page's script.