Home / Guides / Cost of Equity and CAPM in Excel

Cost of Equity and CAPM in Excel

Valuation · Updated June 2026

The cost of equity is the return shareholders require for holding a company's stock. The capital asset pricing model, CAPM, estimates it from three inputs: the risk-free rate, the stock's beta, and the equity risk premium. It is the discount rate for equity cash flows and a building block of WACC, so the inputs deserve care and a clean Excel layout.

The CAPM formula and its inputs

CAPM is Re = Rf + beta*(Rm-Rf). Rf is the risk-free rate, usually a long-dated government bond yield. beta measures how much the stock moves with the market. The term (Rm-Rf) is the equity risk premium, the extra return the market is expected to deliver over the risk-free rate.

Beta scales the premium: a beta of 1 earns the full market premium, a beta above 1 earns more for higher systematic risk, and a beta below 1 earns less. Multiplying beta by the premium and adding the risk-free rate gives the required return on the stock.

Worked example

The risk-free rate is 4 percent, the stock's beta is 1.2, and the equity risk premium is 5 percent. Apply CAPM directly.

  1. Equity risk premium contribution: =1.2*0.05 returns 0.06, or 6 percent.
  2. Cost of equity: =0.04+1.2*0.05 returns 0.10, or 10 percent.
  3. Raise beta to 1.5: =0.04+1.5*0.05 returns 0.115, or 11.5 percent.
  4. Lower beta to 0.8: =0.04+0.8*0.05 returns 0.08, or 8 percent.
InputValue
Risk-free rate Rf4.0%
Beta1.2
Equity risk premium5.0%
Cost of equity Re10.0%

=0.04+1.2*0.05 returns 0.10.

Laying it out in a model

CAPM has only three inputs, so give each its own cell and compute the cost of equity in one output cell that feeds the rest of the model.

Pitfalls

The most common error is hardcoding an input inside the formula, such as =0.04+1.2*0.05, which buries the risk-free rate, beta, and premium where no reviewer can flex them. Pull each into its own cell so the model is auditable.

Confusing the equity risk premium (Rm-Rf) with the full market return Rm double counts the risk-free rate and inflates the cost of equity. Using a short-term bill yield for Rf when valuing a long-lived business mismatches the horizon; match the risk-free maturity to the cash-flow horizon, typically a 10-year or longer yield.

Do it in one click

Find Hardcodes

Find Hardcodes spots a risk-free rate or beta typed inside a CAPM formula so each input stays in its own auditable cell.

Get ModelMint See how it works

FAQ

What is the equity risk premium in CAPM?

It is the term (Rm-Rf), the extra return investors expect from the market above the risk-free rate. Beta scales it: cost of equity is the risk-free rate plus beta times the equity risk premium. It is usually estimated at around 4 to 6 percent.

Which risk-free rate should I use?

A long-dated government bond yield that matches the horizon of the cash flows, commonly the 10-year. Using a short-term bill rate for a long-lived business mismatches the maturity and distorts the discount rate.

Is cost of equity the same as WACC?

No. Cost of equity is the return required by shareholders only. WACC blends the cost of equity and the after-tax cost of debt by their weights. Cost of equity discounts equity cash flows; WACC discounts unlevered cash flows.