The Capital Asset Pricing Model (CAPM) is the standard method for estimating the cost of equity (re), which is a required input when calculating the Weighted Average Cost of Capital (WACC) for DCF valuations. The CAPM is also used in portfolio theory to determine whether a stock should be included in a diversified portfolio based on its risk-reward profile.
The CAPM is limited in its real-world applications given its assumptions (as later discussed). However, the model and the finance theory behind it are foundational to more sophisticated multi-factor models that better estimate expected returns of stock market investments. Therefore, investors should understand the CAPM given its place in modern financial theory.
Capital Asset Pricing Model (CAPM) Explained
The Capital Asset Pricing Model (CAPM) is an investment theory and model of equity valuation proposed by William Sharpe (1964), John Lintner (1965), Jack Treynor (1961, 1962), and Jan Mossin (1966). It builds on the "Model of Portfolio Choice" created by Harry Markowitz (1959). The CAPM was developed to explain the relationship between the expected return of a stock market investment and market risk.
The CAPM formula is shown below:
Re = Rf + βL × (Rm - Rf)
where:
- Re = cost of equity
- Rf = risk-free rate
- βL = levered beta
- Rm = expected market return
- (Rm - Rf) = equity (aka market) risk premium
The expected return from a stock investment depends on the risk-free rate (Rf) and the equity risk premium (Rm - Rf), which is scaled by levered beta (βL).
A higher beta means the stock carries more systematic risk relative to the market, and therefore demands a higher expected return.
Note: The CAPM uses levered beta specifically because it reflects the risk to equity holders after accounting for the company's debt. This distinction matters when feeding the cost of equity into WACC calculations, where levered beta captures the financial risk equity shareholders bear.
Security Market Line (SML)
The security market line (SML) graphically represents the expected return E(Ri) for any security given its levered beta (βL). Expected return is on the vertical y-axis and beta on the horizontal x-axis.

