Replicate & Sample Size Calculator
Plan the size of a two-group comparative experiment. Enter a target effect size, an assumed standard deviation, the desired statistical power, and the significance level. The calculator returns the minimum sample size per group and notes the assumptions of the normal approximation it relies on.
Local context
Sample size is the number of independent measurements — wells, replicate reactions, biological replicates — a comparison needs before the result is worth interpreting. Too few and the result is noise; too many and the experiment costs more than the answer. The calculation depends on the test: two-sample t-test, paired t-test, one-way ANOVA, or proportion comparison. For t-tests, n = 2 × (Z_{1−α/2} + Z_{1−β})² × σ² / δ², where δ is the effect size (mean difference), σ is the standard deviation, α is the false-positive rate, and 1−β is the power.
Enter the effect size, the variability (SD or CV), the significance level (α, typically 0.05), and the desired power (typically 0.8 or 0.9), and the calculator returns the minimum replicates per group for the comparison you are planning. It supports two-sample unpaired, paired, and one-sample designs, plus proportion tests (χ² / z-test for rates).
When NOT to use: for pilot studies where you have no variance estimate — run 3–5 replicates first, then calculate. For complex designs (factorial, repeated measures, mixed models), this calculator does not handle the correlation structure; use R `pwr`, `lme4`, or `simr` packages. For equivalence/non-inferiority margins, the effect size δ is the margin, not the expected difference.
Key formula: n = 2 × (Z_{1−α/2} + Z_{1−β})² × σ² / δ² (two-sample t-test). Reference: Cohen (1988) Statistical Power Analysis; Chow et al. (2008) Sample Size Calculations; FDA guidance on clinical trial sample size.
Calculator
Enter the planning parameters to see the required replication
Replicates per group
n = 2 × (z1−α/2 + z1−β)² × σ² / δ²
The standard two-sample normal approximation for comparing means with equal group sizes. The result is rounded up to a whole replicate. This is a planning estimate, not statistical advice for a specific study.
Related guides
About this calculation
What this is
Sample size planning uses the normal approximation to the test statistic to determine how many observations per group are needed to detect a given effect with a chosen probability (power). The smaller the effect or the lower the power target, the larger the required sample.
Why it is used
Running too few samples misses real effects; running too many wastes resources and animals. Sample size planning lets the experimenter commit to a defensible n before the bench work begins.
Why this calculator exists
The normal-approximation formula is short, but the inputs (effect size, standard deviation, power, alpha) are easy to mix up, particularly the effect size, which is the raw difference between group means in the outcome's units. The calculator standardises the inputs and shows the per-group n.
Worked example
The calculator uses the normal approximation for two independent means with equal group sizes: n per group = 2 × (z for alpha + z for power)^2 / d^2, where d is the difference to detect divided by the standard deviation. The result is rounded up to a whole replicate.
You want to detect a difference of 10 units with a standard deviation of 10, so d = 1. At alpha 0.05 two-sided and 80% power, n = 2 × (1.96 + 0.84)^2 = 15.7, rounded up to 16 per group. Halve the effect to d = 0.5 and the same power needs 63 per group, because the sample size grows with 1 / d^2.
The table gives the per-group n for common standardised effects at 80% and 90% power, all at alpha 0.05 two-sided. Treat these as lower bounds: for small samples the t-test needs a few more replicates than the normal approximation suggests.
| Standardised effect d | n per group at 80% power | n per group at 90% power |
|---|---|---|
| 2.0 | 4 | 6 |
| 1.0 | 16 | 22 |
| 0.8 | 25 | 33 |
| 0.5 | 63 | 85 |
| 0.25 | 252 | 337 |
| 0.2 | 393 | 526 |
Common mistakes
- Treating the result as exact instead of a lower bound. For fewer than about 30 replicates per group, the t-test needs slightly more replicates than this estimate. Treat the number as a minimum.
- Using a standard deviation guessed without data. Base the standard deviation on pilot data or the literature. A too-small value makes the estimate look better than the experiment will be.
- Applying the two-means formula to a paired design. A paired design needs its own formula. When an assumption fails, the estimate is the wrong tool for the design.
- Applying it when the group variances are unequal. Unequal variances need a different formula. Check the equal-variance assumption before planning on this number.
- Planning for several comparisons with a single-comparison number. The result plans for a single comparison. Multiple testing needs different formulas.
- Forgetting that the estimate uses the z approximation, not the t distribution. Say so when you report the plan, and consult a statistician for confirmatory or clinical designs.
Key assumptions
- The data approximate a normal distribution, or the test is robust to non-normality at the planned n.
- The variance estimate used in the power calculation is a credible stand-in for the real variance.
- The effect size is the smallest effect the experiment is intended to detect.
How to use it
Enter the smallest difference between group means worth detecting, the expected standard deviation, a significance level, and a target power. The calculator returns the replicates per group.
Use the same units for the difference and the standard deviation. Both are in the outcome's units, and a mismatch here is the most common input error.
Base the standard deviation on pilot data or the literature, not a guess. A too-small SD makes the estimate look better than the experiment will be.
Set power at 0.8 for a standard study, and raise it only if missing a real effect is costly. Higher power needs more replicates.
Treat the result as a lower bound: for small sample sizes the t-test needs a few more replicates than the normal approximation suggests.
Plan for your plate or rack layout. The replicates per group tell you the minimum, but you also need to fit the design into the wells or tubes you actually have.
Limitations
- It uses the normal approximation, which is conservative for very small samples: the exact test may need fewer.
- It does not plan for attrition, dropout, or technical replicates: build those into the n.
- It does not replace a formal power analysis for non-standard tests (non-parametric, mixed models).
What this calculates
- Replicates per group
- Minimum whole replicates needed in each group (rounded up).
- Total replicates
- Replicates across both groups combined.
- Standardized effect size (d)
- δ / σ: the difference expressed in units of the standard deviation.
Sources
- Fleiss 2003 Fleiss, J.L., Levin, B. & Paik, M.C. (2003). Statistical Methods for Rates and Proportions (3rd ed.). Wiley. — sample-size estimation for comparing two means.
- Acklam Acklam, P.J. An algorithm for computing the inverse normal distribution function. Statistics Division, University of Oslo. — rational approximation used for the normal quantiles in this calculator.
Frequently asked questions
What does this sample size calculator estimate?
It estimates the number of replicates per group needed to detect a difference between two independent means (for example treatment vs control on a plate or in a culture system) at a significance level and power you choose. It returns the minimum whole replicates per group (always rounded up), the total across both groups, and the standardized effect size d = δ / σ. This is a pre-study planning estimate using the standard two-sample normal approximation, not a post-hoc test of your data.
What inputs does the calculator need?
Four values: the smallest difference between the group means worth detecting (δ), in the outcome’s own units; an assumed standard deviation (σ), ideally from pilot data or the literature; a two-sided significance level (α), which must be between 0.001 and 0.2 with 0.05 the common choice; and a target power (1 − β), which must be between 0.5 and 0.999 with 0.8 the common choice. Underneath, it applies the normal-approximation formula n = 2(z₁₋α/₂ + z₁₋β)²σ²/δ².
What is statistical power in plain language?
Power is the probability that your experiment will actually detect the difference you specified, assuming that difference truly exists. At the common 80% target, you would still expect to miss a real effect of that size about one time in five, and the calculator shows the trade-off directly: raising the power target increases the replicates per group it returns. Power is the complement of the Type II error rate (1 − β), and this tool lets you set it anywhere from 0.5 to 0.999.
How many replicates do I need, and do technical replicates count toward that number?
There is no universal number: the honest answer depends on how small a difference you want to detect and how variable your assay is, which is exactly what the calculator derives from your δ, σ, α, and power. The replicates it plans for are the independent replicates behind the two-group comparison: averaging several technical measurements of the same sample does not substitute for more independent ones. The calculator also does not plan for technical replicates, attrition, or dropout, so build those into the n it gives you.
What are the limits of this estimate?
It uses the z (large-sample) approximation rather than the t distribution, so for fewer than roughly 30 replicates per group a t-test will require slightly more than the reported number. Treat the result as a lower bound. It assumes two independent groups with equal replicate numbers and equal variance, an approximately normal outcome, a two-sided test, and a single comparison; multiple testing, paired designs, and unequal variances need different formulas. It is a planning aid, not statistical advice for a specific study; consult a statistician for confirmatory or clinical designs.
For research and educational use only. Not for clinical or diagnostic decisions. Always verify calculations independently before use in critical applications.