Research Toolkit

Correlation test

Significance of a Pearson or Spearman correlation from r and n.

Test

Pearson correlation test

How do I get r in Excel or Google Sheets?

Pearson: type =CORREL(A2:A31, B2:B31). Change the ranges to your two columns.

Spearman: first rank each column. In a new column, type =RANK.AVG(A2, $A$2:$A$31, 1) and copy it down. Do the same for the second column. Then use =CORREL on the two rank columns.

Video tutorials: Pearson | Spearman

Tip: copy the full value that CORREL gives you (for example 0.48231). Do not round it first, because rounding can change the p-value a little.

n is the number of pairs: the number of rows that have a value in both columns.

A number between −1 and 1. Paste the full value from Excel.
A whole number, at least 3.
Both scales are shown in the table below.
Alternative hypothesis (H₁)

Choose H₁ before you calculate.

How strong is the relation?

|r| (size, ignoring the sign) Cohen (1988) Adapted from Dancey and Reidy
below 0.10NegligibleNegligible
0.10 to 0.29SmallWeak
0.30 to 0.39MediumWeak
0.40 to 0.49MediumModerate
0.50 to 0.69LargeModerate
0.70 to 0.99LargeStrong

These labels are rules of thumb, not fixed laws. Pick one scale and say which one you used in your report.

Dancey and Reidy's published bands leave small gaps (for example, between 0.3 and 0.4). This tool smooths out those edges so every value gets a label. That is why it says "adapted from".

Notes

H₀ (null hypothesis): ρ = 0. This means there is no relation between the two variables in the population.

Formula: t = r × √(n − 2) ÷ √(1 − r²), with df = n − 2. The p-value comes from Student's t-distribution.

Spearman: this tool uses the same t formula for Spearman's ρ. It is accurate when n is about 10 or more.