Skip to content
Statculator
Probability & Counting

Probability Calculator

Free probability calculator (chance calculator) for one, two, three or more events: P(A and B), P(A or B), not, neither and at least one, with steps.

Free, no sign-up Runs in your browserBy Hira Noor, BS MathematicsUpdated

Try
What do you want to find?

A decimal, a fraction such as 1/6, or a percentage.

Pick I know P(A ∩ B) for dependent events, such as drawing two marbles without replacement.

Results

P(A ∩ B), both A and B
0.12
P(A ∪ B), A or B or both
0.58
P(A′), not A
0.7
P(B′), not B
0.6
P(exactly one of A, B)
0.46
P(neither A nor B)
0.42
P(A only), A but not B
0.18
P(B only), B but not A
0.28
P(A | B), A given B
0.3
P(B | A), B given A
0.4

Interpretation: There is a 12% chance that both events happen, a 58% chance that at least one happens, a 46% chance that exactly one happens and a 42% chance that neither does.

Bar chart of 6 categories0.00.10.20.30.40.50.6ProbabilityP(A): 0.30.3P(A)P(B): 0.40.4P(B)P(A ∩ B): 0.120.12P(A ∩ B)P(A ∪ B): 0.580.58P(A ∪ B)Exactly one: 0.460.46Exactly oneNeither: 0.420.42Neither
Highlighted bars: the headline results P(A ∩ B) and P(A ∪ B).

Joint probability table

BB′ (not B)Total
A0.120.180.3
A′ (not A)0.280.420.7
Total0.40.61

Each inner cell is one region of the Venn diagram; the four inner cells add up to 1.

Step-by-step solution

  1. 1

    Find P(A ∩ B) with the multiplication rule

    For independent events the chance of both is the product of the individual chances.

    P(A ∩ B) = P(A) × P(B) = 0.3 × 0.4 = 0.12
  2. 2

    Apply the addition rule for P(A ∪ B)

    Adding P(A) and P(B) counts the overlap twice, so subtract it once.

    P(A ∪ B) = P(A) + P(B) − P(A ∩ B) = 0.3 + 0.4 − 0.12 = 0.58
  3. 3

    Split the Venn diagram into its four regions

    The regions do not overlap and together cover every outcome, so they sum to 1.

    A only = P(A) − P(A ∩ B) = 0.3 − 0.12 = 0.18
    B only = P(B) − P(A ∩ B) = 0.4 − 0.12 = 0.28
    Both = P(A ∩ B) = 0.12
    Neither = 1 − P(A ∪ B) = 1 − 0.58 = 0.42
  4. 4

    Add the single-event regions for “exactly one”

    P(exactly one) = P(A only) + P(B only) = 0.18 + 0.28 = 0.46
    Check: P(A ∪ B) − P(A ∩ B) = 0.58 − 0.12 = 0.46
  5. 5

    Find the complements

    P(A′) = 1 − P(A) = 1 − 0.3 = 0.7
    P(B′) = 1 − P(B) = 1 − 0.4 = 0.6
  6. 6

    Find the conditional probabilities

    For independent events, conditioning changes nothing: P(A | B) equals P(A) and P(B | A) equals P(B).

    P(A | B) = P(A ∩ B) / P(B) = 0.12 / 0.4 = 0.3
    P(B | A) = P(A ∩ B) / P(A) = 0.12 / 0.3 = 0.4

What is a Probability Calculator?

A probability calculator finds the chance that events happen together or apart. For two events it takes P(A), P(B) and how they are related and returns P(A and B), P(A or B), not A, exactly one and neither, with steps. It also handles single events, 3 or more independent events and repeated tries, such as the chance of at least one six in 4 rolls (0.5177).

What the Probability Calculator does

Choose what you want to find. One event divides favourable outcomes by the total and gives the probability as a decimal, a percentage, a fraction and odds. Two events gives the intersection P(A ∩ B), the union P(A ∪ B) from the addition rule, the four regions of the Venn diagram (A only, B only, both, neither), both complements and the conditional probabilities P(A | B) and P(B | A), with a joint probability table whose totals are the marginal probabilities. 3+ events multiplies independent probabilities to get the chance that all, none, at least one or exactly one of them happen. Repeated tries answers “what is the chance it happens at least once in n tries?” and how many tries you need for a 50%, 90% or 95% chance.

People also call this a chance calculator, a likelihood calculator or a probability solver; the rules and the answers are the same. Use it for textbook problems about dice, cards, coins and marbles, and for practical questions such as “what is the chance at least one of two backup systems works?”. If you know the overlap from data, choose I know P(A ∩ B); the calculator then also tells you whether the events are independent.

