Probability Calculator

Use this page for elementary probability identities. One event returns the complement 1 − P and the odds P / (1 − P). Two independent events return P(A and B) = P(A)P(B), P(A or B) = P(A)+P(B)−P(A and B), and P(neither). A third mode returns the chance of at least one success in n independent trials, 1 − (1 − p)ⁿ. A fourth mode lists permutations P(n,r) and combinations C(n,r) for whole numbers up to n = 170. These identities assume independence when they say they do. They are not a Bayesian calculator, not a distribution fitter, and not betting advice.

By Rashid MehmoodLast updated and reviewed Free, no sign-up

Probability calculator

–

How to use the probability calculator – complement, independent events, npr and ncr

  1. Choose a mode. One event, two independent events, at least one success in n trials, or permutations and combinations.
  2. Enter probabilities as fractions between 0 and 1. 0.3 means 30%. Do not type 30 unless you really mean a probability of 30, which is invalid.
  3. Only use the independent identities when independence is reasonable. If A and B clearly depend on each other, P(A and B) is not P(A)P(B), and this page will not know that from the numbers alone.
Embed this calculator

Paste this iframe on your own site. The embed view already includes a visible “Calculator by CalcTen” credit, which must stay visible. See the developers page for the conditions.

Formulas on this page

For a single event with probability p, 0 ≤ p ≤ 1,

P(not A) = 1 − p, odds in favour = p / (1 − p) (undefined when p = 1).

Odds are written here as a single ratio, not as a bookmaker’s tick, and they are not a recommendation to bet.

If A and B are independent,

P(A and B) = P(A)P(B),
P(A or B) = P(A) + P(B) − P(A and B),
P(neither) = (1 − P(A))(1 − P(B)).

For n independent trials with the same success probability p,

P(at least one success) = 1 − (1 − p)ⁿ.

Permutations and combinations of whole numbers n ≥ r ≥ 0 are

P(n, r) = n! / (n − r)!, C(n, r) = n! / (r! (n − r)!),

computed as a falling product so that unnecessary full factorials are avoided, and limited to n ≤ 170 so the result stays an exact finite integer in ordinary floating-point arithmetic.

Independence is an assumption, not a detection

Nothing in the two numbers P(A) and P(B) can tell the calculator whether the events are independent. If you are drawing without replacement, or if one event is a subset of the other, do not use the independent mode. The page will still multiply the numbers you type; the mistake would be in the modelling, not in the multiplication.

The z-score and confidence-interval calculators answer a different family of questions (normal-model scores and intervals). The random-number generator draws numbers; it does not compute these identities.

Worked figures

  • p = 0.3: complement 0.7, odds 3/7 ≈ 0.428571.
  • Independent 0.3 and 0.4: and = 0.12, or = 0.58, neither = 0.42.
  • At least one in 10 trials with p = 0.3: 1 − 0.7¹⁰ ≈ 0.971752.
  • C(10, 3) = 120, P(10, 3) = 720.

Those identities are unit-tested against the same TypeScript functions the browser runs. Copy result, Copy link and Reset work as on the other GenericCalc tools. Report a mistake from the about box if a figure disagrees with a hand check.

Frequently asked questions

If P(A) is 0.3, what is the complement and the odds?

P(not A) = 0.7. The odds in favour are 0.3/0.7 ≈ 0.4286, sometimes written 3:7. This is not a betting quote.

If A and B are independent with probabilities 0.3 and 0.4, what is P(A and B)?

0.12. P(A or B) = 0.3 + 0.4 − 0.12 = 0.58, and P(neither) = 0.7 × 0.6 = 0.42. That is a worked example on the page.

What is the chance of at least one success in 10 independent trials with p = 0.3?

1 − (0.7)¹⁰ ≈ 0.9718.

What is C(10, 3)?

120. P(10, 3) = 720. Order does not matter for combinations and does matter for permutations.

Can I enter a probability of 30% as 30?

No. Enter 0.3. Values outside 0 to 1 are rejected.

Do you handle dependent events or Bayes’ theorem?

Not on this page. The two-event mode is labelled independent and should not be used when dependence is obvious.

Why is n capped at 170 for nPr and nCr?

Beyond that, n! no longer fits in a standard JavaScript number as an exact integer. The page refuses rather than return an approximation silently.

Sources and references

About this calculator

Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 15 November 2026. See our editorial policy. If you spot a mistake, report it.

Results are calculated from the numbers you enter and shown with the working. Rounding is applied only when displaying results. Grade and GPA scales, and weighting rules, vary by school, so confirm with your institution. Read the disclaimer.

Calculator by CalcTen — free online calculators.