Probability Calculator
Probability calculator. Choose single event, two-event AND/OR, or conditional mode. Enter favorable and total outcomes or paste probabilities as decimals or percents. The calculator returns the result with the formula, complement, and odds for/against.
How to use
- Choose single event, AND/OR, or conditional.
- For one event, enter favorable and total outcomes, or type a probability such as 0.25 or 25.
- For AND/OR, enter P(A) and P(B). Leave the events independent, or turn that off and enter P(B|A).
- For conditional, enter P(A and B) and P(B). Read the probability, the formula, the complement, and the odds for and against.
Formula
P(A) = favorable outcomes ÷ total outcomes. For independent events, P(A and B) = P(A) × P(B). If they are not independent, P(A and B) = P(A) × P(B|A). P(A or B) = P(A) + P(B) − P(A and B). Conditional probability is P(A|B) = P(A and B) ÷ P(B). The complement is 1 minus the result. Odds for are the result against the complement. A trailing % is a percent. Otherwise values above 1 are percents, so 25 and 0.25 match, while 1 means 100% and 1% means 0.01.
Example. 3 favorable outcomes out of 10 is P(A) = 3 ÷ 10 = 0.3, or 30%. The complement is 0.7, and the odds are 3:7 for and 7:3 against. Independent events with P(A) = 0.5 and P(B) = 0.4 give P(A and B) = 0.5 × 0.4 = 0.2 and P(A or B) = 0.5 + 0.4 − 0.2 = 0.7.
Example. If P(A) = 0.5, P(B) = 0.5, and P(B|A) = 0.4, then P(A and B) = 0.5 × 0.4 = 0.2 and P(A or B) = 0.8.
Example. P(A|B) = 0.2 ÷ 0.5 = 0.4 when P(A and B) is 0.2 and P(B) is 0.5. The odds for that result are 2:3.
The numbers you type are the whole model
This page does not run a simulation or assume a deck, a coin, or a die unless you enter those counts. Independent means neither event changes the other. If the product P(A) × P(B|A) cannot fit with P(B), the calculator says the pair is impossible instead of returning a number outside 0 to 1.
Frequently asked questions
How do you calculate the probability of an event?
P(A) = favorable outcomes ÷ total outcomes. It is a number between 0 and 1 (or 0%–100%).
What is the probability of A and B?
If A and B are independent, P(A and B) = P(A) × P(B). If not, use P(A) × P(B|A).
What is the probability of A or B?
P(A or B) = P(A) + P(B) − P(A and B), so overlapping outcomes are not counted twice.
What is conditional probability?
P(A|B) is the chance of A given that B already happened: P(A and B) ÷ P(B).
Can I enter percents instead of decimals?
Yes. Enter 25 or 0.25; the tool treats values above 1 as percents.
Related tools
- SchoolP Value CalculatorTurn a z, t, chi-square, or F test statistic into a p-value and a significance verdict.
- SchoolStandard Deviation CalculatorGet sample and population standard deviation, variance, and mean from a list of numbers.
- SchoolPercentage CalculatorFind X% of Y, what percent one number is of another, percent change, and an optional percent table.
- SchoolPythagorean Theorem CalculatorFind a missing side of a right triangle, plus area, perimeter, and angles.
- SchoolGCF CalculatorFind the greatest common factor of two or more numbers, with prime factors and Euclid's steps.
- SchoolLCM CalculatorFind the least common multiple of 2 or more whole numbers, with step-by-step work.