Probability Calculator

Probability Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

P(A∪B)=P(A)+P(B)−P(A)·P(B)where{P(A)=Favorable outcomes ATotal outcomes AP(B)=Favorable outcomes BTotal outcomes B\begin{gathered} P(A \cup B) = P(A) + P(B) - P(A) \cdot P(B) \\[1.5em] \text{where}\quad \left\{ \begin{aligned} P(A) &= \dfrac{\text{Favorable outcomes A}}{\text{Total outcomes A}} \\ P(B) &= \dfrac{\text{Favorable outcomes B}}{\text{Total outcomes B}} \end{aligned} \right. \end{gathered}
Show calculation steps (3)
  1. Single Event Probability

    P(A)=Favorable outcomes ATotal outcomes AP(B)=Favorable outcomes BTotal outcomes BP(A) = \frac{\text{Favorable outcomes A}}{\text{Total outcomes A}} \qquad P(B) = \frac{\text{Favorable outcomes B}}{\text{Total outcomes B}}

    Probability of one event equals its favorable outcomes divided by its total possible outcomes

  2. Complement of A

    P(Ac)=1−P(A)=1−Favorable outcomes ATotal outcomes AP(A^{c}) = 1 - P(A) = 1 - \frac{\text{Favorable outcomes A}}{\text{Total outcomes A}}

    Probability that event A does not occur

  3. Probability of A and B (Independent)

    P(A∩B)=P(A)·P(B)=Favorable outcomes ATotal outcomes A×Favorable outcomes BTotal outcomes BP(A \cap B) = P(A) \cdot P(B) = \frac{\text{Favorable outcomes A}}{\text{Total outcomes A}} \times \frac{\text{Favorable outcomes B}}{\text{Total outcomes B}}

    Joint probability of two independent events is the product of their individual probabilities

Usage stats

Advertisement

Results

Probability of Event A — P(A)
0.1667
16.67% chance
Quantity Probability Percent
P(A) — Event A occurs 0.1667 16.67%
P(not A) — A does not occur 0.8333 83.33%
P(B) — Event B occurs 0.5 50%
P(A and B) — both occur 0.0833 8.33%
P(A or B) — at least one occurs 0.5833 58.33%

Report an error on this page

What is a probability calculator?

This tool finds the probability of a single event A as the ratio of favorable outcomes to total possible outcomes. It also combines two independent events to find the chance that both occur, that at least one occurs, and that A does not occur.

Venn diagram of two events showing intersection, union and complement regions
Combined events: intersection (A and B), union (A or B), and complement (not A).

How to use it

Enter the number of favorable outcomes and total outcomes for Event A, and optionally for Event B. The calculator returns \(P(A)\), \(P(B)\), \(P(\text{not }A)\), \(P(A\cap B)\), and \(P(A\cup B)\), each as a decimal and a percentage. Combined results assume A and B are independent — the outcome of one has no effect on the other.

The formula explained

For a single event, $$P(A)=\dfrac{\text{favorable}}{\text{total}}$$ The complement is $$P(\text{not }A)=1-P(A)$$ For two independent events, the intersection is $$P(A\cap B)=P(A)\times P(B)$$ and the union is $$P(A\cup B)=P(A)+P(B)-P(A\cap B)$$ where subtracting the intersection avoids double-counting overlap.

Advertisement
Favorable outcomes as a highlighted subset within total outcomes
Probability is the ratio of favorable outcomes to total outcomes.

Worked example

Rolling a six on a die: \(P(A)=\dfrac{1}{6}\approx 0.1667\). Flipping heads on a coin: \(P(B)=\dfrac{1}{2}=0.5\). Both happening: $$P(A\cap B)=0.1667\times 0.5\approx 0.0833$$ At least one: $$P(A\cup B)=0.1667+0.5-0.0833\approx 0.5833\ (\text{about }58.3\%)$$

FAQ

What does independent mean? Two events are independent when one outcome does not change the probability of the other, like separate coin flips or dice rolls.

Can probability exceed 1? No. A valid probability is always between 0 and 1 (0% to 100%).

What if the events are not independent? Then \(P(A\cap B)=P(A)\times P(B\mid A)\) and the simple multiplication used here no longer applies.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators