Exponential Regression Calculator - Fit, Score, and Predict

Exponential regression calculator: feed up to ten (x, y) pairs and read coefficients a and b, the fitted equation, R-squared, and a predicted y for any new x.

Updated: June 16, 2026 • Free Tool

Exponential Regression Calculator

First x observation. Negative, zero, or positive values all work.

First y observation. y must be strictly positive for the log-linear fit.

Second x observation, same scale as x1.

Second y observation. y must be strictly positive.

Third x observation. At least two rows are needed for a fit.

Third y observation. y must be strictly positive.

Optional x observation.

Optional y observation. y must be strictly positive.

Optional x observation.

Optional y observation. y must be strictly positive.

Optional x observation.

Optional y observation. y must be strictly positive.

Optional x. Leave blank to ignore.

Optional y. Leave blank to ignore.

Optional x. Leave blank to ignore.

Optional y. Leave blank to ignore.

Optional x. Leave blank to ignore.

Optional y. Leave blank to ignore.

Optional x. Leave blank to ignore.

Optional y. Leave blank to ignore.

x at which the calculator reads the predicted y from the fitted curve.

Results

Fitted Equation
0
Coefficient a 0
Coefficient b 0
R-squared 0
Log-linear R-squared 0
Predicted y 0
Points Used 0
Fit Status 0

What Is an Exponential Regression Calculator?

An exponential regression calculator is a single-form curve-fitting tool that turns a set of (x, y) data pairs into the coefficients of the model y = a * e^(b*x). It takes the natural log of every y, runs a simple linear regression on ln(y) against x, then reads the multiplier a and the growth rate b back out of the slope and intercept. The result panel shows the fitted equation, the coefficient of determination, and the predicted y for any new x value.

  • Fitting growth curves: Estimate the growth rate and starting value of a population, revenue, or adoption curve.
  • Calibrating physical models: Fit a model such as radioactive decay, heat loss, or a capacitor discharge where theory predicts an exponential form in time.
  • Modelling finance and biology: Use the same model for compound interest, bacterial growth, or pharmacokinetic absorption.
  • Classroom statistics homework: Verify a hand-calculated exponential fit, or check whether curved data follow an exponential form.

The only inputs are the data pairs themselves; the rest is the log-linear transform and a least-squares step, both of which the calculator runs every time you change a cell.

When the data look linear instead of curved, the Linear Regression Calculator runs the same least-squares step without the log transform.

How the Exponential Regression Calculator Works

The form reads up to ten (x, y) pairs, takes the natural log of every y, and fits a straight line to (x, ln(y)) by ordinary least squares. The slope of that line is the growth rate b, the intercept is ln(a), and a is recovered by exponentiation. The same slope and intercept give the log-linear R^2; a second R^2 in y-space shows how well the curve hugs the points.

ln(y) = ln(a) + b*x => a = exp(intercept), b = slope
  • x, y: Paired observations. y must be strictly positive so that ln(y) is defined.
  • ln(y): Natural log of every y value; the dependent variable in the working linear regression.
  • slope (b): Slope of the linear regression of ln(y) on x; the per-unit-x growth rate of the fitted curve.
  • intercept (ln a): Intercept of the same regression. The multiplier a is recovered by exponentiation.
  • R^2: Coefficient of determination, reported in both the original y space and the log-linear space.

Predicted y is a * e^(b * x). The two R^2 values agree closely on clean data and diverge when the noise is multiplicative.

Six-point exact sample from y = 2 * e^(0.5*x)

x = 1..6; y = 3.2974, 5.4366, 8.9634, 14.7781, 24.3645, 40.1711

mean(x) = 3.5, mean(ln y) = 2.4423; slope b = 0.4994; a = exp(0.6939) = 2.0015

a = 2.00, b = 0.50, R^2 = 1.0000, predicted y at x = 7 = 66.23

The fit recovers a and b to four significant figures and explains 100% of the variance in y.

Nine-point noisy sample around y = 3 * e^(0.4*x)

