Coderhouse goes global

🌍

Read more

What Is CAGR? How Data Analysts Calculate Compound Annual Growth Rate

AI Engineering

Build and ship real applications with LLMs, agents and automation.

8 weeks · Live online · View course →

Data Analytics

Go from zero to job-ready analyst with SQL, Python and BI tools.

10 weeks · Live online · View course →

Dan Patiño

AI Strategy & Innovation at Coderhouse

Data

What Is CAGR? How Data Analysts Calculate Compound Annual Growth Rate

What Is CAGR? How Data Analysts Calculate Compound Annual Growth Rate

CAGR (compound annual growth rate) is the constant yearly growth rate that would take a value from its starting point to its ending point over a given number of years, assuming growth compounds every year. It turns a bumpy series — revenue, users, customers, market size — into one smoothed rate you can compare across companies, products or periods.

Data analysts use CAGR constantly in business reviews, investor decks and market sizing. It is easy to calculate, but it is also easy to misuse: it hides volatility, depends heavily on the start and end points you pick, and is often confused with the simple average of yearly growth rates.

The CAGR formula

CAGR = (Ending value ÷ Beginning value)1 / n − 1

Where n is the number of years (periods) between the beginning and ending values. Note that n is the number of intervals, not the number of data points: five yearly values cover four years of growth. Corporate Finance Institute's CAGR guide walks through the same formula from a finance perspective.

A worked example

Suppose a company's revenue looked like this:

Year

Revenue

Year-over-year growth

Year 0

$2.0M

—

Year 1

$2.6M

+30.0%

Year 2

$2.4M

−7.7%

Year 3

$2.9M

+20.8%

Year 4

$3.2M

+10.3%

CAGR = (3.2 ÷ 2.0)1/4 − 1 = 1.60.25 − 1 ≈ 12.5% per year.

Check it: $2.0M growing 12.5% a year for four years gives about $3.2M. The path was uneven (including a down year), but CAGR describes the equivalent steady rate.

CAGR vs average annual growth rate

The simple average of the four yearly growth rates above is (30.0 − 7.7 + 20.8 + 10.3) ÷ 4 ≈ 13.4%. That is higher than the 12.5% CAGR, and if you apply 13.4% for four years you overshoot the real ending value. The arithmetic average ignores compounding and is pulled up by volatility; CAGR is the geometric mean of the growth factors, so it always reconciles with the actual start and end. When someone asks "how fast did we grow per year?", CAGR is usually the honest answer.

CAGR is also different from year-over-year (YoY) growth, which compares just one period to the same period a year earlier. Use YoY to read recent momentum and CAGR to summarize a multi-year trend.

How to calculate CAGR in Excel, Google Sheets and SQL

Spreadsheets

With the beginning value in B2 and the ending value in B6 (four years apart):

  • =(B6/B2)^(1/4)-1 works in both Excel and Google Sheets.

  • Excel's RRI function returns the same equivalent growth rate: =RRI(4, B2, B6). Google Sheets also supports RRI.

Format the result as a percentage.

SQL

In most databases you can compute it with POWER:

SELECT POWER(end_revenue / start_revenue, 1.0 / years) - 1 AS cagr FROM revenue_summary;

Use 1.0 (not 1) so the exponent is not truncated by integer division.

Beyond years: CMGR and other periods

The same formula works for any period. Startups often report CMGR (compound monthly growth rate): (ending month ÷ starting month)1 / number of months − 1. Just be explicit about the period, and do not compare a monthly rate with an annual one. To convert a monthly rate to an annual equivalent, use (1 + monthly rate)12 − 1, not monthly rate × 12.

Limitations and common mistakes

  • It hides volatility. Two series with the same CAGR can have completely different risk. Show the yearly values or a chart next to it, and consider a moving average to show the trend.

  • Start and end points drive everything. Starting in an unusually bad year inflates CAGR; ending in one deflates it. Check how sensitive the result is to shifting the window by one period.

  • Counting periods wrong. Using the number of data points instead of the number of intervals is the most common calculation error.

  • Zero or negative starting values. The formula breaks when the beginning value is zero or negative, which happens with profit or cash flow. Use absolute changes or a different metric instead.

  • Projecting it forward blindly. A historical CAGR is a description, not a forecast. Extrapolating it assumes the future looks like the past.

FAQ

Can CAGR be negative?

Yes. If the ending value is lower than the beginning value, CAGR is negative and shows the average yearly rate of decline.

Is CAGR the same as IRR?

No. CAGR only looks at a start and end value. Internal rate of return (IRR) accounts for multiple cash flows in and out over time, so it is used for investments with ongoing contributions or withdrawals.

When should a data analyst use CAGR?

Use it to summarize growth over several periods, to compare growth between products, regions or companies over the same window, and as an input for KPI targets — always alongside the underlying data.

Keep learning with Coderhouse

Growth metrics like CAGR are part of the everyday toolkit of a data analyst. Choose your next step:

  • Data Analytics Course — learn spreadsheets, SQL, Python and statistics to calculate and communicate growth metrics with confidence; no coding background needed.

  • Forward Deployed AI Engineering Course — for engineers with production experience who want to build AI agents and data integrations for real business teams.

  • GTM Engineer Course (waitlist) — join the waitlist for early access to the program on building data-driven go-to-market systems.

Dan Patiño

I'm Dan Patiño, head of AI Strategy & Innovation at Coderhouse. My day-to-day work involves merging the tactical management of e-commerce (CRO, Email Marketing and SEO) with the development of disruptive solutions. I specialize in building internal AI-powered apps to automate tasks and boost innovation within the team. I firmly believe that technology is strategy's best ally. To dive deeper into my professional journey, I'll be waiting for you on my LinkedIn profile.