Basic statistics

Binomial Probability Calculator: P(X = k), At Most, At Least and Between, with Steps

Enter the number of trials n, the probability of success p and the number of successes k. You get P(X = k), at most, at least, fewer than, more than and between, with the formula worked out, the mean and SD, a probability table and a bar chart.

✅ No login needed100% freeRuns in your browserNothing savedYour data stays on your device
Binomial Probability Calculator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Everything you type is calculated on your own computer or phone. Nothing is saved, not even in your browser, and it is gone when you close the page. Nothing is uploaded, stored or seen by Codanics, and no login is needed.

Example: a 20-question multiple-choice test with 4 options each. Guessing every answer, p = 0.25. What is the chance of exactly 5 correct?

  • PriceFree, no login or sign-up needed
  • Your dataCalculated in your browser; nothing is saved
  • Works onPhone, tablet or computer, any modern browser
  • Made byDr. Muhammad Aammar Tufail, Codanics
  • Published24 November 2026
  • Last updated24 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 probability calculator [Online tool]. Codanics. Retrieved 24 November 2026, from https://codanics.com/tools/binomial-probability-calculator/

In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)

The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 24 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 probability calculator

  1. Enter the number of trials n (for example 20 questions) and the probability of success p on each trial as a decimal (0.25).
  2. Enter k, the number of successes you are asking about, and optionally a range a to b.
  3. Read P(X = k), at most, at least, fewer, more and between in the summary table. The working, chart and full table are below.
  4. Press Copy result to paste the answer and working into your notes.

What is a binomial probability?

A binomial probability is the chance of getting exactly k successes in n independent trials, when every trial has the same probability of success p. Coin tosses, guessing on a multiple-choice test, seeds that germinate, and defective items in a batch are classic examples.

Check the four conditions (often remembered as BINS): Binary outcome (success or failure), Independent trials, a fixed Number of trials, and the Same p each time.

Binomial formula

P(X = k) = C(n, k) · pᵏ · (1 − p)ⁿ⁻ᵏ C(n, k) = n! ÷ (k! · (n − k)!) Mean = n·p Variance = n·p·(1 − p) SD = √(n·p·(1 − p))
Words in the questionProbabilityHow to get it
exactly kP(X = k)the formula above
at most k, no more than kP(X ≤ k)P(0) + P(1) + … + P(k)
fewer than k, less than kP(X < k)P(X ≤ k − 1)
at least k, k or moreP(X ≥ k)1 − P(X ≤ k − 1)
more than kP(X > k)1 − P(X ≤ k)

Worked example: guessing on a test

A test has 20 multiple-choice questions with 4 options each. A student guesses every answer, so n = 20 and p = 0.25.

  • C(20, 5) = 15,504.
  • 0.25⁵ = 0.000977 and 0.75¹⁵ = 0.013363.
  • P(X = 5) = 15,504 × 0.000977 × 0.013363 = 0.2023 (about 20%).
  • P(X ≤ 5) = 0.6172, so P(X ≥ 6) = 1 − 0.6172 = 0.3828.
  • Mean = 20 × 0.25 = 5 correct answers; SD = √(20 × 0.25 × 0.75) = 1.936.

Tips and common mistakes

  • “At least” is the trap. P(X ≥ 6) is 1 − P(X ≤ 5), not 1 − P(X ≤ 6).
  • Enter p as a decimal. 25% is 0.25.
  • Trials must be independent. Drawing cards without replacement from a small deck is not binomial (it is hypergeometric).
  • Normal approximation. When np and n(1 − p) are both at least 10, the binomial looks like a normal curve with mean np and SD √(np(1 − p)). This calculator gives the exact answer anyway, using log-gamma so large n works too.
Want to test whether an observed proportion differs from a claimed p? Use the binomial test calculator for an exact p-value, or the proportion test calculator for larger samples.
Learn the statistics behind these numbers. Codanics has free statistics, R and Python lessons on YouTube and full courses for researchers.

Frequently asked questions

How do I calculate a binomial probability?

Use P(X = k) = C(n, k) · pᵏ · (1 − p)ⁿ⁻ᵏ. Work out the number of combinations C(n, k), multiply by p raised to k and by (1 − p) raised to n − k. The calculator shows each step with your numbers.

How do I find the probability of at least k successes?

Use the complement: P(X ≥ k) = 1 − P(X ≤ k − 1). For 20 guesses with p = 0.25, P(X ≥ 6) = 1 − 0.6172 = 0.3828.

What is the mean and standard deviation of a binomial distribution?

The mean is n·p and the standard deviation is √(n·p·(1 − p)). For n = 20 and p = 0.25, the mean is 5 and the SD is 1.936.

What is the difference between binomial PDF and CDF?

The PDF (strictly, the probability mass function) gives P(X = k), the chance of exactly k. The CDF gives P(X ≤ k), the chance of k or fewer. On a calculator these are binompdf and binomcdf; in Excel, BINOM.DIST(k, n, p, FALSE) and BINOM.DIST(k, n, p, TRUE).

When can I use the normal approximation to the binomial?

A common rule is when n·p ≥ 10 and n·(1 − p) ≥ 10. Then use a normal curve with mean np and SD √(np(1 − p)), with a continuity correction of 0.5. You do not need it here, because this calculator gives exact answers.

Does this calculator save what I type?

No. Everything is calculated in your browser and nothing is saved or uploaded.

Do I need to log in or create an account to use the binomial probability 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 probability calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/binomial-probability-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 24 November 2026, last updated 24 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.