Proportion Test Calculator: One, Two or Several Proportions with Wilson CI
Compare percentages properly. Test one proportion against a target (is the germination rate below the 85% on the label?), compare two proportions (treated vs untreated seed), or test whether several proportions are equal. You get the z or chi-square test exactly as R’s prop.test, the Wilson confidence interval, the Newcombe interval for the difference, risk ratio, odds ratio, Cohen’s h and a bar chart.
| Group | Successes (x) | Total (n) |
|---|---|---|
- PriceFree, no login or sign-up needed
- Your dataProcessed in your browser, never uploaded
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published17 November 2026
- Last updated16 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Proportion test calculator [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/proportion-test-calculator/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 17 November 2026.
How to use the proportion test calculator
- Choose the tab: One proportion (compare with a target value), Two proportions (compare two groups) or Several proportions (three or more groups).
- Enter the number of successes (for example germinated seeds) and the total for each group. For several groups, type or paste one group per line as name, successes, total.
- Leave the continuity correction ticked to match R’s prop.test, or untick it for the classic z test taught in textbooks. Keep the test two-tailed unless you fixed a direction in advance.
- Click Run test, then copy the APA sentence and the results table, and download the bar chart.
Which proportion test do I need?
| Question | Tab | Test |
|---|---|---|
| Is our germination rate different from the 85% on the label? | One proportion | One-sample z test (χ², 1 df); exact binomial for small n |
| Does seed priming raise germination compared with untreated seed? | Two proportions | Two-sample z test (χ², 1 df), Newcombe CI, RR and OR |
| Is disease incidence the same at four sites? | Several proportions | χ² test of equal proportions (k − 1 df) and pairwise tests |
| The same subjects measured twice (yes/no before and after) | McNemar’s test, not this tool | |
The two-sample z test and the chi-square test on the 2 × 2 table are the same test: z² = χ². Use Fisher’s exact test when any expected count is below 5.
Formulas
The Wilson and Newcombe intervals are recommended over the simple Wald interval (p̂ ± 1.96·SE), which can be badly off for small samples or proportions near 0 or 1. The tool shows the Wald interval too because R’s prop.test reports it.
Worked example
172 of 200 primed seeds and 151 of 200 untreated seeds germinated (86.0% vs 75.5%). With the continuity correction, χ²(1) = 6.43, p = .011 (without it, χ²(1) = 7.09, p = .008). The difference is 10.5 percentage points, 95% Newcombe CI [2.8, 18.1]. Primed seed germinated better.
Assumptions
- Each observation is a yes/no outcome, and observations are independent (different seeds, plants or people in each group).
- Expected counts of at least 5 in every cell for the z/χ² approximation. Otherwise use the exact binomial (one sample) or Fisher’s exact test (two samples), both shown here.
Planning a study? Use the sample size calculator to find how many observations you need to detect a given difference in proportions.
Frequently asked questions
Should I use the continuity correction?
R’s prop.test and chisq.test use the Yates continuity correction by default for 2 × 2 tables; it makes the test a little more conservative. Many textbooks and online z-test calculators do not use it. Both are acceptable: say in your methods which one you used. With large samples the difference is negligible.
Why is the confidence interval different from the one in my textbook?
Textbooks often use the Wald interval p̂ ± z·SE. This tool reports the Wilson interval for single proportions and the Newcombe interval for the difference, which have much better coverage. The Wald interval is also listed for the two-sample case.
Is the two-proportion z test the same as the chi-square test?
Yes. For a 2 × 2 table, z² equals the chi-square statistic and the two-tailed p-values are identical (with the same choice of continuity correction).
When should I use Fisher's exact test instead?
When any expected count is below 5, for example with small samples or rare outcomes. The tool warns you and shows Fisher’s exact p-value for the two-proportion case.
What is the difference between risk ratio and odds ratio?
The risk ratio compares the proportions directly (86% / 75.5% = 1.14). The odds ratio compares odds (successes / failures). They are similar when the outcome is rare, but the odds ratio is further from 1 when the outcome is common. Use the risk ratio for cohort studies and trials when you can; odds ratios are standard for case–control studies and logistic regression.
Is my data uploaded?
No. Everything runs in your browser.
Do I need to log in or create an account to use the proportion test calculator?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Proportion test calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/proportion-test-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel

