PC
Probability Calculator
Calculate the odds of a single event, or combine two events with AND/OR logic, in one simple tool.
More Math Tools
How to Use Probability Calculator
Choose a mode: Single Event (favorable ÷ total outcomes), Two Events AND (both happening), or Two Events OR (at least one happening). Enter your numbers and the probability updates live, shown as both a decimal and a percentage.
About Probability Calculator
Probability is a number between 0 and 1 (or equivalently, 0% and 100%) that describes how likely an event is to happen. A probability of 0 means the event is impossible; a probability of 1 (100%) means it is certain. Everything in between describes varying degrees of likelihood — a probability of 0.5 (50%) means the event is exactly as likely to happen as not, like a fair coin landing on heads.
The most basic probability calculation is for a single event with equally likely outcomes: Probability = Favorable outcomes ÷ Total outcomes. Rolling a standard six-sided die and wanting a 4 has 1 favorable outcome out of 6 total possible outcomes, so the probability is 1/6, or about 16.7%. Drawing a red card from a standard 52-card deck has 26 favorable outcomes (the red cards) out of 52 total, giving a probability of 26/52 = 0.5, or 50%.
Things get more interesting when you combine two events. The word "AND" in probability means both events need to happen, while "OR" means at least one of them needs to happen — and the formulas for combining probabilities differ significantly between the two. If two events are independent, meaning the outcome of one has no effect on the outcome of the other, the probability of both happening (A AND B) is simply the product of their individual probabilities: P(A and B) = P(A) × P(B). For example, if the probability of rain tomorrow is 30% and, independently, the probability your favourite team wins is 60%, the probability of both happening is 0.30 × 0.60 = 0.18, or 18%.
The OR case requires a bit more care because of double-counting. If you simply added P(A) + P(B), you would count the situation where both A and B happen twice — once within P(A) and once within P(B). The correct formula subtracts that overlap back out: P(A or B) = P(A) + P(B) − P(A and B). Using the same independent-events assumption, this becomes P(A or B) = P(A) + P(B) − P(A) × P(B). With a 30% chance of rain and a 60% chance of your team winning, the probability that at least one of those things happens is 0.30 + 0.60 − 0.18 = 0.72, or 72%.
The independence assumption is critical and is the single biggest misconception around these calculations. The AND and OR formulas shown above only apply cleanly when the two events genuinely do not influence each other. If the events are dependent — for example, drawing two cards from a deck without replacing the first one — these simple multiplication and addition formulas no longer apply directly, and you need conditional probability instead, which accounts for how the first event changes the odds of the second. This calculator explicitly assumes independence in its AND and OR modes and states that assumption in the hint text beneath the result, so you always know what is (and is not) being calculated.
Another important edge case: probability calculations break down if the number of "favorable" outcomes somehow exceeds the total possible outcomes, which would imply a probability over 100% — a logical impossibility. This calculator catches that mistake and shows a clear validation message instead of a misleading number above 100%.
Details & Tips
**Formulas:**
- Single event: P = Favorable outcomes ÷ Total outcomes
- Two events AND (independent): P(A and B) = P(A) × P(B)
- Two events OR (independent): P(A or B) = P(A) + P(B) − P(A) × P(B)
**Worked example 1 (single event):** A jar contains 7 red marbles out of 20 total marbles. P(red) = 7 ÷ 20 = 0.35, or 35%.
**Worked example 2 (AND):** P(A) = 40% (chance of rain), P(B) = 25% (chance of a specific bus being late), assumed independent. P(A and B) = 0.40 × 0.25 = 0.10, or 10% — the chance both happen on the same day.
**Worked example 3 (OR):** Using the same two independent events, P(A or B) = 0.40 + 0.25 − (0.40 × 0.25) = 0.65 − 0.10 = 0.55, or 55% — the chance at least one of the two things happens.
**How this calculator handles input:** Single Event mode takes raw counts (favorable and total outcomes) rather than percentages, since that is how most textbook problems are phrased. AND/OR mode takes each event's probability directly as a percentage (0-100), which is the more common way two independent probabilities are already known or estimated (e.g. weather forecast percentages, historical win rates).
**Edge cases handled:**
- Total outcomes of 0 in Single Event mode shows a dash (—), since dividing by zero is undefined.
- Favorable outcomes greater than total outcomes shows the explicit message "Favorable can't exceed total" instead of a nonsensical probability above 100%.
- Non-numeric or empty inputs in any mode show a dash (—) rather than an error.
- AND and OR results are always shown as a percentage for easy reading, alongside a hint reminding you that independence is assumed.
- Switching between the three modes preserves your inputs where relevant and instantly recalculates.
**Practical tip:** Always double-check whether your two events are truly independent before trusting the AND/OR results here. Coin flips, dice rolls, and separately-run lotteries are classic independent events. Drawing cards from the same deck without putting them back, or events that share a common cause (like "it rains" and "the match is delayed," which are not independent — rain often causes delays), are not independent, and a full conditional-probability calculation would be needed for an exact answer in those cases. When in doubt, treating dependent events as independent will give you an approximation, not an exact figure — useful for a quick estimate, but not for high-stakes decisions.
Frequently Asked Questions
How do you calculate basic probability?
Divide the number of favorable outcomes by the total number of possible outcomes. For example, 1 favorable outcome out of 4 total gives a probability of 0.25, or 25%.
What does P(A and B) mean?
It is the probability that both event A and event B happen. For independent events, it equals P(A) multiplied by P(B).
What does P(A or B) mean?
It is the probability that at least one of event A or event B happens. It equals P(A) + P(B) minus the overlap P(A and B), to avoid double-counting.
What does "independent events" mean?
Two events are independent if the outcome of one has no effect on the probability of the other, like two separate coin flips.
Why can't favorable outcomes be more than total outcomes?
Because that would imply a probability greater than 100%, which is not mathematically possible — this calculator flags that input instead of showing an invalid result.
Can probability be expressed as both a decimal and a percentage?
Yes, a probability of 0.35 is exactly the same as 35% — this calculator displays both forms for the single-event result.
Do the AND and OR formulas work for dependent events?
Not directly. The simple multiplication and addition formulas assume independence; dependent events need conditional probability, which adjusts for how one event changes the odds of the other.
What is the probability of an impossible event?
0%, or 0 as a decimal, meaning the event will never occur under the given conditions.
What is the probability of a certain event?
100%, or 1 as a decimal, meaning the event is guaranteed to happen.
How is probability used in real life?
It underlies weather forecasts, insurance pricing, medical test accuracy, game odds, and quality-control defect rates, among many other everyday applications.
Does this tool store my inputs?
No, everything is calculated locally in your browser and nothing is sent to or stored on a server.
Also Available As
probability calculator, odds calculator, chance calculator, independent events probability, combined probability calculator, probability of two events
Explore More Tools
View all toolsFound a Problem?
Let us know if something with Probability Calculator isn't working as expected.
Something went wrong. Please try again.
Thanks — we'll take a look.