CAGR calculator

Compound annual growth rate from a start and an end value, by years or by two dates, plus the reverse projection and the time to double (rule of 72).

loading CAGR calculator
About this tool

What is CAGR?

CAGR, compound annual growth rate, is the steady yearly rate that would take a value from where it started to where it ended. If an investment, a company's revenue or a user base grew from 10,000 to 18,000 in five years, it did not grow by exactly the same percentage every year, but the CAGR tells you the single yearly rate that gives the same result over the same time. The formula is the final value divided by the initial value, raised to 1 divided by the number of years, minus 1.

CAGR is the fairest way to compare growth over different periods, because it removes the time from the picture. A total growth of 80% sounds the same whether it took three years or ten; the CAGR shows that one is far faster. It smooths out the ups and downs on purpose, so it says nothing about volatility or about what happened in between.

This calculator gives you the CAGR from two values and a time span, which you can type as a number of years or as two dates. It also runs the formula in reverse: type an annual rate and it returns the final value you would reach, and it tells you how long it takes to double, both exactly and with the rule of 72. Everything runs in your browser; the values are never sent anywhere and no rates are looked up.

How to calculate CAGR

  1. Type the initial and the final value. They must both be greater than zero and in the same currency.
  2. Choose how to give the time: a number of years (decimals work: 2.5 is two and a half years), or a start date and an end date. With dates, the span is the number of days divided by 365.25.
  3. Read the CAGR, the total growth and the years it takes to double at that rate, exact and by the rule of 72.
  4. For a projection, type the annual rate in the last field. The tool shows the final value after the same number of years and the doubling time at that rate. Clear the field to hide the projection.
  5. Copy the results with one click.

To see what a percentage means in absolute terms, use the percentage calculator. If your money arrives in several payments, the NPV and IRR calculator is the right tool, and for one gain over a period the ROI calculator gives the total and annual return.

Examples

10,000 to 18,000 in five years

CAGR = (18,000 / 10,000)^(1/5) - 1 = 1.8^0.2 - 1 = 12.47% a year. The total growth is 80%. Doubling takes ln 2 / ln 1.1247 = 5.90 years; the rule of 72 says 72 / 12.47 = 5.77 years.

Doubling in four years

100 to 200 in 4 years: 2^(1/4) - 1 = 18.92% a year. Going from 100 to 150 in 3 years is 14.47% a year.

A value that shrinks

100 falling to 50 in 2 years: 0.5^(1/2) - 1 = -29.29% a year. A negative CAGR has no doubling time, so the tool shows a note instead.

Using two dates

From 2020-01-01 to 2025-01-01 there are 1,827 days (two leap days), which is 1,827 / 365.25 = 5.0021 years. The same 10,000 to 18,000 then gives a CAGR of 12.47% (12.4692% against 12.4746% for exactly five years).

Projecting forward

10,000 growing at 10% a year for 5 years reaches 10,000 x 1.1^5 = 16,105.10. At 10%, a value doubles in 7.27 years; the rule of 72 gives 7.2. At 7% the rule says 10.29 years and the exact answer is 10.24.

Common mistakes

  • Averaging yearly rates. The average of +50% and -50% is 0%, but the money fell by 25%. The CAGR (-13.40% a year) is the correct summary.
  • Counting the wrong number of years. From the end of 2019 to the end of 2024 is five years, not six. Count the intervals, not the year labels.
  • Treating CAGR as a forecast. It describes the past. Real growth rarely stays constant.
  • Zero or negative values. The formula needs a positive initial and final value.
  • Mixing currencies or adjustments. Both values must be in the same currency and, for long spans, the same price level. The inflation calculator corrects the older value first.

Frequently asked questions

How do you calculate CAGR in a spreadsheet?

Use (final / initial)^(1 / years) - 1, for example =(B2/B1)^(1/5)-1. Spreadsheets also have RRI(years, initial, final), which returns the same number.

What is the rule of 72?

A shortcut for the time to double: divide 72 by the annual rate in percent. At 8% it gives 9 years, and the exact answer is 9.01. It is accurate for rates between about 5% and 15%.

What is a good CAGR?

It depends on the asset and the risk. Compare it with what a safe alternative paid over the same span, and with inflation. A CAGR below inflation means a loss of purchasing power.

Can CAGR be negative?

Yes, when the final value is below the initial one. A negative CAGR means a steady yearly decline.

Why use 365.25 days a year?

It is the average length of a calendar year, leap days included. It keeps the span in years smooth across leap years. If you need exact years, type them in the years field instead. For a gain in a single step, see the discount calculator for percentage changes of a price.

Formulas in code

JavaScript

const cagr = (initial, final, years) => (final / initial) ** (1 / years) - 1;
console.log(cagr(10000, 18000, 5));            // 0.12474611314209483
console.log(Math.log(2) / Math.log(1.1));      // 7.272540897341713 years to double at 10%

Python

from math import log
print((18000 / 10000) ** (1 / 5) - 1)   # 0.12474611314209483
print(log(2) / log(1.1), 72 / 10)       # 7.272540897341713 7.2
Report a problem