Home › Calculators › Correlation Coefficient Calculator

Correlation Coefficient Calculator

Paste paired data to measure how strongly two variables move together. You get Pearson's r, Spearman's rank correlation, r², significance tests and a plain-English interpretation.

Last updated:

Data format

e.g. 1, 2.1 — commas, spaces or tabs. Paste two spreadsheet columns directly.

Separated by commas, spaces or new lines

Enter your values to see the result.
Advertisement
Advertisement

How to use the Correlation Coefficient Calculator

  1. Paste your data as x, y pairs or as two separate lists.
  2. Press Calculate: results also update as you type.
  3. Read Pearson r for a straight-line relationship and Spearman ρ for any monotonic one.
  4. Check the p-value to see whether the correlation is statistically significant.
  5. Look at the scatter plot for curves or outliers that a single number can hide.

Correlation formulas

Pearson's r: r = Σ(x − x̄)(y − ȳ) / √(Σ(x − x̄)² · Σ(y − ȳ)²)

Spearman's ρ: rank each variable (ties get the average rank) and apply Pearson's formula to the ranks. With no ties this equals ρ = 1 − 6Σd² / (n(n² − 1)), where d is the difference between the two ranks of each pair.

Significance: t = r √((n − 2) / (1 − r²)) with n − 2 degrees of freedom.

Example: x = 1, 2, 3, 4, 5 and y = 2, 4, 5, 4, 5 give Σ(x − x̄)(y − ȳ) = 6, Σ(x − x̄)² = 10 and Σ(y − ȳ)² = 6, so r = 6 / √60 ≈ 0.775.

Interpreting the coefficient

|r| or |ρ|StrengthExample reading for r = +value
0.00 – 0.19Very weakEssentially no relationship
0.20 – 0.39WeakA slight tendency for y to rise with x
0.40 – 0.59ModerateA clear but loose upward trend
0.60 – 0.79Strongy usually rises when x rises
0.80 – 1.00Very strongPoints lie close to a rising line or curve

Negative values read the same way, with y tending to fall as x rises. Want the line itself? Use the linear regression calculator.

Frequently asked questions

What is a correlation coefficient?

A correlation coefficient is a number from −1 to 1 that measures how strongly two variables are related. 1 is a perfect positive relationship, −1 a perfect negative one and 0 means no linear (or monotonic) relationship.

What is the difference between Pearson and Spearman correlation?

Pearson's r measures a straight-line relationship using the raw values. Spearman's ρ is Pearson's r computed on the ranks, so it measures any consistently increasing or decreasing (monotonic) relationship and is less affected by outliers.

How is Pearson's r calculated?

r = Σ(x − x̄)(y − ȳ) / √(Σ(x − x̄)² × Σ(y − ȳ)²). It is the covariance of x and y divided by the product of their standard deviations.

What counts as a strong correlation?

A common rule of thumb: |r| below 0.2 is very weak, 0.2–0.4 weak, 0.4–0.6 moderate, 0.6–0.8 strong and 0.8–1 very strong. Conventions vary by field.

How do I know if a correlation is significant?

The calculator tests whether r differs from zero using t = r√((n − 2)/(1 − r²)) with n − 2 degrees of freedom. A two-tailed p-value below 0.05 is usually called significant.

Does correlation mean causation?

No. Two variables can be correlated because of coincidence, a third factor that drives both, or reverse causation. Correlation shows association, not cause and effect.

How are tied values handled in Spearman's correlation?

