🧮
🧮 Math & statistics

Exponential Regression Calculator (fit y = a·bˣ to data)

Results update as you type.

Your numbers

Understanding the exponential regression calculator — concept and principle

This calculator fits an exponential model y = a·bˣ to data points by least squares on the logarithms of y. It reports a, b, the percent change per unit of x, the continuous rate, the same model with base e, a prediction, r² and the doubling time or half-life. It is the same method as the ExpReg key on graphing calculators and exponential trendlines in spreadsheets.

y = 3.06312 · 1.45284ˣy = 3.06312 · 1.45284ˣ(7, 41.85)Per unit of x+45.28 %r² of ln y0.999644Doubling time1.856Predict x = 741.8491
Fitting a line to ln y gives the growth factor b = e^k.

How it is calculated

ln y = ln a + x·ln b, a straight line in x

Fit ln y on x by ordinary least squares; then b = e^slope and a = e^intercept

Change per unit of x = (b − 1) × 100 %; k = ln b; doubling time = ln 2 ÷ |k|

The principle

Taking logarithms turns multiplication into addition, so a curve that multiplies by b for each unit of x becomes a straight line with slope ln b. Fitting a line is simple and well understood. The catch is that errors are minimised for ln y, not for y itself, which gives relatively more weight to small y values than a direct non-linear fit would; the two methods usually give similar but not identical curves.

Worked example

Default inputs: x = 0 … 5, y = 3.1, 4.4, 6.5, 9.2, 13.8, 19.9; predict at x = 7.

  1. Fitted model: y = 3.06312 · 1.45284ˣ; a = 3.06312, b = 1.45284.
  2. Change per unit of x = 45.28 %; continuous rate k = 0.373519, so y = 3.06312 · e^(0.373519x).
  3. r² (ln y on x) = 0.999644; correlation of x and ln y 0.999822.
  4. Prediction at x = 7: 3.06312 × 1.45284⁷ = 41.8491.
  5. Doubling time = ln 2 ÷ 0.373519 = 1.856 units of x.

How to read the result

y grows by about 45 % per unit of x and doubles roughly every 1.86 units. The very high r² says the points lie almost on a straight line on a log scale. The prediction at x = 7 is two steps beyond the data; the further you go, the more a small error in b is multiplied.

Common mistakes

Keep in mind: An exponential fit describes the data you have; it does not prove the process will keep growing at the same rate.

Frequently asked questions

How does exponential regression work?

It fits a straight line to ln y against x, then converts the slope and intercept back to b and a.

Why must y be positive?

The logarithm of zero or a negative number is not defined.

What does b = 1.45 mean?

y is multiplied by 1.45, a 45 % increase, for each unit of x.

Sources: NIST/SEMATECH e-Handbook of Statistical Methods, §4.1.4.1 Linear Least Squares Regression

Checked 9 Nov 2026. NIST/SEMATECH e-Handbook of Statistical Methods, §4.1.4.1 Linear Least Squares Regression (least squares for models linear in the parameters), applied to the log-transformed model ln y = ln a + x·ln b; back-transformation b = e^slope, a = e^intercept (standard method).

🧮 All math & statistics tools →🌍 Calculators by country →