How this correlation calculator works
Paste two paired lists and this calculator reports Pearson's r. The headline is r with up to four decimal places. Details always show R², pairs used, mean X, mean Y, SD X, SD Y, covariance, and a strength/direction interpretation. Those extras do not wait on Advanced options.
You need at least two overlapping pairs. Empty either list is no result. If X or Y has no variation (every value identical), the widget reports One of the lists has no variation and no result. At most 5,000 numbers are used per list. Advanced options is GPA-style: Show regression line is unused while the section is closed, even if it stays checked.
How to use the correlation calculator
- Paste or type X values. Separate them with spaces, new lines, or semicolons. A comma or a dot can be a decimal.
- Paste matching Y values in the same order. Empty either list is no result. Two pairs or more are needed.
- Read Pearson's r in the headline, plus R², pairs used, means, SDs, covariance, and the interpretation.
- Open Advanced options only if you want Show regression line. Closing hides slope b and intercept a even if the checkbox stays checked.
Advanced options, and closing them
This section is GPA-style. Closed, Show regression line is unused even if it stays checked. Open and checked, extra rows show slope b and intercept a for the line y = a + bx, with b = cov(X, Y) / var(X). R², pairs used, means, SDs, covariance, and interpretation stay visible.
Pearson’s r formula
r is the covariance of X and Y divided by the product of their standard deviations, which is the same as the formula below. R² is r × r — the proportion of variance in Y associated with X. Means, SDs, and covariance on this page use n, not n − 1. Interpretation bands: |r| under 0.2 very weak, 0.2 weak, 0.4 moderate, 0.6 strong, 0.8 very strong, plus the sign of r.
How a pasted list is read
Both lists split on spaces, new lines, and semicolons — not on every comma — so a European 12,5 13,2 stays two values. A comma-separated integer list such as 12,15,18 still works. US thousands (1,234.5) stay one number. Tokens that are not finite numbers are skipped and counted. At most 5,000 numbers are used per list.
Worked examples
Example: X = 1, 2, 3, 4, 5 and Y = 2, 4, 5, 4, 5
Five pairs. Mean X = 3, mean Y = 4. r ≈ 0.7746, which is the headline. R² ≈ 0.6000. Interpretation is Strong positive correlation (|r| ≥ 0.6 and below 0.8). Covariance uses n, so cov = 1.2. SD X ≈ 1.4142, SD Y ≈ 1.0954.
Example: the same lists with Show regression line
Open Advanced options and tick Show regression line. Slope b = 0.6 and intercept a = 2.2, so y = 2.2 + 0.6x. Closing Advanced options hides those two rows even if Show regression line stays checked. r, R², and the other details stay.
Example: no variation, or a mismatch
X = 1, 1, 1 and Y = 2, 3, 4 gives no result: One of the lists has no variation (all values are identical). Correlation cannot be calculated. Three X values and two Y values warn that the lists must match; overlapping pairs are still used if there are at least two. One pair shows Two pairs or more are needed.
Things to keep in mind
Pearson’s r only measures linear association. R² is not the headline — r is. Closing Advanced options does not clear your lists. Completed results can be saved in this browser’s local history.
Correlation calculator FAQ
Which fields are required?
A non-empty X list and a non-empty Y list that produce at least two overlapping pairs, with variation in both lists. Empty either list is no result. Advanced options is optional.
What happens when I close Advanced options?
Slope b and intercept a are unused even if Show regression line stays checked — the same GPA contract as other calculators on this site. Pearson’s r, R², pairs used, means, SDs, covariance, and interpretation stay visible.
What do the interpretation labels mean?
They follow |r|: under 0.2 very weak, 0.2 weak, 0.4 moderate, 0.6 strong, 0.8 very strong, plus positive or negative from the sign of r. They are a reading aid, not a hypothesis test.
Do the SDs and covariance use n − 1?
No. This widget divides by n. The Pearson r formula itself does not depend on that choice; r matches the usual product-moment coefficient.
What if the lists have different lengths?
A mismatch warning appears. The widget still pairs the overlapping entries. Tokens that are not finite numbers are skipped and counted. At most 5,000 numbers are used per list.
Does this correlation calculator store my numbers?
Completed results can be saved in this browser’s local history so you can reopen them later. They stay on your device and are not sent to our servers or to analytics.