The Capital Asset Pricing Model (CAPM) is a cornerstone of modern finance used to determine the theoretically required rate of return of an asset. While usually used to find the "Expected Return," we can algebraically rearrange the formula to isolate and solve for the Risk-Free Rate (Rf).
The Derivation Formula
The standard CAPM formula is: E(Ri) = Rf + βi * [E(Rm) – Rf]
To solve for the Risk-Free Rate (Rf), we rearrange the equation as follows:
Expected Return of Asset (E(Ri)): The total profit anticipated from an investment, expressed as a percentage.
Expected Return of Market (E(Rm)): The historical or projected return of a broad market index, such as the S&P 500.
Beta (β): A measure of an asset's volatility in relation to the overall market. A beta of 1 moves exactly with the market.
Risk-Free Rate (Rf): The theoretical return of an investment with zero risk, often represented by Government Treasury Bills.
Practical Example
Suppose you have an asset with an expected return of 9% and a Beta of 0.8. The general market is expected to return 11%. What is the implied risk-free rate?
Important Note: This calculator encounters a mathematical singularity when Beta is exactly 1.0. In a perfect CAPM world, if β = 1, the asset return must equal the market return, and the risk-free rate becomes indeterminate through this specific rearrangement.
function calculateRiskFreeRate() {
var eRi = parseFloat(document.getElementById("assetReturn").value);
var eRm = parseFloat(document.getElementById("marketReturn").value);
var beta = parseFloat(document.getElementById("betaValue").value);
var resultArea = document.getElementById("capm-result-area");
var resultDiv = document.getElementById("riskFreeResult");
var explanationP = document.getElementById("calculationExplanation");
if (isNaN(eRi) || isNaN(eRm) || isNaN(beta)) {
alert("Please enter valid numeric values for all fields.");
return;
}
// Edge case: Beta = 1
if (Math.abs(beta – 1) < 0.00001) {
resultArea.style.display = "block";
resultArea.style.backgroundColor = "#f8d7da";
resultDiv.style.color = "#721c24";
resultDiv.innerHTML = "Indeterminate";
explanationP.innerHTML = "When Beta is 1, the asset return should theoretically equal the market return, making it impossible to solve for the Risk-Free Rate using this formula.";
return;
}
// Rf = (E(Ri) – Beta * E(Rm)) / (1 – Beta)
var rf = (eRi – (beta * eRm)) / (1 – beta);
resultArea.style.display = "block";
resultArea.style.backgroundColor = "#e8f5e9";
resultDiv.style.color = "#27ae60";
resultDiv.innerHTML = rf.toFixed(3) + "%";
explanationP.innerHTML = "Based on an asset return of " + eRi + "%, market return of " + eRm + "%, and a beta of " + beta + ".";
}