Statistics

Correlation Coefficient Calculator

Pearson r for two data sets.

Enter your values

ⓘ Live results

Results
Correlation r
0.91652
R squared
0.84
Strength
strong positive
Sample size
6
Variance explained
84%

Quick answer

Pearson's r ranges from −1 to +1, measuring how closely two variables move together in a straight line.

r = Σ(x−x̄)(y−ȳ) / √(Σ(x−x̄)²Σ(y−ȳ)²)

How to use the Correlation Coefficient Calculator

  1. 1Paste your X values separated by commas.
  2. 2Paste matching Y values in the same order.
  3. 3Read r and R².

Worked example

Using the values the calculator loads with:

Inputs

  • X values1, 2, 3, 4, 5, 6
  • Y values2, 4, 5, 4, 6, 8

Results

  • Correlation r0.91652
  • R squared0.84
  • Strengthstrong positive
  • Sample size6
  • Variance explained84%

Frequently asked questions

Does correlation prove causation?

No — a third variable or coincidence can produce a strong r.

What is R squared?

The share of variance in Y explained by a linear fit on X.

About this calculator

Results are estimates for general information. For medical, legal, structural or financial decisions, confirm with a qualified professional.