Understanding the Two Proportion Z Test
A two proportion z test compares two independent rates. It asks whether the observed difference is large enough to reject a chosen null difference. The method is useful for surveys, experiments, quality checks, and A/B tests. Each group supplies a success count and a total count. The calculator turns those counts into sample proportions.
What the Result Means
The z statistic measures distance from the null difference in standard error units. A large positive value supports a greater first proportion. A large negative value supports a smaller first proportion. The p value gives the chance of seeing a result this extreme, assuming the null model is correct. A small p value suggests the observed gap is not random noise.
Confidence Interval Value
The confidence interval estimates the likely range for p1 minus p2. It uses the unpooled standard error. This choice describes the observed samples rather than the strict null model. If the interval excludes zero, the groups differ at the matching two sided significance level. If it includes zero, the evidence is weaker.
When to Use This Tool
Use this calculator when both samples are independent. Use counts, not percentages alone. Each sample should have enough successes and failures for the normal approximation. A common rule checks that expected successes and failures are at least five. For very small samples, consider an exact method instead.
Extra Measures
The calculator also reports risk ratio, odds ratio, absolute difference, relative lift, Cohen h, and number needed to treat when available. These values help explain practical importance. A statistically significant result may still be too small to matter. A large effect may need more data before it becomes significant.
Reporting Tips
Report the sample counts, proportions, z statistic, p value, confidence interval, alpha level, and alternative hypothesis. Mention whether continuity correction was used. Use the CSV export for spreadsheets. Use the PDF export for a quick record. Always add study context before making a decision.
Common Inputs
Choose the alternative before reading the p value. Greater tests ask if the first rate is higher. Less tests ask if it is lower. Two sided tests look for any meaningful difference in either direction. Use consistent definitions.