Binomial Sample Size Calculator

Estimate reliable binomial sample sizes for proportions, confidence intervals, statistical power, finite populations, clustered designs, dropout, and unequal study groups with clear steps instantly.

Calculator inputs

Choose a mode, enter assumptions, and calculate the required sample.


Use 50% when the expected proportion is unknown.
Use 1 for equal groups or 2 for twice as many treatments.

Advanced adjustments

Formula used

Population proportion estimate

n₀ = Z² × p × (1 − p) ÷ E²

Finite population correction

n = N × n₀ ÷ (N + n₀ − 1)

Dropout adjustment

n adjusted = n × design effect ÷ (1 − dropout rate)

One-sample power approximation

n = [Zα × √(p₀q₀) + Zβ × √(p₁q₁)]² ÷ (p₁ − p₀)²

Two-proportion comparison

The calculator combines pooled variance, group variance, power, significance, effect size, and the allocation ratio.

How to use the calculator

  1. Select the calculation mode matching your study goal.
  2. Choose percentage or decimal probability inputs.
  3. Enter the expected proportions and precision assumptions.
  4. Add power, significance, or group allocation when required.
  5. Apply population, clustering, and dropout adjustments when relevant.
  6. Calculate and review every intermediate sample size.
  7. Export the result using copy, CSV, PDF, or print.

Example data

Scenario Expected inputs Useful mode Planning purpose
Customer survey 95% confidence, 5% margin, p = 50% Estimate one proportion Estimate a population percentage.
Single-arm response study p₀ = 40%, p₁ = 55%, 80% power One-sample binomial test Detect improvement above a benchmark.
Two-group trial 50% versus 62%, equal allocation Compare two proportions Compare treatment and control success.
Small expected prevalence p = 8%, exact 95% interval Confidence interval precision Plan conservative exact interval precision.

Interpretation and limitations

Confidence controls interval reliability across repeated samples. Power controls the chance of detecting a real effect. They answer different study design questions.

One-sided tests target changes in one chosen direction. Two-sided tests allow changes in either direction. Direction should be chosen before reviewing outcomes.

Finite population correction matters for large sampling fractions. Design effects increase samples for clustered observations. Dropout adjustments protect final analysable sample counts.

Normal methods can perform poorly with rare outcomes. Wilson intervals often improve interval behaviour. Exact intervals are conservative but computationally heavier.

Frequently asked questions

Why does p = 0.50 give the largest sample?

Binomial variance peaks when success and failure are equally likely. That choice produces the most conservative normal sample estimate. It protects planning when prevalence remains unknown.

Should I use confidence level or statistical power?

Use confidence for estimation and interval precision. Use power for testing a specific alternative effect. Some studies require both planning approaches.

When should finite population correction be used?

Use it when sampling without replacement from a known population. It matters most when sampling fractions become large. Leave population size blank otherwise.

What does design effect mean?

Design effect compares complex sampling variance against simple random sampling. Values above one increase the required sample. Clustered designs commonly need this adjustment.

How is dropout adjustment calculated?

The usable sample is divided by one minus dropout. This inflates recruitment before data collection begins. Dropout must remain below one hundred percent.

Which confidence interval method should I choose?

Wald is simple but can be inaccurate near boundaries. Wilson usually offers better practical coverage. Exact intervals are conservative for small samples.

What is an unequal allocation ratio?

It sets treatment participants relative to control participants. A ratio of two doubles treatment recruitment. Unequal allocation can increase total requirements.

What is a minimum detectable effect?

It is the smallest planned difference worth detecting. Smaller effects require larger samples for equal power. Choose effects with practical importance.

Why does the calculator always round upward?

Fractional participants cannot be recruited or analysed. Rounding downward would reduce planned precision or power. Upward rounding preserves the design target.

Related Calculators

Algebra CalculatorEquation CalculatorInterval Notation CalculatorLogical Sets CalculatorPI Product Notation CalculatorPolynomials CalculatorRational Expressions CalculatorTesting Solutions CalculatorWord Problems Calculatorangle to decimal calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.