Quick answer: The probability formula is P(A) = favourable outcomes divided by total outcomes, giving a number from 0 to 1. From it flow the complement rule, the addition rule for A or B, the multiplication rule for independent events, and conditional probability P(A|B). Enter your values above and this probability calculator returns the probability as a decimal, a percentage and a fraction, with its complement and odds.
How to use this probability calculator
Step 1 — Pick the mode that matches your question. Single event handles one probability and everything that follows from it: its complement and its odds. Two events handles a pair, A and B, and every combination of them. Repeated trials answers one specific question — at least one success in n tries — for situations like rolling a die several times or taking several independent attempts at something.
Step 2 — Enter probabilities the way each mode asks. Single-event mode takes a fraction, favourable outcomes over total outcomes, or a decimal you already have. The other two modes take decimals between 0 and 1, so divide percentages by 100 first: 40 percent is 0.4. If you are given a percentage and forget, the calculator flags any value above 1 instead of quietly producing nonsense.
Step 3 — In two-events mode, choose the relationship honestly. Independent, mutually exclusive and general are three different assumptions about how A and B connect, and they give different answers from the same two probabilities. The section on two events below explains how to tell which one describes your situation; when you know the overlap from data, choose general and enter P(A and B) yourself.
Step 4 — Read every figure as a decimal and a percentage. Results are shown both ways because different readers think in different units: 0.70 and 70 percent are the same statement. Save, copy or email the summary when you need the numbers elsewhere. Everything runs in your browser — nothing you enter is uploaded, stored or shared.
The probability formula and the four rules
The probability formula: for an event with equally likely outcomes, P(A) = favourable outcomes ÷ total outcomes. A fair die has six equally likely faces, so the probability of any named face is 1/6. A standard deck has 52 equally likely cards, so the probability of one named card is 1/52 and of any ace is 4/52. Almost every school and textbook probability question starts from this one ratio, and single-event mode is built around it.
The complement rule: P(not A) = 1 − P(A). Whatever does not happen is the complement, and the two always exhaust the possibilities, so they sum to 1 — or to 100 percent. The rule sounds trivial and is constantly useful, because many events are far easier to count from the failure side: at least one success, for instance, is 1 minus no successes.
The addition rule: P(A or B) = P(A) + P(B) − P(A and B). Adding the two probabilities counts the overlap twice, once inside each event, so it is subtracted back once. When the events cannot overlap at all — mutually exclusive events — the subtraction term is zero and the rule collapses to plain addition. This is the rule behind every or question, and behind the union figure in two-events mode.
The multiplication and conditional rules: when A and B are independent, P(A and B) = P(A) × P(B). In general, P(A and B) = P(B) × P(A|B), where P(A|B) is the probability of A given that B has happened — rearranged, P(A|B) = P(A and B) ÷ P(B). These four rules, plus the basic ratio, generate every answer on this page; the guide sections that follow apply them one at a time, with numbers you can check by hand.
Single events: probability, complement and odds
Take the pre-filled example: an event that happens in 3 cases out of 8 equally likely ones. Its probability is 3/8 = 0.375, or 37.5 percent. The complement — the event not happening — is 5/8 = 0.625, or 62.5 percent, and the two sum to 1 exactly, as they must. If your 3-out-of-8 event were drawing a named suit group or hitting a target zone, every one of those figures would follow from the same two counts.
The odds tell the same story from a different angle. Odds in favour compare successes with failures: 3 successes against 5 failures is odds of 3 : 5. Odds against reverse the pair: 5 : 3. Probability, by contrast, compares successes with all outcomes, which is why 3 : 5 odds correspond to a probability of 3/(3 + 5) = 3/8, not 3/5. Confusing those two denominators — 8 and 5 — is the most common odds mistake there is, and the conversion section below returns to it.
You can also start from a decimal instead of a fraction. If a weather model, a medical study or a previous calculation hands you P = 0.375 directly, type it into the decimal field and the complement and percentage appear the same way; the odds are then reported as a ratio to 1, since no whole-number counts sit behind a bare decimal. Fractions and decimals are two notations for one number — the calculator keeps both visible so rounding never hides which one you meant.
One honesty note: a single-event probability is only as good as the equally-likely assumption or the data behind it. A loaded die does not give 1/6 per face, and a 37.5 percent figure estimated from eight observations is a rough estimate, not a law of nature. The calculator computes the model value for the event as you defined it — judging whether the definition fits the real situation is your part of the work.
Probability of two events: independent, mutually exclusive or general
Most real questions involve two events, and the first task is deciding how they relate. Independent events leave each other's probabilities untouched: two separate dice rolls, two coin flips, a draw made with replacement. Mutually exclusive events cannot happen together: one die roll cannot land on both 2 and 5. General covers everything else — events that overlap by some amount you know from the problem or from data, such as students who study maths, physics, or both.
Work the pre-filled example by hand: P(A) = 0.4, P(B) = 0.5, independent. Both happening: P(A and B) = 0.4 × 0.5 = 0.20. At least one happening: P(A or B) = 0.4 + 0.5 − 0.20 = 0.70. Neither happening is the complement of the union: 1 − 0.70 = 0.30. Exactly one happening is the union minus the overlap: 0.70 − 0.20 = 0.50 — equivalently, A without B (0.4 − 0.20 = 0.20) plus B without A (0.5 − 0.20 = 0.30). And P(A|B) = 0.20 ÷ 0.5 = 0.40, unchanged from P(A) itself, which is the fingerprint of independence.
Now switch the same two numbers to mutually exclusive and watch the answers move: the overlap is forced to 0, the union becomes 0.4 + 0.5 = 0.90, neither falls to 0.10, exactly one rises to 0.90, and P(A|B) becomes 0 — if B happened, A certainly did not. Same inputs, different assumption, different answers. That is why this calculator makes you pick the relationship explicitly instead of guessing it for you, and why the results panel names the assumption in its note.
In general mode you supply the overlap, and the calculator checks it is possible: P(A and B) can never exceed the smaller of P(A) and P(B), and never fall below P(A) + P(B) − 1 (or 0, if that is negative). An overlap outside those bounds describes no possible pair of events, so it is flagged rather than computed. Every other figure — union, neither, exactly one, both conditional probabilities — then follows from the addition and conditional rules.
Conditional probability: P(A|B)
Conditional probability answers a narrower question: given that B has happened, how likely is A now? The formula is P(A|B) = P(A and B) ÷ P(B). Dividing by P(B) rescales the world down to only the cases where B occurred, and asks what share of that smaller world also contains A. The vertical bar is read given: P(rain | clouds) is the probability of rain given clouds, a very different number from the probability of clouds given rain.
Independence is the special case where conditioning changes nothing: P(A|B) = P(A), because B happening carries no information about A. The worked example shows it — 0.20 ÷ 0.5 = 0.40 = P(A). At the other extreme, mutually exclusive events give P(A|B) = 0. Between those poles sits most of real life: a positive test result raises the probability of a condition without making it certain, and a first card drawn changes the odds on the second precisely because the deck shrank.
Two cautions belong with every conditional probability. First, P(A|B) is undefined when P(B) = 0 — you cannot condition on an event that cannot happen — and the calculator shows a dash rather than a number in that case. Second, swapping the sides is the classic error: P(A|B) and P(B|A) are different quantities with different denominators, and confusing them has misled court cases and medical decisions, not just students. This page shows both directions side by side so the difference is visible in your own numbers.
Repeated trials: at least one success
Roll a die four times: what is the chance of at least one six? Counting directly is painful — the six could fall on any roll, or several — but the complement is one clean calculation. Each roll misses six with probability 5/6, the rolls are independent, so all four miss with probability (5/6)^4 ≈ 0.4823, and at least one six is 1 − 0.4823 ≈ 0.5177, about 51.77 percent. Repeated-trials mode generalises exactly this: P(at least one success in n trials) = 1 − (1 − p)^n.
Check the formula against a case small enough to list. Two rolls, p = 1/6: at least one six should be 1 − (5/6)^2 = 1 − 25/36 = 11/36 ≈ 0.3056, or 30.56 percent — and listing the 36 equally likely pairs confirms 11 of them contain a six. A fair coin tossed three times gives at least one head with probability 1 − (1/2)^3 = 7/8 = 87.5 percent, which the eight possible sequences (only TTT fails) confirm again. A formula you can verify on small cases is a formula you can trust on large ones.
Notice what grows and what does not. Adding trials always raises the at-least-one probability, but with diminishing returns: each extra trial multiplies the failure probability by (1 − p) again, so the curve climbs steeply at first and then flattens towards 1 without ever reaching it (unless p = 1). Ten attempts at a 10 percent event give 1 − 0.9^10 ≈ 65.13 percent — better than even, but nowhere near the certainty that 10 × 10 percent naively suggests. Adding probabilities across trials is the mistake this mode exists to prevent.
The boundary, stated plainly: this mode answers only the at-least-one question. The probability of exactly k successes in n trials — exactly 2 sixes in 4 rolls, exactly 3 heads in 5 flips — and ranges like at most 3 successes belong to the binomial distribution, and FreeSoftis has a dedicated Binomial Distribution Calculator that returns the full distribution, table and chart for those questions. Use this page for single events, pairs of events and at-least-one; use the binomial tool for exact counts.
Dice and coins: the two-dice table
Two dice produce 36 equally likely pairs, and counting how many pairs make each sum gives the most-used probability table in the subject. The sum of 7 leads with 6 combinations — (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) — for a probability of 6/36 ≈ 16.67 percent. The table falls away symmetrically on both sides, because high sums are as constrained as low ones: only (6,6) makes 12, just as only (1,1) makes 2.
| Sum of two dice | Combinations | Probability | Percentage |
|---|---|---|---|
| 2 | 1 | 1/36 | 2.78% |
| 3 | 2 | 2/36 | 5.56% |
| 4 | 3 | 3/36 | 8.33% |
| 5 | 4 | 4/36 | 11.11% |
| 6 | 5 | 5/36 | 13.89% |
| 7 | 6 | 6/36 | 16.67% |
| 8 | 5 | 5/36 | 13.89% |
| 9 | 4 | 4/36 | 11.11% |
| 10 | 3 | 3/36 | 8.33% |
| 11 | 2 | 2/36 | 5.56% |
| 12 | 1 | 1/36 | 2.78% |
Every row is a single-event calculation: favourable pairs over 36 total pairs, which is why single-event mode reproduces any row by entering the combination count over 36. The table also exposes a common misconception — the eleven sums are not equally likely. Treating 2 and 7 as equally probable because both are just a sum is the dice version of assuming every outcome in a list shares the same chance; the counts say otherwise, by a factor of six.
Coins give the same lesson in miniature. Two fair coins have four equally likely outcomes — HH, HT, TH, TT — so exactly one head is 2/4 = 50 percent, at least one head is 3/4 = 75 percent, and two heads is 1/4 = 25 percent. The middle figure is also a repeated-trials answer, 1 − (1/2)^2, which is a useful habit to build: many probability questions can be reached by two different routes, and agreement between the routes is the strongest check your working can have.
Probability versus odds: reading an odds calculator
Probability and odds are two dialects for the same information, and fluency means converting without thinking. From probability to odds: odds in favour = p ÷ (1 − p), expressed as a ratio. A probability of 0.375 gives 0.375 ÷ 0.625 = 0.6, which as whole numbers is 3 : 5. From odds back to probability: divide the first number by the sum of the pair — odds of 3 : 5 in favour mean a probability of 3 ÷ (3 + 5) = 3/8 = 0.375. Single-event mode performs both conversions automatically, which is the sense in which this page doubles as an odds calculator.
Bookmakers quote odds against, usually as fractions or decimals, and the implied probability hides inside them. Fractional odds of 5/2 (five to two against) imply a probability of 2 ÷ (5 + 2) ≈ 28.57 percent before the bookmaker's margin is added; decimal odds of 3.5 imply 1 ÷ 3.5, the same 28.57 percent. Converting quoted odds back to probabilities is the only honest way to compare a price with your own estimate of an event — and remember that bookmakers build a margin into every market, so implied probabilities across all outcomes sum to more than 100 percent.
One warning travels with every odds figure on this page: odds describe the model, not a promise. Odds of 3 : 5 in favour still lose five times in eight, on average, and short-run results swing far wider than intuition expects. Probability is a statement about long-run proportions over many repetitions — a single event simply happens or does not — and no conversion between probability and odds changes that.
Common mistakes
Adding probabilities that overlap. P(A) + P(B) double-counts the overlap; the addition rule subtracts P(A and B) for exactly this reason. The error is invisible when events are mutually exclusive and costly everywhere else — with 0.4 and 0.5 independent it inflates 0.70 into a wrong 0.90.
Multiplying probabilities that are not independent. P(A) × P(B) is the overlap only under independence. Cards drawn without replacement, back-to-back weather days and a player's consecutive shots all carry dependence; multiplying anyway understates or overstates the true overlap. If you know the overlap, use general mode; if you know P(A|B), multiply it by P(B) instead.
Confusing independent with mutually exclusive. They are nearly opposites. Mutually exclusive events are maximally informative about each other — one happening settles the other — while independent events carry no information at all. An event pair with positive probabilities cannot be both, and exam questions exploit the confusion relentlessly.
Entering percentages as decimals. p = 25 instead of 0.25 breaks every formula on the page. Probabilities live between 0 and 1; this calculator flags out-of-range entries, but the habit of dividing by 100 first is worth more than any warning message.
Reading at least one as n × p. Three trials at p = 0.5 do not give a 150 percent chance of a success; they give 87.5 percent, through the complement formula. Probabilities can never exceed 1, and any method that produces more has double-counted the worlds where success happens twice.
Honest limits: assumptions and what this calculator does not do
Every figure on this page is a model value for the events as you defined them — exact arithmetic applied to your inputs, under the assumption each mode states. Single-event mode assumes the outcomes behind your fraction are equally likely (or that your decimal came from sound data). Two-events mode assumes the relationship you selected. Repeated-trials mode assumes the trials are independent with the same p every time. When an assumption fails in the real situation — a biased die, linked events, a success rate that drifts — the arithmetic stays perfect and the answer stops describing reality. The calculator cannot detect that; only your knowledge of the situation can.
This calculator does not compute full distributions over counts: exactly k successes in n trials, cumulative ranges of counts, means and standard deviations of distributions live in the Binomial Distribution Calculator. It does not standardise measurements against a mean and standard deviation — that is the Z-Score Calculator. It does not handle three or more events at once, Bayes' theorem updating from test sensitivities, or sampling without replacement from small populations (the hypergeometric setting). Each of those has its own method, and pretending one page covers them all would be dishonest.
What it does promise: the textbook probability formula and its four working rules, applied at full precision, with the assumption behind every mode named on the page, worked examples whose figures you can verify by hand — the 0.4/0.5 independent case, the 3-out-of-8 event, the two-dice table — in your browser, free, with nothing uploaded.
Sources and References
- Wikipedia — Probability — the definition of probability, the axioms and the basic rules used throughout this guide.
- Wikipedia — Conditional probability — P(A|B): the definition, the formula and how conditioning updates a probability.
- Wikipedia — Independence (probability theory) — what independence means formally, and why it must not be confused with mutual exclusivity.
- Wikipedia — Odds — odds in favour and against, and the conversion between odds and probability.
- Wikipedia — Inclusion–exclusion principle — the counting principle behind the addition rule P(A or B) = P(A) + P(B) − P(A and B).
- NIST/SEMATECH e-Handbook of Statistical Methods — What is probability? (1.3.6.1) — the US National Institute of Standards and Technology reference on probability as a long-run frequency.
- Wolfram MathWorld — Probability — the formal mathematical treatment of probability, events and the rules for combining them.