Pearson Correlation Calculator

Calculate Pearson's r, coefficient of determination, and relationship strength for paired numerical data.

Pearson product-moment correlation
Enter equal-length data sets separated by commas, spaces, or semicolons.

Use at least two numeric values.

Use at least two numeric values.

About Pearson correlation

The Pearson correlation coefficient measures the direction and strength of a linear relationship between two quantitative variables. It is commonly written as r and ranges from negative one to positive one. A positive coefficient means larger X values tend to occur with larger Y values, while a negative coefficient means larger X values tend to occur with smaller Y values. A value near zero indicates little linear association, although a strong nonlinear pattern may still be present. The calculation centers each observation by subtracting its variable's mean. It sums the products of paired deviations and divides by the square root of the product of the two sums of squared deviations. This standardization makes the coefficient independent of measurement units. Multiplying every X value by a positive constant, for example, does not change r. The order of paired observations still matters, so the first X value must correspond to the first Y value, the second to the second, and so forth. The calculator also reports r squared, often called the coefficient of determination in a simple linear-regression setting. It is the proportion of variance represented by the fitted linear relationship in that setting. Squaring removes direction, so r values of 0.8 and -0.8 both produce an r squared value of 0.64. This descriptive percentage should not automatically be interpreted as the percentage of one variable caused by the other. Pearson correlation works best when observations are independent, the relationship is approximately linear, and extreme outliers are understood. A single unusual pair can substantially change the coefficient. Restricted ranges can make a relationship appear weaker, while combining distinct groups can create or reverse a trend. Always inspect a scatterplot alongside the number when possible. Correlation does not establish causation, and this calculator does not provide a p-value or confidence interval. Those inferential results require sample-size assumptions and a defined sampling process. Use this tool for transparent descriptive calculation, checking coursework, and quickly comparing paired data before applying a fuller statistical model.

Pearson correlation examples

Each row shows paired data and the correlation implied by their linear pattern.

Paired dataPearson's rInterpretation
X: 1,2,3,4,5; Y: 2,4,6,8,101.0000Perfect positive linear relationship.
X: 1,2,3,4; Y: 8,6,4,2-1.0000Perfect negative linear relationship.
X: 1,2,3,4,5; Y: 2,1,4,3,50.8000Strong positive linear relationship.

How to calculate Pearson's r

  1. Enter the X observations in their original order.
  2. Enter the matching Y observations in the same order.
  3. Confirm that both lists contain the same number of numeric values.
  4. Select Calculate Pearson correlation and review r, r squared, and the number of pairs.

Frequently asked questions

What does a Pearson correlation of zero mean?

It means the data show no linear association. A curved or otherwise nonlinear relationship can still exist even when r equals zero.

What is considered a strong correlation?

Thresholds vary by discipline and context. This calculator provides broad descriptive labels, but practical importance should be judged using domain knowledge.

Can Pearson correlation prove causation?

No. Correlation can arise from confounding, selection, coincidence, or reverse direction, so causal claims require an appropriate research design.

Why must the lists have equal lengths?

Pearson's formula operates on paired observations. Every X value needs one corresponding Y value from the same case or measurement.

How do outliers affect Pearson's r?

Outliers can strongly increase, decrease, or reverse the coefficient because the calculation uses squared deviations. A scatterplot helps reveal whether a few points dominate the result.