The SML describes the relationship between beta and the fair value expected return for any stock. Comparing a security's market-implied expected return to its CAPM-required return indicates its valuation:
- Undervalued: Portfolio/security plotted above the SML. Actual return exceeds CAPM-expected return.
- Fairly Valued: Portfolio/security plotted on the SML. Actual return matches CAPM-expected return.
- Overvalued: Portfolio/security plotted below the SML. Actual return falls short of CAPM-expected return.
This chart can also be used to determine whether a stock is mispriced by the market, as demonstrated below with Home Depot (HD), the world's largest home improvement specialty retailer.
How to Calculate the CAPM
There are only three inputs that go into the CAPM calculation. Below are the steps on how to calculate the CAPM for Home Depot:
Step #1: Risk-Free Rate
To calculate the CAPM, begin by finding the risk-free rate (Rf). The risk-free rate is the theoretical rate of return on a zero-risk investment. There are two conditions for an asset to qualify as "risk-free":
- No default risk: There must be zero chance the issuer will fail to make promised payments. U.S. Treasury bonds are considered to have no default risk because the U.S. government can always print dollars to pay its debts.
- No reinvestment risk: The returns must be guaranteed for your entire analysis period. A short-term bond introduces reinvestment risk because you'd need to reinvest at potentially different rates when it matures.
The 10-year Treasury Note from the U.S. government is often used as a proxy for the risk-free rate.
This maturity is preferred because it satisfies both conditions: the U.S. government has never defaulted on its debt obligations, and the 10-year duration matches the long-term horizon of most stock valuations.
A shorter-term instrument (e.g., 3-month T-bill) would introduce reinvestment risk, while a 30-year bond may exceed the relevant investment horizon.
The 10-year U.S. Treasury rate can be found on FINRA. You can also reference the live chart below to see the up-to-date 10-year U.S. Treasury rate:
As of writing, the 10-year U.S. Treasury rate is 3.32%.
Step #2: Beta
Next, find levered beta (βL), which is a measure of systematic risk (aka undiversifiable or market risk) of a security compared to the overall market.
There are two types of risk:
- Systematic risk: Market-wide risk that portfolio diversification cannot eliminate (e.g., recessions, interest rates, inflation).
- Unsystematic risk: Company or industry-specific risk (e.g., financial obligation, management, location) that can be reduced through diversification.
Beta, as a measure of systematic risk, quantifies the volatility of a stock's movements when the market (i.e., the S&P 500 Index) moves up or down.
For most publicly traded companies, you can use a site like Yahoo Finance to find their beta. As of writing, Home Depot's beta (5-yr monthly) is 0.94.
Beta can also be calculated using the formula below:
βL = Covariance (Re, Rm) / Variance (Rm)
where:
- βL = levered beta
- Re = return on individual stock
- Rm = return on overall market
- Covariance = stock's return relative to the overall market
- Variance = how the market moves relative to its mean
The greater the standard deviation of the stock relative to the market, the higher the beta. More stock volatility relative to the market means a higher beta.
The trendline's formula slope in the chart above is equal to the calculated beta, which means that you can also use the slope equation in Excel to calculate beta.
Beta can be interpreted in four ways:
- Beta > 1.0: Stock offers higher volatility and higher expected returns than the market.
- Beta = 1.0: Stock has the exact same volatility and expected returns of the market.
- Beta < 1.0: Stock offers lower volatility and lower expected returns than the market.
- Beta < 0: Stock correlates negatively with the market (e.g., gold stocks/ETFs).
Get Our 50-Question Stock Analysis Checklist!
After researching hundreds of stocks, we built this 50-question checklist to guide your analysis and help you avoid costly mistakes.
Download ChecklistNote: When you calculate CAPM for different publicly traded companies, the only difference is their individual beta relative to the market. If the CAPM is being calculated on the same day, all other inputs (Rm and Rf) are the same.
Step #3: Expected Return of the Market
Finally, find the expected return of the market (Rm). Three methods exist:
- Analyst estimates: Use consensus long-term annual market return forecasts.
- Historical average returns: Use the arithmetic mean of annual market returns over a long-term period (10+ years).
- Historical CAGR: Use the compound annual growth rate of market returns over a long-term period (10+ years).
The historical CAGR method is preferred for the expected market returns, given the ambiguity of simple arithmetic mean calculations and analyst forecasts.
From 1971 to 2021 (50 years), the CAGR of the market was 11.24%. We'll use this number as the expected return of the market (Rm). You can also be conservative and use 10%, which is roughly the long-term average annualized historical return.
Step #4: Calculate and Interpret the CAPM
Now that we have all the inputs, we can calculate the CAPM for Home Depot:
Re (HD) = 3.32% + 0.94 × (11.24% - 3.32%) --> 10.76%
Home Depot's cost of equity per the CAPM is 10.76%. This is the expected return a stock market investor would currently demand for investing in Home Depot stock, given its level of systematic risk.
We can analyze Home Depot by comparing this theoretical return to its actual historical performance. The 10-year historical average annualized return of Home Depot stands at 22.28%, roughly twice the CAPM calculation of 10.76%.
This disparity suggests, from a CAPM perspective, that Home Depot's stock may have been undervalued historically. The actual return significantly exceeded the expected return estimated by CAPM based on $HD's beta of 0.94.
In the context of the SML, this would place Home Depot above the line, indicating past performance that surpassed the expected return for its level of market risk.
However, while this analysis points to historical performance, it does not necessarily imply that Home Depot is currently undervalued. The CAPM is a forward-looking measure, and factors like changing market conditions and investor expectations can alter a stock's valuation over time.
How to Calculate and Interpret the CAPM
This is an optional but highly-recommended section that covers the setup and steps you'll need to take to calculate CAPM on Excel. Previously, you saw how to go about calculating beta in Excel (with the spreadsheet linked in the beta section of this article).
However, now we'll go step-by-step on calculating this beta number and also all the other inputs to be able to calculate and better interpret the CAPM on Excel.
Step #1: Setup, Download, and Organize the Data
The first step in calculating the CAPM on Excel is to setup, download, and organize the data to perform our calculation and analysis. These steps are provided below:
- To perform any type of regression analysis, you must install the "Data Analysis" Excel ToolPak add-in program. Follow these steps to install the add-in on Excel: Open Excel --> File --> Options --> Add-ins --> Go --> Analysis ToolPak --> OK. Restart your Excel if the "Data Analysis" button/text doesn't initially show up under the "Data" tab on the Excel ribbon.
- Navigate to Yahoo Finance or some other data aggregator website for historical stock market financial data.
- Download the monthly, weekly, or daily adjusted close price data for the market (S&P 500) and your selected company. I typically use a 5-year period.
- Combine the adjusted close price data over the 5-year period from the S&P 500 and your selected company into one spreadsheet tab, then sort it by ascending order (meaning oldest dates come first). At this point, you should have a date column and two additional columns for the closing prices for the S&P and your selected company.
- Calculate the monthly, weekly, or daily return percentage for both the S&P 500 and your selected company in two separate columns. This formula is simply: [(new date's adjusted close price / previous date's adjusted close price) - 1]. Drag/copy this percentage return calculation to the bottom of your data set.
- Navigate to the "Daily Treasury Par Yield Curve Rates" page on the U.S. Department of Treasury website, where rates on the risk-free rate are regularly updated.
- Select the appropriate time period (e.g., 5-years) and download the CSV file. Copy and match the "10 Yr" column rates and dates to the current spreadsheet tab where all other data is currently located. This is easiest to accomplish if you're already using daily adjusted close price data.
Step #2: Calculate the Risk-Free Rate
After completing step #7 in the list above, the risk-free rate is rather simple to calculate:
- Use the =AVERAGE formula in Excel on the column for the 10-year daily treasury rates over the appropriate period.
- You can also just use today's rate on the U.S. 10-Year Treasury Note and skip this step altogether.
Step #3: Calculate Beta
As previously shown, you can calculate beta by using the standard beta formula (from covariance and variance) or by using the slope formula in Excel. It's also an output of any regression analysis.
- Use the =COVARIANCE.P Excel formula on the percentage return calculation columns you just made for your selected company and the S&P 500.
- Use the =VAR.P Excel formula on the percentage return calculation column for the S&P 500.
- Divide the covariance calculation by the variance calculation to get beta.
- You can also find beta by using the =SLOPE formula on the percentage return calculation columns for your selected company and the S&P 500.
Step #4: Calculate Expected Return of the Market
The expected return of the market is simply an average calculation of the percentage returns of the market over the appropriate period. However, this percentage (whether it be on a monthly, weekly, or daily closing price data set) must be converted into an annual/yearly percentage in order to be used in the CAPM calculation, as described below:
- The expected return of the market is just the average of the percentage return calculation column for the S&P 500, using the =AVERAGE Excel formula.
- If you have daily closing price data, use this formula to convert the result to an annual percentage: ryearly = (1 + rdaily)252 - 1. Note that you should use 252 instead of 365 because there 252 open trading days in the year.
- If you have weekly closing price data, use this formula to convert the result to an annual percentage: ryearly = (1 + rweekly)52 - 1
- If you have monthly closing price data, use this formula to convert the result to an annual percentage: ryearly = (1 + rmonth)12 - 1
Step #5: Calculate the CAPM
For this step, you'd just calculate the CAPM normally using the same formula. It's provided below again for your convenience:
Re = Rf + β × (Rm - Rf)
For our Home Depot example, given the difference in time periods and the slight differences in beta, the risk-free rate, and the expected market return, the CAPM for Home Depot is now 13.27%.
Step #6: Calculate the Excess Returns
To better interpret the CAPM, you can choose to calculate the excess returns of your selected company and the S&P 500. This is to find "alpha," the abnormal rate of return on a security or portfolio that exceeds what the CAPM predicted or expected in its valuation model:
- Create a new column on Excel and subtract the risk-free rate column from the percentage return calculation column for your selected company.
- Create a new column on Excel and subtract the risk-free rate column from the percentage return calculation column for the S&P 500.
- Use the =INTERCEPT Excel formula and select both of these new columns to find alpha. To interpret this alpha, we can create a regression analysis, as discussed below.
Step #7: Create a Regression Analysis
Performing a regression analysis will help you to understand whether a certain variable is statistically significant or useful in its current application. This is not something that can be accomplished through the formulas we've reviewed in the previous steps:
- Assuming you have the "Data Analysis" Excel ToolPak installed, navigate to Data --> Data Analysis --> Regression --> OK.
- "Input Y Range" is the dependent variable. This will be the excess returns column for your selected company.
- "Input X Range" is the independent variable. This will be the excess returns column for the S&P 500 Index.
- Select "Labels" if your column selections has labels in them and choose an output location for your regression. Click on the "OK" button.
After this regression is completed, a summary output similar to the one shown below should result (without the formatting):