Tied values receive the average of the ranks they would occupy, and ρ is computed as Pearson's r on those ranks. The shortcut 1 − 6Σd²/(n(n² − 1)) is exact only when there are no ties.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Linear Regression CalculatorLeast-squares line of best fit: slope, intercept, r, r², predictions and a scatter plot.Standard Deviation CalculatorStandard deviation, variance, mean, median, mode and quartiles.Percentile CalculatorValue at any percentile, percentile rank of a score, quartiles, IQR and outliers.Average CalculatorMean, weighted average, median, sum, min and max of any list.Stock Beta CalculatorPaste stock and market prices or returns to get beta, correlation, R-squared and a regression chart.Exponential Regression CalculatorFit y = a·bˣ or y = a·e^(kx) to data with r², predictions, residuals and a plot.Statistical Power CalculatorPower or required sample size for t-tests, proportions and correlations, with a power curve.Weighted Average CalculatorCalculate a weighted mean from values and weights, step by step.A/B Test Significance CalculatorCheck if your A/B test result is statistically significant.Z-Score CalculatorZ-score from a value, mean and SD, plus percentile and p-value; or the value from z.Probability CalculatorFind and, or, not, conditional and at-least-once probabilities from P(A) and P(B).Permutation and Combination CalculatorCalculate nPr and nCr, with or without repetition, as exact big numbers.Mean Median Mode CalculatorFind the mean, median, mode, range, min, max, sum and count of a list of numbers.Confidence Interval CalculatorConfidence interval and margin of error for a mean or a proportion, with steps.Sample Size CalculatorHow many survey responses you need for a given confidence level and margin of error.Average Order Value CalculatorAverage order value from revenue and orders, plus the revenue impact of raising AOV.Binomial Distribution CalculatorBinomial probabilities P(X = k), at most, at least or between, with mean, variance and chart.Normal Distribution CalculatorNormal probabilities P(X < x), between two values and inverse percentiles, on a shaded bell curve.Poisson Distribution CalculatorPoisson probabilities for a rate λ: exactly k, at most, at least or between, with a chart.T-Test CalculatorOne-sample, two-sample (Welch/pooled) and paired t-tests with p-value and CI.Chi-Square CalculatorChi-square goodness-of-fit and independence tests with p-value and expected counts.P-Value CalculatorOne- or two-tailed p-values from z, t, chi-square or F statistics, with critical values.Variance CalculatorSample and population variance and standard deviation with a step-by-step deviations table.Five Number Summary CalculatorMin, Q1, median, Q3, max, IQR and fences of a data set, with a box plot.Outlier CalculatorFind outliers with 1.5×/3× IQR fences, z-scores or modified z-scores; get the cleaned data.Geometric Mean CalculatorGeometric, harmonic, arithmetic and quadratic means compared, or average growth from % changes.Expected Value CalculatorExpected value, variance and standard deviation from outcomes and their probabilities.One-Way ANOVA CalculatorOne-way ANOVA for 2-10 groups: SS, df, MS, F statistic, p-value, effect size and full table.Bayes Theorem CalculatorPosterior P(A|B) from P(A), P(B|A) and P(B|not A), with a probability tree and table.Box Plot MakerPaste data to draw box-and-whisker plots with quartiles, IQR and outliers. Download PNG or SVG.Coefficient of Variation CalculatorCV % from a dataset (sample or population) with mean, SD and a two-dataset comparison.Critical Value CalculatorCritical values of z, t, chi-square and F for any alpha, tails and degrees of freedom.Dice Probability CalculatorOdds of rolling a sum (exactly, at least, at most) with any dice, plus the full distribution.Effect Size Calculator (Cohen's d)Cohen's d, Hedges' g and Glass's delta from two means, SDs and sample sizes, with CI.Frequency Table GeneratorMake a frequency, relative and cumulative frequency table from numbers or categories.Histogram MakerPaste numbers, choose bins and get a histogram, frequency table and PNG download.Margin of Error CalculatorSurvey margin of error from sample size, confidence and proportion, with population correction.Moving Average CalculatorSimple, exponential and weighted moving averages of a data series, with table and line chart.Grouped Data CalculatorMean, median, mode, variance and standard deviation from class intervals and frequencies.Inverse Normal Distribution CalculatorinvNorm: find the x or z value for a left, right, central or two-tail area, with a shaded curve.Permutations GeneratorList all permutations of letters, words or items, with k-permutations and repeats, and export them.T Distribution CalculatorStudent's t probabilities and critical values for any df, with the area shaded on the curve.T-Table (Student's t Distribution)Interactive t-table: critical t-values for any df and α, p-values, and a printable full table.Z-Test CalculatorOne-sample, two-sample and proportion z-tests with z, p-value, decision and shaded curve.Shannon Entropy CalculatorEntropy of text, data or probabilities in bits, nats or hartleys with a frequency table.Odds Ratio and Relative Risk CalculatorOdds ratio, relative risk, risk difference, 95% CIs and p-values from a 2x2 table.Standard Error CalculatorStandard error of the mean from data or SD and n, plus SE of a proportion, with CIs.Descriptive Statistics CalculatorPaste data and get mean, median, mode, quartiles, SD, skewness, kurtosis and a histogram.Empirical Rule Calculator68-95-99.7 rule ranges from a mean and standard deviation, with a shaded bell curve.Z-Table (Standard Normal Table)Interactive z-table: find the area for any z-score, or the z-score for a probability.Average Rate of Change CalculatorAverage rate of change of f(x), two points or a data table over [a, b], with the secant line.Binomial Expansion CalculatorExpand (a + b)^n with the binomial theorem: every term, Pascal coefficients and any specific term.Combinations GeneratorList every k-combination of your items, with or without repetition, and copy or export them.Covariance CalculatorSample and population covariance of paired X and Y data, with a step table and scatter plot.
See all 52 Statistics & Probability Calculators →