How to Calculate the Compound Annual Growth Rate (CAGR)
Understanding the true performance of an investment over time can be tricky, especially when returns fluctuate wildly from year to year. This is where the Compound Annual Growth Rate (CAGR) becomes an essential tool for investors and business analysts.
CAGR is not the actual return you received each year. Instead, it is a representational figure that describes the rate at which an investment would have grown if it had grown at a steady rate, and those returns were reinvested at the end of each year. It smoothes out the volatility of investment returns to provide a clearer picture of long-term performance.
The CAGR Formula Explained
The formula to calculate CAGR might look intimidating initially, but it requires only three pieces of data: the value you started with, the value you ended with, and the time period in between.
The mathematical formula is:
CAGR = ( Ending Value / Beginning Value )(1 / Number of Periods) – 1
Ending Value: The final value of the investment at the end of the period.
Beginning Value: The initial principal or investment amount.
Number of Periods: The duration of the investment, usually expressed in years.
Step-by-Step Calculation Example
Let's walk through a realistic example. Suppose you invested $10,000 into a portfolio. After 5 years, the portfolio is now worth $15,000. What is the CAGR?
Identify the variables:
Beginning Value = $10,000
Ending Value = $15,000
Number of Periods = 5 years
Divide Ending Value by Beginning Value: 15,000 / 10,000 = 1.5
Calculate the exponent (1 divided by years): 1 / 5 = 0.2
Raise the result of step 2 to the power of step 3: 1.50.2 = 1.08447…
Subtract 1: 1.08447 – 1 = 0.08447
Convert to percentage: 0.08447 * 100 = 8.45%
This means your investment grew at an average compounded annual rate of 8.45% over that 5-year period.
CAGR Calculator
Use the calculator below to quickly determine the Compound Annual Growth Rate for any investment scenario.
Compound Annual Growth Rate Calculator
Your CAGR is:
function calculateCAGR() {
// Get input values
var initialValStr = document.getElementById('initialValue').value;
var finalValStr = document.getElementById('finalValue').value;
var yearsStr = document.getElementById('numYears').value;
var errorDiv = document.getElementById('cagrError');
var resultBox = document.getElementById('cagrResultBox');
var resultValueDiv = document.getElementById('cagrResultValue');
// Reset displays
errorDiv.style.display = 'none';
resultBox.style.display = 'none';
errorDiv.innerHTML = ";
// Validate inputs exist
if (initialValStr === " || finalValStr === " || yearsStr === ") {
errorDiv.innerHTML = "Please fill in all fields.";
errorDiv.style.display = 'block';
return;
}
// Parse inputs to numbers
var initialVal = parseFloat(initialValStr);
var finalVal = parseFloat(finalValStr);
var years = parseFloat(yearsStr);
// Validate numeric values and logical constraints
if (isNaN(initialVal) || isNaN(finalVal) || isNaN(years)) {
errorDiv.innerHTML = "Please enter valid numeric values.";
errorDiv.style.display = 'block';
return;
}
if (initialVal <= 0) {
errorDiv.innerHTML = "Initial investment value must be greater than zero.";
errorDiv.style.display = 'block';
return;
}
if (years <= 0) {
errorDiv.innerHTML = "Number of years must be greater than zero.";
errorDiv.style.display = 'block';
return;
}
if (finalVal < 0) {
errorDiv.innerHTML = "Final value cannot be negative for this calculation.";
errorDiv.style.display = 'block';
return;
}
// The CAGR Calculation Formula: ((FV / PV)^(1 / n)) – 1
var totalGrowthRatio = finalVal / initialVal;
var exponent = 1 / years;
var cagrDecimal = Math.pow(totalGrowthRatio, exponent) – 1;
// Convert to percentage and round to 2 decimal places
var cagrPercentage = (cagrDecimal * 100).toFixed(2);
// Display Result
resultValueDiv.innerHTML = cagrPercentage + "%";
resultBox.style.display = 'block';
}
When to Use CAGR and Its Limitations
CAGR is highly effective for comparing the historical performance of different investments (like comparing a stock portfolio to a mutual fund) over the same time horizon. It is also excellent for evaluating business metrics over time, such as revenue growth or user base expansion.
However, it is vital to remember that CAGR is a theoretical value. It assumes a smooth growth curve, ignoring the reality that investments often have highly volatile years with sharp peaks and valleys. It does not reflect investment risk; two investments could have the exact same CAGR, but one could have been a steady climber while the other was extremely volatile. Always consider CAGR alongside other metrics like standard deviation or annual year-over-year returns for a complete picture.