Correlation Coefficient Calculator

Calculate the Pearson correlation coefficient (r) between two variables. Determines the strength and direction of a linear relationship. Also computes r², regression line, and full dataset statistics.

Pearson r Formula

r = Σ[(xᵢ−x̄)(yᵢ−ȳ)] / √[Σ(xᵢ−x̄)² · Σ(yᵢ−ȳ)²]
Range: −1 ≤ r ≤ +1
r² = coefficient of determination

Interpreting the Correlation Coefficient

r valueStrengthDirection
0.90 to 1.00Very strongPositive
0.70 to 0.89StrongPositive
0.40 to 0.69ModeratePositive
0.10 to 0.39WeakPositive
0.00 to 0.09Negligible
−0.09 to 0.00Negligible
−0.39 to −0.10WeakNegative
−0.69 to −0.40ModerateNegative
−0.89 to −0.70StrongNegative
−1.00 to −0.90Very strongNegative

Frequently Asked Questions

Does correlation imply causation?

No — correlation only measures the strength of a linear association, not whether one variable causes the other. Classic examples: ice cream sales and drowning rates are positively correlated (both driven by summer heat, not each other). Always consider confounding variables before inferring causation.

What is r² (coefficient of determination)?

r² tells you the proportion of variance in Y explained by X. If r = 0.8, then r² = 0.64, meaning 64% of the variation in Y is explained by the linear relationship with X. The remaining 36% is unexplained by this model.

What is Spearman's rank correlation?

Spearman's ρ (rho) is a non-parametric alternative to Pearson's r. It measures monotonic (not necessarily linear) relationships and is more robust to outliers. It works by ranking the data and computing Pearson r on the ranks. Use Spearman when data is ordinal or not normally distributed.

Related Calculators