Home Calculators Linear Regression Calculator

Linear Regression Calculator

Compute the line of best fit, R² correlation, slope, intercept, residuals, and predictions from any dataset. Includes scatter plot visualization.

Data Input

Enter your X and Y data points — one pair per line, comma or tab separated

Dataset
Prediction

Interpreting R²

R² = 0.9–1.0

Very strong fit

R² = 0.7–0.9

Strong fit

R² = 0.4–0.7

Moderate fit

R² < 0.4

Weak fit

R² (R-Squared)
--
Equation
y = mx + b
line of best fit
Key Statistics
Slope (m)--
Intercept (b)--
Correlation (r)--
Std Error--
n (data points)--
Predicted Y
--
for x = --
Descriptive Stats
Mean X--
Mean Y--
Std Dev X--
Std Dev Y--