As you can see, the CAPM beta of this regression is 1.0131 and the intercept number of 0.0393% is the alpha. If the p-value for alpha or beta is greater than 5%, then the value you've computed for alpha or beta is not statistically significant (not useful). However, if the p-value is less than 5%, then the regression output is statistically significant (useful) for alpha and/or beta.
With our Home Depot example, our alpha is clearly not significant whereas our beta is significant. Ultimately, this means that by purchasing Home Depot stock at its current price and level of beta (which is practically the same as the market), there's not any significant excess return an investor should expect that the CAPM model does not explain.
CAPM Downsides and Assumptions
Many investors calculate the CAPM for their cost of equity because it considers the volatility of the stock (beta) and the interest rate environment from the risk-free rate (the U.S. 10-year Treasury rate). The CAPM formula also adds a market risk premium over the risk-free rate, as equity shareholders bear more risk than debt holders, and therefore require a higher rate of return than debt holders.
To elaborate, with the CAPM, the market risk premium (MRP or Rm - Rf) has a direct impact on the expected return of a stock (Re), which is dependent on the value of beta (β). Clearly, the CAPM has one risk-factor, beta. As beta increases, your expected return goes up, and vice versa. Therefore, according to the CAPM model, the only factor that is affecting your return is market risk, not firm-specific risk because portfolio's can be diversified.
This is where the CAPM falls short, as its only risk factor is beta, which is also just a measure of market volatility related risk, not total risk. As previously stated, the CAPM also comes with a number of assumptions, some more realistic than others. You can see these assumptions in the table below:
Clearly, the assumptions the CAPM comes with are another downside to the CAPM and its utility for investors.
In summary, the CAPM is a good starting point for understanding the cost of equity of a potential investment opportunity from a retail investment perspective, but because of the assumptions the model carries and because beta is the only risk factor, it lacks the ability to accurately capture and assess the risk-reward relationship of stock investments.
The Bottom Line
The capital asset pricing model (CAPM) is an investment theory and equity valuation model that was proposed to explain the relationship between the expected return on stock market investments and market risk. The model only has three inputs to calculate the cost of equity for an equity investment: the risk-free rate, the expected market return, and beta.
Given the U.S. government's solvency, the U.S 10-year Treasury Note is typically used as a proxy for the risk-free rate. The expected market return is just the average annualized returns of the S&P 500, which is about 10%. As a form of systematic risk, beta measures the volatility of stock movements relative to the market when it moves up or down. The market's beta is 1.0, and any CAPM beta greater than (less than) 1.0 means the equity investment offers higher (lower) volatility and higher (lower) expected returns than the market.
The CAPM leaves a lot to be desired in real-world application for investors, given its questionable assumptions and reliance on beta as a form of risk -- let alone its only form of risk. To better evaluate and explain returns in the stock market, more sophisticated investors should turn to multi-factor models such as the Arbitrage Pricing Theory (APT) model or the Fama and French Multifactor Models. Ultimately, these models add additional risk factors that help to better estimate expected returns of stock market investment opportunities, which can then be utilized in building strategic long-term portfolios.
