Exponential Regression Calculator

Exponential Regression Calculator

Fit y = a·e^(bx) to growing or decaying data and get the growth rate per step, the doubling or half-life time, R² and predictions.

y = a·e^(bx) · doubling time = ln 2 ÷ b

Enter at least 3 pairs, with every Y above 0

What is Exponential Regression?

Exponential regression fits a curve of the form y = a·e^(bx) to data that grows or shrinks by a steady percentage rather than a steady amount. b is the continuous growth rate; a is the starting level at x = 0.

It describes compound interest, unchecked population growth, early stages of an epidemic, radioactive decay and drug levels clearing from the body. The tell-tale sign is that each step multiplies the value by roughly the same factor.

The fit works by taking logarithms, which turn the curve into a straight line, and fitting that line. Its most useful summary is the doubling time (or half-life): how long the quantity takes to double (or halve).

Exponential Regression Formula

Log-linear least squares, as used by Excel's LOGEST and exponential trendline. See Sources.

1. Take logs

ln y = ln a + b x

2. Fit a straight line to (x, ln y)

b = slope · a = e^(intercept)
R² is the R² of this straight line

3. Growth rate and doubling time

Change per unit of x = eᵇ − 1
Doubling time = ln 2 ÷ b · half-life = ln 2 ÷ |b|

Worked Example: Bacteria Doubling in a Culture

Given:
Colony counts every hour: 120, 245, 470, 980, 1950, 4020 at hours 0, 1, 2, 3, 4, 5.
Step 1:
Logs of the counts:
4.79, 5.5, 6.15, 6.89, 7.58, 8.3, rising by about 0.7 an hour
Step 2:
Fit and convert back:
y = 119.4 · e^(0.7004t) · R² = 0.9998
Step 3:
Doubling time:
ln 2 ÷ 0.7004 = 0.99 hours
Result:
Doubling roughly every 59 minutes

That's growth of about 101% an hour. It can't continue: once nutrients run low, the culture levels off and the exponential model stops applying.

Growth Rates and Doubling Times

Steady percentage growth per period, and how many periods it takes to double. The rule of 70 (70 ÷ rate) is a handy shortcut.

Doubling time for different growth rates
Growth per periodExact doubling timeRule of 70
1%69.6670
2%3535
5%14.2114
7%10.2410
10%7.277
25%3.112.8
100%10.7

Common Exponential Regression Mistakes

  • Including zeros or negative values. The log of zero doesn't exist. Exponential models only work for strictly positive Y.
  • Projecting growth forever. Real growth slows as limits bite. Extrapolating an epidemic's early doubling time produces absurd numbers.
  • Comparing R² with a straight-line fit. This R² is measured on the log scale, so it isn't directly comparable with a linear model's R².
  • Confusing b with the percentage rate. b = 0.7 isn't 70% per period; it's e^0.7 − 1 ≈ 101%.

Exponential Regression FAQs

How do I know if my data are exponential?

Plot ln(y) against x. If it looks like a straight line, an exponential model fits.

What if my data are decaying?

b comes out negative and the calculator reports a half-life instead of a doubling time.

Can I write the model as y = a·bˣ?

Yes. That base is eᵇ from this fit. For the example, each hour multiplies the count by about 2.

Why fit on the log scale?

It turns the curve into a straight line that ordinary least squares handles, and it treats percentage errors evenly. It’s the standard approach.

How do I do this in Excel?

Add an exponential trendline to a scatter chart, or use =LOGEST(y_range, x_range) for the base and starting value.

What is the rule of 70?

A quick estimate: doubling time ≈ 70 ÷ percentage growth rate. 7% a year doubles in about 10 years.

What if growth levels off?

Use a logistic model, which starts exponential and flattens at a ceiling.

Does the X spacing need to be even?

No, any X values work, as long as they’re paired correctly with Y.

Sources

Related Tools