Skip to main content
MedCalc
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
working

Compare Two Proportions Calculator

Use this calculator to compare two proportions (percentages) from independent samples. It performs a two-proportion Chi-Squared test and provides the p-value, confidence interval, odds ratio, and relative risk.

Example: Compare 45% (n=120) vs 60% (n=150).

 

Sample 1
Sample 2

Computational notes

MedCalc uses the "N-1" Chi-squared test as recommended by Campbell (2007) and Richardson (2011).

The confidence interval is calculated according to the recommended method given by Altman et al. (2000).

Literature

  • Altman DG, Machin D, Bryant TN, Gardner MJ (Eds) (2000) Statistics with confidence, 2nd ed. BMJ Books. (p. 49)
  • Campbell I (2007) Chi-squared and Fisher-Irwin tests of two-by-two tables with small sample recommendations. Statistics in Medicine 26:3661-3675. PubMed
  • Richardson JTE (2011) The analysis of 2 x 2 contingency tables - Yet again. Statistics in Medicine 30:890. PubMed

How to cite this page

  • MedCalc Software Ltd. Compare Two Proportions Calculator (Chi-Squared test) | MedCalc. https://www.medcalc.org/en/calc/comparison_of_proportions.php (Version 23.5.1; accessed April 18, 2026)

Other free statistical calculators

See also

Trusted by researchers worldwide — download the full MedCalc statistical software and perform advanced statistical analysis in seconds. No registration required.