Skip to content

Probability Calculator

Enter the probabilities of two independent events to get every combination: both, either, exactly one, neither, and complements.

How to use the probability calculator

  1. Enter probabilities as decimals between 0 and 1.
  2. Results use the multiplication, addition and complement rules.

Examples

P(A) = 0.5, P(B) = 0.3

Answer: P(A∪B) = 0.65

What the probability calculator does

It works out the probability of single events, combined events (and/or), complements, conditional probability and independent events, plus binomial probabilities. Each answer is shown as a fraction, a decimal and a percentage, with the rule used.

Basic probability

Rolling a die, . Probabilities are always between 0 (impossible) and 1 (certain).

The rules

Rule Formula
Complement
Addition (or)
Mutually exclusive
Multiplication (and)
Independent
Conditional

Worked example: "at least one"

What's the probability of at least one six in 4 rolls of a die? Use the complement:

Worked example: without replacement

A bag has 5 red and 3 blue marbles. Draw two without replacement. What's ?

The second fraction changes because one red marble is gone. These events are dependent.

Binomial probability

For independent trials with success probability :

Exactly 3 heads in 5 fair coin flips: .

Common mistakes

  • Adding probabilities for "and" (you multiply), or multiplying for "or" (you add).
  • Double counting overlap: .
  • The gambler's fallacy: after five heads, the next flip is still 50/50.
  • Confusing with .

To count outcomes for these formulas, use the combination and permutation calculator.

In real life: the birthday problem

In a class of 23 students, what's the probability that at least two share a birthday? It's easiest to find the complement, "everyone has a different birthday" (ignoring leap years):

So , which is better than 50%! With 50 people, it's about 97%.

The result surprises most people because we think about our own birthday matching someone's. But there are different pairs of students, and any pair can match.

Formulas

Practice problems

Try each one first, then open the answer to check your work.

  1. 1.P(rolling a 5 on a die)?

    Show answer

    .

  2. 2.P(two heads in two coin flips)?

    Show answer

    .

  3. 3.P(not drawing a heart from a deck)?

    Show answer

    .

  4. 4., , . Find .

    Show answer

    0.7.

  5. 5.P(exactly 2 sixes in 3 rolls)?

    Show answer

    .

Key terms

Sample space
The set of all possible outcomes.
Event
A set of outcomes you're interested in.
Complement
Everything not in the event.
Conditional probability
The probability of A given that B happened, .
Independent events
Events where one doesn't change the other's probability.

Frequently asked questions

What does independent mean?

Two events are independent if one happening does not change the probability of the other, so P(A and B) = P(A)·P(B).

What's the difference between independent and mutually exclusive?

Independent events don't affect each other (two coin flips). Mutually exclusive events can't happen together (rolling a 2 and a 5 on one die). Events with non-zero probability can't be both.

What are odds?

Odds compare favourable to unfavourable outcomes. A probability of is odds of 1 : 3.

How do I use a tree diagram?

Draw a branch for each outcome at each stage, write the probabilities on the branches, multiply along a path for 'and', and add paths for 'or'.

What is expected value?

The long-run average: multiply each outcome by its probability and add. A fair die has expected value .