x = 0..8; y = 3.05, 4.40, 6.95, 10.45, 16.60, 24.20, 38.10, 58.20, 88.95

slope b = 0.4247; a = 2.9648

a = 2.97, b = 0.425, R^2 = 0.9985, predicted y at x = 9 = 135.5

Small noise on each y value leaves the coefficients within 1% of the true values, and the model still explains over 99% of the variance.

According to Wolfram MathWorld, an exponential model y = a*e^(b*x) can be fit by ordinary least squares after taking the natural log of y, which gives the linear regression ln(y) = ln(a) + b*x

The R^2 on the result panel is the squared correlation between observed y and predicted y, and the Statistics Calculator covers the descriptive statistics that often sit on either side of an exponential fit.

Key Concepts Behind Exponential Regression

A small set of ideas shows up in every discussion of exponential regression. Knowing which one applies to your data decides how the calculator behaves and how the answer should be read.

Log-linear least squares

The fit is linear after taking the natural log of y. Running ordinary least squares on the transformed data gives a slope and intercept that exponentiate back to the a and b of the original model.

Multiplicative vs additive error

Taking the log turns multiplicative noise on y into additive noise on ln(y). The log-linear R^2 measures fit in ln(y) space; the y-space R^2 measures fit on the original scale.

R-squared interpretation

R^2 = 1 - sum((y_i - predicted_i)^2) / sum((y_i - mean(y))^2). R^2 near 1 means the model hugs the points; a low R^2 means an exponential is the wrong shape.

y must be positive

The natural log of zero or a negative number is undefined, so the calculator refuses to fit when any y is zero or negative. Add a small constant if the dataset contains zeros.

When the data also look reasonable under a power-law model, try a log-log regression instead.

Once the coefficients a and b are known, the Exponential Growth Prediction Calculator projects a fitted curve forward in time using the same model form.

How to Use This Exponential Regression Calculator

Type one (x, y) pair per row, leave extra rows blank, and set the prediction x. The result panel updates as you type, so the coefficients, R^2, and predicted y are visible on the same screen.

  1. 1 Enter at least two (x, y) pairs: Use the same units for every x and every y. The form is pre-filled with a six-point exact sample; two points fit a curve but R^2 is exactly 1 by construction.
  2. 2 Use positive y values: Zero or negative y values trigger a status message instead of a fit. Add a small constant or drop the row.
  3. 3 Leave extra rows blank: Blank rows are ignored. A six-point dataset works the same as a ten-point dataset if the extra rows stay blank on both sides.
  4. 4 Set a prediction x: The predict x field reads the fitted curve at any x value, including values outside the original range.
  5. 5 Read the equation, coefficients, and R^2: The primary line shows the equation; the next two lines are the coefficients a and b; R^2 tells you how much of the variance in y the model explains.
  6. 6 Watch the status message: The status row flags small samples, low R^2, all-equal y, and invalid y.

A biologist measures bacterial count at hours 0, 1, 2, 3, 4, 5 and gets 3.05, 4.40, 6.95, 10.45, 16.60, 24.20 (in thousands). Enter the six pairs, predict at x = 9, and the calculator returns a = 2.97, b = 0.425, R^2 = 0.9985, and predicted y of about 136 thousand cells. The doubling time is ln(2) / 0.425 = 1.63 hours.

When you only need to evaluate y = a * e^(b*x) for one set of a, b, and x, the Exponential Function Calculator is the lighter-weight tool for that single evaluation.

Benefits of Using This Exponential Regression Calculator

The form replaces a log-linear transform, a least-squares step, an exponentiation, and a read-off with one screen.

  • One form for the full fit: Enter the (x, y) pairs once and the calculator shows the equation, the coefficients a and b, the R^2, the log-linear R^2, the prediction, and a status message in one place.
  • Two R^2 values for honesty: Reporting both R^2 values makes it obvious when the noise is multiplicative or when the model is the wrong shape for the data.
  • Up to ten pairs by default: Ten rows cover most classroom samples and calibration runs without forcing the user to truncate data.
  • Live prediction at any x: The predict x field reads the fitted curve at any x, so the form covers in-sample fit and out-of-sample forecasting.
  • Honest status messages: Small samples, low R^2, all-equal y, and invalid y each produce a labelled message instead of a silently wrong number.

