Home › Templates › CAGR spreadsheet

CAGR Excel Template: Free CAGR Spreadsheet with Dates, RRI and Real CAGR

A free CAGR spreadsheet for Excel and Google Sheets. Type a start value, an end value and two dates, and it returns the compound annual growth rate, counted with YEARFRAC and with days/365, and cross-checked with Excel's RRI function. It also solves for the end value, the years or the start value, turns a CAGR into a real CAGR after inflation, ranks up to 20 investments, and compares the CAGR of yearly returns (GEOMEAN) with their simple average.

Download Excel template (.xlsx) 72 KB · 10 tabs · no macros · Excel 2016+ and Google Sheets · v1.0, 14 Nov 2026

Use it in Google Sheets: choose File → Import → Upload in Sheets and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. No sign-up, no email gate, no add-in.

Preview: the Example calculator and Example compare tabs. All names, dates and values are fictional.
8.99%CAGR, 10,000 → 17,450 over 6.47 years (YEARFRAC)
8.98%CAGR with days/365 (6.47 years)
8.99%RRI cross-check (matches)
5.76%real CAGR after 3.06% a year inflation
RankInvestment (fictional)YearsTotal returnCAGRReal CAGR
1Tech stock X (fictional)5.86205.0%20.96%16.31%
2Short trade (fictional) under 1 year0.589.5%16.91%13.73%
3Gold coins (fictional)9.81145.0%9.57%6.38%
4Global index fund (fictional)10.99143.5%8.43%5.17%
5Dividend ETF (fictional)9.5078.3%6.28%3.08%
6Small-cap fund (fictional)6.9648.8%5.87%2.19%
7Pension fund (fictional)16.00147.2%5.82%3.14%
8Balanced 60/40 fund (fictional)14.99106.0%4.94%2.38%
9Inflation-linked bond (fictional)7.0029.0%3.71%0.01%
10Watch collection (fictional)11.5852.0%3.68%1.05%
11Peer-to-peer loans (fictional)6.0022.0%3.37%0.36%
12REIT fund (fictional)10.5540.0%3.24%0.24%
13Rental flat (fictional)13.0447.2%3.01%0.30%
14Emerging markets fund (fictional)11.7529.3%2.21%−0.67%
15US bond fund (fictional)10.9922.1%1.83%−1.23%
16Bank stock Y (fictional)8.6617.0%1.83%−1.33%
17Savings account (fictional)7.5812.2%1.53%−1.90%
18Corporate bond (fictional)4.846.5%1.31%−2.77%
19Crypto coin Z (fictional)4.14−34.0%−9.55%−13.44%
20Startup shares (fictional)7.33−58.0%−11.16%−14.00%

The CAGR formula in Excel

CAGR (compound annual growth rate) is the steady yearly rate that turns a start value into an end value over a given time.

CAGR = (End value / Start value) ^ (1 / Years) − 1

The hard part is "Years". Most guides assume whole years. Real investments start and end on odd dates, so the template counts the years from the two dates, in two ways:

Then it checks the answer with RRI, which Microsoft describes as a function that "Returns an equivalent interest rate for the growth of an investment", with the syntax RRI(nper, pv, fv). With nper in years, RRI is the CAGR. A non-zero difference means a typing error somewhere.

What's inside the spreadsheet

TabWhat it does
Start hereInstructions, key formulas, limits and sources.
CalculatorSection 1: CAGR from two values and two dates (YEARFRAC, days/365, RRI check, input check). Section 2: solve for the end value, the number of years or the start value, each with an FV / NPER / PV cross-check. Section 3: real CAGR from a price index or an inflation rate. Section 4: up to 10 dated cash flows, XIRR next to the simple CAGR.
CompareUp to 20 investments, each with its own dates and an optional inflation rate. Years, total return, CAGR, real CAGR, rank, a row check (flags holdings under 1 year) and a table sorted by CAGR.
Year by yearUp to 50 yearly returns with optional inflation. CAGR = GEOMEAN(1 + r) − 1 next to the arithmetic mean, volatility, value path, real CAGR and a line chart.
SummaryKey results of the three working tabs and a bar chart of the ranked CAGRs.
Example calculator / compare / year by year / summaryThe same tabs filled with fictional data so you can see every formula working.
Real data SP500 2006-2025Real published data: S&P 500 total returns from Aswath Damodaran (NYU Stern) and CPI-U from the U.S. Bureau of Labor Statistics, quoted exactly with sources and retrieval date.

How to use it

  1. Open Calculator. Type the start value in B5, the end value in B6, the start date in B7 and the end date in B8. Values must be above 0.
  2. Leave B9 at 1 (actual/actual) unless you need another day count. Check that B10 says OK.
  3. Read the CAGR in B15. B16 shows the days/365 version, B17 the RRI cross-check.
  4. To find an end value, the years needed or the start value needed, fill the matching block in section 2.
  5. For a real CAGR, type a price index (such as CPI) at both dates in B45:B46, or an average inflation rate in B48.
  6. Added or withdrew money? Type each dated cash flow in section 4: deposits negative, the final value positive. Use the XIRR result, not the CAGR.
  7. To compare investments, fill one row per investment on Compare. For a series of yearly returns, use Year by year.

The formulas in the file

These are copied from the Calculator, Compare and Year by year tabs. Each one is wrapped in an input check so it stays blank until the inputs are valid.

ResultFormula (as in the file)
Years, YEARFRAC=IF($B$10="OK",YEARFRAC($B$7,$B$8,$B$9),"")
Years, days/365=IF($B$10="OK",($B$8-$B$7)/365,"")
CAGR=IF($B$10="OK",($B$6/$B$5)^(1/$B$12)-1,"")
RRI cross-check=IF($B$10="OK",RRI($B$12,$B$5,$B$6),"")
End value=IF(AND(AND(ISNUMBER($B$23),ISNUMBER($B$24),ISNUMBER($B$25)),$B$23>0,$B$24>-1,$B$25>0),$B$23*(1+$B$24)^$B$25,"")
Years needed=IF(IF(AND(AND(ISNUMBER($B$30),ISNUMBER($B$31),ISNUMBER($B$32)),N($B$30)>0,N($B$31)>0,N($B$32)>-1,N($B$32)<>0),(($B$31/$B$30)-1)*$B$32>0,FALSE),LN($B$31/$B$30)/LN(1+$B$32),"")
Start value needed=IF(AND(AND(ISNUMBER($B$37),ISNUMBER($B$38),ISNUMBER($B$39)),$B$37>0,$B$38>-1,$B$39>0),$B$37/(1+$B$38)^$B$39,"")
Inflation per year from CPI=IF(AND(AND(ISNUMBER($B$45),ISNUMBER($B$46),N($B$45)>0,N($B$46)>0),ISNUMBER($B$50)),($B$46/$B$45)^(1/$B$50)-1,IF(ISNUMBER($B$48),$B$48,""))
Real CAGR=IF(AND(ISNUMBER($B$49),ISNUMBER($B$51)),(1+$B$49)/(1+$B$51)-1,"")
XIRR with deposits=IF(IF(AND(COUNT($B$60:$B$69)>=2,COUNT($A$60:$A$69)=COUNT($B$60:$B$69),COUNTIF($B$60:$B$69,"<0")>0,COUNTIF($B$60:$B$69,">0")>0,ISNUMBER($B$60),ISNUMBER($A$60)),AND(N($B$60)<0,INDEX($A$60:$A$69,COUNT($B$60:$B$69))>$A$60),FALSE),XIRR($B$60:INDEX($B$60:$B$69,COUNT($B$60:$B$69)),$A$60:INDEX($A$60:$A$69,COUNT($B$60:$B$69))),"")
Compare: CAGR per row=IF(AND(ISNUMBER(C6),ISNUMBER(D6),ISNUMBER(E6),ISNUMBER(F6),N(D6)>0,N(F6)>0,N(E6)>N(C6)),(F6/D6)^(1/H6)-1,"")
Compare: rank (ties broken by row)=IF(ISNUMBER(J6),RANK(J6,$J$6:$J$25,0)+COUNTIF($J$6:J6,J6)-1,"")
Year by year: CAGR=IF(AND($B$5="OK",N($K$8)>=1),GEOMEAN($D$8:$D$57)-1,"")
Year by year: arithmetic mean=IF(AND($B$5="OK",N($K$8)>=1),AVERAGE($B$8:$B$57),"")

