Probability Calculator
Count favorable equally likely outcomes, or combine two entered probabilities under an independence assumption. Define the experiment first: correct arithmetic cannot establish equal likelihood or independence.
Simple probability
Two independent events
The two-event calculations assume that A and B are independent.
Define the sample space
- Counting formula: favorable equally likely outcomes ÷ all equally likely outcomes.
- Complement: 1 − p. A probability of 0.3 has complement 0.7.
- For independent A and B, both = ab and at least one = a + b − ab.
- Mutually exclusive events with positive probabilities are not independent.
How to use the Probability Calculator
- For the simple panel, count all equally likely elementary outcomes and the subset that satisfies the event.
- Enter favorable and total counts with 0 ≤ favorable ≤ total and total > 0; counts should be whole numbers for a counting experiment.
- The panel displays p = favorable/total, its percentage and complement 1 − p.
- For the independent-events panel, enter probabilities as decimals between 0 and 1: enter 0.25 for 25%, not 25.
- Under independence, P(A and B) = ab, P(A or B) = a + b − ab, and P(neither) = (1 − a)(1 − b).
- If independence is not justified, calculate a conditional or joint probability separately rather than applying the panel's products.
Independence and exclusivity answer different questions
Independence means knowing one event occurred leaves the other's probability unchanged. Mutual exclusivity means they cannot both occur. On one fair-die roll, ‘a 1’ and ‘a 2’ are mutually exclusive: their intersection is zero, while the independent product would be 1/36. Do not use the independent panel for those events.
The panel's ‘or’ is inclusive: A, B, or both. It subtracts the overlap once so the shared cases are not double-counted. An exclusive-or question, meaning exactly one event, requires a different calculation.
A model probability is not a promised frequency
A 30% chance describes uncertainty under a specified model, not a guarantee of exactly three successes in the next ten attempts. Counts from a past sample can estimate a future rate, but the simple panel does not calculate sampling uncertainty or validate whether future conditions match that sample.
Use safe whole-number counts for a finite sample space; fractional counts are rejected. Unequal outcome weights, conditional events, changing populations and dependence need a richer model. Outputs are rounded; retain exact fractions when checking complements.
Outcome counts and independence assumptions
Counts must be safe whole numbers with 0 ≤ favorable ≤ total and total positive. The independent panel accepts decimals between 0 and 1; type 0.25 for 25%. Its “or” includes both events. Dependence requires a different model.
Examples
Two dice: count pairs, not possible sums
Two independent fair six-sided dice have 36 equally likely ordered pairs. A sum of 7 occurs for (1,6), (2,5), (3,4), (4,3), (5,2) and (6,1). Enter favorable 6 and total 36 to get 1/6 ≈ 16.666667%. Counting the 11 possible sums as equally likely would give the wrong answer.
Independent events and their overlap
Let P(A) = 0.2 and P(B) = 0.3, with independence established. Both = 0.2 × 0.3 = 0.06. At least one = 0.2 + 0.3 − 0.06 = 0.44. Neither = 0.8 × 0.7 = 0.56. Check: 0.44 + 0.56 = 1.
Without replacement changes the second chance
A bag has 3 red and 2 blue balls, each ball equally likely to be drawn. Two red draws without replacement have probability (3/5) × (2/4) = 3/10 = 30%. Reusing 3/5 for both draws would yield 36%, which applies to independent draws with replacement, not this experiment.
At least one six in four rolls
With four independent fair-die rolls, no six has probability (5/6)^4 = 625/1296. At least one six therefore has probability 671/1296 ≈ 51.774691%. This is a complement calculation performed outside the two-event panel.
Check the result in context
Boundary counts: 0 favorable out of 6 gives probability 0 and complement 1; 6 favorable out of 6 gives probability 1 and complement 0. In the independent panel, P(A)=0 and P(B)=1 give both 0, at least one 1 and neither 0.
Common probabilities
| Event | Formula | Chance |
|---|---|---|
| Heads on a coin flip | 1/2 | 50.00% |
| Rolling a 6 | 1/6 | 16.67% |
| Two 6s with two dice | 1/36 | 2.78% |
| At least one 6 in 4 rolls | 1 − (5/6)⁴ | 51.77% |
| Drawing an ace | 4/52 | 7.69% |
| Drawing a heart | 13/52 | 25.00% |
| Three heads in a row | (1/2)³ | 12.50% |
Frequently asked questions
Why are dice sums not equally likely?
There is only one ordered pair making a sum of 2, but six making a sum of 7. The equally likely elementary outcomes are the 36 ordered pairs, not the 11 sums.
Can I enter two percentages directly in the independent panel?
Convert them to decimals first. Enter 0.2 and 0.3 for 20% and 30%. Under independence their intersection is 0.06, or 6%.
Does ‘A or B’ include both?
Yes. This output is an inclusive union. Under independence it is a + b − ab, accounting for both events while subtracting the double-counted intersection.
Can I use the independent panel for two draws without replacement?
Usually not. Drawing one item changes the remaining population. With 3 red and 2 blue balls, two red draws without replacement have probability (3/5)×(2/4) = 0.3; multiplying 0.6 by itself would give the wrong 0.36.
Sources & methodology
More math tools
Combination Calculator
Calculate nCr combinations with or without repetition.
Open tool →Permutation Calculator
Calculate nPr permutations with or without repetition.
Open tool →Mean Median Mode Range Calculator
Calculate mean, median, mode, range, quartiles and IQR.
Open tool →Z-Score Calculator
Calculate standard score and approximate normal percentile.
Open tool →Rounding Calculator
Round numbers and decimals using several rounding methods.
Open tool →Pythagorean Theorem Calculator
Solve a right triangle for a missing leg or hypotenuse.
Open tool →