Linear Regression & Correlation Calculator

Least-squares linear regression: slope, intercept, Pearson correlation r, R² and prediction from paired x and y data.

Results

Regression line—
Slope—
Intercept—
Pearson r—
R²—
Predicted y—
Std. error of estimate—

How to use the Linear Regression & Correlation Calculator

  1. Enter or select: x values, y values.
  2. Fill in what you know of: Predict y at x = — leave the unknown empty.
  3. The results (Regression line, Slope, Intercept, Pearson r, R², Predicted y, Std. error of estimate) are calculated instantly as you type.
  4. Use “Copy link” to share the calculation with the same input values.

Formula

  • m = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)²
  • r = Sxy / √(Sxx·Syy)