Column D of the Year by year tab holds the growth factors 1 + r. Microsoft's GEOMEAN "Returns the geometric mean of an array or range of positive data", and "If any data point ≤ 0, GEOMEAN returns the #NUM! error value". Growth factors are positive for any return above −100%, which is why the formula uses 1 + r and not r.

Worked example (fictional data)

1. CAGR from two dated values

The Example calculator starts with 10,000 on 15 Mar 2019 and ends with 17,450 on 2 Sep 2025.

  1. Total return: 17,450 / 10,000 − 1 = 74.50%.
  2. Days between the dates: 2,363. YEARFRAC basis 1 spans 7 calendar years (2019 to 2025) with 2,557 days, an average of 365.2857 days a year, so years = 2,363 / 365.2857 = 6.4689. Days/365 gives 2,363 / 365 = 6.4740.
  3. CAGR = 1.745 ^ (1 / 6.4689) − 1 = 8.9879%. With days/365: 8.9805%. RRI(6.4689, 10000, 17450) = 8.9879%.

2. Solve for the missing number

3. Real CAGR

A fictional price index moves from 100.0 to 121.5 over the same 6.4689 years: inflation = 1.215 ^ (1 / 6.4689) − 1 = 3.0562% a year. Real CAGR = 1.089879 / 1.030562 − 1 = 5.7557%. The shortcut 8.99% − 3.06% = 5.93% overstates it. In start-date money the 17,450 is worth 17,450 × 100 / 121.5 = 14,362.14.

4. Deposits: why CAGR breaks and XIRR doesn't

The fictional cash flows: −10,000 on 1 Jan 2020, −5,000 on 1 Jan 2022, and a final value of 20,000 on 1 Jan 2025. A simple CAGR from 10,000 to 20,000 over those five years gives 14.85%, because it counts the extra 5,000 as growth. XIRR counts each deposit only from its own date and gives 6.81%. For a full dated cash-flow log, use the XIRR spreadsheet.

5. Ranking 20 investments

On Example compare, Tech stock X (fictional) ranks first at 20.96% and Startup shares (fictional) last at −11.16%. Short trade (fictional) ranks second with 16.91%, from a 9.5% gain over just 0.58 years. Annualising a short holding period inflates small gains, so the row check flags it as "OK (under 1 year)".

Real data: S&P 500 total returns 2006–2025

The Real data tab uses published numbers, not invented ones. Yearly S&P 500 returns including dividends come from Aswath Damodaran, "Historical Returns on Stocks, Bonds and Bills" (NYU Stern, page dated January 2026, "Updated: January 5, 2026"). December CPI-U values come from the U.S. Bureau of Labor Statistics, series CUUR0000SA0 (U.S. city average, all items, not seasonally adjusted). Both were retrieved on 14 Nov 2026.

Real data: $100 in the S&P 500 (dividends included), start of 2006 to end of 2025$0$150$300$450$600$750$900200520092013201720212025Nominal: $792Real (2005 dollars): $481Year end (2005 = start value)
YearS&P 500 total returnCPI-U, DecemberInflation Dec/DecReal return
2005—196.800——
200615.61%201.8002.54%12.75%
20075.48%210.0364.08%1.34%
2008−36.55%210.2280.09%−36.61%
200925.94%215.9492.72%22.60%
201014.82%219.1791.50%13.13%
20112.10%225.6722.96%−0.84%
201215.89%229.6011.74%13.91%
201332.15%233.0491.50%30.19%
201413.52%234.8120.76%12.67%
20151.38%236.5250.73%0.65%
201611.77%241.4322.07%9.50%
201721.61%246.5242.11%19.10%
2018−4.23%251.2331.91%−6.03%
201931.21%256.9742.29%28.28%
202018.02%260.4741.36%16.43%
202128.47%278.8027.04%20.02%
2022−18.04%296.7976.45%−23.01%
202326.06%306.7463.35%21.97%
202424.88%315.6052.89%21.37%
202517.78%324.0542.68%14.71%
Result, 2006–2025 (20 years)Value
Arithmetic mean of the yearly returns12.39%
CAGR = GEOMEAN(1 + r) − 110.90%
CAGR from Damodaran's own "value of $100" column (146,077.85 → 1,157,598.95)10.90%
CPI-U inflation per year, Dec 2005 to Dec 2025 (196.800 → 324.054)2.52%
Real CAGR = (1 + CAGR) / (1 + inflation) − 18.17%
$100 at the start of 2006, end of 2025$792.38
The same in end-2005 dollars$481.22

