About the Linear Regression Calculator
A tool for fitting a best-fit line to your x,y data and predicting new values.
What it is
The Linear Regression Calculator fits a straight line to a set of x,y data points using ordinary least squares, giving you the slope, intercept, and full equation, along with R² and the Pearson correlation coefficient to judge fit quality. A scatter plot shows your data and the fitted line together, and you can predict y for any x using the resulting equation.
Features
Least-squares fit
The standard method for fitting a straight line to scattered data.
R² and correlation
See both the coefficient of determination and Pearson's r.
Live scatter plot
Data points and the regression line update as you edit.
Prediction
Enter any x to get its predicted y from the fitted line.