The probability calculator above walks through the core building blocks of probability: the chance of a single event, its complement, what happens when two independent events both need to occur or when either one can occur, conditional probability when you already know something has happened, and how to convert between probability and odds. Enter the favorable and total outcomes for one or two events, and the tool calculates each of these values instantly while showing the formula behind every result.
Probability shows up everywhere from dice games and card odds to insurance pricing, medical testing, and weather forecasts, and most of it builds on just a handful of core rules. Arb Digital built this calculator as part of a free set of study tools so students and anyone curious about chance can see exactly how each type of probability is derived, not just get a bare number.
What This Probability Calculator Does
Enter the number of favorable outcomes and the total number of possible outcomes for Event A, and the calculator returns P(A), the basic probability of that event occurring, expressed as both a decimal and a percentage. It also computes the complement, P(not A) β the probability that A does not happen. If you enter a second event, B, with its own favorable and total outcomes, the tool computes P(A and B) and P(A or B) assuming A and B are independent, meaning one event's outcome doesn't affect the other's. A separate field lets you calculate conditional probability, P(A given B), for situations where you already know B has occurred and want the updated chance of A. Finally, the tool converts P(A) into odds format, showing the ratio of favorable to unfavorable outcomes.
How to Use It
- Enter favorable and total outcomes for Event A. For example, rolling a 3 on a standard die is 1 favorable outcome out of 6 total.
- Enter favorable and total outcomes for Event B if your question involves a second, independent event β like flipping heads on a coin, 1 out of 2.
- Enter the conditional value if you want P(A given B) β how many of B's outcomes also satisfy A.
- Click Calculate. The headline shows P(A), and the boxes below show the complement, the independent "and" probability, the independent "or" probability, and the odds in favor of A.
- Read the sub-line for the conditional probability result and a plain-language summary of what each number means for your specific inputs.
Single-Event Probability and Its Formula
The most basic probability formula is P(A) = (number of favorable outcomes) Γ· (total number of possible outcomes), assuming every outcome is equally likely. Rolling a fair six-sided die and wanting a 3 gives P(3) = 1/6 β 16.67%, since there's exactly one face showing a 3 out of six equally likely faces. This simple ratio underlies every other probability calculation in this tool β combined, conditional, and odds-based probabilities are all built from this same starting formula. For a foundational reference on probability rules, see Khan Academy's probability library.
Every valid probability value falls between 0 and 1 (or 0% and 100%). A probability of 0 means the event is impossible; a probability of 1 means the event is certain. Anything reported outside that range signals an error in how favorable or total outcomes were counted, since a probability describes a proportion of a whole and can never exceed the whole itself.
The Complement Rule: P(not A)
The complement of an event is everything that isn't that event, and complements always add up to exactly 1 (or 100%) with the original event, because together they cover every possible outcome. The formula is simple: P(not A) = 1 β P(A). If the chance of rain tomorrow is 30%, the chance of no rain is automatically 70% β you don't need any additional information to know this, because "rain" and "no rain" are the only two possibilities and must together account for the entire outcome space. This rule is often the fastest way to solve a probability problem when calculating the complement directly is easier than calculating the event itself β for example, "at least one success in several tries" is often much easier to solve as 1 minus "zero successes."
Independent Events: "And" (Multiplication Rule) and "Or" (Addition Rule)
Two events are independent when the outcome of one has no effect on the outcome of the other β rolling a die and flipping a coin, for instance, since neither influences the other. For independent events, the probability that both A and B happen is found by multiplying their individual probabilities: P(A and B) = P(A) Γ P(B). Rolling a 3 and then flipping heads has probability (1/6) Γ (1/2) = 1/12 β 8.33%. This multiplication rule only applies when the events are genuinely independent β if one event affects the other's chances (dependent events), a different, conditional approach is required instead.
The probability that either A or B happens (or both) uses the addition rule: P(A or B) = P(A) + P(B) β P(A and B). The subtraction at the end matters β without it, you'd double-count the outcomes where both events happen simultaneously. Using the die-and-coin example, P(rolling a 3 or flipping heads) = 1/6 + 1/2 β 1/12 = 2/12 + 6/12 β 1/12 = 7/12 β 58.33%. Skipping the subtraction term is one of the most common errors people make when first learning combined probability, since it feels natural to just add the two probabilities together.
Conditional Probability: P(A given B)
Conditional probability answers a different question: given that we already know B happened, what's the updated chance that A also happened? The formula is P(A|B) = P(A and B) Γ· P(B), read as "the probability of A given B." Conditional probability is central to real-world reasoning under uncertainty β medical test interpretation is a classic example: knowing a test came back positive changes the probability that someone actually has the condition, compared to the probability before any test was run, precisely because the test result and the condition are not independent of each other. This calculator lets you enter how many of Event B's outcomes also satisfy Event A directly, then divides by B's total outcomes to compute P(A|B) without requiring you to separately calculate P(A and B) and P(B) first.
Converting Between Odds and Probability
Odds and probability describe the same underlying chance using two different ratios, and mixing them up is a common source of confusion, especially around sports betting and gambling contexts where "odds" are quoted constantly. Probability compares favorable outcomes to total outcomes: P(A) = favorable Γ· total. Odds in favor compare favorable outcomes to unfavorable outcomes instead: odds = favorable Γ· unfavorable. For a fair die and rolling a 3, the probability is 1/6, but the odds in favor are 1-to-5 (1 favorable outcome versus 5 unfavorable ones) β notice the denominator is different in each case. To convert probability to odds, use odds = P(A) Γ· (1 β P(A)); to convert odds back to probability, use P(A) = odds Γ· (1 + odds). Understanding this distinction matters because a "1 in 6 chance" and "1-to-5 odds" sound similar but are computed from different reference points.
- Probability: favorable Γ· total outcomes
- Odds in favor: favorable Γ· unfavorable outcomes
- Probability to odds: P(A) Γ· (1 β P(A))
- Odds to probability: odds Γ· (1 + odds)
Mutually Exclusive Events vs. Overlapping Events
The "or" formula above subtracts P(A and B) to avoid double-counting, but there's a special case worth calling out: if two events are mutually exclusive β meaning they can never both happen at the same time, like rolling a 3 and rolling a 5 on the same single die roll β then P(A and B) is simply 0, since there's no overlap to subtract at all. In that case, the "or" formula simplifies to just P(A or B) = P(A) + P(B). Rolling either a 3 or a 5 on one die is 1/6 + 1/6 = 2/6 β 33.33%, with no subtraction needed because the two outcomes can't coincide. Confusing mutually exclusive events with independent events is a subtle but common mistake β independence is about one event not affecting another's probability, while mutual exclusivity is about two events being physically unable to happen together. A single die roll of 3 and a single die roll of 5 are mutually exclusive, but they are not "independent" in the usual sense used for combining separate trials, since they aren't even separate trials β they're competing outcomes of the same roll.
Arb Digital builds fast, high-converting websites and content β from calculator tools like this one to complete marketing sites. If you'd like something similar built for your business, get in touch.
Talk to Arb Digital All Free ToolsCommon Mistakes to Avoid
- Forgetting to subtract the overlap in the "or" rule. P(A or B) = P(A) + P(B) β P(A and B); skipping the subtraction double-counts shared outcomes.
- Using the independent-event multiplication rule on dependent events. If B changes the chances of A, you need conditional probability, not simple multiplication.
- Confusing odds with probability. Odds compare favorable to unfavorable outcomes; probability compares favorable to total outcomes β they use different denominators.
- Reporting a probability outside the 0β1 (or 0β100%) range. That always signals a counting error in favorable or total outcomes, since it's mathematically impossible otherwise.
- Assuming P(A|B) equals P(A). That's only true when A and B are independent; if they're dependent, conditioning on B genuinely changes the probability of A.
Related Free Tools From Arb Digital
This calculator pairs well with the Factorial Calculator, since combinations and permutations often feed directly into probability problems involving counting outcomes. The LCM & GCF Calculator and Prime Number Checker are useful for related number theory work, and the Significant Figures Calculator helps when reporting probability results with the correct precision. See also the Mean, Median & Mode Calculator for descriptive statistics, or browse our full free online tools hub.
Frequently Asked Questions
P(A) equals the number of favorable outcomes divided by the total number of possible outcomes, assuming every outcome is equally likely. It's always a value between 0 and 1 (or 0% and 100%).
The complement of event A is "not A" β everything that isn't A. Its probability is always 1 minus the probability of A, since A and not-A together cover every possible outcome.
Multiply their individual probabilities: P(A and B) = P(A) Γ P(B). This only applies when the two events don't affect each other's outcomes.
Add the individual probabilities and subtract the overlap: P(A or B) = P(A) + P(B) β P(A and B). The subtraction prevents double-counting outcomes where both events occur.
Conditional probability, P(A given B), is the probability that A happens given that B is already known to have happened. It's calculated as P(A and B) divided by P(B).
Probability compares favorable outcomes to total outcomes. Odds compare favorable outcomes to unfavorable outcomes instead. A 1-in-6 probability corresponds to 1-to-5 odds in favor, not 1-to-6.
This tool runs entirely in your browser using built-in JavaScript. Nothing you enter is uploaded, stored, or sent to any server.