Worked example
$10,000 grows to $18,000 over 5 years. The growth multiple is 1.8, a total return of 80%. The fifth root of 1.8 is about 1.1247, so the CAGR is 12.47% a year.
Compounding at 12.47% turns $10,000 into $11,247 after one year, $12,650 after two, and $18,000 after five.
A stock: a share bought at $25 trades at $60 seven years later. (60 / 25)^(1/7) - 1 gives a price CAGR of 13.32% a year. Use values that include reinvested dividends instead of share prices if you want the investment's total-return CAGR.
A business: revenue grows from $2.0 billion in one fiscal year to $3.5 billion three fiscal years later. That is three years of growth, not four, so (3.5 / 2.0)^(1/3) - 1 gives a revenue CAGR of 20.51% a year.