Omni Calculator logo

Exponential Regression Calculator

Created by Anna Szczepanek, PhD
Reviewed by Bogna Szyk and Jack Bowater
Last updated: Sep 03, 2024


Our exponential regression calculator is here for you whenever you need to determine the exponential regression model of a data set, i.e., in other words, to find the exponential curve of best fit.

What is exponential regression? Keep reading as we not only provide you with the exponential regression formula but also explain how to calculate exponential regression and explain in what situations the exponential fit proves useful. As a bonus, we show you how to derive the exponential regression equation so that you don't need to learn it by heart. 😉

What is the exponential regression?

The aim of exponential regression is to find an exponential curve that best fits a given set of data points. This is very similar to other regression models, which you can discover via Omni tools:

There are lots of situations where the data follows neither a straight line nor a parabola, but an exponential curve seems to be just right; these are processes that grow slowly in the beginning and then accelerate rapidly or whose decay begins rapidly and then slows down as time passes. Examples include investment growth, temperatures of cooling objects, and radioactive decay.

Exponential regression model

Let x be the explanatory variable and y the response variable. The exponential regression equation reads y = a × bx, where a ≠ 0 and b > 0, b ≠ 1. The coefficients a and b must be so chosen that the equation corresponds to the exponential curve of best fit for the dataset, (x₁, y₁), ..., (xn, yn):

Exponential curve of best fit
Exponential curve of best fit for a dataset of eight points

In the next section, we will tell you how to find the coefficients a and b. Let's discuss their meaning here:

  • a is the value predicted by the exponential regression model for x = 0;
  • If b > 1, the exponential fit describes an exponential growth; and
  • If 0 < b < 1, the exponential fit describes an exponential decay.

Note that we have a × bx+1 = a × b × bx, so if x increases by 1 unit, then y is multiplied by b. This is in stark contrast to the linear regression y = m × x + c, where an increase in x of 1 unit results in the value of m (slope) being added to y!

How to calculate the exponential regression formula?

We've discussed the equation for exponential fit, but how to calculate exponential regression once we have collected some data? The trick is to:

  1. Transform our data so that it allows a linear model.
  2. Determine that linear model, e.g., with the method of least squares.
  3. Transform the data along with the model back to the original form.

Exponential regression formula for the data (x, y) is:

y = exp(c) × exp(m × x)

where m is the slope and c is the intercept of the linear regression model fitted to the data (x, ln(y)). See the next section to check the details of the derivation.

Exponential regression equation: derivation

With the exponential regression model, we strive to explain our data with the help of the equation in the form y = a × bˣ. Here, we show you how the exponential regression formula can be derived. To determine the coefficients a and b, follow these steps:

  1. Take the logarithm of both sides of the equation; we have the following equivalent equation:

    ln(y) = ln(a × bˣ)

  2. The properties of logarithms give:

    ln(y) = ln(a) + ln(bˣ)

    and

    ln(y) = ln(a) + x × ln(b)

  3. We have expressed ln(y) as a linear function of x, with slope ln(b) and intercept ln(a).

  4. Find the best-fit line for (x, ln(y)). Let's say it reads ln(y) = c + x × m.

  5. Look for the a and b which satisfy

    ln(a) = c and ln(b) = m

  6. To calculate a and b, take the exponent (antilogarithm) of the slope m and intercept c:

    a = exp(c) and b = exp(m)

How to use this exponential regression calculator?

  1. Enter your data into the calculator. You can input up to 30 data points (new rows will appear as you fill out the fields). Remember that we need at least 3 points (both coordinates!) to fit a model.

  2. A scatter plot with your data appears along with the exponential curve of best fit.

  3. Below the graph, you can find the exponential regression equation for your data.

  4. If need be, go to the advanced mode to increase the precision (number of significant figures) with which the coefficient is computed. The default precision is set to 4 sig figs.

FAQ

What is the formula for the exponential function?

The formula for the exponential function is f(x) = a × bx or f(x) = abx, where a is the coefficient, b is the base number, and x is the exponent. This applies when a ≠ 0 and b > 0, b ≠ 1.

How do I calculate exponential regression?

To calculate exponential regression, you need to:

  1. Transform your data so that it allows a linear model.
  2. Determine the specific linear model by using the method of least squares.
  3. Transform the data and the model back to the original form.

What does R-squared mean in exponential regression?

R² is the coefficient of determination in exponential regression. In other words, the value of R² indicates how accurate your regression line represents your data points. The closer R² is to 1, the more accurate the regression is.

What is the difference between linear regression and exponential regression?

The rate of change for y based on x are different. In linear regression, the change of y is a constant addition, while in exponential regression, the change of y is a constant multiplication.

For example, the value of y could increase by +3 in linear regression or ×3 in exponential regression, as shown in the table:

Linear regression

Exponential regression

1

1

4

3

7

9

10

27

13

81

How do I do an exponential regression on Desmos?

To use Desmos to plot an exponential regression:

  1. Input your data points (x1 and y1, etc.) by inserting them in a table, or pasting them from Excel.
  2. Your data plots will appear on your Desmos graph.
  3. Insert your exponential equation or model into the next cell to create an exponential regression line in your graph.
  4. You've nailed it!
Anna Szczepanek, PhD
Exponential model: y = abx
Enter your data (up to 30 points)
x₁
y₁
x₂
y₂
Enter at least 3 points (both x and y coordinates) to get the model.
Check out 26 similar inference, regression, and statistical tests calculators 📉
Absolute uncertaintyAB testCoefficient of determination… 23 more
People also viewed…

Chilled drink

With the chilled drink calculator, you can quickly check how long you need to keep your drink in the fridge or another cold place to have it at its optimal temperature. You can follow how the temperature changes with time with our interactive graph.

Circumference

Use this free circumference calculator to find the area, circumference and diameter of a circle.

Critical value

The critical value calculator helps you find the one- and two-tailed critical values for the most widespread statistical tests.

Mean absolute deviation

The mean absolute deviation calculator can calculate the mean absolute deviation around the mean, median, or any other statistically significant number.