Pearson Correlation Coefficient Calculator

Pearson's correlation coefficient (r) quantifies how strongly two numeric variables move together in a linear way. Values range from -1 to +1: values near +1 indicate a strong positive linear relationship, near -1 indicate a strong negative linear relationship, and near 0 indicate little to no linear relationship. This calculator also reports r² to show how much variance is explained by the linear association.

Pearson Correlation Coefficient Calculator Interactive Tool

Results

Enter values to see results

How to use this calculator

  1. Enter X values as a comma-separated list.
  2. Enter Y values as a comma-separated list in the same order.
  3. Make sure both lists have the same number of values (at least 2).
  4. Read Pearson's r, r², and a quick interpretation.

The Formula

The mathematical logic powering this calculation is:

r = Σ[(xi - x̄)(yi - ȳ)] / √(Σ(xi - x̄)² · Σ(yi - ȳ)²)

Worked Example

If you input:

  • X Values (comma-separated): 1,2,3,4,5
  • Y Values (comma-separated): 2,4,5,4,5

Result:

Pearson r: 0.775, r²: 0.601

Frequently Asked Questions

What does a negative Pearson r mean?

A negative r means that as one variable increases, the other tends to decrease in a linear pattern.

Can correlation prove causation?

No. Correlation only shows association, not whether one variable causes changes in the other.

Similar Calculators