Calculators
Sample Size Calculator
Find the minimum sample size for a survey or experiment: one-proportion studies with a margin of error, or two-group comparisons powered at 80% with α = 0.05.
Required n per Group (Two Means, 80% Power, α = 0.05)
| Effect size (Δ/σ) | n per group |
|---|---|
| 0.2 (small) | 393 |
| 0.5 (medium) | 64 |
| 0.8 (large) | 26 |
| 1.0 | 17 |
Values from n = 2·(1.96 + 0.842)²/δ² — the classic Cohen effect-size planning table.
The Formula Behind the Result
- Proportion mode: enter expected prevalence (or 0.5 for maximum conservatism) and your acceptable margin of error.
- The tool applies the standard normal-approximation formula with a finite population correction when you supply a population size.
- Means mode: enter the standard deviation and the smallest difference worth detecting to get the per-group n at 80% power.
- Both modes use two-sided α = 0.05; the comparison mode shows what higher or lower power does to the requirement.
Worked Example
Common Questions
Why does p = 0.5 maximize the required sample size?
The p(1−p) term peaks at 0.5. If you do not know the expected proportion, planning with 0.5 gives the largest, safest n — a survey sized for the worst case is valid for any result.
What does 80% power mean?
If the true effect equals your minimum detectable difference, an 80%-powered study finds a significant result 8 times out of 10. The remaining 20% are false negatives. Raising power to 90% costs roughly a third more subjects.
Does the calculator handle cluster sampling or attrition?
No. These formulas assume simple random samples of independent observations. For clustered designs inflate n by the design effect (1 + (m−1)·ICC), and add your expected dropout rate to the final figure.
Is the finite population correction always valid?
It applies when sampling without replacement and n is a meaningful share of N (rule of thumb: above 5%). Below that the correction is negligible and can be ignored.
Related Calculators
Confidence Interval Calculator (Proportion)
Build a confidence interval for a proportion from successes and trials — with the Wilson interval that stays accurate for small samples and 0% or 100% results.
Confidence Interval Calculator (Mean)
Compute a confidence interval for a population mean from raw data or summary statistics, using the t-distribution — correct for the small samples the normal formula gets wrong.
Odds Ratio Calculator
Compute the odds ratio from a 2×2 contingency table with 95% confidence interval and p-value — the standard measure of association for case-control studies.