How to Create a CAGR Formula in Excel
In this article
This guide shows you how to calculate Compound Annual Growth Rate (CAGR) in Excel. CAGR tells you the average annual growth rate of an investment over a period longer than one year, assuming the growth happened steadily each year. You'll learn the direct formula, the RRI function, and how to handle uneven periods.
What You'll Need
- Microsoft Excel (2010 or later for the RRI function; the manual formula works in any version).
- Your starting value (the investment's value at the beginning).
- Your ending value (the value at the end of the period).
- The number of years (or periods) between those two values.
Step-by-Step
- Open Excel and enter your data. In separate cells, type your starting value, ending value, and the number of periods. For example, put the starting value in A1, the ending value in B1, and the number of years in C1.
- Use the direct CAGR formula. In a blank cell, type:
=(B1/A1)^(1/C1)-1. Press Enter. This gives the CAGR as a decimal (e.g., 0.10 for 10%). - Format as a percentage. Select the cell with the result, go to the Home tab, and click the Percent Style button (%) in the Number group. Adjust decimal places with the Increase/Decrease Decimal buttons.
- Alternative: use the RRI function. In a blank cell, type
=RRI(C1, A1, B1). The arguments are: periods, start value, end value. Press Enter. This returns the same result as the manual formula, formatted as a decimal. - For uneven periods (e.g., 3.5 years), use the same formulas but enter the exact number of periods as a decimal. For example, if the investment grew from January 2020 to July 2023, that's 3.5 years, so use 3.5 in the formula.
- For a data table with multiple years, calculate CAGR using the first and last values. If your data is in a column with years in the first row and values below, use the formula
=(last_value/first_value)^(1/(number_of_years))-1. You can reference the cells directly, e.g.,=(B10/B2)^(1/8)-1for 8 years of data. - If you need CAGR per month, adjust the formula:
=(B1/A1)^(1/12)-1for one year, or=(B1/A1)^(1/n_months)-1for any number of months. This gives a monthly growth rate, not annual.
Common Mistakes
- Using the wrong number of periods. CAGR uses the number of years, not the number of data points. If you have 5 years of annual data, the period is 4 (from year 1 to year 5).
- Forgetting to subtract 1. The formula
=(B1/A1)^(1/C1)gives the growth factor, not the growth rate. You must subtract 1 to get the percentage. - Using the RRI arguments in the wrong order. RRI is (periods, start, end). Swapping start and end gives a negative or wrong result.
- Formatting the result as text. If you type a percentage sign manually, Excel treats it as text. Use the number format instead.
- Ignoring negative values. If your starting value is negative (e.g., a loss), CAGR becomes undefined or misleading. The formula will return an error or a nonsensical number.
Tips
- Use cell references instead of typing numbers directly into the formula. This makes it easier to update and avoids errors.
- For a quick check, verify your result by manually calculating: start value * (1 + CAGR)^years should equal the end value.
- If you have a full table of annual returns, you can use the GEOMEAN function:
=GEOMEAN(1+returns_range)-1. This is useful when you have yearly percentage changes rather than just start and end values. - Remember that CAGR assumes steady growth. Real investments fluctuate, so CAGR is a smoothed average, not the actual yearly return.
Troubleshooting
- #NUM! error: This usually means the starting value is negative or zero. CAGR cannot be calculated for a negative base. Check your start value.
- #VALUE! error: One of your cells contains text or is empty. Make sure all referenced cells have numbers.
- Result is a decimal like 0.10 instead of 10%: That's correct. Apply percentage formatting to display it as 10%.
- Result is negative: This means the investment lost value over the period. The formula is working correctly; a negative CAGR indicates a decline.
- RRI returns a different value than the manual formula: Check that you entered the periods correctly. RRI uses the same formula internally, so they should match if the inputs are the same.
Frequently Asked Questions
What does CAGR stand for?
Compound Annual Growth Rate. It's the year-over-year growth rate of an investment over a specified time period, assuming profits are reinvested at the end of each year.
Can I calculate CAGR for monthly data?
Yes, but the result will be a monthly rate. To get an annual rate from monthly data, you would need to convert: (1 + monthly rate)^12 - 1.
What if my investment period is not a whole number of years?
Use the exact number of years as a decimal. For example, 2 years and 6 months is 2.5 years. The formula handles decimals fine.
Is CAGR the same as average annual return?
No. Average annual return is the arithmetic mean of yearly returns. CAGR is the geometric mean, which accounts for compounding and is usually lower than the arithmetic average.
How do I calculate CAGR in Excel without a formula?
You can use the RRI function, which is built-in. Or, you can use the XIRR function if you have specific dates and cash flows, but that's more complex.
Why is my CAGR showing as #DIV/0!?
This happens when the number of periods is zero or the start value is zero. Check that your period cell is not empty or zero.