1. Home
  2. Calculate
  3. Probability Calculator

Probability Calculator

Event probabilities, binomial distribution and at-least-once odds, with formulas.

Runs in your browser · No upload
0.25, 25% and 1/4 all work.
P(A and B)
0.0833333
8.33333% · P(A) × P(B) = 0.5 × 0.1667
P(A and B)
EventFormulaProbability%
Both A and BP(A) × P(B) = 0.5 × 0.16670.08333338.33333%
A or B (at least one)P(A) + P(B) − P(A)P(B)0.58333358.3333%
Exactly one of themP(A) + P(B) − 2P(A)P(B)0.550%
Neither(1 − P(A)) × (1 − P(B))0.41666741.6667%
Not A1 − P(A) = 1 − 0.50.550%
Not B1 − P(B) = 1 − 0.16670.83333383.3333%

How to use

  1. Pick a calculation at the top.
  2. Enter probabilities as 0.25, 25% or 1/4, whichever is easiest. For a die, 1/6 is exact.
  3. The formula, with your numbers plugged in, appears under the result.

Formulas

Two events A and B

Probability Independent Mutually exclusive
A and B P(A) × P(B) 0
A or B P(A) + P(B) − P(A)P(B) P(A) + P(B)
Neither (1 − P(A))(1 − P(B)) 1 − P(A) − P(B)
Not A (complement) 1 − P(A) 1 − P(A)
  • Independent: one event doesn’t change the other’s probability (tossing a coin and rolling a die).
  • Mutually exclusive: the events can’t happen together (rolling a 1 and a 6 on a single roll).

Binomial distribution: the number of successes X in n independent trials, each with success probability p.

  • P(X = k) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ, where C(n, k) = n! ÷ (k!(n − k)!)
  • Mean np, variance np(1 − p)

At least once: P = 1 − (1 − p)ⁿ. The number of tries needed to reach a target is the smallest whole n with n ≥ ln(1 − target) ÷ ln(1 − p).

Examples

  • Exactly 3 heads in 10 coin tosses: C(10, 3) × 0.5¹⁰ = 120 ÷ 1,024 = 0.1172 (11.72%). At most 3 is 176 ÷ 1,024 = 17.19%.
  • At least one six in 4 rolls of a die: 1 − (5/6)⁴ = 51.77%. This is the problem the gambler Chevalier de Méré famously asked about in the 17th century.
  • A drop with a 1% chance shows up at least once in 100 tries with probability 63.40%. Getting past 50% takes 69 tries, 90% takes 230 and 99% takes 459.

Pitfalls

  • Only multiply probabilities that are independent. If an earlier outcome changes the next one (drawing cards without putting them back, for instance), the independent formulas no longer apply.
  • “100 tries at 1% means a guaranteed hit” is wrong. There’s still a 36.6% chance of getting nothing at all.
  • Very small probabilities are shown to six significant digits.

FAQ

How do I turn a probability into a percentage?

Multiply by 100: 0.125 is 12.5%. For other percentage math, see the percentage calculator.

When does the binomial distribution apply?

When each trial has two outcomes, the chance of success is the same every time, and the trials don’t affect each other. One example: the chance that at most 2 of 50 parts are defective when the defect rate is 2%.

Can I get a margin of error for a survey?

Yes. Use the confidence interval calculator for intervals and margins of error on proportions.

Everything is calculated in your browser, and nothing you enter is sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.