esc
Calculators

Correlation coefficient calculator:
Pearson r and Spearman ρ

Paste two columns of numbers, such as hours studied and exam scores, and find out how closely they move together and whether that link is significant.

Same count as Y, in the same order.
Pearson correlation coefficient (r)0.99042very strong, positive relationship
r² (share of variation explained)
0.98093 (98.09%)
Spearman rank correlation (ρ)
0.97576
t statistic
20.286363
p-value (two-tailed)
3.643e-8
Pairs (n)
10
Sample covariance
57.222222
Mean of X, mean of Y
9.5, 69.6
  • r = Σ(x − x̄)(y − ȳ) ÷ √( Σ(x − x̄)² × Σ(y − ȳ)² ). It measures straight-line association only, and correlation alone does not show cause.
  • Spearman’s ρ is Pearson’s r on the ranks (ties get their average rank), so it also catches curved but steadily rising or falling patterns.

How to use Correlation coefficient calculator

  1. 01Paste the X valuesOne per pair.
  2. 02Paste the Y valuesIn the same order.
  3. 03Read r and its p-valuePlus Spearman’s ρ.
File character arranging marked pages

How closely two things move together.

Pearson’s r runs from −1 (a perfect falling line) through 0 (no straight-line link) to +1 (a perfect rising line). It is the sum of the products of each pair’s deviations divided by the square root of the product of the two sums of squares. Spearman’s ρ applies the same formula to ranks, so it suits data with outliers or curved but steady trends.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

What counts as a strong correlation?

A common rule of thumb, which the calculator uses for its label: |r| below 0.3 is very weak, 0.3 to 0.5 weak, 0.5 to 0.7 moderate, 0.7 to 0.9 strong and 0.9 or more very strong. What matters in practice depends on the field.

What does r² mean?

The share of the variation in Y that a straight line on X accounts for. In the example on this page r = 0.990, so r² = 0.981: about 98% of the variation is explained.

Does a high correlation prove one thing causes the other?

No. Both may be driven by a third factor, or the link may be chance in a small sample. Correlation is a reason to look closer, not proof of cause.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.