📈Linear Regression Calculator

Find the best-fit line equation and R² for your x,y data.

Free Linear Regression Calculator

Our free linear regression calculator fits a straight line to your x,y data using the least-squares method, giving you the slope, y-intercept, and full equation in the form y = mx + b. It also computes R² (the coefficient of determination) and r (the Pearson correlation coefficient), so you can judge how well the line actually fits your data.

Paste your data pairs one per line as "x,y", and the scatter plot updates instantly with the fitted regression line drawn through it. Once you have a fit, enter any x value to get its predicted y from the regression equation — useful for forecasting or interpolating between data points.

Built for statistics students working through regression analysis, and for anyone who needs a fast, reliable best-fit line without spreadsheet formulas. No sign-up, no downloads — just instant results.