There are several different sample size calculators - choose the correct one according to the type of clinical trial you are planning (superiority/equivalence/non-inferiority) and the nature of the primary outcome variable (binary/continuous).

A superiority trial is one where you want to demonstrate that one treatment or intervention is better than another (or better than no treatment/intervention). An equivalence trial is where you want to demonstrate that a new treatment is no better or worse than an existing treatment and non-inferiority is to show that a new treatment is not worse than an existing treatment.

These calculators are based on approximations to the Normal distribution and may not be suitable for small sample sizes. These calculators have been tested for accuracy against published papers.

A binary outcome has two categories, such as dead/alive, hospitalisation - yes/no, therapeutic success/failure and so on. This calculator is designed for binary outcomes in parallel group non-inferiority trials.

The percentage of patients that meet the primary outcome definition
(e.g. percentage survived) is compared between two randomised groups.
The null hypothesis is that the percentage for those on the standard
treatment is better than the percentage for those on the experimental treatment
by an amount **d**:

H_{0}: π_{s} ≥ π_{e} + d

By rejecting H_{0}, we accept the alternative hypothesis, that the percentage for
those on the new treatment is π_{s} − d or better:

H_{1}: π_{s} − d < π_{e}

in other words, that the experimental treatment is better than the standard treatment or only slightly worse (by no more than d). We usually call the new treatment in this situation non-inferior.

You must define the non-inferiority limit (**d**) so that a difference
bigger than this would matter in practice. You should normally assume that the percentage
'success' in both standard and experimental treatment groups is the same, unless you have good
reason to believe that one treatment is in fact superior to the other.

%

%

%

Calculation based on the formula:

n = f(α, β) × [π_{s}× (100 − π_{s}) + π_{e}× (100 − π_{e})] / (π_{s}− π_{e}− d)^{2}

where `π`

and _{s}`π`

are the true percent
'success' in the standard and experimental treatment group respectively, and
_{e}

f(α, β) = [Φ^{-1}(α) + Φ^{-1}(β)]^{2}

`Φ`

is the cumulative distribution function of a standardised normal deviate.
^{-1}

Blackwelder WC. "Proving the Null Hypothesis" in Clinical Trials.
*Control. Clin. Trials* 1982; **3**:345-353.