Correlation Coefficient Calculator
A correlation coefficient calculator computes Pearson's r, which measures the strength and direction of the linear relationship between two variables. The calculator processes coordinate pairs (X, Y) to yield a value between negative one and positive one. A value near positive one indicates a strong positive linear correlation, a value near negative one indicates a strong negative linear correlation, and a value near zero indicates no linear correlation. Statisticians and researchers use this tool to identify trends and analyze relationships within experimental datasets.
Add paired x and y values, one row at a time. The calculator returns the Pearson correlation coefficient (r), r squared, and a plain-English strength label.
Quick Answer
Compute Pearson's correlation coefficient for two variables. Enter your data pairs to find the strength and direction of their linear relationship.
Enter at least two paired (x, y) values. Empty rows are ignored. r is undefined if either x or y has zero variance (all the same value).
5 pairs
0.8704
Strong positive correlation
Examples
Pairs (1,2), (2,4), (3,5), (4,4), (5,7)
r ≈ 0.872 (strong positive)
Pairs (1,5), (2,4), (3,3), (4,2), (5,1)
r = −1.000 (perfect negative)
Pairs (1,2), (2,1), (3,3), (4,2), (5,1)
r ≈ −0.408 (moderate negative)
How it works
Subtract the mean from each x and each y. Multiply the deviations pairwise and sum. Divide by the square root of the product of squared deviations to standardize. The result is between −1 and +1.
r · Σ((x − x̄)(y − ȳ)) ÷ √(Σ(x − x̄)² × Σ(y − ȳ)²)
Strength bands: |r| ≥ 0.7 strong · 0.3 to 0.7 moderate · 0.1 to 0.3 weak · below 0.1 little/no linear relationship.
Related statistics calculators
- Linear regression calculator for the slope, intercept, and best-fit line on the same paired data.
- Mean, median, mode calculator for basic descriptive statistics on x or y individually.
- Variance calculator for variance on each variable.
- Standard deviation calculator for the spread underlying r.
- Scientific calculator for general arithmetic, exponents, and roots.
- All education calculators.
Related Calculators
More tools from Education



