Please verify you are human to use the calculator.
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.
Interactive probability distribution calculators. Visualise Normal, Binomial, Poisson, Beta, and 12 more distributions with live PDF/CDF charts.
Try itFrequentist and Bayesian A/B test analysis. Z-test for proportions, Beta posterior distributions, probability of winning, and expected loss.
Try itDiagnostic test metrics: sensitivity, specificity, PPV, NPV, odds ratio, relative risk, NNT, and likelihood ratios with 95% confidence intervals.
Try itTest whether two categorical variables are independent using a contingency table.
Try itTest whether observed frequencies match expected frequencies from a theoretical distribution.
Try itExact test for independence in a 2×2 contingency table. Preferred over chi-square when sample sizes are small.
Try itGet notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.
Common questions about the z-test for proportions