Statistics · Sampling & confidence

Sample Size for Two Proportions Calculator

Plan independent group sizes for detecting a difference between two anticipated proportions.

Statistics · Sampling & confidence

Enter your statistical inputs

Private in-browser calculation · explicit assumptions
Planning balances the effect worth detecting, sample size, false-positive rate, and target power.
  1. 1EnterProvide the known values
  2. 2CalculateResults update automatically
  3. 3VerifyReview the details and units
Try an example

Enter plain numbers without measurement units. Datasets accept commas, spaces, semicolons, or line breaks and are limited to 10,000 values. Results stay in this browser.

Statistics result

Enter valid values to see the result.

Your entries are calculated in this browser and are not submitted to 365CALCS.COM.

Feedback

Understand sampling uncertainty

How sample-size and power planning fit together

Sample Size for Two Proportions. Planning starts with an effect worth detecting, a significance level, a target power, and assumptions about variation or baseline rates.

Method used

Normal two-proportion planning combines a pooled null term and separate alternative variances.

Enter the smallest difference worth detecting and realistic baseline rates before data collection.

What the result cannot establish

Power is a long-run probability under the assumed effect and model. It is not a guarantee of significance, data quality, or practical importance.

Assumption: Uses an asymptotic uncorrected test, independent Bernoulli outcomes, stable rates, and fixed allocation.

Quick guide

How to use this calculator

  1. Enter the observations, probabilities, model parameters, or summary statistics requested by the visible labels.
  2. Keep every value on the same scale and confirm that the selected sampling relationship, distribution, and tail convention match the question you are investigating.
  3. Read the result together with its assumptions and interpretation. Statistical output summarizes uncertainty under a model; it does not repair biased data or establish causation.

Calculation method

How the sample size for two proportions calculator works

Normal two-proportion planning combines a pooled null term and separate alternative variances.

Enter the smallest difference worth detecting and realistic baseline rates before data collection.

Worked example

Sample Size for Two Proportions example

Planning for 50% versus 65% at 80% power and 5% two-sided alpha needs roughly 170 observations per equal group.

Normal two-proportion planning combines a pooled null term and separate alternative variances.

Supported inputs

Precision and limits

Model and design

Uses an asymptotic uncorrected test, independent Bernoulli outcomes, stable rates, and fixed allocation.

Numerical scope

Inputs use double-precision numerical methods with guarded domains. Datasets accept up to 10,000 finite plain-decimal values. Extremely large parameters or probabilities deep in a numerical tail may require specialist statistical software.

Interpretation

Enter the smallest difference worth detecting and realistic baseline rates before data collection.

Decision boundary

The calculator does not validate how data were collected, diagnose dependence or bias, choose a scientifically meaningful effect, or replace review by a qualified statistician for consequential research, medical, regulatory, safety, or policy decisions.

Privacy

Entered values and calculated results stay in this browser and are not sent to an analytics service.

Continue calculating

Related calculators