Two-Proportion Z-Test Calculator

Compare two sample proportions, such as conversion rates or survey results. It gives the z statistic, the p-value, and a confidence interval for the difference between the two proportions.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the Two-Proportion Z-Test Calculator

  1. Enter the number of successes and the sample size for group 1.
  2. Enter the number of successes and the sample size for group 2.
  3. Pick the test type and the confidence level, then read the z statistic, p-value, and interval.

Frequently asked questions

What is a two-proportion z-test?

It tests whether two population proportions differ, using the normal approximation for the difference between two sample proportions. It works well when each group has at least about 10 successes and 10 failures.

How is the z statistic calculated?

z = (p1 - p2) / sqrt(p * (1 - p) * (1/n1 + 1/n2)), where p1 and p2 are the sample proportions and p = (x1 + x2) / (n1 + n2) is the pooled proportion.

What does a p-value below 0.05 mean?

It means that a difference at least as large as the one observed would occur less than 5 percent of the time if the two population proportions were actually equal. This is the usual threshold for statistical significance.

When should I use a one-sided test?

Use a one-sided test only when the direction of the difference was chosen before the data were collected. A two-sided test is the default and is more conservative.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.