Skip to main content
Statistics LibreTexts

15: Two Independent Proportions Comparison

  • Page ID
  • Two Independent Proportions Comparison

    This calculator performs the hypothesis test and also constructs a confidence interval for \(p_1\)−\(p_2\) given statistics. Please report the error to Dr. Jessica Kuang at

    To learn how to use this calculator, please watch a short video here.



    Enter the sample size and the number of successes for each sample, choose the test, and enter the confidence level then hit Calculate. The test statistic, p-value, and the boundaries of the confidence interval will be shown.  Be sure to enter the confidence level as a decimal, e.g., enter 95% as 0.95.

      Sample Size (N) Number of Successes (X)
    First Sample

    choose a test




    Second Sample
    Confidence Level (enter a decimal):  



    Test Statistics (z): p-value: Lower Bound: Upper Bound:

    (Powered by Desmos)

    • Was this article helpful?