Skip to content

DIY Cost Tools

Binomial Probability Calculator

Use this for the count of successes in a fixed number of independent trials with the same success probability. The probability result concerns exactly k successes, not at least k. A fair coin can be modeled with p = 0.5 when each flip is independent.

Enter every field in the stated units. Decimal and scientific notation are accepted for non-integer fields; blanks, commas, fractions and non-finite entries are rejected. Zero is accepted only where a field permits it.

P(X = k)0.1171875
Expected successes5
Variance2.5

How to use this calculator

  1. Identify the quantities required by the model and use the field units.
  2. Replace the example values, then select Calculate or press Enter.
  3. Read the labeled outputs and check the interpretation below.

Formula and interpretation

P(X=k) = C(n,k)p^k(1−p)^(n−k); mean = np; variance = np(1−p).

Calculations run in your browser. The previous results are hidden when an input changes or validation fails. This prevents an old answer from being mistaken for the new calculation. Results are displayed to approximately ten significant digits using floating-point arithmetic; that precision does not imply equal precision in measured inputs.

Worked example

Trials n = 10; Success probability p = 0.5; Successes k = 3. P(X = k) = 0.1171875; Expected successes = 5; Variance = 2.5.

Substitute the example inputs into the stated formula in the same order as the labeled fields. These are the default values shown above, so the explanation and the working interface describe the same case.

Limitations

Trials and successes must be integers from 0 to 200. Independence and constant p are assumptions, not facts checked by the tool. For sampling without replacement, consider a hypergeometric model.

This is an educational mathematical model. Check the assumptions and units for your situation. Geometry results do not establish material strength, and probability outputs do not predict an individual outcome.

Frequently asked questions

Does this give a cumulative probability?

No. It gives exactly k successes. Add mutually exclusive probabilities if you need a range.

Why does the calculator reject my entry?

Each field shows its supported range. Integer fields reject fractions; mathematical conditions such as a zero divisor or invalid shape produce a separate explanation. Correct the indicated field or condition and calculate again.

How many digits should I use?

Use enough digits to retain your input accuracy. Round the final answer to the precision justified by the data; tiny residuals around theoretical zero can result from floating-point arithmetic.

Review notes and reference

Reviewed October 3, 2026. The calculator script was tested against the default example and separate boundary cases. Checks covered blank, text, comma-formatted, non-finite and out-of-range entries, plus recovery after errors. Background reference for the mathematical method. Explanations and worked examples are original.

Related calculators

Math calculators · Poisson Probability Calculator · Geometric Probability Calculator · Exponential Probability Calculator · Search all calculators