Statistical Calculators › Proportions: One and Two Groups › Confidence Interval for the Difference Between Two Proportions
← All Calculators

Proportions: One and Two Groups

Confidence Interval for the Difference Between Two Proportions

Constructs a two-sided confidence interval for the difference between two independent population proportions, using the Pearson chi-square simple asymptotic method. Enter the observed successes and sample sizes for each group. Runs entirely in your browser.

Two Independent Groups

Enter the number of successes and total observations in each group.

Confidence Interval

Pearson chi-square — simple asymptotic, without continuity correction.
Enter the group data and click Calculate Confidence Interval.

Methodology

This calculator estimates the difference between two independent population proportions, defined as p1 − p2. The point estimate is the difference between the two observed sample proportions.

Confidence Interval Formula

For the Pearson chi-square simple asymptotic method, the two-sided confidence interval is calculated as:

p̂1 − p̂2 ± z1−α/2 √[ p̂1(1−p̂1)/n1 + p̂2(1−p̂2)/n2 ]

Here, p̂1 = x1/n1 and p̂2 = x2/n2. The standard error uses the two sample-specific binomial variances rather than a pooled proportion. The critical value z1−α/2 is determined by the selected confidence level.

Interpretation

The resulting interval gives a range of values for the population difference p1 − p2 consistent with the specified confidence level under this large-sample approximation. A positive interval estimate means the observed Group 1 proportion exceeds the Group 2 proportion; a negative estimate means it is lower.

Assumptions and Limitations

The groups should be independent, and the Pearson simple asymptotic interval is a large-sample method. For small samples or proportions close to 0 or 1, alternative score-based or other interval methods can have better coverage properties. PASS documents several alternative methods, including Yates continuity-corrected, Miettinen–Nurminen score, and Wilson score approaches.

Validation Example

PASS's documentation gives a validation example based on Newcombe (1998): confidence level 95%, p1 = 0.90, p2 = 0.30, and n1 = n2 = 10. For the Pearson method, the reported confidence interval is 0.2605 to 0.9395, with a width of 0.6790. The calculator reproduces these limits to four decimal places.

References

Newcombe, R. G. (1998). Interval estimation for the difference between independent proportions: comparison of eleven methods. Statistics in Medicine, 17(8), 873–890.

NCSS, LLC. PASS Sample Size Software: Confidence Intervals for the Difference Between Two Proportions, Chapter 216. PASS documentation describes the Pearson method as the commonly used simple asymptotic method without continuity correction and provides the validation example used above.

Clinical Trials

Real trials behind this calculation

See the analysis this calculator plans for applied to published trial results, with the estimates, confidence intervals and interpretation explained.

PEOPLE
Complete statistical analysis of the PEOPLE phase 3 trial of post-exposure prophylaxis for leprosy in the Comoros and Madagascar, including trial design,…
Phase 3 · n = 144,000
ONTARGET
An independent statistical analysis of ONTARGET and its companion trial TRANSCEND: Cox hazard ratios for telmisartan, ramipril and their combination, the non-inferiority…
Phase 4 · n = 31,546
ENGAGE AF-TIMI 48
Independent statistical analysis of ENGAGE AF-TIMI 48, evaluating edoxaban versus warfarin for stroke and systemic embolic events in patients with atrial fibrillation.
Phase 3 · n = 21,105
NextCOVE
Complete statistical analysis of the phase 3 NextCOVE trial comparing mRNA-1283 with mRNA-1273 for prevention of COVID-19 in participants aged 12 years…
Phase 3 · n = 13,553
ASPIRIN
Independent statistical analysis of Aspirin Supplementation for Pregnancy Indicated Risk Reduction In Nulliparas (ASPIRIN): primary endpoint results, effect estimate with confidence interval,…
Phase NA · n = 11,976
TEAM
Independent statistical analysis of TEAM, the randomized phase 3 trial comparing exemestane with tamoxifen followed by exemestane in postmenopausal patients with receptor-positive…
Phase 3 · n = 9,779
See all 5,320 trials using score-based CI for proportions (Miettinen-Nurminen, Newcombe, Wilson) →
Clinical Biostats