Skip to content

Sample Size Calculator

Sample sizes for prevalence studies, means, proportions, case-control, cohort studies and RCTs.

%

Use 50% when unknown; it gives the largest, safest sample.

%
%
%
%
%
Confidence level

Controls per case

Hypothesis

Applies the finite population correction.

%

For cluster samples

Enter your values to see the result.

Results use standard large-sample formulas and are meant to support, not replace, a statistician's review. Check the assumptions behind each method before you report the numbers.

Processing and privacy

Processing varies by tool. Check the instructions for local processing, server requests, external services and any file or request limits before entering sensitive information.

Read the privacy policy

How this calculation works

Understand the method, inputs and limits behind your result.

Report a calculation issue
Formula
Single proportion: n = z²p(1 − p) / d². Single mean: n = (zσ / d)². Apply the selected study design, finite population correction when enabled, design effect and dropout allowance, then round up. Other study designs use group-comparison formulas.
Variables
  • z = normal critical value for the confidence level
  • p = expected proportion as a decimal
  • d = absolute margin of error
  • σ = expected standard deviation
  • Dropout: divide the required sample by (1 − dropout fraction).
Units
  • Sample: people / observations
  • Proportions: decimals in the equation
  • For means, margin and standard deviation use the same unit.
Example
A prevalence survey expecting 50% with a ±5% margin at 95% confidence needs 385 people; allowing 10% non-response raises it to 428.
Assumptions
Large-sample normal approximation and independent observations. Clustering needs a justified design effect. Group comparisons also depend on power and allocation. Review the study-specific design before recruitment.
Last reviewed
Implementation review; specialist review has not been recorded.

Methodology & References

The method depends on the selected model and input options. Review the assumptions and references above before interpreting the result.

  1. Choose your study design, such as a prevalence survey or a two-group trial.
  2. Enter the expected proportions or means, confidence level and power.
  3. Add expected dropout and a design effect for cluster samples, then read the size per group.

Interpretation and limitations

  • What proportion should I use if I do not know it? Use a figure from earlier studies or a pilot. If there is none, 50% gives the largest and therefore safest sample size.
  • Why add dropout? People withdraw, move or fail to respond. Dividing by (1 − dropout rate) keeps enough complete cases for the planned power.
  • What is the design effect? Cluster sampling (for example by village or clinic) makes people within a cluster alike, so you need more of them. Multiply by the design effect, often 1.5–2.

References

Share this tool

Found it useful? Send it to a friend or teammate.

Rate this tool

0.0

0 ratings

  • 5 stars 0
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 0

Click a star to rate this tool

Clear instructions

Find steps, examples and limitations below.

Use online

Open the tool in a supported web browser.

Free to use

No sign-up required. Tool-specific limits may apply.

Reference resources

How to use the Sample Size Calculator

Sample sizes for prevalence studies, means, proportions, case-control, cohort studies and RCTs.

  1. 1 Choose your study design, such as a prevalence survey or a two-group trial.
  2. 2 Enter the expected proportions or means, confidence level and power.
  3. 3 Add expected dropout and a design effect for cluster samples, then read the size per group.

Example and practical tips

A prevalence survey expecting 50% with a ±5% margin at 95% confidence needs 385 people; allowing 10% non-response raises it to 428.

Frequently asked questions

What proportion should I use if I do not know it?

Use a figure from earlier studies or a pilot. If there is none, 50% gives the largest and therefore safest sample size.

Why add dropout?

People withdraw, move or fail to respond. Dividing by (1 − dropout rate) keeps enough complete cases for the planned power.

What is the design effect?

Cluster sampling (for example by village or clinic) makes people within a cluster alike, so you need more of them. Multiply by the design effect, often 1.5–2.

  • How to Use Sample Size Calculator

    Calculate sample size for prevalence surveys, means, two proportions, case-control, cohort studies and RCTs, with power, dropout and design effect.

Browse all guides

Report an issue

Something broken or not quite right? Tell us and we will look into it.

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help