How to Calculate CAGR in Excel With Formulas

Learn how to calculate CAGR in Excel with the RRI function, a direct formula, and date-based options, then display the result as a percentage.

Nov 29, 2026
•
11 min read

Contents

Don't Miss the Good Stuff

Get tech news that matters delivered to your inbox.

To calculate CAGR in Excel, enter your starting value in B1, ending value in B2, and elapsed years in B3, then enter =RRI(B3,B1,B2) in B4. Format the result as a percentage to display the compound annual growth rate. For example, 10000 growing to 20000 over five years returns approximately 14.87%.

The worksheet formulas below apply to Excel for Microsoft 365 and Excel 2024 on Windows and Mac, plus Excel for the web. Instructions for dialogs, add-ins, and other tools specify their platform where needed.

The short version

  • Start here: Use =RRI(B3,B1,B2) with years in B3, the starting value in B1, and the ending value in B2.
  • Direct alternative: Calculate the same rate with =(B2/B1)^(1/B3)-1.
  • Count elapsed years: The interval from 2021 to 2026 is five years.
  • Actual dates: Use YEARFRAC or a two-cash-flow XIRR calculation when your inputs include dates.
  • Display matters: Percentage formatting displays the calculated rate but does not calculate CAGR.

Method or optionWhen to use it
RRIStarting value, ending value, and elapsed years
Direct exponent formulaThe calculation written with the ^ operator
POWERA function-based version of the exponent formula
RATEEndpoint growth with zero periodic payments
XIRREndpoint values with actual dates
YEARFRACFractional years with an explicit day-count basis
GEOMEANA series of annual growth factors
PRODUCTCompounding annual factors before annualizing
LN and EXPA logarithmic equivalent of the direct formula
IRRAnnual cash-flow rows with intermediate zeros
Insert FunctionEntering RRI through a Windows dialog
Goal SeekSolving for a rate in desktop Excel
SolverSolving an endpoint equation with a desktop add-in
Power Query custom columnRepeated calculations in a loaded query
Number.PowerThe exponent function inside Power Query
Copilot paneRequesting a formula with an eligible subscription
Copilot formula completionContextual suggestions where the feature is available
Percentage formattingDisplaying the result as a percentage
Excel product pageOpening browser Excel or obtaining the app

Enter your values and calculate with RRI

If you need Excel first, open the official Excel product page and select Open Excel for the browser version, or select Download the app and use the platform-specific options. Open a workbook and enter 10000 in B1, 20000 in B2, and 5 in B3 to follow the example. Select B4, enter this formula, and press Enter.

=RRI(B3,B1,B2)

The arguments are the number of periods, starting value, and ending value, in that order. Use years in B3 for an annual rate. Entering months as the period count produces a monthly rate.

On Windows in Excel for Microsoft 365 or Excel 2024, select B4 and press Ctrl + 1. Select Percentage under Category, set Decimal places to 2, and select OK. The example displays approximately 14.87%.

You can also press Ctrl + Shift + % on Windows to apply percentage formatting with no decimal places. When you calculate percentages in Excel, formatting changes the display but does not calculate the rate. You can control displayed decimal places in Excel through number formatting.

Calculate CAGR with a direct formula or POWER

The direct formula divides the ending value by the starting value, raises that ratio to the reciprocal of elapsed years, and subtracts one. Keep your values in B1:B3, select a result cell, and enter the following formula. Press Enter to calculate it.

=(B2/B1)^(1/B3)-1

Count the intervals between the starting and ending years. From 2021 to 2026, use five years. If those years are numeric values in A1 and A2, enter this version to calculate the interval within the formula, then press Enter.

=(B2/B1)^(1/(A2-A1))-1

POWER gives you a mathematically equivalent function-based option. With elapsed years back in B3, enter the following formula in a result cell and press Enter.

=POWER(B2/B1,1/B3)-1

Use the function dialog on Windows

In Excel for Microsoft 365 or Excel 2024 on Windows, you can enter RRI through Insert Function. Select the result cell and select Insert Function beside the formula bar, or press Shift + F3. Enter RRI in Search for a function and select Go.

Under Select a function, double-click RRI. In Function Arguments, enter B3 for Nper, B1 for Pv, and B2 for Fv, then select OK. These references use the same starting-value, ending-value, and years layout as the first calculation.

Use actual dates for partial years

When your period includes part of a year, YEARFRAC lets you calculate the year fraction from dates. Enter the starting date in A1, ending date in A2, and positive starting and ending values in B1 and B2. Enter this formula in a result cell and press Enter.

=(B2/B1)^(1/YEARFRAC(A1,A2,1))-1

The final argument of 1 selects Actual/actual. Use 3 instead for Actual/365, which matches the day-count convention of a two-cash-flow XIRR calculation. Specify the basis explicitly because omitting it selects US (NASD) 30/360.

XIRR uses a different cell layout and sign convention. Enter real Excel starting and ending dates in A2 and A3, the starting value as a negative number in B2, and the ending value as a positive number in B3. Enter the following formula and press Enter.

=XIRR(B2:B3,A2:A3)

With only those two cash flows, XIRR calculates annualized endpoint growth using a 365-day year. Adding intermediate deposits or withdrawals changes the calculation to a money-weighted return.

Calculate from annual growth rates

If your inputs are annual percentage changes, enter them in C2:C6 as percentages, such as 10% rather than 10. Each interval must represent one year. In D2, enter the following formula and fill it through D6 to create growth factors.

=1+C2

