Probability Calculator
Calculate basic, conditional, and Bayesian probability with odds, an independence check, and a Bayes breakdown.
Probability Calculator tool
Example
Input: Rolling a 6 on a fair die: favorable outcomes 1, total outcomes 6
Result: P(A) = 0.166667 (16.67%), P(not A) = 0.833333 (83.33%), odds for 1 : 5
P(A) = 1 / 6 = 0.166667. The complement is 1 - 1/6 = 5/6, so the odds are 1 success to 5 failures.
Everyday Probabilities and Odds
| Event | Favorable of total | P(A) | Odds for |
|---|---|---|---|
| Heads on a coin flip | 1 of 2 | 0.5 (50.00%) | 1 : 1 |
| A 6 on one die | 1 of 6 | 0.166667 (16.67%) | 1 : 5 |
| An even number on one die | 3 of 6 | 0.5 (50.00%) | 3 : 3 |
| Drawing an ace from 52 cards | 4 of 52 | 0.076923 (7.69%) | 4 : 48 |
| Drawing a heart from 52 cards | 13 of 52 | 0.25 (25.00%) | 13 : 39 |
| A given number, 1 to 10 | 1 of 10 | 0.1 (10.00%) | 1 : 9 |
| Two heads from two flips (1 of 4 outcomes) | 1 of 4 | 0.25 (25.00%) | 1 : 3 |
Results from the Basic Probability tab. Odds are shown unreduced, as the tool shows them (4 : 48 is the same as 1 : 12).
- Select the probability tab you want to use - Basic Probability, Conditional, or Bayesian.
- For basic probability, enter the number of favorable outcomes and the total number of outcomes to get P(A), P(not A), and the odds.
- For conditional probability, provide P(A), P(B), and P(A and B) to compute P(A given B), P(B given A), and an independence check.
- For Bayesian probability, enter the prior P(A), the likelihood P(B|A), and P(B|not A) to compute the posterior.
- Review the results as decimals and percentages, and on the Bayesian tab follow the formula breakdown with your numbers.
Basic, Conditional and Bayesian Probability
Probability is a number from 0 to 1 that says how likely something is. A probability of 0 means it cannot happen, and 1 means it is certain. This calculator has three tabs. Basic finds the chance of one event from favorable and total outcomes. Conditional finds the chance of one event given that another has happened. Bayesian updates a probability after new evidence, using Bayes' theorem.
On the Basic tab, the chance of rolling a 6 is 1 favorable outcome out of 6, which is 0.1667, or 16.67%. The tab also shows the chance it does not happen and the odds. Odds compare successes with failures, so rolling a 6 has odds of 1 : 5 for and 5 : 1 against. The odds are not reduced, so drawing an ace from a deck shows 4 : 48.
The Conditional tab uses P(A|B) = P(A and B) / P(B), where P(A|B) means the chance of A given B. With the starting values of 0.4, 0.5 and 0.2, P(A|B) is 0.4, the same as P(A). Knowing B tells you nothing new about A, so the tool reports the events as independent. It also checks that your numbers can coexist. The joint probability cannot be larger than either event, and the chance of A or B cannot pass 1.
The Bayesian tab shows why base rates matter. Its default numbers describe a test for a condition that 1% of people have. The test catches 90% of true cases but also flags 5% of people without it. After a positive result, the chance of having the condition is only 15.38%, because false alarms from the large healthy group outnumber the true cases. A step-by-step breakdown shows the formula with your numbers filled in. For real test results, ask a doctor what they mean for you.
To count outcomes before you divide, use the Combination and Permutation Calculator.
Formula / How It Works
Frequently Asked Questions
Related Tools
Combination and Permutation Calculator
Calculate nCr and nPr with step-by-step factorial breakdowns. Understand when order matters.
Statistics and DataNormal Distribution Calculator
Calculate z-scores, percentiles, and probabilities with a bell curve that shades the area below your value.
Statistics and DataSample Size Calculator
Determine the required sample size for surveys given confidence level, margin of error, and population.
Statistics and DataPercentage Calculator
Calculate percentages, percentage change, difference, increase, and decrease instantly.
Math and Numbers