Binomial Sample Size Calculator

Plan experiments confidently using robust binomial sample size methods for estimation and. Balance precision, feasibility, and cost with scenario comparisons live sensitivity analysis tools. Includes power detection, finite population correction, with exports to CSV, PDF. Start precise planning today with clean, guided workflows inside.

Common: 90, 95, 99.
Half-width of CI for proportion p.
Use 0.5 when uncertain for worst-case n.
Finite population correction applied if provided.
FPC is rarely used for tests but is provided.
Results

Rounded up to the next whole sample.

Mode Method Assumptions Sample Size n
No results yet. Click Calculate.
Example Scenarios

Realistic presets showing estimated n under different inputs.

Mode Inputs Output

Formulas Used

Estimation (Wald): n₀ = z² · p(1−p) / E². If population size N is known, finite population correction (FPC) gives n = n₀ / (1 + (n₀ − 1)/N).

Estimation (Wilson score): Solve for the smallest n for which the Wilson half-width H(n) = z · √( p(1−p)/n · f + z²/(4n²) ) / (1 + z²/n) is ≤ E. Here f is the FPC factor f = (N − n)/(N − 1) if finite population is provided; otherwise f = 1.

Power (one-sample z test for proportion): For baseline p₀, alternative p₁, two-sided α, and power 1−β, n = [ z1−α/2·√(p₀(1−p₀)) + z1−β·√(p₁(1−p₁)) ]² / (p₁ − p₀)². For one-sided tests use z1−α. (Approximate; continuity and exact methods typically require iteration.)

How to Use This Calculator

  1. Select the mode: Estimate for CI width or Power to detect a difference.
  2. Enter inputs. For estimation, set confidence, margin of error, proportion, and optional population.
  3. For power, set α, desired power, baseline p₀, and target p₁; choose one- or two-sided.
  4. Click Calculate. Review results for normal (Wald) and Wilson methods and FPC variants.
  5. Export your table via Download CSV or Download PDF.

Tip: Use p = 0.5 for the most conservative (largest) sample size when unsure.

Reference: Z-values for Common Confidence Levels

Confidence level Two-sided z Typical use
80%1.2816Quick screens
85%1.4395Exploratory work
90%1.6449Business surveys
95%1.9600Standard practice
99%2.5758High assurance

Reference: Sample Size vs. Margin (p=0.5, 95% CL)

Margin of error (E) Required n (Wald)
±0.1097
±0.05385
±0.031068
±0.022401
±0.019604

Finite population correction example for E=0.03: N=1,000 → n≈517; N=5,000 → n≈880; N=10,000 → n≈965; N=50,000 → n≈1045.

FAQs

Wilson intervals are more accurate, especially for small n or p near 0 or 1. This calculator finds the minimal n meeting your margin with Wilson too.

Common choices are 1–5 percentage points depending on precision needs and feasibility. Smaller margins require larger n.

When sampling without replacement from a relatively small population, FPC reduces the required n because observing each unit yields more information.

It's an accurate normal-approximation. Exact binomial power requires iterative or computational methods; use this as a planning baseline.

Always round up. Sample size must be an integer and rounding up preserves the desired error or power guarantees.

Related Calculators

Row Reduction RREF CalculatorDiagonalization Checker CalculatorLU Decomposition Steps CalculatorQR Decomposition Steps Calculatormatrix calculator with variablesGauss-Jordan inverse calculatorPolynomial linear independence calculatorLinear independence of matrix calculatorComplex matrix inverse calculatorQR decomposition least squares

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.