Statistics

Regression Line Calculator

Least squares regression finds the best-fit line through your data by minimizing the sum of squared residuals. Enter paired X and Y data to get the slope (m), intercept (b), the line equation ŷ = mx + b, and make predictions for new X values.

One per line or comma-separated
Same count as X
ŷ = — x + —
Slope (m)
Intercept (b)
R² (fit)
n pairs

Predict ŷ for a new X