The Calc Guide › Calculator
Probability Calculator
A probability calculator works out the chance of an event from its counts or its component chances: 3 favorable outcomes from 10 give a probability of 0.3, which is 30%, with a 70% chance the event does not happen and odds of 3 to 7 in favor. It also combines two independent events, works out conditional probabilities, and answers at-least-once questions over repeated trials. Checked November 2026.
Last updated: November 24, 2026
Single events, two events, conditional chances and at-least-once questions
Counts outcomes that are all equally likely: 3 red marbles in a bag of 10, one face of a die out of 6.
For two INDEPENDENT events: neither one changes the other's chance, like two separate coin flips. If the events affect each other, use Conditional instead.
P(A given B) asks: once B is known to have happened, what is the chance of A? It divides the overlap (both events) by the chance of B.
The same independent chance, tried again and again: a coin flipped twice, a die rolled four times.
How this is worked out
Probability = favorable outcomes / total outcomes.
The chance an event does not happen is 1 minus its chance of happening.
Next: measure spread with the Standard Deviation Calculator
Free. No sign-up. Calculated in your browser; nothing is sent to our servers.
What this calculator does
Probability is a chance stated as a number between 0 and 1: 0 means the event cannot happen, 1 means it certainly will, and everything real lives in between. This probability calculator covers the four shapes the basic questions come in. Single event counts outcomes directly, favorable over total, and adds the complement and the odds. Two events combines two independent chances into the full grid: both, either, exactly one, neither, and each one without the other. Conditional answers “given that B happened, what is the chance of A”, dividing the overlap by B’s chance. Repeated trials answers the at-least-once question over many independent tries; the number of tries must be a whole number from 1 to 10,000, and a fractional number of tries is cut down to a whole number. Every result is printed as a decimal and a percent, and Single event mode also prints the odds, because different classrooms and different games speak different dialects of the same number. Impossible inputs are answered in words, a favorable count bigger than its total, a chance outside 0 to 100 percent, an overlap bigger than the event it overlaps, and no result is ever printed above 1 without its reason attached. The genetics version of these odds is drawn out by the Punnett square calculator, which crosses two parents’ alleles. A batting average is a rate over repeated trials, hits over at-bats: the batting average calculator divides one by the other.
Worked example: 3 red marbles in a bag of 10
The tool above opens in Single event mode on a bag of 10 marbles, 3 of them red. Drawing one marble at random, the chance it is red is the favorable outcomes over the total outcomes: 3 / 10 = 0.3, which is 30%. The chance it is not red is the complement, 1 − 0.3 = 0.7, or 70%. As odds, the same fact reads 3 to 7 in favor (3 red against 7 not red) and 7 to 3 against. One event, four printings of a single number; the other three modes open on their own examples, two 50% events, an overlap of 12% inside a 40% event, and a 50% chance tried twice, and each reproduces at its defaults.
Two independent events of 50% each, the full grid
Two events mode opens on two coin flips: event A is heads on the first flip and event B is heads on the second, each 50%, and independent, because neither flip touches the other. Every row below reproduces exactly in the tool at those defaults.
Scroll sideways to see all columns →
| Combination | Formula with the numbers | Probability | Percent |
|---|---|---|---|
| Both events happen | 0.5 x 0.5 | 0.25 | 25% |
| Either or both | 0.5 + 0.5 − 0.25 | 0.75 | 75% |
| Exactly one | 0.75 − 0.25 | 0.5 | 50% |
| Neither | 0.5 x 0.5 | 0.25 | 25% |
| A but not B | 0.5 − 0.25 | 0.25 | 25% |
| B but not A | 0.5 − 0.25 | 0.25 | 25% |
How probability works
P(event) = favorable outcomes / total outcomes; P(not A) = 1 − P(A); P(A and B) = P(A) x P(B); P(A or B) = P(A) + P(B) − P(A and B); P(A given B) = P(A and B) / P(B)
The classical model assumes every outcome is equally likely, which is true of fair dice, coins, cards and random draws, and is the model’s stated limit: real-world chances like rain or racehorses are estimates fed into the same arithmetic, not counts. Within the model, four rules do all the work on this page.
- The complement: an event either happens or does not, so the two chances add to 1. The complement is the fastest route to at-least-once answers: the chance of at least one six in four die rolls is 1 − (5/6)^4 = 1 − 0.482253 = 0.517747, about 51.7747%, computed by pricing the one outcome you do not want (no sixes at all) and subtracting.
- AND multiplies, only when independent: two events are independent when neither changes the other’s chance, like separate coin flips or dice. Then the chance of both is the product. When events are not independent, drawing cards without replacement is the standard case, multiplying the raw chances is wrong, and the conditional form is the correct tool.
- OR adds, then removes the double count: the chance of either event is the sum of the two chances minus the overlap, because the overlap was counted in both. When the events cannot both happen at all, they are mutually exclusive, the overlap is zero, and the rule collapses to a plain sum.
- Conditional probability narrows the world: P(A given B) asks for A’s chance inside the smaller world where B is known to have happened, so it divides the overlap by B’s chance: an overlap of 12% with B at 40% gives 0.12 / 0.40 = 0.3. Under independence it always comes back equal to P(A) itself, which is the definition of independence stated as arithmetic.
From a chance to odds
A chance of 44% means 44 favorable outcomes for every 56 that are not, so the odds in favor are 44 to 56, which reduces to 11 to 14 when both numbers are divided by 4. Going back, 11 / (11 + 14) = 0.44. In the tool, Single event mode does this in one step: enter 44 favorable outcomes out of 100 total and it prints the chance, the complement and the reduced odds 11 : 14 in favor and 14 : 11 against.
A rare chance tried many times
A 1 in 800 chance tried 800 times is not a sure thing. The chance of failing every time is (1 − 1/800)^800 = 0.367649, so the chance of at least one success is 1 − 0.367649 = 0.632351, about 63.2351%. In Repeated trials mode, enter 0.125 as the chance each time (1/800 as a percent) and 800 as the number of tries. A very long run of successes can be smaller than a computer can store: 50% tried 10,000 times makes Every time too small to hold, so the calculator stores it as 0, and At least once comes out as 1 (100%). The true value in that case is tiny, not zero.
Sources and method
The rules are the classical probability rules stated in OpenStax Introductory Statistics (Illowsky and Dean): the ratio definition for equally likely outcomes and the fact that an event and its complement add to 1 (section 3.1), independence and the multiplication rule (section 3.2), and the addition rule with the overlap removed and the conditional definition as the overlap over the conditioning event (section 3.3). The odds conversion follows Mathwords: odds of a to b in favor give a probability of a / (a + b). The figures on this page were recomputed in code from those rules. The conventions are stated rather than hidden: chances enter as percents in the combined modes and as counts in Single event mode, and the tool works in decimals throughout; odds are printed in Single event mode from the exact counts, reduced by their greatest common divisor when the counts are whole numbers; the conditional mode takes the overlap as entered and cannot check it against P(A), which is not an input, and says so on the page; the equally likely assumption behind counting outcomes is the model’s own condition, restated here rather than buried. Results are rounded for display to six significant figures. Figures checked November 2026.
Change log
November 15, 2026: Added two worked examples (a chance to odds, and a rare chance tried many times), the limits on the number of tries, sources for the rules, and a corrected description of where odds are printed.
Related calculators
Percentages as arithmetic in their own right belong to the Percentage Calculator; this page’s percents are chances, each one a probability stated out of 100. The rest of the statistics shelf is the Mean Calculator for a data set’s center and the Standard Deviation Calculator for its spread.
Frequently asked questions
How do you calculate the probability of an event?
Divide the number of outcomes that count as the event by the total number of possible outcomes, assuming all outcomes are equally likely. Drawing a red marble from a bag with 3 red marbles among 10 gives 3 / 10 = 0.3, or 30%. Rolling a six on a fair die gives 1 / 6 = 0.166667, or 16.6667%. If the outcomes are not equally likely, the counts do not apply directly and the chances have to come from data or from the combined rules instead.
What is the difference between AND and OR probability?
AND asks for both events together and, for independent events, multiplies: two coin flips both landing heads is 0.5 x 0.5 = 0.25. OR asks for at least one of them and adds, then subtracts the overlap so it is not counted twice: heads on either flip is 0.5 + 0.5 − 0.25 = 0.75. AND answers are never larger than either chance alone, and OR answers are never smaller; when an answer breaks that pattern, the wrong rule was used.
What does P(A given B) mean?
It is the chance of A inside the world where B is already known to have happened: P(A given B) = P(A and B) / P(B). If both events together have a 12% chance and B on its own has a 40% chance, then given B, the chance of A is 0.12 / 0.40 = 0.3, or 30%. Read it as: of the times B happens, A also happens 30% of the time. It is the tool for events that affect each other, where the plain AND rule does not apply.
How do you work out the chance of at least one success?
Go through the complement. The chance of failing every time is (1 − p) multiplied by itself once per try, so the chance of at least one success is 1 − (1 − p)^n. A fair coin landing heads at least once in two flips: 1 − 0.5^2 = 0.75. At least one six in four die rolls: 1 − (5/6)^4 = 0.517747, about 51.7747%. Repeated trials mode runs exactly this, and also prints the every-time and never figures beside it.
How do odds differ from probability?
They state the same fact two ways. Probability compares the favorable outcomes with the total: 3 red marbles from 10 is 3/10, or 0.3. Odds compare the favorable outcomes with the unfavorable ones: 3 red against 7 not red is odds of 3 to 7 in favor. To convert odds of a to b into a probability, divide a by (a + b): 3 / (3 + 7) = 0.3. Single event mode prints both for the counts you enter.
Can a probability be more than 1, or less than 0?
No. A probability is a share of the total outcomes or of certainty itself, so its floor is 0, an event that cannot happen, and its ceiling is 1, an event that must happen. A calculation that lands outside that range has a wrong input or a wrong rule in it, most often a favorable count bigger than its total or an OR computed without removing the overlap. This tool treats those as errors and explains the problem in words rather than printing a number that cannot be a chance.
Educational tool only. Results are estimates based on the numbers you enter and the assumptions explained on this page, not financial advice.