Some questions have their own calculator. For P(A given B) from a table or counts, use the Conditional Probability Calculator. To turn P(B | A) into P(A | B) with a base rate, use the Bayes’ Theorem Calculator. For exactly k successes in n tries, use the Binomial Distribution Calculator. To count outcomes, such as the number of possible poker hands, use the Combination Calculator or the Permutation Calculator. For the probability that a normally distributed value falls between two numbers, use the Normal Distribution Calculator.

How to use the Probability Calculator

  1. Pick What do you want to find?: One event, Two events, 3+ events or Repeated tries. For one event, enter the Favourable outcomes and Total outcomes, for example 5 red marbles out of 8.
  2. For two events, type Probability of A, P(A) and Probability of B, P(B), then choose How are A and B related?: independent, mutually exclusive, or I know P(A ∩ B). With a known overlap, enter Probability of both, P(A ∩ B); the calculator rejects values that are logically impossible.
  3. For 3 or more events, list the Probability of each event, separated by commas, for example 1/2, 1/6, 0.3. For repeated tries, enter the Probability on each try, p and the Number of tries, n.
  4. Every probability can be a decimal (0.25), a fraction (1/4) or a percentage (25%). Read the headline results at the top, the other probabilities underneath, and each calculation in the step-by-step solution.

How to calculate a probability

For a single event with equally likely outcomes, the probability is the number of outcomes you want divided by the total number of outcomes. The chance of rolling a 5 on a fair die is 1/6 ≈ 0.1667; the chance of drawing a heart from a 52-card deck is 13/52 = 0.25.

  1. Define the event. Say exactly what counts as a success, for example “the first marble is red”.
  2. Count the outcomes. Count the equally likely outcomes in total and the ones that are successes, or take the probability from data or a forecast.
  3. Divide. P(event) = successes / total. The answer is always between 0 (impossible) and 1 (certain).
  4. Combine events with the rules. Multiply for “and” when events are independent, add and subtract the overlap for “or”, and subtract from 1 for “not”. The calculator above does every step for you: One event for the division, and the other modes for combining events.

What does a probability of 25% or 70% mean?

A probability of 25% is 0.25 or 1/4: over many repetitions, the event happens about 1 time in 4, and the chance it does not happen is 75%. A probability of 70% is 0.7 or 7/10: about 7 times in 10, with a 30% chance it does not. In odds form, 25% is 1 to 3 in favour and 70% is 7 to 3 in favour.

A single probability does not promise anything about the next try. A 70% chance of rain still leaves a 30% chance of a dry day, and two 70% days in a row (if independent) are both wet only 0.7 × 0.7 = 49% of the time.

Probability formulas

For two events every result follows from the overlap P(A ∩ B) together with P(A) and P(B). For more events and repeated tries, the calculator multiplies independent probabilities and uses the complement rule.

Probability of one event
P(E) = number of favourable outcomes / total number of equally likely outcomes
Multiplication rule (independent events)
P(A ∩ B) = P(A) · P(B)
Addition rule
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
Complement
P(A′) = 1 − P(A)
Exactly one
P(A only) + P(B only) = P(A) + P(B) − 2·P(A ∩ B)
Neither
P(A′ ∩ B′) = 1 − P(A ∪ B)
Conditional probability
P(A | B) = P(A ∩ B) / P(B)
n independent events
P(all) = P(A₁) · P(A₂) · … · P(Aₙ), P(at least one) = 1 − (1 − P(A₁)) · … · (1 − P(Aₙ))
At least once in n tries
P(at least once) = 1 − (1 − p)ⁿ
Formula symbols
SymbolMeaning
P(A), P(B)probabilities of the individual events
P(A ∩ B)probability that A and B both occur (intersection)
P(A ∪ B)probability that A or B or both occur (union)
A′the complement of A, “A does not occur”
P(A | B)probability of A once you know B occurred
p, nprobability of the event on one try, and the number of independent tries

For mutually exclusive events P(A ∩ B) = 0, so the addition rule reduces to P(A ∪ B) = P(A) + P(B).

A valid overlap always satisfies max(0, P(A) + P(B) − 1) ≤ P(A ∩ B) ≤ min(P(A), P(B)).

For three events that are not independent, the union needs inclusion–exclusion: P(A ∪ B ∪ C) = P(A) + P(B) + P(C) − P(A ∩ B) − P(A ∩ C) − P(B ∩ C) + P(A ∩ B ∩ C).

