Skip to content
Omnikalc

Exponential fit through two points calculator

Enter two measured points and a value of x to get the exponential curve through them, its growth rate per unit, its doubling time and the predicted value.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Results

Rate constant b

0.11756

Coefficient a (value at x = 0)
100.0000
Growth per unit of x
12.47 %
Doubling time (or half-life if negative growth)
5.896
Predicted y
256.116

The exponential fit calculator finds the curve y = a·e^(bx) through two points and gives the growth rate, the doubling time and the predicted value at any x.

How the calculation works

  • Enter the x and y of the two points.
  • Enter the x at which you want a prediction.
  • The calculator gives b, a, the growth per unit, the doubling time and the predicted y.

Example

A quantity of 100 at x = 0 and 180 at x = 5 gives b = ln(1.8) / 5 = 0.11756. The coefficient a is 100.0000, the growth is 12.47 % per unit and the doubling time is ln 2 / b = 5.896 units. At x = 8 the curve predicts 256.116.

Why it matters

The calculator helps students, analysts and scientists to turn two measurements into a growth model, for example for users, bacteria, prices, a drug level or a radioactive sample.

Good to know

Use the points that are farthest apart and least noisy, because a small error in y gives a large error in b when the points are close. If you have more than two points, fit a regression on ln y against x instead, which uses all the data. The result is a model with a constant percentage change per unit of x, so check that this makes sense for your process. In finance, it is the continuous growth rate, and the equivalent annual rate is e^b − 1. For a decay, such as a drug level or a radioactive isotope, a negative b gives the half-life directly. Beware of extrapolating far away, since small errors in b grow into large errors in y.

The exponential growth calculator starts from a known rate, the linear regression calculator fits a line, the CAGR calculator gives the annual rate of an investment and the doubling time calculator treats cells and bacteria.

Frequently asked questions

How is the curve found from two points?

For y = a e^(bx), taking the logarithm gives a straight line, ln y = ln a + b x. The slope between the two points gives b = ln(y2 / y1) / (x2 − x1), and a follows from either point. Both y values must be positive, because the logarithm of zero or of a negative number does not exist.

How do I read the growth per unit?

The growth per unit of x is e^b − 1, expressed as a percentage. If x is in years, it is the annual growth rate, equal to the compound annual growth rate between the points. A negative value is a decay, and the doubling time is then reported as a half-life.

Is an exponential fit reliable for forecasting?

Two points fix a curve but do not test it. Real growth often slows down, for example when a market saturates or a resource runs out, and a logistic curve fits better. Use the forecast only close to the measured range and check it against a third point.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.