Math & Science
Probability calculator icon showing a die

Probability calculator

A probability calculator lets you calculate probability for a single event, the probability that two events both happen (AND), or that at least one of the two happens (OR).

Probability of an event

For example: the probability of rolling a 6 on a die.
Enter your details

Probability that both events happen (AND)

For example: the probability of getting heads twice on two coin flips.
Enter both probabilities

Probability that at least one event happens (OR)

For example: the probability of getting at least one heads on two coin flips.
Enter both probabilities

How to use the probability calculator

The first panel of the probability calculator handles a single event: enter how many outcomes count as a “win” and how many outcomes are possible in total. Use whole numbers here; the result is shown as a percentage, as a reduced fraction and as the chance that the event does not happen. The second panel handles two independent events happening together (AND). The third panel handles at least one of two events happening (OR), and includes a toggle for whether the events are independent or mutually exclusive, since the formula differs between the two.

How do you calculate a probability?

You calculate the probability of an event by dividing the number of favorable outcomes by the total number of possible outcomes.

Probability = number of favorable outcomes ÷ total number of outcomes

Take the default example above: rolling a 6 on a standard die has 1 favorable outcome out of 6 possible outcomes, so the probability of an event like this is 1 ÷ 6 ≈ 16.67%, leaving an 83.33% chance it doesn’t happen. As Wikipedia’s overview of probability puts it, this is theoretical probability — the number of desired outcomes divided by the total number of possible outcomes — as opposed to empirical probability measured from real trials.

AND probability: independent events

For two independent events (where the outcome of one doesn’t affect the other), you calculate the probability that both happen by multiplying the individual probabilities.

P(A and B) = P(A) × P(B)

Flipping a fair coin twice and getting heads both times is a classic example: each flip has a 50% probability, and since the flips are independent, P(heads and heads) = 50% × 50% = 25%. Wikipedia’s article on independence in probability theory covers this multiplication rule in more formal detail, including how it extends to more than two events.

OR probability: independent versus mutually exclusive

If two events can’t happen at the same time (they’re mutually exclusive, such as rolling a 3 or a 5 with a single die), you simply add the probabilities together. If both can happen (independent), you need to subtract the overlap to avoid double-counting it.

Mutually exclusive: P(A or B) = P(A) + P(B)
Independent: P(A or B) = P(A) + P(B) − P(A) × P(B)

Rolling a 3 or a 5 on a single die is mutually exclusive — you can’t roll both at once — so the probabilities simply add: 16.67% + 16.67% = 33.33%. Getting at least one heads on two coin flips is different: the two flips are independent, and “at least one heads” includes the case where both come up heads, so you subtract that overlap. With P(A) = P(B) = 50%, that’s 50% + 50% − 25% = 75%, which is exactly what the third panel above returns with its default values.

Common uses for a probability calculator

Games and gambling odds. Card games, dice games, and lottery odds all come down to counting favorable outcomes against total possible outcomes, exactly what the first panel of the probability calculator works out.

Quality control. Estimating the probability that a batch contains a defective unit, or that two independent quality checks both catch a fault, uses the same AND and OR rules as the probability calculator.

Risk and insurance. Actuaries and risk analysts combine probabilities of independent events constantly, from the odds of multiple system failures to the likelihood of separate claims occurring together.

Genetics. Basic Punnett-square predictions, like the probability of a child inheriting a particular trait from two independent alleles, follow the same AND probability rule.

Common mistakes to avoid

Confusing AND with OR. AND probability is always smaller than either individual probability, since it requires both events to happen; OR probability is always at least as large, since only one needs to happen.

Forgetting to subtract the overlap for independent OR. Simply adding two probabilities together overstates the answer unless the events are mutually exclusive — that overlap term is what separates the two OR formulas above.

Treating dependent events as independent. The AND and OR formulas here assume independence; if one event’s outcome changes the odds of the other (drawing cards without replacement, for example), a different, conditional-probability calculation is needed instead.

Worked example: a probability calculator with playing cards

A standard deck has 52 cards, 13 of them hearts. Enter 13 favorable outcomes and 52 possible outcomes in the first panel and the probability calculator returns 25%, the fraction 13/52 = 1/4, and a 75% chance of not drawing a heart. Drawing an ace is 4 out of 52, which the probability calculator reduces to 1/13, about 7.69%.

Now combine two independent events: draw a card, put it back, and roll a die. The chance of a heart and a 6 is 25% × 16.67% ≈ 4.17%, so 95.83% of the time you do not get both. The chance of a heart or a 6 is 25% + 16.67% − 4.17% = 37.5%, which matches the exact fractions: 1/4 + 1/6 − 1/24 = 9/24.

Drawing two hearts without putting the first card back is a different case, because the second draw depends on the first: the chance is 13/52 × 12/51 ≈ 5.88%, not 6.25%. The AND panel of this probability calculator assumes independence, so for draws without replacement enter the conditional probability of the second event yourself (12/51 ≈ 23.53%) and the panel returns the correct 5.88%.

Related tools: to turn a fraction into a percentage use the percentage calculator, and to summarise the results of many repeated trials use the statistics calculator or the standard deviation calculator.

Frequently asked questions

What’s the difference between independent and mutually exclusive events?

Independent events can both happen without affecting each other, such as flipping a coin twice in a row. Mutually exclusive events can never happen at the same time, such as rolling both a 3 and a 5 on a single die roll.

Can a probability be higher than 100%?

No, a probability by definition always lies between 0% (impossible) and 100% (certain), and the probability calculator rejects percentages outside that range.

What is the complement rule?

The probability that an event does not happen equals 100% minus the probability that it does happen. This rule is shown automatically in the first panel of the probability calculator.

Can the probability calculator handle dependent events?

Only indirectly. The formulas here assume independent or mutually exclusive events. For dependent events, work out the conditional probability of the second event first and enter that value; the probability calculator then multiplies the two correctly.

Is this probability calculator free to use?

Yes, this tool is completely free, requires no sign-up, and runs entirely in your browser — none of the numbers you enter are sent anywhere or stored.

This probability calculator gives a mathematical result based on the values you enter; it does not model dependent events or real-world bias such as a loaded die. Back to CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: