Free guide · Sample size · CorrelationUpdated October 17, 2026

Sample size for a correlation study (Fisher z method)

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.

  • n = ((Zα + Zβ) / C)² + 3
  • Table by r and power
  • Spearman and dropout adjustments

Free sandbox · No credit card · 21 CFR Part 11 aligned

Demo: biomarker vs 6-minute walk distance, expected r = 0.3, alpha 0.05, 80% power

Evaluable participants

85

Enrol (10% dropout)

95

Expected 95% CI for r

0.09 to 0.48

Expected r = 0.2194/200

194 participants

Expected r = 0.385/200

85 participants

Expected r = 0.447/200

47 participants

Expected r = 0.530/200

30 participants

Even with 85 participants the confidence interval around r = 0.3 is wide. Halving r roughly quadruples n.

What this page calculates

  • For a test that a Pearson correlation differs from zero, the sample size is 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.
  • Worked example: expected r = 0.3, two-sided alpha 0.05, 80% power. C = 0.3095, so n = (2.802 / 0.3095)² + 3 = 84.9, 85 participants. With 10% dropout, enrol 95.
  • Sample size grows fast as r shrinks: r = 0.5 needs 30, r = 0.3 needs 85, r = 0.2 needs 194 and r = 0.1 needs 783 at 80% power.
  • A correlation can be significant and still be useless: with n = 783, r = 0.1 is “significant” and explains 1% of the variance. State the smallest correlation worth detecting, not the one you hope for.
  • For a Spearman rank correlation multiply the variance term by (1 + r²/2), which adds a few participants (r = 0.3: 89 instead of 85). The formula assumes roughly bivariate normal data and one pair of values per participant.

The calculation

The Fisher z formula and a worked example

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

Participants needed by expected correlation and power

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 rC (Fisher z)80% power90% power95% powerSpearman, 80%
0.10.1007831,0471,294787
0.20.203194259320—
0.30.3108511313989
0.40.424476276—
0.50.54930384733
0.60.693202531—
0.70.86714172116

Computed from the formula and checked by simulation. A dash means the Spearman figure was not computed for that row.

The other direction

What a fixed sample can detect, and how wide the interval will be

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

Spearman, outliers and what the formula takes for granted

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.

Capture both measurements cleanly

Build the eCRFs, visit schedule and randomization in the free sandbox with every feature. No credit card. You pay only when you go live.

Build your study free

From the number to the protocol

Writing it down, and collecting the paired data in Capture

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

Correlation sample size checklist

Target r is the smallest worth detecting

Justified clinically, with a source, not the largest plausible value.

Coefficient is named

Pearson or Spearman, with the matching formula.

Alpha, sidedness and power stated

Two-sided 0.05 and 80% or 90% unless justified otherwise.

Independence holds

One pair per participant; clustered or repeated data need a design effect.

Interval width considered

Report and plan for the confidence interval, not only the p-value.

Dropout converted to enrolment

Evaluable / (1 − dropout), rounded up.

Sensitivity checked

Re-run with r 0.05 lower and decide whether the study survives.

Statistician sign-off

On the target r, the coefficient and the analysis plan.

FAQ

Questions teams ask before they switch

Something not covered here? Ask us directly.

What is the sample size formula for a correlation?

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.

Why is there a “+ 3” in the formula?

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.

How many participants do I need for a correlation of 0.5?

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.

What changes for a Spearman correlation?

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.

Can a small correlation be significant but unimportant?

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.

What correlation can I detect with a fixed sample?

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.

Does this account for dropout?

The formula gives evaluable participants. Divide by (1 − expected dropout) and round up: 85 evaluable with 10% dropout means enrolling 95.

Is this calculation validated?

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.

Plan the number, then build the data collection

Build the eCRFs, visit schedule and randomization in the free sandbox with every feature. No credit card. You pay only when you go live.

Build your study free