To show that two measurements are correlated, you need enough participants to separate r from zero. Use the Fisher z formula to get n for a target correlation, alpha and power, read the table, and see what a given n can detect.
Free sandbox · No credit card · 21 CFR Part 11 aligned
Evaluable participants
85
Enrol (10% dropout)
95
Expected 95% CI for r
0.09 to 0.48
194 participants
85 participants
47 participants
30 participants
What this page calculates
The calculation
The sampling distribution of a correlation coefficient is skewed, especially for large r, so the formula works on a transformed scale. Fisher’s transformation z′ = 0.5 ln((1 + r)/(1 − r)) (equal to arctanh r) is approximately normal with variance 1/(n − 3), whatever the true correlation. To test the null hypothesis of zero correlation against a true value r with two-sided alpha and power 1 − β, you need the standardised effect C√(n − 3) to equal z₁₋α/2 + z₁₋β. Rearranging gives n = ((z₁₋α/2 + z₁₋β) / C)² + 3 (Cohen; Chow, Shao and Wang). For alpha 0.05 two-sided and 80% power the two quantiles are 1.960 and 0.842, so z₁₋α/2 + z₁₋β = 2.802.
Say a study expects a correlation of 0.3 between a blood biomarker and six-minute walk distance. Then C = 0.5 × ln(1.3 / 0.7) = 0.3095, and n = (2.802 / 0.3095)² + 3 = 81.9 + 3 = 84.9, which rounds up to 85. A simulation of 20,000 studies with bivariate normal data and a Pearson t-test at n = 85 gave 80.3% power, with 84 giving 80.5% and 86 giving 81.0% (differences within simulation error), so the formula is accurate here. It also holds at the extremes: n = 29 for r = 0.5 (81.0% simulated) and n = 783 for r = 0.1 (80.8%). If one-sided testing is justified in the protocol, use z₁₋α instead of z₁₋α/2, which for r = 0.3 lowers n to 68; most protocols and journals expect two-sided.
Enrolment is a separate step. Divide the evaluable number by (1 − expected dropout): 85 / 0.9 = 94.4, so enrol 95. The dropout-adjusted sample size calculator explains why dividing is correct. If the real question is whether a correlation differs from a non-zero value r₀ (for instance, 0.4 against 0.2), replace C with C(r) − C(r₀): the result is 164 participants for that example.
Sensitivity
Two-sided alpha 0.05, Fisher z method, rounded up. The last column is the Spearman requirement at 80% power by the Bonett-Wright adjustment.
| Expected r | C (Fisher z) | 80% power | 90% power | 95% power | Spearman, 80% |
|---|---|---|---|---|---|
| 0.1 | 0.100 | 783 | 1,047 | 1,294 | 787 |
| 0.2 | 0.203 | 194 | 259 | 320 | — |
| 0.3 | 0.310 | 85 | 113 | 139 | 89 |
| 0.4 | 0.424 | 47 | 62 | 76 | — |
| 0.5 | 0.549 | 30 | 38 | 47 | 33 |
| 0.6 | 0.693 | 20 | 25 | 31 | — |
| 0.7 | 0.867 | 14 | 17 | 21 | 16 |
Computed from the formula and checked by simulation. A dash means the Spearman figure was not computed for that row.
The other direction
Often the sample is fixed by cost or by the number of eligible people and the question is what it can find. Invert the formula: with 50 participants, 80% power and two-sided alpha 0.05, the smallest correlation you can reliably detect is about r = 0.39. With n = 60 the power to detect r = 0.3 is only 64.7%, and with n = 100 it is 86.2%; with n = 40 it falls to 46.9%. The power analysis calculator handles the same question for means and proportions, and the pilot study sample size calculator discusses studies whose purpose is estimation rather than a test.
Power to reject zero is not the same as precision. At n = 85 the 95% confidence interval around an observed r of 0.3 is 0.09 to 0.48 (back-transforming 0.3095 ± 1.96/√82). If the aim is to estimate the correlation well, not just to show it is nonzero, choose n to give an acceptable interval width and report the interval, not only the p-value. A correlation of 0.3 also explains only 9% of the variance, so say in the protocol why a correlation of that size would matter clinically.
Assumptions
The Fisher z method assumes pairs from independent participants, a roughly bivariate normal distribution, a linear relationship and one pair of values per person. Repeated measurements on the same people, or participants clustered within sites or families, break independence and need a design effect (the cluster-randomised sample size calculator shows one). A strong outlier can create or hide a correlation, so look at a scatterplot before and after.
For skewed or ordinal data a Spearman rank correlation is often planned. Bonett and Wright (Psychometrika 2000) give a simple adjustment: the variance of the transformed Spearman coefficient is about (1 + r²/2)/(n − 3), so the sample size is (1 + r²/2) × ((z₁₋α/2 + z₁₋β) / C)² + 3. For r = 0.3 this gives 88.6, so 89 participants rather than 85; for r = 0.5 it gives 33 rather than 30. A simulation using bivariate normal data with the matching Pearson correlation confirmed the adjusted n (81.6% at r = 0.3, n = 89, and 84.8% at r = 0.5, n = 33, so the adjustment is slightly conservative). If the data are strongly non-normal, run a simulation under the distribution you expect, since this formula no longer applies exactly.
Finally, a correlation is not a treatment effect. Observing r = 0.3 between a biomarker and an outcome does not show that the biomarker causes anything, and adjusting for confounders needs a regression, which has its own sample size rules (often a minimum number of participants per predictor). A statistician should confirm the design, the target correlation and the analysis.
Build the eCRFs, visit schedule and randomization in the free sandbox with every feature. No credit card. You pay only when you go live.
From the number to the protocol
ICH E9 asks the protocol to state the sample size, how it was determined and the assumed values. A sentence that does this reads: “A sample of 85 evaluable participants provides 80% power to detect a Pearson correlation of 0.30 between baseline biomarker concentration and six-minute walk distance at the two-sided 5% level (Fisher z method). Allowing for 10% dropout, 95 participants will be enrolled.” Put the same numbers in the statistical analysis plan, with the reason the target r is the smallest one that matters. The how to write a clinical trial protocol guide places the section in context, and the sample size calculation entry defines the terms.
In Capture, both variables become numeric eCRF fields with units and range edit checks, so an implausible biomarker value raises an auto-query while the participant is still at the site. Calculated fields can derive composite scores during entry, visit windows keep the two measurements close in time, the field-level audit trail records every change, and CSV or Excel exports arrive with a data dictionary, or as SDTM datasets in SAS XPT files with Define-XML, ready for the correlation analysis. The monitoring dashboard shows enrolment against the 95 you planned. For group comparisons see the two-means sample size calculator, and for repeated measures per participant the repeated measures sample size calculator.
Before you lock it
Justified clinically, with a source, not the largest plausible value.
Pearson or Spearman, with the matching formula.
Two-sided 0.05 and 80% or 90% unless justified otherwise.
One pair per participant; clustered or repeated data need a design effect.
Report and plan for the confidence interval, not only the p-value.
Evaluable / (1 − dropout), rounded up.
Re-run with r 0.05 lower and decide whether the study survives.
On the target r, the coefficient and the analysis plan.
n = ((z₁₋α/2 + z₁₋β) / C)² + 3, where C = 0.5 × ln((1 + r) / (1 − r)) is Fisher’s z transformation of the expected correlation r. For r = 0.3, two-sided alpha 0.05 and 80% power, n = (2.802 / 0.3095)² + 3 = 84.9, so 85 participants.
Fisher’s z-transformed correlation has variance 1/(n − 3), not 1/n. Solving the power equation for n therefore gives the squared ratio plus 3. For large samples the 3 barely matters; for r = 0.7 it is the difference between 11 and 14.
About 30 for 80% power, 38 for 90% and 47 for 95%, at two-sided alpha 0.05. For a correlation of 0.3 it is 85, 113 and 139. For 0.1 it is 783, 1,047 and 1,294.
The variance is larger by about a factor (1 + r²/2), so n = (1 + r²/2) × ((z₁₋α/2 + z₁₋β) / C)² + 3. For r = 0.3 that is 89 instead of 85. If the data are far from bivariate normal, simulate under the expected distribution.
Yes. With 783 participants, r = 0.1 is statistically significant at 80% power but explains 1% of the variance. State the smallest correlation that would matter clinically and design for that, then report the confidence interval.
Invert the formula. With 50 participants, 80% power and two-sided alpha 0.05 the detectable correlation is about 0.39. With 85 participants it is 0.30, and with 30 participants about 0.49.
The formula gives evaluable participants. Divide by (1 − expected dropout) and round up: 85 evaluable with 10% dropout means enrolling 95.
It is a planning aid, checked by simulation at several values of r. A statistician should confirm the target correlation, the coefficient and the final sample size before a protocol is submitted.
Keep exploring
Power analysis calculator
Power and detectable effect for a fixed n.
Two-means sample size calculator
Compare a continuous outcome between two groups.
Repeated measures sample size calculator
Several measurements per participant.
Pilot study sample size calculator
Studies that estimate rather than test.
Dropout-adjusted sample size calculator
Turn evaluable numbers into enrolment.
Sample size calculation (glossary)
The concepts behind the formulas.
Build the eCRFs, visit schedule and randomization in the free sandbox with every feature. No credit card. You pay only when you go live.