Linear Regression Calculator
Ordinary least-squares line of best fit, with R² and the fitted line.
Your data
Enter one (x, y) pair per line — e.g. '2, 3.9'.
Result
y = 1.9771x + 0.08least-squares fit over n = 6 points
Slope
1.9771
Intercept
0.08
r
0.9992
R²
0.9984