EXPONENTIAL CURVE FIT

Exponential Regression Calculator

Fit an exponential curve ŷ = a·ebx to paired X and Y observations using log-space least squares. Every Y value must be positive. The reported RMSE and R² are computed on the original scale so you can compare them directly with other models.

Log-space least squaresPositive Y requiredBrowser-based

YOUR DATA

Enter paired observations

Paste or upload numeric X and Y columns. All Y values must be greater than zero. Use a period as the decimal mark. Up to 5 MB and 5,000 observations are accepted.

The file is read locally in your browser.

At least two complete pairs with positive Y values are needed.

How to use this calculator

  1. Paste paired X and Y values, or load the worked example.
  2. Choose the X and Y columns. Every Y value must be strictly positive; zero or negative Y values are rejected with a precise message.
  3. Review the fitted equation, curve, original-scale RMSE and R², and row residuals.
  4. Download a JSON summary that records the method and the back-transformation.

Formula and calculation method

The model is ŷ = a·ebx. Because this is nonlinear in the parameters, the calculator uses log-space least squares: it transforms each observed Y to z = ln(Y), fits the straight line z = α + bx by ordinary least squares, then sets a = eα. This minimises Σ(ln(observed) − ln(predicted))², not Σ(observed − predicted)².

Displayed RMSE and R² are computed from the back-transformed predictions ŷ = a·ebx and the original Y values, so they are on the same scale as the observations and can be compared with other models on the same data. The fitting objective itself is squared error in log space.

Worked example: X = [0, 1, 2], Y = [2, 4, 8]. ln(Y) = [ln 2, 2 ln 2, 3 ln 2], so the log-space fit gives α = ln 2 and b = ln 2. Therefore a = eln 2 = 2 and the fitted curve is ŷ = 2·e(ln 2)·x = 2·2x.

Assumptions and limitations

Related calculators

Linear regression · Logarithmic regression · Quadratic regression · Compare regression models