CAGR Calculator Formula
Understand the math behind the cagr calculator. Each variable explained with a worked example.
Formulas Used
CAGR
cagr = (pow(ending_value / beginning_value, 1 / years) - 1) * 100Total Return
total_return = (ending_value - beginning_value) / beginning_value * 100Absolute Gain
absolute_gain = ending_value - beginning_valueVariables
| Variable | Description | Default |
|---|---|---|
beginning_value | Beginning Value(USD) | 10000 |
ending_value | Ending Value(USD) | 25000 |
years | Number of Years(years) | 5 |
How It Works
CAGR Formula
CAGR = (Ending Value / Beginning Value)^(1/n) - 1
CAGR smooths out the return over the period, giving you the consistent annual rate that would produce the same final result.
Worked Example
$10,000 invested grows to $25,000 in 5 years.
beginning_value = 10000ending_value = 25000years = 5
- 01CAGR = (25000/10000)^(1/5) - 1
- 02= 2.5^0.2 - 1
- 03= 1.2011 - 1 = 0.2011
- 04CAGR = 20.11%
- 05Total return = 150%
Ready to run the numbers?
Open CAGR Calculator