Correlation Coefficient Calculator

Pearson r and r² from two paired lists — with covariance and a plain-English read.

The formula behind it

r = Sxy ÷ √(Sxx · Syy)
Sxy
sum of paired deviations from the means — the shared variation
Sxx, Syy
each variable's own variation
r
Pearson correlation — −1 to +1; r² is the variance explained

Pearson's r compares how two variables move together with how much they each move on their own. It is scale-free — height in cm vs kg correlates identically to inches vs pounds — and r² translates it into plain percentages of explained variance.

How to use this calculator

  1. 1

    Paste both lists — comma or space separated, equal length, paired by position.

  2. 2

    Read r with its plain-English strength/direction read.

  3. 3

    Check r² for the share of y's variance that moves with x.

  4. 4

    Use the regression line (slope + intercept) for prediction within your data's range.

  5. 5

    Always pair the number with a scatter plot of your data — see the caveats.

Worked examples

Study hours vs score

x = 2, 4, 5, 4, 5; y = 57, 73, 79, 69, 74 → r ≈ 0.960 (very strong positive), r² ≈ 0.921 — about 92% of score variance tracks study hours in this tiny sample.

Perfect U-shape scores r ≈ 0

x = 1,2,3,4,5; y = 1,0,0,0,1 gives r ≈ −0.29 despite a perfect deterministic relationship — r only sees straight lines. The tool's caveat is not decoration.

Frequently asked questions

Explore more categories

Command Palette

Search for a command to run...