Line of Best Fit Calculator
Find the straight line that fits a list of points best, and see how well it fits. Type one point per line.
1 Paste or type your text
2 Your answer
Your answer shows here as you type.
How to use the Line of Best Fit Calculator
- Type one point per line: the x number, a comma, then the y number.
- Read the line equation and the fit score.
- A fit score near 1 means the points lie close to the line.
Frequently asked questions
What is a line of best fit?
The straight line that comes closest to all the points at once. It is found with least squares, which makes the total squared distance from the points as small as possible.
What does the fit score mean?
It is R squared. A score of 1 means every point sits exactly on the line. A score near 0 means the line hardly describes the points.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.