Probability Calculator
Calculate single event, compound AND/OR, conditional, and Bayes theorem probabilities with formula display. Results as fractions, decimals, and percentages.
Favorable outcomes must be a non-negative integer less than or equal to total outcomes (total must be > 0).
Result
Enter values above to calculate the probability.
Formulae
P(A) = favorable outcomes / total outcomes
P(A AND B) = P(A) × P(B) (independent)
P(A OR B) = P(A) + P(B) − P(A AND B)
P(A|B) = P(A∩B) / P(B)
Bayes: P(A|B) = P(B|A) × P(A) / P(B)
How to use Probability Calculator
-
Choose a probability type
Select Single Event, Compound (AND/OR), Conditional, or Bayes Theorem from the tabs.
-
Enter the required values
Fill in favorable outcomes and total outcomes, or enter P(A) and P(B) values depending on the mode.
-
View results in three formats
The probability is displayed as a fraction, decimal, and percentage simultaneously.
-
Read the formula
The formula used for your selected mode is shown below the inputs so you can follow the calculation.
Probability Calculator FAQ
What is probability?
How do I calculate the probability of two events both happening?
How do I calculate the probability of either event happening?
What is conditional probability?
What is Bayes theorem?
What is the difference between independent and dependent events?
How is probability expressed?
What is complementary probability?
Can I use this for dice or card problems?
Is any data sent to a server?
Background
Solve probability problems across four modes in one tool. Single-event probability calculates P(A) from favorable and total outcomes. Compound probability handles AND (intersection) and OR (union) for both independent and dependent events. Conditional probability computes P(A|B) — the probability of A given that B has occurred. Bayes theorem mode takes P(B|A), P(A), and P(B) as inputs and calculates the posterior probability P(A|B) — the foundation of probabilistic reasoning and machine learning. Each mode displays the formula used and results as a fraction, decimal, and percentage simultaneously. Ideal for statistics courses, data science students, competitive math, and everyday probability questions like coin flips, card draws, and dice rolls. All processing runs in your browser.
Related tools
Statistics Calculator
Calculate mean, median, mode, standard deviation, variance, quartiles, skewness, kurtosis, and range from any dataset. Histogram included.
Permutation & Combination Calculator
Calculate nPr permutations and nCr combinations with step-by-step formula breakdowns. Supports with and without repetition. BigInt precision.
Factorial Calculator
Calculate n factorial, double factorial, subfactorial, trailing zeros, and digit count. BigInt support for exact large number results.
Percentage Calculator
Calculate X% of Y, find what percentage X is of Y, or compute percentage increase and decrease. Results update as you type.
Random Number Generator
Generate random numbers, roll polyhedral dice, flip coins, pick random items from a list, or draw lottery numbers. Cryptographic option included.