Z-Test for Proportions

Compare two proportions (e.g., conversion rates) to determine if they differ significantly.

Please verify you are human to use the calculator.

About the Z-Test for Proportions

The z-test for proportions compares two proportions from independent groups to determine whether they differ significantly. It is the workhorse of A/B testing, clinical trial comparisons of response rates, survey analysis, and quality control assessments—anywhere the outcome is binary (success or failure) and you have two groups.

The test relies on the normal approximation to the binomial distribution, which is valid when both np ≥ 5 and n(1 − p) ≥ 5 in each group (a stricter guideline uses 10). When sample sizes are too small for the approximation, Fisher’s exact test or an exact binomial test should be used instead.

Key assumptions include independent observations, random sampling, and binary outcomes. The two groups must be genuinely independent—for example, in an A/B test each user should be assigned to exactly one variant. If the same users can appear in both groups, the independence assumption is violated and the p-value will be unreliable.

A test result carries weight only when the hypothesis, the sample size and the decision rule were fixed before the data arrived. Every pilot we scope is built the same way, with success criteria and kill gates agreed in advance. That work is described under AI pilot design.

Related calculations

  • One sample z test: Use the mean calculator for continuous measurements with known population standard deviation.
  • Two proportion z test: Use the two-proportion test when comparing independent groups rather than one proportion against a reference.
  • Binomial: Inspect the fixed-trial binary count model underlying the proportion.
  • Bernoulli: Inspect the individual binary observation underlying the proportion estimate.
  • Chi-square goodness-of-fit test: Represent binary outcomes as two category counts for a goodness-of-fit comparison.

Related Tools

Stay in the loop

Get notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.

Z-Test for Proportions FAQ

Common questions about the z-test for proportions