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 Mistakes to Avoid

Treating correlation as causation
A high r value means two variables move together, not that one causes the other. Both may be driven by a third unmeasured variable (confounding). Causation requires a controlled experiment or rigorous study design.
Using Pearson r on non-linear relationships
Pearson measures linear association only. Two variables with a strong U-shaped, exponential, or sinusoidal relationship can produce an r near 0 while still being strongly related. Always plot the data first.
Entering values in the wrong order
Each x value must be paired with its corresponding y value at the same position. Entering x or y values in a different order produces a meaningless r value.
Over-interpreting r from small samples
With only 4 or 5 data pairs, even random data can produce high r values by chance. At least 10 to 15 pairs are recommended for a reliable estimate. Report sample size alongside r.
Dismissing a moderate correlation as meaningless
An r of 0.5 means r² = 0.25, so 25 percent of the variance is explained. Whether that is useful depends on the context, not the number alone.

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

Sources & References

1
Moore & McCabe: Introduction to the Practice of Statistics, 9th Edition
Primary reference for the Pearson correlation coefficient formula, r-squared interpretation, and the limitations of correlation analysis.
2
Agresti & Franklin: Statistics: The Art and Science of Learning from Data, 4th Edition
Reference for correlation strength thresholds, the causation warning, and the comparison between Pearson and Spearman correlation.
3
NIST/SEMATECH e-Handbook of Statistical Methods ↗
Technical reference for the computational formula for Pearson r and its algebraic equivalents used in the step-by-step calculation displayed here.
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: May 2026
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+