Probability example: drawing marbles from a bag

Two red marbles, with and without replacement

Problem. A bag holds 5 red and 3 blue marbles. You draw two. Let A = the first marble is red and B = the second marble is red. Find the chance that both are red, that at least one is red, that exactly one is red and that neither is red, first putting the first marble back (with replacement) and then keeping it out (without replacement).

  1. 01One draw: P(A) = 5 red / 8 marbles = 0.625. Before you look at the first marble, the second is just as likely to be red, so P(B) = 0.625 too.
  2. 02With replacement the draws are independent: P(A ∩ B) = 5/8 × 5/8 = 25/64 = 0.3906. At least one red: P(A ∪ B) = 0.625 + 0.625 − 0.3906 = 0.8594. Neither red (both blue): 1 − 0.8594 = 0.1406. Exactly one red: 0.8594 − 0.3906 = 0.4688.
  3. 03Without replacement the second draw depends on the first: P(B | A) = 4 red / 7 marbles left = 4/7, so P(A ∩ B) = 5/8 × 4/7 = 20/56 = 0.3571.
  4. 04At least one red: P(A ∪ B) = 0.625 + 0.625 − 0.3571 = 0.8929. Neither red: 1 − 0.8929 = 0.1071, which matches 3/8 × 2/7 = 6/56. Exactly one red: 0.8929 − 0.3571 = 0.5357.
  5. 05In the calculator, load Two red marbles, no replacement: it enters P(A) = 5/8, P(B) = 5/8 and P(A ∩ B) = 20/56 and reports that A and B are dependent.

Answer. Without replacement, both marbles are red with probability 0.3571, at least one is red with probability 0.8929, exactly one with 0.5357 and neither with 0.1071. With replacement the chance of two reds is higher (0.3906), because the red marble goes back into the bag.

Probability of 3 or more events

For independent events, multiply. The chance that a coin lands heads (1/2), a die shows a six (1/6) and it rains (0.3) is 0.5 × 0.1667 × 0.3 = 0.025. The chance that none of them happens is 0.5 × 0.8333 × 0.7 = 0.2917, so the chance that at least one happens is 1 − 0.2917 = 0.7083. Choose 3+ events in the calculator and enter 1/2, 1/6, 0.3 to see these numbers and the chance of exactly 0, 1, 2 or 3 of the events.

If the events are not independent, use conditional probabilities along the chain: P(A ∩ B ∩ C) = P(A) · P(B | A) · P(C | A ∩ B). For three aces in a row from a deck without replacement, that is 4/52 × 3/51 × 2/50 ≈ 0.000181. The Conditional Probability Calculator covers the conditional steps.

Three independent eventsFormulaCoin, die, rain
All threeP(A) · P(B) · P(C)0.0250
None(1 − P(A)) · (1 − P(B)) · (1 − P(C))0.2917
At least one1 − P(none)0.7083
Exactly onesum of each event happening alone0.4750

Chance of at least one success in n tries

When the same event is tried again and again independently, it is easier to find the chance that it never happens and subtract from 1: P(at least once) = 1 − (1 − p)ⁿ. The chance of at least one six in 4 rolls of a die is 1 − (5/6)⁴ = 1 − 0.4823 = 0.5177, just better than even. This is the bet the Chevalier de Méré made in the 1650s, which started the Pascal–Fermat letters on probability.

Turned around, the same formula tells you how many tries you need. To get at least a 90% chance of rolling a six you need 13 rolls, and for 99% you need 26. Choose Repeated tries in the calculator to get these numbers for any p and n.

Independent vs mutually exclusive events

These two ideas are often confused, but they are close to opposites. Independence is about information: learning that B happened tells you nothing new about A. Mutual exclusivity is about overlap: A and B cannot both happen, so learning that B happened tells you for certain that A did not.

IndependentMutually exclusive
MeaningOne event does not change the chance of the otherThe events cannot occur together
P(A ∩ B)P(A) · P(B)0
P(A ∪ B)P(A) + P(B) − P(A) · P(B)P(A) + P(B)
P(A | B)P(A)0
ExampleHeads on a coin and a six on a dieRolling a 2 and rolling a 5 on one die

Sources and further reading

The rules used here are the standard axioms and rules of elementary probability, as presented in these references:

  • Blitzstein, J. K. and Hwang, J. (2019). Introduction to Probability, 2nd edition. CRC Press. Chapters 1 and 2: the naive definition, the addition rule, inclusion–exclusion and independence.
  • Grinstead, C. M. and Snell, J. L. (1997). Introduction to Probability. American Mathematical Society. Chapter 1 discusses de Méré’s dice problem.
  • NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.6, “Probability Distributions”.

