Probability Calculator — Events & Odds
Calculate single-event probability, joint probability, union, conditional probability, complement, and at-least-one probability. Step-by-step formulas shown. Everything runs in your browser.
How Probability Calculator — Events & Odds Works
Calculate probability for single, 2-event, and 3-event scenarios. Find combined, conditional, and independent event probabilities. tool. Enter your values into the form above and the calculator processes them instantly in your browser — no data is sent to any server.
Understanding Probability
Probability quantifies uncertainty. It assigns a number between 0 (impossible) and 1 (certain) to every event. Whether you are calculating your odds of winning a lottery, assessing risk in a business decision, or solving a homework problem, probability provides the framework for reasoning about uncertain outcomes.
Core Formulas
Single event: P(A) = favorable outcomes / total outcomes
Complement: P(not A) = 1 - P(A)
Union (or): P(A or B) = P(A) + P(B) - P(A and B)
Intersection (and, independent): P(A and B) = P(A) × P(B)
Conditional: P(A|B) = P(A and B) / P(B)
At least one in n trials: P(at least 1) = 1 - (1 - p)n
Independent vs Dependent Events
Two events are independent if the occurrence of one does not change the probability of the other. Flipping a coin twice produces independent events — getting heads on the first flip does not affect the second. Events are dependent when one outcome influences the other. Drawing two cards from a deck without replacement is dependent because the first draw changes the remaining cards.
Bayes' Theorem Introduction
Bayes' theorem relates conditional probabilities: P(A|B) = P(B|A) × P(A) / P(B). It is used in medical testing (updating disease probability after a test result), spam filters (updating spam probability after seeing certain words), and machine learning (Bayesian classifiers). The conditional probability mode in this calculator gives you the building blocks for Bayesian reasoning.
Odds vs Probability
Odds and probability express the same information differently. If the probability of rain is 0.25 (25%), the odds in favor are 1:3 (1 favorable to 3 unfavorable). Odds are commonly used in gambling and sports betting. To convert: odds = p / (1 - p), and p = odds / (1 + odds).
Common Applications
- Games of chance: Calculating poker hand probabilities, dice rolls, or lottery odds.
- Risk assessment: Estimating the probability of project delays, equipment failure, or market downturns.
- Statistics: Hypothesis testing, confidence intervals, and p-values all rely on probability theory.
- Quality control: Calculating defect rates and acceptance sampling in manufacturing.
- Insurance: Actuaries use probability to price policies and estimate claim frequencies.
Frequently Asked Questions
What is probability?
Probability is a number between 0 and 1 that measures how likely an event is to occur. A probability of 0 means the event is impossible, and 1 means it is certain. For example, the probability of flipping heads on a fair coin is 0.5 or 50%.
What is the difference between independent and dependent events?
Independent events do not affect each other — the outcome of one has no influence on the other. For example, two coin flips are independent. Dependent events are linked — the outcome of one changes the probability of the other. Drawing cards without replacement is an example of dependent events.
How do you calculate P(A or B)?
For any two events: P(A or B) = P(A) + P(B) - P(A and B). If the events are mutually exclusive (cannot happen simultaneously), P(A and B) = 0, so P(A or B) = P(A) + P(B).
What is conditional probability?
Conditional probability P(A|B) is the probability of event A occurring given that event B has already occurred. The formula is P(A|B) = P(A and B) / P(B). It is fundamental to Bayes theorem and many real-world applications.
How do I calculate the probability of at least one success?
The probability of at least one success in n independent trials is P(at least 1) = 1 - (1 - p)^n, where p is the probability of success on a single trial. This uses the complement rule: instead of counting all success scenarios, subtract the probability of zero successes from 1.