Correlation Calculator
Calculate the Pearson correlation and the least-squares regression line from two lists of paired values.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Correlation Calculator does
Use this correlation calculator to calculate the Pearson correlation and the least-squares regression line from two lists of paired values. Fill in all 2 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for measuring the association between two measured variables. We run a second free tools site as well — FreeToolStation.org.
How to use it
- Enter the X values, separated by commas, spaces or new lines.
- Enter the matching Y values in the same order.
- Read the correlation, R squared and the regression equation.
How it works
Pearson r measures linear association only, and it runs from −1 to 1. A perfect parabola has an r near zero over a symmetric range, because there is no linear trend even though the relationship is exact. Always plot the data before trusting a correlation coefficient.
R squared is the share of variance in y explained by the linear fit. An r of 0.7 gives an R squared of 0.49, meaning about half the variation is accounted for — which sounds much less impressive than "0.7 correlation" and is the more honest way to report it.
Correlation does not establish causation, and the reason is worth stating concretely: a correlation between two variables is equally consistent with the first causing the second, the second causing the first, a third variable causing both, and a selection effect in how the data was gathered. Distinguishing those requires design, not arithmetic.
The verbal strength labels are a convention and nothing more. What counts as a strong correlation differs enormously between fields — 0.3 is a substantial effect in much of psychology and would be alarming in a calibration experiment.
When to use it
- Measuring the association between two measured variables.
- Fitting a trend line to paired data.
- Checking a reported correlation.
- Working through a statistics exercise.
Common mistakes to avoid
- Reading a correlation as evidence of causation.
- Trusting r on data with a non-linear relationship or strong outliers.
- Mismatching the two lists, so pairs are misaligned.
Frequently asked questions
What does a correlation of 0.8 mean?
A strong positive linear association. The R squared is 0.64, so about 64% of the variance in y is explained by the linear relationship with x.
Can correlation be zero when there is a relationship?
Yes. Pearson r detects linear association only. A perfect U-shaped relationship can have a correlation near zero.
What is R squared?
The square of the correlation, interpreted as the proportion of variance explained by the linear fit. It is usually the more informative figure to report.