Site icon Codanics

Proportion Test Calculator (One and Two Proportions)

Proportion Test Calculator: free online tool by Codanics that runs in your browser
Statistics

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.

✅ No login needed100% freeRuns in your browserYour data stays on your device
Proportion Test Calculator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Your data is analysed on your own computer or phone, even when you upload a CSV or Excel file. Nothing is uploaded, stored or seen by Codanics, and no login is needed.
GroupSuccesses (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.

Citation · APA 7th edition

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.

🚀 Follow Codanics channel on WhatsApp for more updatesNew free tools, scholarships, PhD positions and research tips, straight to your phone. Free lessons on YouTube too.

How to use the proportion test calculator

  1. Choose the tab: One proportion (compare with a target value), Two proportions (compare two groups) or Several proportions (three or more groups).
  2. 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.
  3. 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.
  4. Click Run test, then copy the APA sentence and the results table, and download the bar chart.

Which proportion test do I need?

QuestionTabTest
Is our germination rate different from the 85% on the label?One proportionOne-sample z test (χ², 1 df); exact binomial for small n
Does seed priming raise germination compared with untreated seed?Two proportionsTwo-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

One sample: z = (p̂ − p₀) / √(p₀(1 − p₀)/n) Two samples: z = (p̂₁ − p̂₂) / √(p̄(1 − p̄)(1/n₁ + 1/n₂)), p̄ = (x₁ + x₂)/(n₁ + n₂) Yates correction: |O − E| is reduced by 0.5 (or less, as in R) before squaring; χ² = z² Wilson CI: [p̂ + z²/2n ± z·√(p̂(1 − p̂)/n + z²/4n²)] / (1 + z²/n) Newcombe CI for p₁ − p₂: D − √((p̂₁ − l₁)² + (u₂ − p̂₂)²) to D + √((u₁ − p̂₁)² + (p̂₂ − l₂)²) Risk ratio = p̂₁/p̂₂, odds ratio = (a·d)/(b·c), Cohen’s h = 2·asin√p̂₁ − 2·asin√p̂₂

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.

Learn the statistics behind these numbers. Codanics has free statistics, R and Python lessons on YouTube and full courses for researchers.

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

Made by Dr. Muhammad Aammar Tufail, Codanics. First published 17 November 2026, last updated 16 November 2026. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the comments on YouTube. Results are for learning and planning; check important analyses with a statistician or your supervisor.
Exit mobile version