This free correlation coefficient calculator finds Pearson’s r for two lists of numbers. You also get R², a p-value, a plain-English description of the relationship and a live scatter plot with the line of best fit.
Correlation Coefficient Calculator
Pearson r, R² and a scatter plot of your data
Step-by-step solution
How to Use the Correlation Calculator
- Paste your X values in the first box and your Y values in the second, in matching order.
- Press Calculate.
- Read r, check the scatter plot, and scroll down for each step of the working.
Pearson Correlation Formula
r = Σ(x − x̄)(y − ȳ) ÷ √[ Σ(x − x̄)² × Σ(y − ȳ)² ]
The top part measures how X and Y move together. The bottom part scales it so r always lands between −1 and +1.
How Strong Is Your Correlation?
| Value of r (either sign) | Strength |
|---|---|
| 0.00 to 0.19 | Very weak |
| 0.20 to 0.39 | Weak |
| 0.40 to 0.59 | Moderate |
| 0.60 to 0.79 | Strong |
| 0.80 to 1.00 | Very strong |
These cutoffs are a common rule of thumb. Fields such as psychology or physics may use different ones.
Worked Example
Hours studied (2, 3, 5, 6, 8, 9, 10, 12) and test scores (58, 62, 70, 68, 79, 81, 85, 92). Press Load example to see it in the tool. The result is r ≈ 0.99, a very strong positive relationship: more study hours go with higher scores in this illustrative data.
Things to Watch
- Correlation is not causation. Two things can move together because of a third factor.
- Pearson r only measures straight-line relationships. Always look at the scatter plot.
- A single outlier can raise or lower r a lot.
Correlation looks at the link between two variables. To predict one from the other, try our Linear Regression Calculator.
Frequently Asked Questions
What does a correlation of 0 mean?
It means there is no straight-line relationship between the two variables. There could still be a curved relationship, so check the scatter plot.
What is the difference between r and R²?
r shows the direction and strength of the relationship. R² is r squared and tells you the share of the variation in Y that is explained by X. For example, r = 0.8 gives R² = 0.64, or 64%.
How many data pairs do I need?
The calculator needs at least 3 pairs, but small samples can produce large correlations by chance. Look at the p-value: if it is above 0.05, the correlation may not be real.
Can I use this for Spearman correlation?
This tool calculates Pearson r. Spearman correlation uses ranks instead of raw values and is better for ordinal data or curved but steady relationships.
More Free Tools
Variance Calculator · Standard Error Calculator · Confidence Interval Calculator · Z-Score Calculator · P-Value Calculator · Linear Regression Calculator · Probability Calculator · Percentage Calculator · Grade Calculator · Flip a Coin · Random Number Generator
See every tool on our free statistics and math tools page.
This calculator is for learning and everyday use. Double-check important results, and follow your teacher's or school's method for graded work.