FireCADCalc

Exponential and Power-Law Curve Fit

Least-squares fit of y = a·e^(bx) or y = a·x^b to up to eight points by linearising with logarithms, with R², doubling or halving x and a prediction.

Inputs

Examples: Illustrative exponential growth, six pointsPower law from four pointsExponential decay, eight points

Accepted: 2 to 8
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1E+9 to 1E+9
Accepted: -1,000,000 to 1,000,000

Results

Taking logarithms turns y = a·e^(bx) into ln y = ln a + bx, and y = a·x^b into ln y = ln a + b ln x; an ordinary least-squares line then gives ln a and b. This minimises errors in ln y (relative errors), not in y, so large values carry less weight than in a nonlinear fit; R² refers to the log-linear fit. The doubling output is Δx = ln 2/b for the exponential and the factor 2^(1/b) on x for the power law (negative b gives halving).

Coefficient a3.0971
Exponent or rate b0.35347
R² of the log-linear fit0.99997
Predicted y at x₀36.774
Change in x (or factor in x) that doubles y1.9610

Download PDF CSV Link to this result Compare another case

Log in to save calculations to your dashboard.

Worked example

Example: Illustrative exponential growth, six points. The inputs, in the units selected above:

InputValue
ModelExponential y = a·e^(bx)
Number of points used (2–8)6.0000 -
Point 1: x0 -
Point 1: y3.1000 -
Point 2: x1.0000 -
Point 2: y4.4000 -
Point 3: x2.0000 -
Point 3: y6.3000 -
Point 4: x3.0000 -
Point 4: y8.9000 -
Point 5: x4.0000 -
Point 5: y12.800 -
Point 6: x5.0000 -
Point 6: y18.100 -
Point 7: x0 -
Point 7: y0 -
Point 8: x0 -
Point 8: y0 -
x for prediction7.0000 -

Applying the formula below gives:

ResultValue
Coefficient a3.0971
Exponent or rate b0.35347
R² of the log-linear fit0.99997
Predicted y at x₀36.774
Change in x (or factor in x) that doubles y1.9610

Open this example in the calculator and change any input.

Formula

\(\ln y = \ln a + bx \;\text{or}\; \ln y = \ln a + b\ln x, \quad b = \frac{n\sum uw - \sum u\sum w}{n\sum u^2 - (\sum u)^2}\)

Variables

Symbol Meaning SI unit
\(\text{model}\) Model -
\(n\) Number of points used (2–8) -
\(x_1\) Point 1: x -
\(y_1\) Point 1: y -
\(x_2\) Point 2: x -
\(y_2\) Point 2: y -
\(x_3\) Point 3: x -
\(y_3\) Point 3: y -
\(x_4\) Point 4: x -
\(y_4\) Point 4: y -
\(x_5\) Point 5: x -
\(y_5\) Point 5: y -
\(x_6\) Point 6: x -
\(y_6\) Point 6: y -
\(x_7\) Point 7: x -
\(y_7\) Point 7: y -
\(x_8\) Point 8: x -
\(y_8\) Point 8: y -
\(x_0\) x for prediction -
\(a\) Coefficient a -
\(b\) Exponent or rate b -
\(R^2\) R² of the log-linear fit -
\(\hat y(x_0)\) Predicted y at x₀ -

Method and standards

Log-linear fit.

Where it is used

  • Growth, decay and scaling laws from test data.
  • Fitting fatigue, creep or cost curves.

Common mistakes

  • Including zero or negative y values.
  • Reading R² of the log fit as the R² in y.

Assumptions and limits

  • Errors multiplicative (constant relative scatter); up to eight points.

References

  • Least squares on logarithms of the model

Questions and answers

Why is the fit done on logarithms?

It turns the model into a straight line, so ordinary least squares applies directly.

Is this the same as a nonlinear least-squares fit?

No. It weights relative errors equally; a nonlinear fit in y gives more weight to large values and slightly different coefficients.

What do the defaults represent?

Six illustrative points growing by about 40 % per unit x, fitted with the exponential model and predicted at x = 7.

Method and article reviewed by FireCAD engineering on 17 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.

Sources

Montgomery and Runger, Applied Statistics and Probability for Engineers, 6th ed. (Wiley, 2014)

Related calculators

Free engineering calculators: every page computes in SI and converts to your units. Results are for engineering estimation; verify critical designs against the referenced standards.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.