Common use cases

  • Games of chance: combine dice, card, coin and marble events, for example the chance of drawing a heart or a face card, or of rolling at least one six in four rolls.
  • Reliability: a system with two independent backups fails only if both fail, so P(system fails) = P(A fails) × P(B fails). With three or more parts in series, the system works only if all of them work.
  • Risk and planning: the chance that at least one of several independent risks (a supplier delay, a weather delay, a staff absence) affects a project.
  • Survey and quality data: turn counts of overlapping categories into probabilities and check whether the categories are related, then dig deeper with the Conditional Probability Calculator.
  • Games and payouts: for the long-run average of a game or decision with several outcomes, weight each payoff by its probability with the expected value calculator.

Assumptions and limitations

  • The results are only as good as the relationship you select. Independence is an assumption that must be justified by how the events arise; if you have data on how often both occur, enter P(A ∩ B) directly.
  • The 3+ events and Repeated tries modes assume independent events. For dependent events (such as draws without replacement) multiply conditional probabilities, or for exactly k successes in n draws without replacement use the Hypergeometric Distribution Calculator.
  • For exactly k successes in n independent tries, rather than at least one, use the Binomial Distribution Calculator.
  • P(A) and P(B) must refer to the same random experiment and sample space; combining probabilities from unrelated studies gives meaningless overlaps.
  • To reverse a conditional probability, for example from P(positive | disease) to P(disease | positive), use the Bayes’ Theorem Calculator.

Frequently asked questions

How do I calculate a probability?

Divide the number of outcomes you want by the total number of equally likely outcomes. The chance of drawing a red marble from a bag of 5 red and 3 blue is 5/8 = 0.625. To combine two events, multiply for “and” (if independent), use P(A) + P(B) − P(A ∩ B) for “or”, and subtract from 1 for “not”.

What is the difference between P(A and B) and P(A or B)?

P(A and B), written P(A ∩ B), is the chance that both events happen. P(A or B), written P(A ∪ B), is the chance that at least one happens, including both. The union is always at least as large as the intersection, and P(A ∪ B) = P(A) + P(B) − P(A ∩ B).

How do you calculate the probability of 3 events?

If the events are independent, multiply: P(A and B and C) = P(A) · P(B) · P(C). The chance that at least one happens is 1 − (1 − P(A))(1 − P(B))(1 − P(C)). For dependent events use P(A) · P(B | A) · P(C | A ∩ B). Choose 3+ events in the calculator to do this for up to 50 events.

What is the probability of getting 1, 2, 3, 4, 5 and 6 when rolling six dice?

There are 6⁶ = 46,656 equally likely ways for six dice to land, and 6! = 720 of them show each number exactly once. The probability is 720 / 46,656 ≈ 0.0154, about 1 in 65. The Permutation Calculator gives 6! and other counts like it.

How do I know whether two events are independent?

Two events are independent when P(A ∩ B) = P(A) · P(B), or equivalently when P(A | B) = P(A). In practice, independence comes from how the events are produced, such as separate coin tosses or draws with replacement. If you have the joint probability, enter it with the known-overlap option and the calculator checks the condition for you.

Can two events be both independent and mutually exclusive?

Only if at least one of them has probability 0. Mutually exclusive means P(A ∩ B) = 0, while independence requires P(A ∩ B) = P(A) · P(B). Both can hold only when P(A) · P(B) = 0.

How do I find the probability that neither event happens?

Subtract the union from 1: P(neither) = 1 − P(A ∪ B). For independent events this equals P(A′) · P(B′), the product of the two complements. With P(A) = 0.3 and P(B) = 0.4 that is 0.7 × 0.6 = 0.42.

How is “exactly one” different from “at least one”?

“At least one” is the union P(A ∪ B) and includes the case where both happen. “Exactly one” excludes that case, so P(exactly one) = P(A ∪ B) − P(A ∩ B) = P(A) + P(B) − 2·P(A ∩ B).

Can I enter fractions or percentages?

Yes. Each probability field accepts a decimal such as 0.25, a fraction such as 1/4 or 13/52, or a percentage such as 25%. Every value must be between 0 and 1 (0% and 100%). In the 3+ events list you can mix the three forms.

Cite this page

Statculator. (2026, November 14). Probability Calculator. Retrieved November 14, 2026, from https://statculator.com/probability/probability-calculator/