Exponential Regression Calculator

Exponential Regression Calculator

Fit an exponential model y = a·b^x to your data and assess model quality.

Last updated: March 2026

Exponential Model Fitting

Use commas to separate x and y. One pair per line. All y values must be positive.

Fitted Equation
y = 0.9955 · 2.7215x
a (intercept)
0.995527
b (base)
2.721511
Growth Rate
172.15%
per unit
R² (Fit Quality)
0.999996
n (data points)
5
ln(b) (log rate)
1.001187
Model Summary
Exponential growth: y increases by 172.2% every unit increase in x. Excellent fit!
Residuals
xObservedPredictedError% Error
12.702.71-0.01-0.3%
27.407.370.030.4%
320.1020.070.030.2%
454.6054.61-0.01-0.0%
5148.40148.63-0.23-0.2%

What is Exponential Regression?

Exponential regression is a technique for fitting exponential models to data. Unlike linear regression (which models straight-line relationships), exponential regression captures scenarios where quantities grow or decay at rates proportional to their current size.

The model has the form y = a · b^x, where a is the initial value, b is the growth (if b ≥ 1) or decay (if b ≤ 1) factor, and x is the independent variable. This becomes linear in log-space: ln(y) = ln(a) + x·ln(b), allowing us to use standard linear regression techniques.

Exponential models are ubiquitous in science: population growth, radioactive decay, compound interest, pandemic spread, and Moore's Law all follow exponential patterns. Accurate fitting helps us understand growth rates and make predictions about future values.

How to Fit an Exponential Regression

The Linear Transformation

We transform the exponential model into a linear one using logarithms:

Original: y = a · b^x
Take ln: ln(y) = ln(a) + x·ln(b)
Linear form: Y = α + β·x (where Y = ln(y), α = ln(a), β = ln(b))
Then use linear regression to find α and β, and transform back

Interpreting Results

  • a: Starting value when x = 0
  • b: Growth/decay multiplier per unit of x (b = e^ln(b))
  • Growth rate: (b - 1) × 100% per unit (negative if decay)
  • R²: Goodness of fit. Closer to 1 is better. Above 0.9 is usually excellent.

When to Use Exponential Regression

  • Data points roughly double (or halve) at regular intervals
  • Growth/decay accelerates over time
  • You suspect proportional or compound growth
  • Population, viral spread, or investment returns

Example: Bacterial Colony Growth

Bacteria population is measured hourly:

Data:
Hour 0: 100 cells
Hour 1: 271 cells
Hour 2: 735 cells
Hour 3: 1995 cells
Model:
y = 100 · (2.71)^x
Growth rate: (2.71 - 1) × 100% = 171% per hour
Prediction:
Hour 4: y = 100 · (2.71)^4 = ~5,408 cells
Hour 6: y = 100 · (2.71)^6 = ~39,670 cells
R² Value:

R² = 0.9998 (essentially perfect fit). The exponential model explains 99.98% of the variation in bacterial growth.

Frequently Asked Questions

What does b ≥ 1 vs b ≤ 1 mean?

If b ≥ 1, you have exponential growth; the quantity increases. If 0 ≤ b ≤ 1, you have exponential decay; the quantity decreases. If b = 1 (or close to it), there's effectively no exponential change.

How do I interpret the growth rate?

Growth rate = (b - 1) × 100%. If b = 1.5, the growth rate is 50% per unit. This means the quantity multiplies by 1.5 (grows by 50%) each unit step. For decay, the rate is negative.

What's a 'good' R² value?

R² ranges from 0 to 1. Above 0.9 is excellent; 0.7-0.9 is good; 0.5-0.7 is moderate. Below 0.5 suggests the exponential model may not fit your data well. Try a different model if R² is low.

Why must all y values be positive?

Exponential functions y = a·b^x produce positive outputs for positive a and b. Negative y values don't exist in the pure exponential model. If you have negative data, use a different model.

How do I make predictions with the fitted model?

Use the equation y = a·b^x with your fitted a and b. Plug in any x value to predict the corresponding y. Note: extrapolation (predicting far beyond your data) is risky and assumes the pattern continues.

What if my data isn't exponential?

If R² is low, try another model: linear (y = mx + b), polynomial (y = ax² + bx + c), logarithmic, or power law. Plot residuals to check for patterns suggesting a better fit.

Related Tools