Probability Calculator: Two Events, And/Or & At Least Once
Probability is a number from 0 (impossible) to 1 (certain). Combine two events with "and" or "or", find the chance of one event from its outcomes, or the chance something happens at least once in several tries.
- A and B, A or B
- Exact fractions
- At least once
- Both: 1/2 × 1/61/12
- At least one7/12
- Neither5/12
- Exactly one1/2
To find the probability of one event, divide the number of outcomes you want by the total number of equally likely outcomes. To combine two independent events, multiply for "and" and use P(A) + P(B) − P(A and B) for "or". Flipping heads (1/2) and rolling a six (1/6) both happen with probability 1/2 × 1/6 = 1/12, about 8.33%; at least one of them happens with probability 1/2 + 1/6 − 1/12 = 7/12.
This probability calculator keeps the answer as an exact fraction when you enter fractions, shows the steps, and also handles events that can't happen together, overlapping events and repeated tries. Very small or very precise inputs switch to decimals, marked ≈.
How to Calculate Probability
When every outcome is equally likely, count the outcomes in the event and divide by the total number of outcomes (OpenStax Introductory Statistics 2e, 3.1):
- Count the total outcomes: a fair die has 6.
- Count the outcomes you want: rolling at least a five means 5 or 6, so 2.
- Divide: 2 ÷ 6 = 1/3 ≈ 0.3333, or 33.33%.
A probability is always between 0 and 1. The chance that the event doesn't happen, its complement, is 1 minus the probability, because P(A) + P(not A) = 1 (OpenStax, 3.1): not rolling at least a five is 1 − 1/3 = 2/3.
Probability of Two Events: And, Or
The multiplication rule gives "and", and the addition rule gives "or", subtracting the overlap so it isn't counted twice (OpenStax, 3.3). Conditional probability, the chance of A once you know B happened, is P(A and B) ÷ P(B) (OpenStax, 3.1).
| You want | Formula | Heads (1/2) and a six (1/6) |
|---|---|---|
| Both, P(A and B) | P(A) × P(B) if independent | 1/12 |
| At least one, P(A or B) | P(A) + P(B) − P(A and B) | 7/12 |
| Neither | 1 − P(A or B) | 5/12 |
| Exactly one | P(A or B) − P(A and B) | 1/2 |
| A given B, P(A | B) | P(A and B) ÷ P(B) | 1/2 (same as P(A): independent) |
Independent vs. Mutually Exclusive Events
Independent events don't affect each other, like a coin and a die, so P(A and B) = P(A) × P(B). Mutually exclusive events can't happen together, so P(A and B) = 0 and P(A or B) = P(A) + P(B) (OpenStax, 3.3). OpenStax's example: someone takes one vacation, New Zealand with probability 0.6 or Alaska with probability 0.35; since they can't take both, the chance of one of them is 0.6 + 0.35 = 0.95, and of neither 0.05. If your events overlap in some other way, choose "I know P(A and B)" and the calculator also gives the conditional probabilities and checks whether the events are independent.
Probability of At Least Once
The easy way to get "at least once" is through its opposite, "never". If each try succeeds with probability p and the tries are independent, each try fails with probability 1 − p (the complement rule, OpenStax 3.1), and failing every time is (1 − p)ⁿ by the multiplication rule for independent events (3.3). So
P(at least once) = 1 − (1 − p)ⁿ
For a six in 10 rolls of a die: 1 − (5/6)¹⁰ ≈ 1 − 0.1615 ≈ 0.8385. It isn't 10 × 1/6, which would be more than 1. A 1% chance tried 100 times still only comes up at least once about 63.4% of the time.
Exactly k Successes (Binomial Probability)
When you repeat a try n times, each with the same probability p and independent of the others, the number of successes follows a binomial distribution (OpenStax, 4.3):
P(exactly k) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ, where C(n, k) is the number of ways to choose which k tries succeed.
Exactly two sixes in 10 rolls: C(10, 2) × (1/6)² × (5/6)⁸ ≈ 45 × (1/36) × 0.2326 ≈ 0.2907. "At most k" and "at least k" add up the individual "exactly" probabilities. As a check, OpenStax's example with 20 tries at p = 0.41 gives P(at most 12) = 0.9738, and so does this calculator (0.9738). The expected number of successes is np, with standard deviation √(np(1 − p)).
Frequently Asked Questions
What is the formula for probability?
For equally likely outcomes, P(event) = favorable outcomes ÷ total outcomes. For two events, P(A and B) = P(A) × P(B) when they're independent, and P(A or B) = P(A) + P(B) − P(A and B).
Do you add or multiply probabilities?
Multiply for "and" when the events are independent; add for "or" when they can't happen together. If they can both happen, add and then subtract the chance of both.
How do I turn a probability into a percent?
Multiply by 100: 0.25 is 25%, and 1/12 is about 8.33%. The calculator shows both. To turn a decimal into a fraction, use the decimal to fraction calculator.
Can a probability be more than 1?
No. Probabilities run from 0 to 1, or 0% to 100%. If adding probabilities gives more than 1, the events overlap, so subtract P(A and B).
More tools: the z-score calculator for probabilities under the normal curve, the percentage calculator and all the math calculators.