What this answers
This test answers "are these two independently observed proportions likely to reflect the same underlying rate, or is the difference between them larger than chance alone would produce?" A common use is comparing a conversion rate, response rate, or event rate between two independent groups.
How it is calculated
The z statistic uses a pooled standard error: both groups' successes and trials are combined into one pooled proportion under the null hypothesis that the two groups share the same true rate, then the observed difference is divided by the standard error implied by that pooled proportion. The confidence interval for the difference, however, uses the unpooled Newcombe-Wilson method (combining each group's own Wilson interval), which is more accurate than a simple pooled-variance interval, especially with smaller samples or proportions near 0% or 100%.
Worked example
For Group A with 60 successes out of 100 trials and Group B with 50 out of 100: the pooled proportion is 55%, giving a z statistic of about 1.42 and a two-sided p-value of about .155. At the conventional .05 threshold, this particular difference (60% versus 50%) is not statistically significant, illustrating that a 10-point difference is not automatically meaningful without accounting for sample size.
Assumption audit
What this result does not mean
A significant result means the data provide evidence the two rates differ at your chosen threshold, not that whatever distinguishes Group A from Group B caused that difference. A nonsignificant result means the comparison was inconclusive at that threshold, not proof the two true rates are identical.
Limitations
This test assumes independence both within and between groups. With very small trial counts or proportions extremely close to 0 or 1, consider an exact test rather than this normal-approximation-based z-test.