Correlation Calculator
Find the Pearson correlation coefficient between two lists of numbers, with R squared, the p-value and a description of the strength.
These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.
How it works
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
The formula
r = sum((x - mean x)(y - mean y)) / sqrt(sum((x - mean x)^2) sum((y - mean y)^2))
Frequently asked questions
Does correlation prove cause?
No. Two things can move together because of a third factor or by chance.
What is a strong correlation?
A magnitude above about 0.7, though the field matters.
Is what I enter sent anywhere?
No. The calculation is done in your browser, so your numbers are not sent to a server or saved.
Related tools
Linear Regression Calculator
Fit the best straight line through your x and y data and get the slope, intercept, R squared and a prediction for any x.
Scientific Graph Plotter
Plot a function of x or a set of data points with an optional best-fit line, and see the graph right away with axis labels.
P-Value Calculator
Convert a z score, t value, chi-square or F value into a p-value, one or two tailed, with the degrees of freedom you supply.