Skip to content
Zesona
Correlation Coefficient CalculatorLocal

Correlation Coefficient Calculator

Compute Pearson's correlation coefficient with an exact r squared, and the warnings a correlation needs.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

13 characters

At least three values, separated by commas, spaces or new lines.

13 characters

The same number of values as x, in matching order.

How many digits to show when the answer is irrational. An exact answer ignores this.

Ready

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Paste matching lists of x and y values.

  2. 2

    r squared is exact; r is its square root and carries a stated precision.

  3. 3

    Read the notes before drawing a conclusion from the number.

Questions about Correlation Coefficient Calculator

Does a high correlation mean one thing causes the other?

No. Correlation measures how two quantities move together, and that can happen because one causes the other, because a third thing causes both, because of a selection effect in how the data was gathered, or by chance. Establishing causation needs an experiment or a careful causal argument - the coefficient cannot supply either.

Can a strong relationship have a low r?

Easily. r measures *linear* association only. A perfect parabola can have an r near zero, and a perfect exponential relationship has an r well below 1. Plot the data: Anscombe’s four datasets all have r = 0.816 and look nothing like each other.

Why is r squared exact when r is not?

Because r squared is a ratio of exact sums of products, with no root involved - this tool reports it as a fraction. r is its square root, which is usually irrational. NumPy gives 0.6000000000000001 for a case where the exact value is 3/5.

How much data do I need?

More than feels necessary. With ten pairs, values of r above 0.6 arise easily from entirely unrelated data. The tool warns below ten pairs. A correlation from a small sample is an estimate with a wide interval around it, not a measurement.

Is my data sent anywhere?

No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.

Other tools you might reach for next.