How to Compute CAGR in Excel: A Step-by-Step Guide for Real Returns
29 July 2026

How to Compute CAGR in Excel: A Step-by-Step Guide for Real Returns
It is two minutes past midnight, and the blue light of your spreadsheet is cutting right through the dark room. You are staring at a row of investment figures—say, a portfolio that started at a modest sum five years ago and grew into something noticeably larger today—and you are trying to figure out if you actually did well.
You know the total return percentage, but that doesn't tell you the whole story. You need the Compound Annual Growth Rate, or CAGR. It is the single metric that smooths out all the market bumps, the wild spikes, and the quiet slumps, telling you the steady, year-over-year rate at which your money grew.
Except you are looking at Excel, and Excel doesn't have a big button that says CALCULATE CAGR NOW. Instead, you have a blank cell blinking at you, a head full of formulas you half-remember from school, and a quiet worry that if you type the wrong thing, you will completely misjudge your financial progress.
Take a breath. You are not the first person to stare at a spreadsheet at midnight wondering how to make the math work, and you certainly won't be the last. Computing CAGR in Excel isn't a test of your accounting skills; it is just a matter of knowing three numbers and two simple ways to write the equation. Let’s walk through it together until the math stops looking like a foreign language and starts making total sense.
Why Total Return Lies to You (And Why CAGR Saves the Day)
Before we touch the keyboard, let’s talk about why you even need this specific metric. Imagine you put an example amount of $10,000 into an investment account. Five years later, you log in and see it is worth $20,000.
Your total return is 100%. That feels fantastic, right? You doubled your money.
If you just divide that 100% by the 5 years it took, you might be tempted to say, "Great, I averaged 20% a year!"
Except that is almost certainly wrong. Money doesn't grow in a straight, polite line. Real investments compound. If you made 20% flat every year, your $10,000 wouldn't become $20,000 in five years—it would become nearly $25,000.
Compounding means your earnings generate their own earnings. Because of that snowball effect, calculating an annual growth rate requires a specific geometric formula, not simple division. CAGR cuts through the noise of fluctuating years and tells you: If this investment had grown at the exact same steady pace every single year, what would that rate have been?
Once you know that number, you can fairly compare a real estate deal against a stock portfolio, a retirement account, or a high-yield savings vehicle, even if they ran over completely different timeframes.
The Formula Behind the Curtain
If you look up the CAGR formula in a textbook, it looks like a piece of abstract art:
$$\text{CAGR} = \left(\frac{\text{Ending Value}}{\text{Beginning Value}}\right)^{\frac{1}{n}} - 1$$
Don't let the exponents intimidate you. It is just three inputs wrapped in a specific order:
- Ending Value (EV): What the investment is worth at the finish line.
- Beginning Value (BV): What you started with at the very beginning.
- Number of Years ($n$): How many years passed between the start and the end.
When we translate this into Excel language, the exponent $\frac{1}{n}$ becomes a caret ^ followed by parentheses (1/n).
Let’s trace a real, hypothetical scenario so you can see how the numbers actually behave before we plug them into a grid.
Meet Priya. Five years ago, Priya invested an example sum of ₹50,000 in a diversified mutual fund. Today, checking her account statement, that balance sits at ₹1,10,000. She wants to know her CAGR so she can compare it against fixed-income options.
Here are Priya's numbers:
- Beginning Value: ₹50,000
- Ending Value: ₹1,10,000
- Number of Years: 5
If Priya divides $1,10,000$ by $50,000$, she gets $2.2$. Her portfolio is $2.2$ times its original size. Next, she raises that figure to the power of one-fifth ($1/5$ or $0.2$), which gives about $1.171$. Subtract 1, and she gets $0.171$, or roughly $17.1%$.
Priya’s money grew at a compound annual rate of 17.1%. Not a flat 20%, but a very respectable, mathematically accurate 17.1% per year.
Now, how do we get Excel to do that heavy lifting in a fraction of a second?
Method 1: The Classic Formula Approach
This is the most common way people compute CAGR in Excel, and it is the method you should use if your data is scattered across different cells.
Let’s set up a clean, professional mini-table in your spreadsheet. Open a blank worksheet and type these labels:
- In cell
A1, type:Investment Name - In cell
A2, type:Beginning Value - In cell
A3, type:Ending Value - In cell
A4, type:Years - In cell
A5, type:CAGR
Now, let's plug in Priya's numbers next to them:
- In cell
B2, type:50000 - In cell
B3, type:110000 - In cell
B4, type:5
Now we are ready for the magic formula in cell B5. Click on B5 and type the following exact string:
=(B3/B2)^(1/B4)-1
Press Enter.
If your screen shows 0.1714 or something similar, take a deep breath and smile—you just computed your first CAGR in Excel.
To make it look clean for a report or your own peace of mind, click on cell B5, go to the Home tab on your Excel ribbon, and click the Percentage (%) button. Add one or two decimal places so it reads 17.14%.
What trips people up here: Parentheses blindness
The number one reason this formula returns an error or a bizarre, wildly incorrect number (like 22,000%) is missing parentheses.
Excel follows the standard order of operations (PEMDAS/BODMAS). If you write =B3/B2^1/B4-1 without the parentheses around (1/B4), Excel will divide B3 by B2, raise that result to the power of 1 (which changes nothing), divide by B4, and then subtract 1. It completely breaks the math.
Always keep the division of the ending by beginning value together, and always wrap your time exponent in parentheses: (Ending/Beginning)^(1/Years)-1.
Method 2: The Hidden Power of the RRI Function
If you have been using Excel for a while, you might be thinking: Isn't there a built-in financial function for this?
Yes, there is. It is called RRI, which stands for Rate of Return. It is tailor-made for this exact calculation, yet almost nobody outside of corporate finance departments uses it because it flies under the radar.
The RRI function strips away the need for exponents and parentheses, making your formula much harder to mess up.
Using the exact same cell layout from our example above (where Beginning Value is in B2, Ending Value is in B3, and Years is in B4), click on your target cell and type:
=RRI(B4, B2, B3)
Notice the order of the arguments inside the parentheses:
- nper (Number of periods):
B4 - pv (Present value / Beginning value):
B2 - fv (Future value / Ending value):
B3
Hit Enter, format the cell as a percentage, and you will get the exact same 17.14%.
Why choose RRI over the classic formula?
- It is shorter and cleaner.
- It reduces syntax errors because you don't have to worry about missing a caret or misplacing a parenthesis.
- When you look at the formula six months from now,
=RRI(B4, B2, B3)tells you immediately what it is doing without making you mentally parse exponents.
(Note: If you are working with older desktop versions of Excel or certain versions of alternative spreadsheet software, RRI might occasionally throw a #NAME? error if the function isn't supported. If that ever happens, fall back to Method 1—it works universally across every spreadsheet program ever written.)
Checking Your Work: A Quick Sanity Test
When money is involved, trusting a formula blindly is a recipe for anxiety. Before you paste your CAGR into a slide deck or make a financial decision based on it, run a quick sanity check using a trusted external tool.
If you want to verify your compound growth rates on the fly without building an entire financial model, you can run your figures through a specialized tool like the CAGR Calculator to double-check that your Excel logic matches up.
A good sanity check always asks two questions:
- Is the CAGR lower than the total return divided by years? (It almost always should be, because of the way compounding works over multi-year horizons). If your total return was 100% over 5 years, your CAGR cannot be 20%. It has to be lower (in our case, 14.87%).
- Does the direction make sense? If your ending value is smaller than your beginning value, your CAGR should be a negative percentage. If it isn't, check your cell references—you likely swapped your beginning and ending values in the formula.
What Changes the Answer? (Common Edge Cases)
Real life is rarely as neat as a 5-year tidy block with zero cash flows in between. Once you start applying this to your own accounts, you will likely run into a few messy scenarios. Here is how to handle them without pulling your hair out.
1. Mid-Period Additions or Withdrawals
The formulas we just covered assume a single lump sum sitting untouched for the entire duration. But what if you added ₹5,000 to Priya's fund every year?
If you use the standard CAGR formula on an account with ongoing contributions, your math will be artificially inflated or distorted, because the formula assumes every single rupee was working for the full 5 years.
When you have regular cash flows (like monthly SIPs or retirement contributions), CAGR is no longer the right tool. You need to use Excel's XIRR function instead, which accounts for the exact dates and amounts of every single cash injection.
2. Partial Years (Months and Days)
What if your investment period wasn't an exact number of years? What if it was 3 years and 4 months?
Do not guess. Do not round it to 3 or 4.
Instead, convert the months into a decimal fraction of a year by dividing the number of months by 12. For example, 3 years and 4 months becomes:
$$3 + \left(\frac{4}{12}\right) = 3.333 \text{ years}$$
In your Excel formula, simply reference a cell containing 3.333 as your years input, or type it directly into the exponent as (1/3.333). Precision matters when you are compounding over time.
3. Negative Returns
Can CAGR handle a loss? Absolutely.
If your beginning value was $10,000 and your ending value dropped to $7,000 over 3 years, plug it into Method 1:
=(7000/10000)^(1/3)-1
Excel will return -10.06%. It tells you clearly that your investment shrank at an annualized rate of about 10% per year. It hurts to look at, but knowing the exact number is the first step toward fixing your asset allocation.
Bringing It All Together
Take a look back at that blank spreadsheet you were staring at a few minutes ago.
The blinking cursor isn't intimidating anymore. You don't need a finance degree, and you don't need to memorize arcane mathematical proofs. You just need to know your starting point, your ending point, and how many years ticked by in between.
Whether you use the classic exponent method or the sleek RRI function, you now have a reliable way to strip away the illusion of total returns and see the true engine driving your money forward.
Pop your numbers into the grid, format that cell as a percentage, and let the spreadsheet do the heavy lifting. You've got this.
Frequently Asked Questions
Can I calculate CAGR in Excel if my dates are formatted as actual calendar dates?
Yes, but you have to calculate the number of years first. If your start date is in cell A2 (e.g., 01/15/2019) and your end date is in B2 (e.g., 01/15/2024), you can find the exact number of years by subtracting the two dates and dividing by 365.25 (to account for leap years): =(B2-A2)/365.25. You can then feed that result right into your CAGR formula.
What is the difference between CAGR and XIRR in Excel?
CAGR measures the growth rate of a single lump-sum investment from a start date to an end date with no cash flowing in or out in between. XIRR handles portfolios where you make multiple, irregular deposits or withdrawals over time. If you added money to your account along the way, use XIRR; if it was just a buy-and-hold scenario, use CAGR.
Why am I getting a #NUM! error in my CAGR formula?
A #NUM! error almost always means Excel is trying to calculate an impossible mathematical operation—usually because your Beginning Value or Ending Value is a negative number, or because your Years value is set to zero. Check your cell references to make sure you didn't accidentally point to a blank cell or invert your start and end values.
Disclaimer: This article is for informational and educational purposes only and does not constitute financial or investment advice. Always evaluate your personal financial situation or consult a licensed professional before making major investment decisions.
For quick financial calculations on the go, check out the free Finlaa app.
Related calculators
Related articles

Capital One Auto Finance Calculator: How to Figure Out Your Car Payment Before Shopping
Loans

Capital One Auto Payment Calculator: How to Figure Out Your True Car Loan Cost
Loans

HDFC Loan Calculator: How to Make Your EMI Actually Feel Manageable
Loans

ICICI FD Interest Rates: What Your Returns Actually Look Like (Without the Bank Jargon)
Loans