Correlation Calculator

Compute Pearson r and Spearman rank correlation with p-values

Enter paired data as x,y per line. Supports comma, tab, or space delimiters.

Pearson Correlation

Pearson r
R-squared
t-statistic
P-value (two-tailed)
Significant at 0.05?

Spearman Rank Correlation

Spearman rho
t-statistic
P-value (two-tailed)
Significant at 0.05?
N (pairs)
Pearson r: Sum((xi-mx)(yi-my)) / sqrt(Sum((xi-mx)^2)*Sum((yi-my)^2))
Spearman rho: Pearson r computed on ranks
P-value: t = r*sqrt((n-2)/(1-r^2)), df = n-2, two-tailed t-test