Correlation Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Statistics Hub

The Pearson correlation coefficient (r) measures the strength and direction of the linear relationship between two variables. It ranges from −1 (perfect negative) to +1 (perfect positive), with 0 indicating no linear relationship.

This calculator computes r, the coefficient of determination (R²), and interprets the strength of the relationship. Enter paired X and Y values to get started.

Formula

r = Σ(x − x̄)(y − ȳ) / √[Σ(x − x̄)² × Σ(y − ȳ)²]

x, y
individual paired data values
x̄, ȳ
means of X and Y datasets
r
Pearson correlation coefficient (−1 to +1)
coefficient of determination — % of variance explained

Enter paired X and Y values (comma, space, or newline separated). Must have the same count.

Correlation Strength Reference

|r| rangeStrengthR² rangeExample
0.9 – 1.0Nearly perfect81–100%Same measurement twice
0.7 – 0.9Very strong49–81%Height vs weight
0.5 – 0.7Strong25–49%Study time vs exam score
0.3 – 0.5Moderate9–25%Exercise vs resting HR
0.1 – 0.3Weak1–9%Shoe size vs intelligence
0.0 – 0.1Negligible< 1%Hair colour vs salary

Common Mistakes

Confusing correlation with causation

r = 0.9 between X and Y does not mean X causes Y. Both may be caused by a third variable, or the relationship may be coincidental. Always consider confounders.

Using Pearson r on non-linear data

Pearson r only measures linear association. A curved relationship (e.g., quadratic) can have r ≈ 0 even when X perfectly predicts Y. Always plot first.

Ignoring outliers

A single extreme outlier can change r from 0.1 to 0.8. Always check a scatter plot. Consider Spearman r for outlier-resistant correlation.

Disclaimer

Pearson correlation measures linear association only. A correlation coefficient does not establish causation. Always inspect your data visually before interpreting correlation results.

Frequently Asked Questions