Three things stand out. The average return (12.39%) is 1.49 percentage points above the CAGR (10.90%): a −36.55% year (2008) needs far more than a 36.55% gain to recover, and the average ignores that. The CAGR from the rounded yearly returns differs from the CAGR of Damodaran's value column by only 0.00051 percentage points, because the source prints each return to two decimals. And inflation cut the yearly growth rate from 10.90% to 8.17%. Past returns do not predict future returns.

CAGR vs average return

The arithmetic mean answers "what was a typical year?". CAGR answers "what steady rate gives the same end value?". Only CAGR compounds back to the real result. In the fictional Year by year example, 15 returns average 8.19%, but the CAGR is 7.22%, and 10,000 grew to 28,437.28. Compounding the average instead would give 10,000 × 1.081933^15 = 32,584.23, which never happened. The bigger the swings (volatility 14.16% here), the bigger the gap.

Real CAGR and the Fisher relation

A St. Louis Fed note, "Deflation and the Fisher Equation" (William T. Gavin, October 2010), describes "the Fisher equation, which states that the nominal interest rate is equal to the real interest rate plus the expected inflation rate." That additive form is an approximation. The exact form compounds: (1 + nominal) = (1 + real) × (1 + inflation), so real = (1 + nominal) / (1 + inflation) − 1. It gives the same answer as deflating the end value by the price index and taking the CAGR of that. The template uses the exact form and shows the shortcut next to it.

Common mistakes

Limits

CAGR is a smoothed summary of the past. It hides the path: two investments with the same CAGR can have very different drops along the way. It depends on the start and end dates. It ignores deposits and withdrawals (use XIRR). Fees and taxes are only included if they are already in your values. Past growth rates do not predict future growth rates. The Real data tab is a snapshot of the sources as retrieved on 14 Nov 2026; the sources may revise their figures.

FAQ

How do you calculate CAGR in Excel?

Use =(End/Start)^(1/Years)-1, formatted as a percentage. With dates, get the years from =YEARFRAC(StartDate,EndDate,1) or =(EndDate-StartDate)/365. Excel's RRI function gives the same rate: =RRI(Years,Start,End). The template does all three and flags any difference.

What is the RRI function in Excel?

Microsoft describes RRI as a function that "Returns an equivalent interest rate for the growth of an investment." Its syntax is RRI(nper, pv, fv): the number of periods, the start value and the end value. With nper in years, RRI returns the CAGR. It returns #NUM! when the arguments are not valid.

Should I use YEARFRAC or days/365 for CAGR?

Either is fine if you use it consistently. YEARFRAC with basis 1 (actual/actual) follows the calendar, including leap years. Days/365 is the convention XIRR uses, so pick it when you compare a CAGR with an XIRR. Over the example's 6.47 years the two CAGRs differ by 0.0073 percentage points.

What is the difference between CAGR and average annual return?

The average annual return is the arithmetic mean of the yearly returns. CAGR is the geometric mean: the one steady rate that turns the start value into the end value. CAGR is never higher than the average return, and the gap grows with volatility. From 2006 to 2025 the S&P 500's yearly total returns in Damodaran's data average 12.39%, but the CAGR is 10.90%.

How do you calculate CAGR when you added money along the way?

A start-to-end CAGR treats every deposit as growth, so it overstates the return. List each dated cash flow (deposits negative, final value positive) and use =XIRR(values, dates). In the fictional example, the simple CAGR is 14.85% but XIRR is 6.81%.

How do you calculate real CAGR after inflation?

Divide, don't subtract: real CAGR = (1 + nominal CAGR) / (1 + inflation per year) - 1. Get inflation per year from a price index at both dates: (CPI end / CPI start)^(1/years) - 1. Nominal CAGR minus inflation is a quick approximation that slightly overstates the real rate.

Related tools and templates

Educational template only, not investment advice. All Example tab names, dates and values are fictional. Real data: A. Damodaran, NYU Stern (updated January 5, 2026) and U.S. Bureau of Labor Statistics CPI-U series CUUR0000SA0. Function descriptions quoted from Microsoft Support. Sources retrieved 14 Nov 2026.