Home Back

Two Proportion Sample Size Calculator

Sample Size Formula:

\[ n = \frac{(Z_{\alpha/2} + Z_{\beta})^2 \times (p_1(1-p_1) + p_2(1-p_2))}{(p_1 - p_2)^2} \]

unitless
unitless
proportion
proportion

Unit Converter ▲

Unit Converter ▼

From: To:

1. What is the Two Proportion Sample Size Calculation?

The two proportion sample size calculation determines the number of participants needed in a study to detect a statistically significant difference between two proportions with a specified power and significance level.

2. How Does the Calculator Work?

The calculator uses the formula:

\[ n = \frac{(Z_{\alpha/2} + Z_{\beta})^2 \times (p_1(1-p_1) + p_2(1-p_2))}{(p_1 - p_2)^2} \]

Where:

Explanation: This formula calculates the minimum sample size needed per group to detect a specified difference between two proportions with a given statistical power and significance level.

3. Importance of Sample Size Calculation

Details: Proper sample size calculation is essential for study design to ensure adequate power to detect meaningful effects while minimizing the risk of false negatives (Type II errors) and avoiding unnecessary resource expenditure.

4. Using the Calculator

Tips: Enter appropriate Z values for your desired significance level and power, and provide realistic estimates for the expected proportions in each group. The difference between p1 and p2 should be the minimum clinically important difference you want to detect.

5. Frequently Asked Questions (FAQ)

Q1: What are typical values for Zα/2 and Zβ?
A: For α=0.05 (two-tailed), Zα/2=1.96; for 80% power, Zβ=0.84; for 90% power, Zβ=1.28.

Q2: How do I estimate p1 and p2?
A: Use data from previous studies, pilot studies, or clinical expertise. p1 is often the expected proportion in the control group.

Q3: What if my proportions are very different?
A: Larger differences between proportions require smaller sample sizes to detect, while smaller differences require larger sample sizes.

Q4: Does this formula assume equal group sizes?
A: Yes, this formula calculates the sample size needed per group when groups are of equal size.

Q5: When should I use a different sample size formula?
A: Use different formulas for continuous outcomes, survival analysis, cluster randomized trials, or when expecting unequal group sizes.

Two Proportion Sample Size Calculator© - All Rights Reserved 2025