Every factor must be positive for GEOMEAN. Select a result cell and enter this formula to calculate the geometric growth rate.

=GEOMEAN(D2:D6)-1

For annual levels already entered in B2:B7, create the factors from successive values instead. Enter the following formula in D3 and fill it through D7.

=B3/B2

Each factor must still be positive and represent a one-year interval. Calculate the geometric growth rate from those factors with this formula.

=GEOMEAN(D3:D7)-1

PRODUCT provides another way to multiply values in Excel, combining the annual growth factors before annualizing the result. For the five factors in D2:D6, enter the following formula. Replace 5 with the actual number of complete annual intervals when your range differs.

=PRODUCT(D2:D6)^(1/5)-1

Fix RATE convergence with a suitable guess

RATE can calculate endpoint growth when you specify zero intervening payments. With the starting value in B1, ending value in B2, and elapsed years in B3, enter this formula and press Enter.

=RATE(B3,0,-B1,B2)

The zero represents no periodic payments, and the negative starting value represents the initial outflow. If RATE fails to converge, supply a suitable guess. For an expected decline, enter the following formula with a guess of -0.1 and press Enter.

=RATE(B3,0,-B1,B2,0,-0.1)

Solve for the rate with desktop tools

Goal Seek works in Excel for Microsoft 365 and Excel 2024 on Windows and Mac. Enter 10000 in B1, 20000 in B2, 5 in B3, and an initial rate estimate of 0.1 in B4. Enter this formula in B5.

=B1*(1+B4)^B3

Goal Seek replaces the initial rate estimate in B4 with the approximate CAGR. Open Data > What-If Analysis > Goal Seek; on Windows, What-If Analysis is in the Forecast group. Set Set cell to B5, To value to 20000, and By changing cell to B4. Select OK.

Solver is another option in these desktop editions. Microsoft excludes the bundled Solver add-in from Excel for the web and mobile devices, so use a worksheet formula on those platforms.

If you need to enable Solver on Windows, open File > Options > Add-Ins, choose Excel Add-ins under Manage, and select Go. Select Solver Add-in, then select OK. On Mac, open Tools > Excel Add-Ins, select Solver Add-In, and select OK.

For the Solver example, enter 0.1 in B4. Enter this endpoint formula in B5, then open Data > Solver.

=10000*(1+B4)^5

Set Set Objective to B5, select Value of on Windows or Value Of on Mac, and enter 20000. Set By Changing Variable Cells to B4 and use GRG Nonlinear as the solving method. Select Solve.

Keeping the Solver solution replaces the rate estimate in B4 with the solved value. Select Keep Solver Solution in the Solver Results dialog box.

Add repeated calculations in Power Query

For repeated calculations, start with a loaded query containing numeric columns named Start, End, and Years. These steps apply to Excel for Microsoft 365 on Windows and Mac with Power Query Editor, and Excel 2024 on Windows. Select a cell in the query output and open Query > Edit.

In Power Query Editor, select Add Column > Custom Column and name the column CAGR. Enter the following expression in Custom Column Formula.

Number.Power([End]/[Start],1/[Years])-1

Select OK, set an appropriate numeric data type, and load the query result back into the worksheet. Number.Power is the exponentiation function in Power Query's M language. Worksheet POWER and RRI are not M function names.

Ask Copilot to generate the formula

With an eligible Microsoft 365 subscription and organization settings that permit Copilot, you can request a formula on Windows, Mac, or the web. Enter and label your starting value in B1, ending value in B2, and elapsed years in B3. Select the Copilot icon in Excel's lower-right corner, then select Chat only to request a formula to copy. Submit the following prompt.

Give me an Excel formula for B4 that calculates CAGR using the starting value in B1, ending value in B2, and elapsed years in B3, and explain how to format B4 as a percentage.

Check the returned formula against =RRI(B3,B1,B2) before using it. Chat only does not change your workbook, so enter the formula in B4 and apply the percentage format yourself. You can instead select Allow editing to let Copilot modify the workbook.

Where Copilot formula completion is available, Windows users can open File > Options > Copilot. In Excel for the web, open File > Options (...) > Copilot Settings. Select Show Copilot suggestions for completing formulas and select OK.

With clearly labeled starting-value, ending-value, years, and CAGR cells, type = in the result cell to request a contextual suggestion. A CAGR suggestion is not guaranteed, so check that it implements the calculation before accepting it. If it does not, enter the RRI formula directly.

Frequently Asked Questions

Can IRR calculate CAGR from starting and ending values?

Yes, when the intervals are annual and there are no intermediate cash flows. For 10000 growing to 20000 over five years, enter -10000 in B1, numeric zeros in B2:B5, and 20000 in B6, then enter =IRR(B1:B6) and press Enter. Keep the zeros because blank cells are ignored and would change the period count; do not enter annual asset balances as cash flows.

Can you calculate CAGR with logarithms in Excel?

You can use LN and EXP as an algebraic equivalent of the standard CAGR formula. With positive starting and ending values in B1 and B2 and elapsed years in B3, enter =EXP(LN(B2/B1)/B3)-1 and press Enter.

Why does an old COPILOT worksheet formula return #NAME?

Microsoft removed the preview COPILOT worksheet function on September 14, 2026. Cached results can remain visible, but recalculation returns #NAME?. Replace the old function with a standard CAGR formula or use the supported Copilot pane to generate one.

Does a working CAGR formula mean Excel 2021 is still supported?

A working formula does not establish current product support. Microsoft ended support for Office 2021 on October 13, 2026, although the applications may continue functioning.

Share