Site icon Codanics

Binomial Test and Sign Test Calculator (Exact p)

Binomial Test and Sign Test Calculator: free online tool by Codanics that runs in your browser
Statistics

Binomial Test and Sign Test Calculator with Exact p-Value and Clopper–Pearson CI

Test whether an observed proportion matches an expected one, exactly. Enter successes and trials (for example 5,474 round seeds out of 7,324 against Mendel’s 3 : 1, p = 0.75) to get the exact p-value and the Clopper–Pearson confidence interval. Switch to the sign test to compare paired before/after values, or a sample against a hypothesised median, with no normality assumption.

✅ No login needed100% freeRuns in your browserYour data stays on your device
Binomial Test and Sign 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.

Separate values with spaces, commas or new lines. Paired values must be in the same order in both boxes.

  • 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). Binomial test and sign test calculator [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/binomial-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 Binomial Test and Sign Test Calculator

  1. For a binomial test, enter the number of successes, the number of trials and the proportion you expect under the null hypothesis. You can type 0.75, 75% or a ratio such as 3:1. The example uses Mendel’s pea data: 5,474 round and 1,850 wrinkled seeds tested against 3 : 1.
  2. For a sign test, open the Sign test tab. Paste the paired values (before and after) into the two boxes, or choose One sample and type the median you want to test against. You can also paste or upload from Excel.
  3. Keep the two-tailed test unless you set a direction before collecting the data, then click Run test.
  4. Read the exact p-value and the confidence interval, and copy the APA sentence into your results.

When to use the binomial test and the sign test

The binomial test checks whether the proportion of “successes” in a sample of yes/no outcomes matches a hypothesised value. It is exact: it uses the binomial distribution directly, so it is valid for any sample size, including very small ones where the chi-square test is unreliable. Typical uses:

  • Does a cross segregate in a 3 : 1 (p = 0.75) or 1 : 1 (p = 0.5) ratio? For more than two classes use the chi-square goodness-of-fit test.
  • Is the germination rate of a seed lot different from the 85% on the label?
  • Did more than half of the panel prefer product A?

The sign test is the binomial test applied to the signs of differences. It compares paired measurements (before/after, left/right, two raters) or tests a sample against a hypothesised median. It only uses the direction of each difference, so it needs no assumption about the shape of the distribution. If the differences are roughly symmetric, the Wilcoxon signed-rank test has more power; if they are roughly normal, use the paired t-test.

Formulas

P(X = k) = C(n, k) · p₀ᵏ · (1 − p₀)ⁿ⁻ᵏ One-tailed (greater): p = P(X ≥ x) One-tailed (less): p = P(X ≤ x) Two-tailed: p = sum of P(X = k) over all k with P(X = k) ≤ P(X = x) (as in R’s binom.test) Clopper–Pearson CI: lower = Beta⁻¹(α/2; x, n − x + 1), upper = Beta⁻¹(1 − α/2; x + 1, n − x) Sign test: drop zero differences, x = number of positive differences, n = non-zero differences, p₀ = 0.5

The two-sided p-value adds the probabilities of all outcomes that are as likely as or less likely than the observed one, which is the method used by R and most statistics packages. Some textbooks double the one-tailed p-value instead; with p₀ = 0.5 (the sign test) both methods give the same answer.

Worked example: Mendel’s seed shape

Mendel counted 5,474 round and 1,850 wrinkled seeds (n = 7,324) in the F₂ generation. Under a 3 : 1 ratio we expect p₀ = 0.75, that is 5,493 round seeds. The observed proportion is 0.7474, the exact two-sided p = .608, and the 95% Clopper–Pearson CI is [0.7373, 0.7573], which includes 0.75. The data fit the 3 : 1 ratio.

An exact binomial test indicated that the proportion of round seeds (5474 of 7324, 74.7%) was not significantly different from the expected 75.0%, p = .608, 95% CI [73.7%, 75.7%].

Assumptions

  • Each trial has only two outcomes, and the trials are independent.
  • The probability of success is the same for every trial.
  • For the sign test, the pairs are independent of each other. Ties (zero differences) are dropped, which is the standard approach.

Comparing two proportions instead of one against a fixed value? Use the proportion test calculator. For paired yes/no data, use McNemar’s test.

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

Frequently asked questions

What is the difference between the binomial test and the chi-square goodness-of-fit test?

Both test whether observed counts match expected proportions. The binomial test is exact and works for two categories at any sample size. The chi-square test is an approximation that needs expected counts of at least 5, but it handles more than two categories (for example 9:3:3:1).

Why does my two-tailed p-value differ from twice the one-tailed p-value?

When p₀ is not 0.5 the binomial distribution is not symmetric. This tool, like R’s binom.test, adds up the probabilities of all outcomes that are no more likely than the one you observed. Doubling the smaller tail is an older method and can give p-values above 1.

What is the Clopper–Pearson interval?

It is the ‘exact’ confidence interval for a proportion, built from the binomial distribution. It is guaranteed to cover the true proportion at least 95% of the time, so it is slightly wider (conservative) than the Wilson interval. It is the interval R’s binom.test reports.

How does the sign test handle ties?

Pairs with a difference of exactly zero carry no information about direction, so they are removed and n is reduced. The number of ties is shown in the results so you can report it.

When should I use the sign test instead of the Wilcoxon signed-rank test?

Use the sign test when the differences are clearly asymmetric, when you only know the direction of change (better/worse), or when there are extreme outliers. Otherwise the Wilcoxon signed-rank test is usually more powerful.

Is my data uploaded?

No. All calculations run in your browser and nothing is sent to a server.

Do I need to log in or create an account to use the Binomial Test and Sign 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). Binomial test and sign test calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/binomial-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