Math & Everyday
Correlation Calculator
The correlation between two lists, plus the line of best fit.
A correlation coefficient, r, measures how tightly two lists of numbers follow a straight line, on a scale from −1 through 0 to 1. Type the pairs in order and this gives r, the slope and intercept of the line of best fit, and the averages of both lists, with the sums written out so the result can be checked.
Your measurements
Loading calculator…
What your project looks like
How this is worked out
r compares how x and y move together with how much each moves on its own: the sum of (x − x̄)(y − ȳ) divided by the product of the two spreads. The slope of the best-fit line is that same sum divided by the sum of (x − x̄)², and the intercept is ȳ − slope × x̄. The page shows the averages and the sums it used.
Good to know
- r near 0 means little straight-line pattern; it does not mean the two things are unrelated, just not in a straight line.
- One far-out pair can move r a long way, so look at the points, not only at the number.
- Keep the lists in the same order — the pairing is what the answer describes.
What this assumes
- Each x is paired with the y in the same position in the other list.
- The relationship is looked at as a straight line, so the slope and intercept describe it.
- Correlation measures how close the points sit to a line — it does not prove one thing causes the other.
Common questions
What does r = 1 or r = −1 mean?
The points lie exactly on a straight line. r = 1 means the line rises; r = −1 means it falls. Both are perfect straight-line relationships, in opposite directions.
Does a high correlation mean one thing causes the other?
No. Two things can move together for a third reason. Correlation describes the pattern in your numbers, not the reason behind it.
Estimate only. Figures come from the numbers you enter and the standard rates shown on the page. Check anything that matters against the official figure before you rely on it.