Statistics calculator

Free

Sample Size Calculator: Two Proportions

How many subjects per group to detect a difference between two proportions, with dropout adjustment and subgroup warnings.

Your numbers

Results update as you change the inputs.

Significance level α (two-sided)
Power (1 − β)
Calculating…
Required sample size per group across a range of target rates. The marker shows your current inputs. Smaller effects explode the required n.
Assumption check

    Result

    How to use this tool

    What this tool is for

    This calculator works out how many subjects each group needs for a study that compares two proportions, such as two conversion rates or two response rates. It uses a two-sided test with equal group sizes and the normal approximation, then adjusts the answer for the dropout you expect.

    How to use it

    1. Enter the baseline rate: the proportion you expect in the control group.
    2. Enter the target rate: the proportion you want the study to be able to detect in the other group.
    3. Choose the significance level and the power. The presets, 0.05 and 80 percent, are the common pairing.
    4. Set the expected dropout or non-response, so the plan recruits enough people to finish with the required number.
    5. Read the required sample size per group, before and after the dropout adjustment, and heed any subgroup warning.

    The fields

    Baseline rate p1
    The proportion you expect in the control or current group, in percent.
    Target rate p2
    The proportion in the other group that the study must be able to detect as different from the baseline.
    Significance level α (two-sided)
    The risk of a false alarm you accept. At 0.05, a difference this large would arise by chance about one time in twenty when the two rates are really equal.
    Power (1 − β)
    The chance the study detects the target difference when it is really there. Eighty percent is the common floor; ninety percent is the safer plan.
    Expected dropout / non-response
    The share of recruited subjects you expect to lose before the outcome is measured, in percent. The calculator inflates the recruitment target by this share.

    Compares two independent proportions (conversion rates, response rates, defect rates). Two-sided test, equal group sizes, normal approximation.

    Get new free tools as they ship

    One short email when a new calculator or template lands. No spam, unsubscribe anytime.