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.
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.
| Rank | Investment (fictional) | Years | Total return | CAGR | Real CAGR |
|---|---|---|---|---|---|
| 1 | Tech stock X (fictional) | 5.86 | 205.0% | 20.96% | 16.31% |
| 2 | Short trade (fictional) under 1 year | 0.58 | 9.5% | 16.91% | 13.73% |
| 3 | Gold coins (fictional) | 9.81 | 145.0% | 9.57% | 6.38% |
| 4 | Global index fund (fictional) | 10.99 | 143.5% | 8.43% | 5.17% |
| 5 | Dividend ETF (fictional) | 9.50 | 78.3% | 6.28% | 3.08% |
| 6 | Small-cap fund (fictional) | 6.96 | 48.8% | 5.87% | 2.19% |
| 7 | Pension fund (fictional) | 16.00 | 147.2% | 5.82% | 3.14% |
| 8 | Balanced 60/40 fund (fictional) | 14.99 | 106.0% | 4.94% | 2.38% |
| 9 | Inflation-linked bond (fictional) | 7.00 | 29.0% | 3.71% | 0.01% |
| 10 | Watch collection (fictional) | 11.58 | 52.0% | 3.68% | 1.05% |
| 11 | Peer-to-peer loans (fictional) | 6.00 | 22.0% | 3.37% | 0.36% |
| 12 | REIT fund (fictional) | 10.55 | 40.0% | 3.24% | 0.24% |
| 13 | Rental flat (fictional) | 13.04 | 47.2% | 3.01% | 0.30% |
| 14 | Emerging markets fund (fictional) | 11.75 | 29.3% | 2.21% | −0.67% |
| 15 | US bond fund (fictional) | 10.99 | 22.1% | 1.83% | −1.23% |
| 16 | Bank stock Y (fictional) | 8.66 | 17.0% | 1.83% | −1.33% |
| 17 | Savings account (fictional) | 7.58 | 12.2% | 1.53% | −1.90% |
| 18 | Corporate bond (fictional) | 4.84 | 6.5% | 1.31% | −2.77% |
| 19 | Crypto coin Z (fictional) | 4.14 | −34.0% | −9.55% | −13.44% |
| 20 | Startup 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:
- YEARFRAC. Microsoft: "YEARFRAC calculates the fraction of the year represented by the number of whole days between two dates". Its basis argument sets the day count: 0 or omitted = US (NASD) 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365, 4 = European 30/360. The template uses basis 1 by default. Note that the default when you leave basis out is 30/360, not actual days.
- Days / 365.
(End date − Start date) / 365. Simple, and the same convention XIRR uses, so it is the one to pick when you compare a CAGR with an XIRR.
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
| Tab | What it does |
|---|---|
| Start here | Instructions, key formulas, limits and sources. |
| Calculator | Section 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. |
| Compare | Up 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 year | Up 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. |
| Summary | Key results of the three working tabs and a bar chart of the ranked CAGRs. |
| Example calculator / compare / year by year / summary | The same tabs filled with fictional data so you can see every formula working. |
| Real data SP500 2006-2025 | Real 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
- 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.
- Leave B9 at 1 (actual/actual) unless you need another day count. Check that B10 says OK.
- Read the CAGR in B15. B16 shows the days/365 version, B17 the RRI cross-check.
- To find an end value, the years needed or the start value needed, fill the matching block in section 2.
- For a real CAGR, type a price index (such as CPI) at both dates in B45:B46, or an average inflation rate in B48.
- 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.
- 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.
| Result | Formula (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.
- Total return: 17,450 / 10,000 − 1 = 74.50%.
- 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.
- 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
- 10,000 growing at 7% a year for 10 years: 10,000 × 1.07^10 = 19,671.51 (FV gives the same).
- Years for 10,000 to double at 7%: LN(2) / LN(1.07) = 10.24 years (NPER gives the same).
- Start value needed for 50,000 in 15 years at 6%: 50,000 / 1.06^15 = 20,863.25 (PV gives the same).
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.
| Year | S&P 500 total return | CPI-U, December | Inflation Dec/Dec | Real return |
|---|---|---|---|---|
| 2005 | — | 196.800 | — | — |
| 2006 | 15.61% | 201.800 | 2.54% | 12.75% |
| 2007 | 5.48% | 210.036 | 4.08% | 1.34% |
| 2008 | −36.55% | 210.228 | 0.09% | −36.61% |
| 2009 | 25.94% | 215.949 | 2.72% | 22.60% |
| 2010 | 14.82% | 219.179 | 1.50% | 13.13% |
| 2011 | 2.10% | 225.672 | 2.96% | −0.84% |
| 2012 | 15.89% | 229.601 | 1.74% | 13.91% |
| 2013 | 32.15% | 233.049 | 1.50% | 30.19% |
| 2014 | 13.52% | 234.812 | 0.76% | 12.67% |
| 2015 | 1.38% | 236.525 | 0.73% | 0.65% |
| 2016 | 11.77% | 241.432 | 2.07% | 9.50% |
| 2017 | 21.61% | 246.524 | 2.11% | 19.10% |
| 2018 | −4.23% | 251.233 | 1.91% | −6.03% |
| 2019 | 31.21% | 256.974 | 2.29% | 28.28% |
| 2020 | 18.02% | 260.474 | 1.36% | 16.43% |
| 2021 | 28.47% | 278.802 | 7.04% | 20.02% |
| 2022 | −18.04% | 296.797 | 6.45% | −23.01% |
| 2023 | 26.06% | 306.746 | 3.35% | 21.97% |
| 2024 | 24.88% | 315.605 | 2.89% | 21.37% |
| 2025 | 17.78% | 324.054 | 2.68% | 14.71% |
| Result, 2006–2025 (20 years) | Value |
|---|---|
| Arithmetic mean of the yearly returns | 12.39% |
| CAGR = GEOMEAN(1 + r) − 1 | 10.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) − 1 | 8.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
- Counting periods instead of years. Values from 2015 and 2025 span 10 years, not 11. With dates, let YEARFRAC or days/365 do the counting.
- Leaving out YEARFRAC's basis. The default is US 30/360. Use basis 1 for actual days.
- Using CAGR when money was added or withdrawn. Deposits look like growth. Use XIRR.
- Annualising a few months. 9.5% in seven months becomes a 16.91% CAGR. Treat it with care.
- Averaging yearly returns. AVERAGE overstates growth when returns swing. Use GEOMEAN(1 + r) − 1.
- Subtracting inflation. Nominal minus inflation is an approximation. Divide the growth factors.
- Zero or negative values. CAGR needs a start and end value above 0. A position that went to zero has a CAGR of −100% and no useful rate.
- Cherry-picking dates. Start at a market low and CAGR looks great. Compare investments over the same dates.
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
- CAGR calculatorOne quick CAGR in the browser.
- XIRR spreadsheetAnnual return with dated deposits and withdrawals.
- Time-weighted return spreadsheetReturns that strip out the effect of cash flows.
- Real return spreadsheetReturns after inflation.
- Compound interest spreadsheetGrowth at a fixed rate, with deposits.
- All templatesFree spreadsheets for investing and trading.
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.