Skip to content

Free tool · no sign-up needed

Sample size calculator for medical research

Calculate the sample size for a prevalence survey, a mean, or a comparison of two proportions or two means, with power, confidence level and dropout.

%

From a similar study; 50% if unknown.

For a proportion, in percentage points (5 means ±5%). For a mean, in the outcome's units.

From a pilot or a published study, in the outcome's units.

%

e.g. outcome rate with the usual treatment.

%

The rate you expect, or the smallest difference worth finding.

The smallest difference in means that matters clinically.

For a small, known population. Leave blank if large.

%

Questions people ask

What prevalence should I use if I don't know it?

Use a figure from a similar published study. If there is none, 50% gives the largest (most cautious) sample size.

What is the margin of error?

How close you want your estimate to be to the true value, e.g. ±5 percentage points. Halving the margin roughly quadruples the sample size.

What power should I choose?

80% is the usual minimum; 90% is common for trials. Power is the chance of detecting the difference if it really exists.

Why add for dropout?

Some participants won't complete the study. Dividing by (1 − dropout rate) means you still have enough people at the end.

Is this enough for my protocol?

It covers simple designs with normal-approximation formulas. Cluster sampling, matched designs, survival outcomes and multiple groups need other methods; ask a statistician for those.

More free tools

We only use essential cookies: to keep you signed in, protect forms and remember this choice. No analytics or advertising cookies. We count visits and tool use in our own database, with no cookie; choose Essential only to be left out. Cookie policy