Probability Calculator

Calculate probability for two events, a single event from counts, binomial probabilities, combinations and permutations, with the formulas shown.

0.2P(A and B)
0.7P(A or B)
0.3P(neither)
0.5P(exactly one)
0.2P(A only)
0.3P(B only)
0.6P(not A)
0.5P(not B)
0.4P(A given B)
0.5P(B given A)
Worked example (default values)

Inputs: Calculate = Two events A and B; P(A) (0 to 1) = 0.4; P(B) (0 to 1) = 0.5; A and B are = Independent.

Results: P(A and B) = 0.2; P(A or B) = 0.7; P(neither) = 0.3; P(exactly one) = 0.5; P(A only) = 0.2; P(B only) = 0.3; P(not A) = 0.6; P(not B) = 0.5; P(A given B) = 0.4; P(B given A) = 0.5.

Formula

Independent: P(A and B) = P(A) P(B). Always: P(A or B) = P(A) + P(B) - P(A and B); P(A given B) = P(A and B) / P(B). Binomial: P(X = k) = C(n,k) p^k (1-p)^(n-k). nCr = n! / (r!(n-r)!), nPr = n! / (n-r)!.

Assumptions and limits
  • Enter probabilities as decimals between 0 and 1 (50 % = 0.5).
  • Binomial trials are assumed independent with a constant p.
  • Binomial values are computed in log space for accuracy up to n = 10,000.
  • Results are estimates for planning. They are not financial, tax or legal advice.

About Probability Calculator

The Probability Calculator answers four kinds of question with the formula shown: two events, a single event from counts, binomial chances, and combinations and permutations.

Two events

For independent events, P(A and B) = P(A) x P(B). It also gives P(A or B) and P(A given B).

From counts

Four aces in a 52-card deck: 4 / 52 = 0.0769, or 7.69%.

Binomial

What is the chance of exactly 3 heads in 10 coin tosses, or at least 3?

Combinations and permutations

With n = 10 and r = 3 there are 120 combinations (order ignored) and 720 permutations (order matters).

Inputs

Probabilities run from 0 (impossible) to 1 (certain); for 25% type 0.25.

Private

Everything is worked out in your browser. Nothing you type is uploaded.

Key terms

Union (A or B): at least one happens. Intersection (A and B): both happen. Complement (not A): A does not happen, so P(not A) = 1 - P(A).

How to use Probability Calculator

  1. Choose what to calculate: two events, a single event from counts, binomial, or combinations and permutations.
  2. Enter the probabilities (0 to 1) or the counts.
  3. For two events, choose whether A and B are independent, mutually exclusive or overlapping, and enter P(A and B) if they overlap.
  4. Read the results and copy them or download the CSV.

Help & FAQ

What does P(A and B) mean?

The probability that both events happen. For independent events it is P(A) x P(B). With P(A) = 0.3 and P(B) = 0.6 it is 0.18.

What does P(A or B) mean?

The probability that at least one of the events happens: P(A) + P(B) - P(A and B). For the example above it is 0.72.

What is the difference between independent and mutually exclusive?

Independent events do not affect each other and can both happen. Mutually exclusive events cannot both happen, so P(A and B) is 0. Events that are mutually exclusive are not independent unless one has probability 0.

How do we enter a percentage?

Divide by 100. 25 % is 0.25. The fields expect values from 0 to 1.

How do we calculate the probability of drawing an ace from a deck?

Choose Single event from counts, enter 4 favourable outcomes and 52 total outcomes. The result is 0.0769 (7.69 %), with odds of 4 : 48 for.

What is the difference between odds and probability?

Probability is favourable divided by total outcomes. Odds compare favourable with unfavourable outcomes. A probability of 4/52 is odds of 4 to 48.

How do we find the chance of exactly 3 heads in 10 coin tosses?

Choose Binomial distribution and enter n = 10, k = 3 and p = 0.5. The result for P(X = 3) is 0.1171875, about 11.7 %.

What is P(X <= k) in the binomial results?

The probability of k or fewer successes. For n = 10, p = 0.5 and k = 3 it is 0.171875.

When should we use combinations and when permutations?

Use combinations when order does not matter, such as choosing 3 people from 10 (120 ways). Use permutations when order matters, such as a 1st, 2nd and 3rd place (720 ways).

What assumptions does the binomial model make?

A fixed number of independent trials, two outcomes per trial and the same probability of success each time. If these do not hold, the result is not reliable.

Can it handle large values of n?

It calculates with the numbers you enter, but very large factorials grow extremely fast. For huge values rely on the binomial or combination results rather than n! itself.

Does it store what we type?

No. All calculations run in your browser.

More in Education

See all 18 in Education