Math

Probability Calculator

For two independent events, P(A and B) = P(A) × P(B) and P(A or B) = P(A) + P(B) − P(A) × P(B). With P(A) = 0.5 and P(B) = 0.3, the chance of both is 0.15 and the chance of at least one is 0.65. For repeated trials, P(at least one success) = 1 − (1 − p)n.

What do you want to work out?
The events are

Enter probabilities as decimals (0.3), percentages (30%) or fractions (3/10).

P(A and B)

—

—

—

How to use the probability calculator

Choose one of two modes:

  • Two events: enter the probability of event A and event B, and say whether they are independent or mutually exclusive. You get the chance of both, either, exactly one, neither, and each “not” probability.
  • Repeated trials: enter the chance of success on a single trial, the number of trials and a target number of successes. You get the chance of at least one success, exactly k, at most k and at least k.

Probabilities can be typed as decimals (0.25), percentages (25%) or fractions (1/4).

Probability basics

A probability is a number from 0 (impossible) to 1 (certain). The probability of an event is the number of favorable outcomes divided by the number of equally likely possible outcomes. Rolling a 6 on a fair die has probability 1/6 ≈ 0.1667, because one of six equally likely faces is a 6.

Two rules come up again and again:

  • The complement rule: P(not A) = 1 − P(A). The chance of not rolling a 6 is 5/6.
  • Counting outcomes: when outcomes are equally likely, probability is a counting problem. The permutation and combination calculator counts arrangements and selections for you.

Formulas for two events

Independent events

Events are independent when one happening doesn’t change the chance of the other, such as two coin flips or rolling two dice.

P(A and B) = P(A) × P(B) P(A or B) = P(A) + P(B) − P(A and B) P(neither) = (1 − P(A)) × (1 − P(B)) P(exactly one) = P(A or B) − P(A and B)

Mutually exclusive events

Events are mutually exclusive when they can’t both happen at once, such as drawing a heart and a spade with a single card.

P(A and B) = 0 P(A or B) = P(A) + P(B)

A common mistake is to add probabilities of events that can overlap. Two independent events with P = 0.5 each have P(A or B) = 0.75, not 1.

Worked example: two events

P(A) = 0.5 and P(B) = 0.3, independent.

  • Both: 0.5 × 0.3 = 0.15
  • At least one: 0.5 + 0.3 − 0.15 = 0.65
  • Neither: 0.5 × 0.7 = 0.35
  • Exactly one: 0.65 − 0.15 = 0.5

Repeated trials and the binomial formula

When you repeat the same independent trial several times, like rolling a die four times or making ten sales calls with the same chance of success, two formulas answer most questions:

P(at least one success) = 1 − (1 − p)n P(exactly k successes) = C(n, k) × pk × (1 − p)n − k where C(n, k) = n! ÷ (k! × (n − k)!)

At least one six in four rolls

P(no six in a roll) = 5/6, so P(no six in four rolls) = (5/6)4 ≈ 0.4823. P(at least one six) = 1 − 0.4823 ≈ 0.5177, just over 50%.

P(exactly one six) = C(4, 1) × (1/6)1 × (5/6)3 = 4 × 0.1667 × 0.5787 ≈ 0.3858.

The “at least one” trick (subtract the chance of none from 1) is the fastest way to answer many everyday questions, from “will at least one of my three flights be delayed?” to “will at least one test in this batch fail?”.

Common mistakes

  • Assuming independence when it doesn’t hold. Drawing cards without putting them back changes the odds for the next draw.
  • The gambler’s fallacy. After five heads in a row, the next fair coin flip is still 50/50.
  • Mixing up “and” and “or”. “And” makes probabilities smaller (both must happen); “or” makes them larger.
  • Mixing odds and probability. Odds of 1 to 4 mean a probability of 1/5 = 0.2, not 0.25.

Probability as a percentage

Multiply a probability by 100 to express it as a percentage: 0.15 is a 15% chance. Every result in the calculator shows both. To compare how a probability changes, such as a conversion rate rising from 2% to 3%, the percentage increase calculator shows the relative change (50%) as well as the change in percentage points (1).

Frequently asked questions

How do you calculate the probability of two events?

If the events are independent, multiply their probabilities to get the chance both happen: P(A and B) = P(A) × P(B). For the chance that at least one happens, use P(A or B) = P(A) + P(B) − P(A and B), which avoids counting the overlap twice.

What is the difference between independent and mutually exclusive events?

Independent events don’t affect each other, such as two separate coin flips. Mutually exclusive events can’t both happen, such as rolling a 2 and a 5 on the same single roll. For mutually exclusive events P(A and B) = 0, so P(A or B) = P(A) + P(B).

What is the probability of rolling at least one six in four rolls?

It is easier to work out the chance of no sixes and subtract from 1. P(no six in one roll) = 5/6, so P(no six in four rolls) = (5/6)4 ≈ 0.4823. P(at least one six) = 1 − 0.4823 ≈ 0.5177, or about 51.8%.

How do I convert odds or percentages into probability?

A percentage divided by 100 is a probability: 30% = 0.3. Odds of 1 to 4 (one success for every four failures) are a probability of 1 ÷ (1 + 4) = 0.2. You can type probabilities in this calculator as decimals (0.3), percentages (30%) or fractions (3/10).

What is binomial probability?

It is the chance of exactly k successes in n independent trials that each succeed with probability p: C(n, k) × pk × (1 − p)n − k. The repeated-trials mode of the calculator uses this formula.