Statistics

Probability Calculator

Free probability calculator. Find the chance that two events both happen, or that either happens, for independent or mutually exclusive events.

Share:X
Loading calculator interface...

How the Probability Calculator Works

Probability measures how likely something is. It is a number from 0 (it cannot happen) to 1 (it will certainly happen). A fair coin landing on heads has a probability of 0.5, which is 50%. The Probability Calculator works out the chance that two events both happen, and the chance that at least one of them happens.

What you enter

  • Events: choose Independent or Mutually exclusive (see below).
  • P(A): the probability of event A, from 0 to 1.
  • P(B): the probability of event B, from 0 to 1.

To use a percentage, divide by 100: 30% is 0.3.

What you get

  • P(A and B) (the intersection): both events happen.
  • P(A or B) (the union): A happens, or B happens, or both.

Each result is shown as a decimal and as a percentage.

The two kinds of events

KindMeaningFormulas
IndependentOne event does not change the chance of the otherP(A and B) = P(A) x P(B)
P(A or B) = P(A) + P(B) - P(A and B)
Mutually exclusiveThey cannot both happen at onceP(A and B) = 0
P(A or B) = P(A) + P(B)
  • Kind: Independent
    Meaning: One event does not change the chance of the other
    Formulas: P(A and B) = P(A) x P(B)
    P(A or B) = P(A) + P(B) - P(A and B)
  • Kind: Mutually exclusive
    Meaning: They cannot both happen at once
    Formulas: P(A and B) = 0
    P(A or B) = P(A) + P(B)

For mutually exclusive events, P(A) + P(B) cannot be more than 1, and the calculator warns you if it is.

A worked example

The default is two independent events with P(A) = 0.5 and P(B) = 0.4.

StepValue
P(A and B) = 0.5 x 0.40.2 (20%)
P(A or B) = 0.5 + 0.4 - 0.20.7 (70%)

More examples

SituationTypeResult
Rain 0.3, a traffic jam 0.2: both?Independent0.06 (6%)
Rain 0.3, a traffic jam 0.2: either?Independent0.44 (44%)
Roll a 1 (1/6) or a 2 (1/6) on one dieExclusive0.333333 (33.33%)
Two coin flips, both heads (0.5 and 0.5)Independent0.25 (25%)
  • Situation: Rain 0.3, a traffic jam 0.2: both?
    Type: Independent
    Result: 0.06 (6%)
  • Situation: Rain 0.3, a traffic jam 0.2: either?
    Type: Independent
    Result: 0.44 (44%)
  • Situation: Roll a 1 (1/6) or a 2 (1/6) on one die
    Type: Exclusive
    Result: 0.333333 (33.33%)
  • Situation: Two coin flips, both heads (0.5 and 0.5)
    Type: Independent
    Result: 0.25 (25%)

Chart: the default example

Each bar is a probability. The scale is the percentage:

P(A)        ████████████████████ 50%
P(B)        ████████████████ 40%
P(A and B)  ████████ 20%
P(A or B)   ████████████████████████████ 70%

Chart: several heads in a row

The chance of getting heads every time on a fair coin halves with each flip:

1 flip   ████████████████████████████████████████ 0.5
2 flips  ████████████████████ 0.25
3 flips  ██████████ 0.125
4 flips  █████ 0.0625
5 flips  ███ 0.03125

Tips

  • Check independence. Two coin flips are independent. Drawing two cards from a deck without putting the first back is not.
  • "Or" is not just addition. For independent events, subtract the overlap, or you count it twice.
  • Probabilities must be from 0 to 1. A value like 50 (for 50%) is rejected.
  • Results are rounded to 6 decimal places.

This tool gives an estimate for general information only. Real-life events are often not perfectly independent.

Frequently Asked Questions

Is the Probability Calculator free to use?+

Yes. The Probability Calculator, and every other tool on CalculatorBooth, is completely free to use with no sign-up or account required.

Is my data stored or shared?+

All computations are performed locally in your browser. No private inputs or parameters are stored or transmitted.

How accurate is this calculator?+

It's built and tested for accuracy, but the result is an estimate for planning purposes. It isn't a substitute for advice from a qualified financial, medical, or legal professional.

Related Calculators