Math & Science

Pearson Correlation Coefficient Calculator 2026

Free · No signup
Pearson r value
R-squared interpretation
Enter X and Y Data SetsFree · No signup
6 x values
6 y values

Pearson Product Moment Correlation Coefficient: Formula

The Pearson product moment correlation coefficient (PMCC, or simply Pearson r) is calculated from paired (x, y) data. It standardizes the covariance between x and y by the product of their standard deviations, producing a value always between -1 and +1.

r = (n*Sxy - Sx*Sy) / sqrt((n*Sx^2 - Sx^2)(n*Sy^2 - Sy^2))
where Sx = sum(x), Sy = sum(y), Sxy = sum(x*y)
Sx^2 = sum(x^2), Sy^2 = sum(y^2), n = number of pairs

The formula can also be written as: r = covariance(x, y) / (std_dev(x) * std_dev(y)). Both forms produce identical results. This is why r is scale-independent: multiplying x or y by any constant does not change r. Descriptive statistics for each variable (mean, standard deviation) are computed separately; the Mean Median Mode Calculator computes those individual measures for any data set.

Correlation Coefficient in Excel: CORREL and PEARSON Functions

Excel has two built-in functions that calculate the Pearson correlation coefficient. Both return identical results for the same input data.

CORREL: =CORREL(A1:A6, B1:B6)
PEARSON: =PEARSON(A1:A6, B1:B6)
Both return Pearson r. CORREL is more commonly used.
TaskExcelThis Calculator
Pearson r=CORREL(x_range, y_range)Enter x and y, click Calculate
R-squared=CORREL(...)^2Shown automatically
Interpretation labelManual lookup requiredShown automatically
Step-by-step workingsNot availableShown in results card
Batch multiple pairsYes (drag formula)One calculation at a time

For a one-time calculation with step-by-step intermediate values, this calculator is faster than setting up Excel. For batch calculations across many variable pairs in a dataset, Excel or Python pandas are better suited. Correlation is closely related to linear interpolation between paired data points; the Linear Interpolation Calculator estimates unknown values along a line defined by two points.

Correlation Coefficient Interpretation: Range of Values

The correlation coefficient r is always between -1 and +1. Both extreme values represent perfect linear relationships; intermediate values describe the degree of scatter around that line. The sign indicates direction; the magnitude indicates strength.

r valueInterpretationWhat it meansReal-world example
+1.0Perfect positiveEvery point on a line, upwardTemperature in C vs F
+0.9 to +1.0Very strong positiveNearly all variance explainedHeight vs arm span
+0.7 to +0.9Strong positiveClear upward trendAdvertising spend vs sales
+0.5 to +0.7Moderate positiveVisible trend, notable scatterStudy hours vs test score
+0.3 to +0.5Weak positiveSlight upward tendencyExercise vs mood
0.0 to +0.3Very weak / noneEssentially unrelated linearlyShoe size vs IQ
NegativeSame strengths, downwardAs x increases, y decreasesSpeed vs fuel economy

Important: r = 0 does not mean the variables are unrelated. It means no linear relationship exists. A strong U-shaped or exponential relationship can produce r = 0 while the variables are clearly associated. Always visualize the data alongside any r value. For estimating values within a data range, see the Interpolation Calculator.

Example Calculation

X: 2, 4, 5, 7, 8, 10 and Y: 3, 5, 6, 8, 9, 12. Find the Pearson correlation coefficient.

n = 6, Sx = 36, Sy = 43, Sxy = 305
Sx^2 = 258, Sy^2 = 375
numerator = 6(305) - 36(43) = 1830 - 1548= 282
denominator = sqrt((6*258 - 36^2)(6*375 - 43^2)) = sqrt(252*254)= 253.0
r = 282 / 253.0 = 0.9965 | r² = 0.993 (Very Strong)

Common Correlation Coefficient Mistakes

Assuming correlation implies causation
Two unrelated variables can produce r values close to 1 purely by coincidence, especially in small datasets. High correlation tells you the variables move together; it says nothing about why.
Applying Pearson r to ordinal or non-normal data
Pearson r assumes interval-level data and approximately normal distributions. When your data is ranked, has heavy outliers, or violates normality, Spearman rho or Kendall tau give more reliable results.
Ignoring sample size when interpreting significance
An r of 0.4 from n=10 observations is not statistically significant. The same r from n=200 is highly significant. Always pair r with a p-value or confidence interval before drawing conclusions.
Not checking for outliers before running the analysis
A single outlier can shift a Pearson r from near zero to near 0.8 or in the opposite direction. Visualize the scatterplot before trusting the number. If one point is driving the result, report both with and without it.
Confusing r with r²
r² is the coefficient of determination: it tells you the proportion of variance in one variable explained by the other. An r of 0.7 means r² = 0.49, not 0.7. Reporting r as if it measured variance explained overstates the relationship.

Sources & References

1
Pearson, K. (1896). Mathematical Contributions to the Theory of Evolution
Philosophical Transactions of the Royal Society A: the original paper introducing the Pearson correlation coefficient
2
Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences (2nd ed.)
Routledge: establishes the benchmarks for small (0.1), medium (0.3), and large (0.5) correlation effect sizes
3
NIST/SEMATECH e-Handbook of Statistical Methods
National Institute of Standards and Technology (NIST): authoritative statistical reference for correlation and regression methods
HR
Hassaan Rasheed
Developer and Researcher, CalculatorFlux

Researches and verifies the formulas, methodology, and source data behind each calculator on CalculatorFlux. All tools are built and checked against the cited references before publication.

Last updated: June 2026

Frequently Asked Questions

The Pearson correlation coefficient (r) measures the strength and direction of a linear relationship between two variables. It ranges from -1 to +1. A value of +1 means a perfect positive linear relationship. A value of -1 means a perfect negative linear relationship. A value of 0 means no linear relationship exists.

More Math & Science Calculators

Correlation Strength Guide
|r| rangeInterpretation
0.9 - 1.0Very Strong
0.7 - 0.9Strong
0.5 - 0.7Moderate
0.3 - 0.5Weak
0.0 - 0.3Very Weak
Important
Correlation only measures linear relationships. Two variables can have a strong non-linear relationship (like a parabola) but a Pearson r near zero. Always plot your data before relying on r alone.
Browse Categories
Payroll & Tax
50+
Construction & Materials
21+
Health & Fitness
24+
Finance & Investment
20+
Education & GPA
16+
Math & Science
10+
Food & Cooking
8+
Specialty & Other
15+