How-to

CAGR formula in Excel: 3 ways to calculate it

The manual formula, the RRI function, and the RATE function all agree, if you count years correctly.

PN
Priya Nair
August 8, 2026 · 4 min read
Link copied!
4 min read

Unlike XIRR, CAGR has a direct, closed-form formula: no iteration, no guessing and refining, just a beginning value, an ending value, and a number of years plugged into one equation. That makes it easy to translate into Excel, and there are three common ways to do it. All three agree exactly, as long as you count the years correctly, which is the one step that quietly trips people up.

The manual formula

The most direct route is to type the CAGR formula out exactly as the math defines it: =(Ending Value/Beginning Value)^(1/Years)-1.

Worked example

₹5,00,000 grows to ₹10,00,000 over 5 years, the default figures on this site’s own CAGR calculator. In Excel, with the ending value in B2, the beginning value in B1, and years in B3: =(B2/B1)^(1/B3)-1 returns 14.87%, matching what computeCagr shows on this site to four significant figures.

CAGR Calculator

Work out the annual growth rate of an investment between two dates.

Open calculator

The RRI function

Excel also has a built-in function that skips writing the exponent out by hand: =RRI(nper, pv, fv).

nper is the number of years, pv is the beginning value, and fv is the ending value, both entered as positive numbers. For the same example: =RRI(5, 500000, 1000000) returns the identical 14.87%, since RRI is just the CAGR formula built into Excel under a different name.

The RATE function

A third route repurposes RATE, the function Excel normally uses for loan and annuity math: =RATE(nper, 0, -pv, fv).

Tip

RATE expects a payment argument (the middle 0, since CAGR has no recurring instalments) and treats the beginning value as a cash outflow, which is why pv needs a minus sign here even though it doesn’t with RRI. Get the sign wrong and Excel either throws a #NUM! error or returns a negative rate. =RATE(5, 0, -500000, 1000000) returns the same 14.87% as the other two methods once the sign is right.

The mistake that throws all three off

All three formulas are only as good as the years figure fed into them, and the most common error is counting the number of value data points instead of the number of years between them. Five year-end values (say, 2021 through 2025) represent 4 years of growth, not 5: the first value is the starting point, not a year of compounding in its own right. Feeding in 5 instead of 4 understates the true CAGR, since the same total growth gets spread across one extra year that never actually happened.

Try it yourself
CAGR Calculator
Open calculator

All figures are indicative and for educational purposes only, not financial advice.

Related reading

More articles worth reading next.