Compute Pearson r, Spearman ρ, and Kendall τ-b from paired raw data, or get the t-statistic, p-value, and Fisher z 95% confidence interval from a known r and n. Returns r², an interpretation band, and reproducible R, Python, and APA output.
One pair per line. Separators accepted: comma, space, tab, semicolon. Minimum n = 3.
Interpretation
Near-perfect: the two variables move together almost exactly along a straight line.
Correlation answers a single question: when one variable goes up, does the other tend to go up too, down, or neither? The Pearson product-moment coefficient r, introduced by Karl Pearson in 1895 building on Francis Galton's regression studies, is the workhorse measure. It expresses the covariance of x and y in standardized units, so its value is bounded between −1 (perfect negative linear relationship) and +1 (perfect positive). Pearson r assumes linearity, approximate bivariate normality (for the significance test and confidence interval), and equal variance across the range of x. When those assumptions hold, r is the most efficient estimator available.
Spearman ρ (Charles Spearman 1904) sidesteps the linearity and normality assumptions by working on the ranks of the data instead of the raw values. It captures any monotonic relationship (including curved ones) and is robust to outliers because extreme values are pulled in to the next rank rather than dominating the sum. Use Spearman when your data are ordinal (Likert scales, severity grades), when a scatter plot reveals a clear monotonic but non-linear pattern, or when outliers would otherwise distort Pearson. Kendall τ (Maurice Kendall 1938; τ-b for tied data) counts the proportion of concordant minus discordant pairs and tends to give smaller numerical values than Spearman for the same data; it is preferred for small samples and when many ties are expected, and underpins partial-correlation methods in survival and ordinal regression contexts.
All three coefficients are reported here from the same paired data so you can triangulate. A large discrepancy between Pearson and Spearman is informative: it flags non-linearity or outlier influence. If Pearson r is 0.40 but Spearman ρ is 0.75, the underlying relationship is monotonic but not linear, and reporting Pearson alone understates the association. Conversely, if Pearson r is 0.80 but ρ is 0.20, a few extreme points are inflating the linear correlation and the true association across the bulk of the data is weak. Anscombe (1973) famously constructed four datasets with identical Pearson r = 0.82 that look completely different on a scatter plot, which is why APA, CONSORT, and the Cochrane Handbook all require a scatter plot alongside any reported correlation.
For inference, convert r into a t-statistic using t = r × √[(n − 2) / (1 − r²)] with df = n − 2. The two-tailed p-value tests H0: ρ = 0. For the confidence interval, use Fisher's z transformation: z = 0.5 × ln[(1 + r) / (1 − r)] is approximately normal with SE = 1 / √(n − 3), so a 95% CI on z back-transforms to a CI on r via tanh. This is the method Hedges and Olkin (1985) standardized for meta-analytic pooling of correlations, and it is what the calculator reports. Two reminders matter: never treat a non-significant correlation as evidence of no association in small samples (the CI will be wide and contain meaningful effects), and always report r, ρ, and the 95% CI together rather than only the p-value.
Correlations feed naturally into other tools. To convert r into Cohen's d or another effect size for meta-analytic pooling, use the correlation to effect size converter. To plan sample size before collecting data, use the sample size calculator. To run a full regression with diagnostics rather than a single correlation, use the linear regression calculator. For full study design, robust alternatives, and APA-formatted reporting from a PhD statistician, our statistical analysis service covers everything end-to-end.
Paired raw data if you have x, y observations to paste; From r and n if you already have a correlation and want its significance and CI.
One pair per line in the raw-data tab. Separators accepted: comma, space, tab, semicolon. Lines that do not parse are skipped and counted.
Two-tailed is the journal default. Pick one-tailed only when the direction (positive or negative) was pre-specified in the protocol.
The raw-data tab returns Pearson r, Spearman ρ, and Kendall τ-b side by side along with r², t, df, p-value, and the Fisher z 95% CI.
Reproducible code snippets paste straight into RStudio or Jupyter. APA text uses italicized statistic letters, df in parentheses, and the conventional p < .001 truncation.
Next step
A PhD statistician adds scatter diagnostics, partial correlations adjusting for covariates, robust alternatives when assumptions fail, and a publication-ready APA results section.
Our promise: Free re-run and re-write if reviewers question the analysis or reporting.
Timeline
Most projects deliver in under 2 weeks. We confirm an exact date in your quote.
If reviewers push back
If reviewers question the analysis, assumptions, or reporting, we re-run and re-write free.
Confidentiality
NDA available on request before any project discussion. Your data, study design, and manuscript stay private either way.
Want a PhD methodologist to handle the whole project?
Get a full bivariate and multivariate analysis with partial correlations, scatter diagnostics, robust alternatives, and APA-formatted reporting by a PhD statistician. Free re-run and re-write if reviewers question the analysis or reporting. Pay only after you approve your quote.
−1 to +1
Linear association on the original scale. Best when both variables are interval/ratio, the relationship is straight, and outliers are absent. Most familiar and most powerful when assumptions hold.
−1 to +1
Monotonic association on the ranks. Robust to outliers and non-linear monotonic patterns. Use for ordinal data (Likert, severity scales) or when a scatter plot shows a curved monotonic trend.
−1 to +1
Pair-counting concordance. Smaller numerical values than Spearman for the same data. Preferred for small samples (n < 20) and when many ties exist; τ-b adjusts for ties in either variable.
A correlation table in APA format lists each variable as a numbered row with its mean and standard deviation, then gives the correlations in the remaining columns, with significance marked by asterisks that are defined in the table note. In the text, r is reported with its degrees of freedom (n minus 2), the exact p value, and the confidence interval, all without leading zeros. Using this calculator's default example data (n = 10 pairs), the write-up reads:
There was a strong positive correlation between variable X (M = 15.90, SD = 6.17) and variable Y (M = 18.60, SD = 6.50), r(8) = .996, p < .001, 95% CI [.98, 1.00]. The coefficient of determination r² = .99 indicates that 99.1% of the variance is shared.
The APA Report button in the results panel downloads a Word document containing this write-up, an APA-ruled correlations table with the M and SD columns and significance asterisks already placed, a plain-English interpretation of r and r², and a reporting checklist. It handles the formatting details that get flagged in review: dropping the leading zero from r and p, giving degrees of freedom rather than n, and defining every asterisk used in the table note.
The Pearson product-moment correlation coefficient, denoted r, measures the strength and direction of the linear association between two interval or ratio variables. It ranges from −1 (perfect negative linear relationship) to +1 (perfect positive linear relationship), with 0 indicating no linear association. Karl Pearson formalized the coefficient in 1895, building on earlier work by Francis Galton on regression. Pearson r is the most widely reported correlation measure in psychology, medicine, economics, and the social sciences.
Pearson r equals the covariance of x and y divided by the product of their standard deviations: r = Σ(xi − x̄)(yi − ȳ) / √[Σ(xi − x̄)² × Σ(yi − ȳ)²]. Equivalently, r is the average of the products of the z-scores of x and y. The calculator's raw-data tab computes this directly from the paired observations you paste in; the from-r-and-n tab takes an r value you already have and returns its t-statistic, p-value, and confidence interval.
Pearson r measures linear association on the original scale and assumes interval or ratio data with approximate bivariate normality. Spearman ρ (rho) measures monotonic association by applying Pearson to the ranks of the data; it is robust to outliers and non-linear monotonic patterns, and works for ordinal data. Kendall τ-b is also rank-based but counts the number of concordant minus discordant pairs, normalized by the geometric mean of the pairs adjusted for ties; it is preferred for small samples or when many ties are expected. The calculator reports all three from the same raw data so you can compare.
Convert r to a t-statistic using t = r × √[(n − 2) / (1 − r²)] with df = n − 2, then look up the p-value from the t distribution. For a two-tailed test of H0: ρ = 0, the p-value is 2 × P(T > |t|). The calculator reports the t, df, and p-value automatically and lets you switch to one-tailed alternatives if your hypothesis is directional and pre-specified.
Use the Fisher z-transformation: z = 0.5 × ln((1 + r) / (1 − r)) is approximately normal with SE = 1 / √(n − 3). Build a symmetric CI on the z scale and transform back to r using tanh. The calculator reports the 95% CI using this method, which is the standard approach in APA, the Cochrane Handbook, and meta-analytic software like metafor. For very small samples (n < 10) or r close to ±1, consider bootstrap intervals instead.
Detection of a true population correlation depends on the effect size and the desired power. As a rough guide, detecting r = 0.10 with 80% power at α = 0.05 (two-tailed) needs n ≈ 783; r = 0.30 needs n ≈ 82; r = 0.50 needs n ≈ 26. Cohen (1988) labeled |r| = 0.10, 0.30, 0.50 as small, medium, and large effects, but these benchmarks should be calibrated to the field. Clinical research often considers r = 0.30 a meaningful effect, while psychometrics treats r = 0.70 as adequate test-retest reliability. The sample size calculator handles a priori power planning for correlations.
r² (the coefficient of determination) is the proportion of variance in one variable that is linearly associated with the other. An r of 0.50 corresponds to r² = 0.25, meaning 25% of the variance in y is shared with x. r² has the advantage of being interpretable on a 0-to-1 percent-of-variance scale, but it loses the sign of the correlation, so always report r alongside r². For non-linear or rank-based associations, r² is misleading; use the original ρ or τ instead.
Pearson r assumes (a) linearity (the relationship is a straight line), (b) bivariate normality for the CI and significance test, (c) homoscedasticity (equal scatter at all values of x), and (d) independent observations. Common violations: U-shaped relationships (use polynomial regression or a non-linear measure), heavy outliers (use Spearman or a robust correlation), restricted range (which deflates r), ceiling/floor effects, and grouped/clustered data (use mixed-effects models). Anscombe's quartet (1973) famously shows that four datasets with identical r = 0.82 look completely different on a scatter plot, so always plot the data before trusting the coefficient.
Use Spearman ρ or Kendall τ-b for ordinal data. Pearson r on Likert items is common in practice and usually gives similar values to Spearman when the scale has 5 or more points and no severe skew, but the formal assumptions favor rank-based measures. For dichotomous data, Pearson r reduces to the phi coefficient (for two binary variables) or the point-biserial correlation (for one binary and one continuous). The calculator's raw-data tab handles all of these: paste the numeric codes and the same r, ρ, and τ formulas apply.
No. A correlation indicates that two variables vary together; it does not establish that one causes the other. Three alternatives must always be ruled out: reverse causation (y causes x rather than x causes y), confounding (a third variable causes both), and selection bias. Hill's nine criteria (1965) for inferring causation from observational data (strength, consistency, specificity, temporality, biological gradient, plausibility, coherence, experiment, analogy) go beyond a single correlation coefficient. For causal inference from observational data, use directed acyclic graphs (DAGs), instrumental variables, or propensity-score methods.
To convert a correlation into another effect size for meta-analytic pooling, use the correlation to effect size converter. For a full regression with coefficient estimates, residual diagnostics, and APA reporting, see the linear regression calculator. To plan an a priori sample size for a correlation study, the sample size calculator covers power for r-based hypotheses. For inferential testing across other distributions (z, t, χ², F), see the p-value calculator, and for confidence intervals on means, proportions, and ratio measures, see the confidence interval calculator.
Reviewed by
Dr. Sarah Mitchell holds a PhD in Biostatistics from Johns Hopkins Bloomberg School of Public Health and has over 15 years of experience in systematic review methodology and meta-analysis. She has authored or co-authored 40+ peer-reviewed publications in journals including the Journal of Clinical Epidemiology, BMC Medical Research Methodology, and Research Synthesis Methods. A former Cochrane Review Group statistician and current editorial board member of Systematic Reviews, Dr. Mitchell has supervised 200+ evidence synthesis projects across clinical medicine, public health, and social sciences. She reviews all Research Gold tools to ensure statistical accuracy and compliance with Cochrane Handbook and PRISMA 2020 standards.
From data cleaning and assumption checks to the full analysis and a publication-ready results section, we handle the numbers so you can focus on the science.
Our promise: Free re-run and re-write if reviewers question the analysis or reporting.
Your project is led by a named PhD methodologist with real credentials and published work.
4.9 / 5 across 1,194+ delivered projects