Connect via MCP →

Enter Calculation

Formula

Formula: Exponential Regression Calculator

Advertisement

Results

2"> .main-result { background:#e3f2fd; border:2px solid #2196F3; border-radius:6px; padding:1.5rem; margin-bottom:1rem; text-align:center; } .main-result-label { font-size:1.1rem; color:#1565C0; margin-bottom:0.5rem; } .main-result-value { font-size:1.9rem; font-weight:800; color:#0D47A1; line-height:1.2; word-break:break-all; } .main-result-unit { font-size:1rem; color:#1976D2; margin-top:0.25rem; } .result-table { width:100%; border-collapse:collapse; margin-top:1rem; } .result-table th, .result-table td { padding:0.5rem 0.6rem; text-align:left; border-bottom:1px solid #ddd; font-size:0.95rem; } .result-table th { background:#f5f5f5; font-weight:600; } .error-box { background:#ffebee; border:2px solid #e53935; border-radius:6px; padding:1rem; color:#b71c1c; font-weight:600; }
Fitted equation
y = 0.9955274925 * e^(1.001187300 * x)
Strong correlation
A (coefficient) 0.995527
B (exponent rate) 1.001187
Correlation coefficient r 0.999999
Data points (n) 5

What is exponential regression?

Exponential regression fits a curve of the form \(y = A\cdot e^{Bx}\) to a set of paired data points. It is the standard tool for modeling quantities that grow or decay at a rate proportional to their current size, such as population growth, radioactive decay, compound interest, or bacterial cultures. This calculator is a pure mathematical and statistical tool, so it applies identically everywhere with no country-specific assumptions.

Scatter points with a smooth upward exponential curve fitted through them
Exponential regression fits a smooth curve y = A·e^(Bx) through scattered data points.

How to use it

Enter your independent values in the X values box and your dependent values in the Y values box, both as comma-separated numbers. The two lists must have the same number of entries, you need at least two points, and every Y value must be strictly positive (the method requires the natural logarithm of y). Choose the display precision, then read off the fitted coefficients A and B, the correlation coefficient r, and the assembled equation.

The formula explained

Because \(y = A\cdot e^{Bx}\) is non-linear, we linearize it by taking natural logarithms: \(\ln y = \ln A + B\cdot x\). This is an ordinary linear regression of \(\ln(y)\) against \(x\). Using the centered sums \(S_{xx} = \sum (x - \bar{x})^2\), \(S_{yy} = \sum (\ln y - \overline{\ln y})^2\), and \(S_{xy} = \sum (x - \bar{x})(\ln y - \overline{\ln y})\), the slope is $$ B = \frac{S_{xy}}{S_{xx}} $$ and $$ A = \exp\!\left(\overline{\ln y} - B\cdot\bar{x}\right). $$ The correlation $$ r = \frac{S_{xy}}{\sqrt{S_{xx}}\cdot\sqrt{S_{yy}}} $$ lies between \(-1\) and \(1\); values above 0.7 in magnitude indicate a strong fit.

Advertisement
Two exponential curves showing positive and negative growth rates
The sign of B controls growth (B>0) versus decay (B<0); A sets the starting value at x=0.

Worked example

For \(x = [1, 2, 3, 4, 5]\) and \(y = [2.7, 7.4, 20.1, 54.6, 148.4]\) (roughly \(e^{x}\)), we get \(S_{xx} = 10\), \(S_{xy} \approx 10.0115\), \(S_{yy} \approx 10.0231\). Then \(B \approx 1.0012\), \(A \approx 0.9956\), and \(r \approx 1.0000\). The fitted curve $$ y \approx 0.9956\cdot e^{1.0012x} $$ confirms the data came from \(y = e^{x}\).

FAQ

Why must Y be positive? The method takes \(\ln(y)\); the logarithm of zero or a negative number is undefined, so non-positive Y values are rejected.

What does r near 1 mean? It means the exponential model explains the data very well. Values near 0 mean little or no exponential relationship.

Can x be negative? Yes. X can be any real number; only Y is restricted to positive values.

Last updated: