Skip to content

Math

Probability Calculator

Enter your values and the result updates as you type. The formula and a worked example are below the calculator.

What do you want to find?

Two events that do not affect each other. For example A = a coin shows heads (0.5) and B = rain interrupts a cricket match (0.4).

A number from 0 to 1. Fractions (1/6) and percent (25%) work too.

Chance that A or B or both happen, P(A∪B)

0.7

P(A) = 0.5, P(B) = 0.4, and the events do not affect each other (independent).

  • ABProbability of A NOT occurringP(A')0.5
  • ABProbability of B NOT occurringP(B')0.6
  • ABProbability of A and B both occurringP(A∩B)0.2
  • ABProbability that A or B or both occurP(A∪B)0.7
  • ABProbability that A or B occurs but NOT bothP(AΔB)0.5
  • ABProbability of neither A nor B occurringP((A∪B)')0.3
  • ABProbability of A occurring but NOT BP(A∩B')0.3
  • ABProbability of B occurring but NOT AP(A'∩B)0.2

Steps

P(A') = 1 − P(A)
= 1 − 0.5
= 0.5

P(B') = 1 − P(B)
= 1 − 0.4
= 0.6

P(A∩B) = P(A) × P(B)
= 0.5 × 0.4
= 0.2

P(A∪B) = P(A) + P(B) − P(A∩B)
= 0.5 + 0.4 − 0.2
= 0.7

P(AΔB) = P(A) + P(B) − 2 P(A∩B)
= 0.5 + 0.4 − 2 × 0.2
= 0.5

P((A∪B)') = 1 − P(A∪B)
= 1 − 0.7
= 0.3

P(A∩B') = P(A) × (1 − P(B))
= 0.5 × (1 − 0.4)
= 0.3

P(A'∩B) = (1 − P(A)) × P(B)
= (1 − 0.5) × 0.4
= 0.2

How to use

  1. Pick a mode. Two events: enter the chance of A and the chance of B (0 to 1, or a fraction like 1/6, or a percent like 25%) and read every combination at once.
  2. Find from any two: fill in any two of the eight values (for example P(A) and P(A and B)); the rest, including P(A) and P(B) themselves, are worked out. If the two values fit two answers, both are shown.
  3. Series of events: enter the chance of A and how many times it is tried, and the same for B. Set a count to 0 to leave an event out.
  4. Normal distribution: enter the mean, the standard deviation and a left and right bound; type inf or -inf for no limit. Read the area between the bounds, the areas outside and in each tail, and the interval table.

Formula

For independent events: P(A') = 1 - P(A); P(A and B) = P(A) x P(B); P(A or B) = P(A) + P(B) - P(A and B); P(A or B but not both) = P(A) + P(B) - 2 P(A and B). Repeating an event n times: every time p^n, never (1 - p)^n, at least once 1 - (1 - p)^n. Normal: z = (x - mean) / SD and the area is the difference of the standard normal cumulative probabilities.

Example

A coin lands heads (0.5) and it rains (0.4): both happen with 0.2, at least one with 0.7, exactly one with 0.5. Hitting a boundary off 0.3 of balls, you hit at least one in 6 balls with 1 - 0.7^6 = 0.882. Exam marks with mean 60 and standard deviation 10: about 77.5% of students score between 50 and 75.

The two-event rows assume the events do not affect each other (independent). Drawing cards or marbles without putting them back makes events dependent, and then P(A and B) is P(A) x P(B given A), which this tool does not cover. A probability of 0 means impossible and 1 means certain. Normal-curve areas are accurate to many digits; the five digits shown follow the way probability tables are printed.