When the dataset is a sample of waiting times and the goal is to estimate the rate parameter of an exponential distribution, the Exponential Distribution Calculator takes a different route to a related but distinct question.

Factors That Affect Your Exponential Regression Results

Most mistakes with exponential regression come from the data shape, not from the math. A short checklist before reading the result keeps the coefficients honest.

Sign and scale of y

The natural log requires y > 0. Negative y, zero y, and very small y with multiplicative noise push the fit in unintended directions. A small positive offset can stabilise the fit but changes a.

Sample size and range

Fewer than five points is too few to spot a curved residual pattern, and a narrow x range hides any change in b. Spread x across the prediction range.

Outliers and leverage

A single point with a large x pulls the slope b. Plot x against ln(y) to spot high-leverage points before fitting.

Wrong model family

If the scatter looks like an S-curve or a power law, an exponential will return low R^2 and a misleading b. Try a logistic, Gompertz, or power-law model instead.

  • The log-linear fit is biased when the noise on y is multiplicative and large; the bias shrinks with sample size but is not zero, so a tends to be a little smaller than the true a on small samples.
  • Confidence intervals and prediction intervals are not reported. A user who needs a standard error on a or b should use a dedicated statistics package.

When the same data look reasonable under several models, compare R^2, residuals, and domain knowledge rather than the smallest R^2 or the most familiar curve.

According to NIST/SEMATECH e-Handbook of Statistical Methods, the standard error of the fit and the coefficient of determination can be computed once the exponential coefficients are estimated by least squares

According to Wikipedia (Nonlinear regression), exponential regression is a special case of nonlinear regression in which the model y = a*e^(b*x) is fit by linearising ln(y) = ln(a) + b*x and using ordinary least squares on the transformed data

When the fitted curve describes a biological population, the Bacteria Growth Calculator turns the same a and b into a doubling time and a population forecast at any later time point.

Exponential regression calculator interface showing paired (x, y) inputs, fitted coefficients a and b, the equation y = a*e^(b*x), R-squared, and a predicted y output.
Exponential regression calculator interface showing paired (x, y) inputs, fitted coefficients a and b, the equation y = a*e^(b*x), R-squared, and a predicted y output.

Frequently Asked Questions

Q: What is an exponential regression calculator?

A: An exponential regression calculator fits the model y = a * e^(b*x) to a set of (x, y) data points. It takes the natural log of every y, runs a linear regression of ln(y) on x, and reads the coefficients a and b back out of the slope and intercept.

Q: How do you fit an exponential curve to a set of data points?

A: Take the natural log of every y value to get ln(y). Run an ordinary linear regression of ln(y) on x; the slope becomes b and the intercept becomes ln(a). Exponentiate the intercept to recover a, and you have the fitted equation y = a * e^(b*x).

Q: What is the exponential regression formula?

A: The fitted model is y = a * e^(b*x). Inside the calculator the fit is done in the linear form ln(y) = ln(a) + b*x, with b equal to the slope and a equal to exp(intercept) of the linear regression of ln(y) on x.

Q: How is R-squared calculated for an exponential fit?

A: R^2 is 1 minus the sum of squared residuals of y divided by the total sum of squares of y. The calculator reports this R^2 in the original y space and also the R^2 of the linear regression in the log-linear space, so the two perspectives are easy to compare.

Q: When should I use exponential regression instead of linear regression?

A: Use exponential regression when the data rise or fall by a roughly constant percentage per unit x, or when theory predicts an exponential form such as compound growth, decay, or a charge/discharge curve. Use linear regression when the relationship between x and y is approximately a straight line in the original scale.

Q: Can I predict new values from an exponential regression model?

A: Yes. Type any x value into the predict x field and the calculator returns the predicted y = a * e^(b*x). Treat predictions outside the fitted x range as extrapolations, and watch the status line for low-R^2 warnings before trusting them.