Last updated March 2026

Probability Calculator

Calculate probability for single events, multiple events, permutations, and combinations. Enter your values below for instant results.

Single Event Probability

Two Events Probability

Permutations & Combinations

What Is Probability?

Probability is the branch of mathematics that measures how likely an event is to occur. Expressed as a number between 0 and 1, a probability of 0 means the event is impossible, while a probability of 1 means it is certain. A coin flip that lands on heads has a probability of 0.5, or 50%, because there are two equally likely outcomes and one of them is heads.

The formal definition of probability for equally likely outcomes is straightforward: divide the number of favorable outcomes by the total number of possible outcomes. If a standard six-sided die is rolled, the probability of landing on a 4 is 1/6, because there is one favorable outcome out of six total possibilities. This simple ratio underpins everything from casino games to weather forecasts to medical diagnoses.

Probability plays a central role in virtually every scientific discipline and area of daily life. Insurance companies use probability to set premiums. Doctors use it to assess the likelihood of diseases. Engineers use it to predict failure rates. Financial analysts use it to model market behavior. Even something as mundane as deciding whether to carry an umbrella involves an implicit probability assessment. Understanding probability gives you a framework for making better decisions under uncertainty.

Types of Probability

There are three major interpretations of probability, each with distinct philosophical foundations and practical applications.

Classical (Theoretical) Probability

Classical probability applies when all outcomes are equally likely. The formula is P(E) = Number of favorable outcomes / Total number of outcomes. Rolling a fair die, drawing a card from a well-shuffled deck, and flipping a fair coin are all examples where classical probability applies directly. The probability of drawing an ace from a standard 52-card deck is 4/52 = 1/13 because there are 4 aces among 52 cards.

Empirical (Experimental) Probability

Empirical probability is based on observed data rather than theoretical assumptions. If a factory produces 10,000 widgets and 150 are defective, the empirical probability of a defective widget is 150/10,000 = 0.015, or 1.5%. This approach is essential when outcomes are not equally likely or when the theoretical model is unknown. Weather forecasting relies heavily on empirical probability: a "30% chance of rain" means that in historical situations with similar atmospheric conditions, it rained about 30% of the time.

Subjective Probability

Subjective probability reflects personal judgment or belief about how likely an event is. A venture capitalist estimating a 20% chance that a startup succeeds is expressing a subjective probability based on experience, market knowledge, and intuition rather than a mathematical formula or historical dataset. Bayesian statistics provides a rigorous framework for updating subjective probabilities as new evidence becomes available.

The Addition Rule of Probability

The addition rule answers the question: what is the probability that event A or event B (or both) occurs? The general formula is:

P(A or B) = P(A) + P(B) − P(A and B)

The subtraction of P(A and B) is necessary to avoid double-counting outcomes that satisfy both conditions. For example, what is the probability of drawing a king or a heart from a standard deck? P(king) = 4/52, P(heart) = 13/52, and P(king and heart) = 1/52 (the king of hearts). So P(king or heart) = 4/52 + 13/52 − 1/52 = 16/52 = 4/13.

When two events are mutually exclusive (they cannot both occur simultaneously), P(A and B) = 0, and the formula simplifies to P(A or B) = P(A) + P(B). For instance, a single die roll cannot be both a 2 and a 5, so the probability of rolling a 2 or a 5 is simply 1/6 + 1/6 = 2/6 = 1/3.

The Multiplication Rule of Probability

The multiplication rule answers: what is the probability that both event A and event B occur? The answer depends on whether the events are independent or dependent.

Independent Events

P(A and B) = P(A) × P(B)

Two events are independent when the occurrence of one does not affect the probability of the other. Flipping a coin and rolling a die are independent events. The probability of getting heads and rolling a 6 is (1/2) × (1/6) = 1/12. Another example: if the probability of rain today is 0.4 and the probability that your bus is late is 0.1, and these events are independent, the probability of both happening is 0.4 × 0.1 = 0.04, or 4%.

Dependent Events

P(A and B) = P(A) × P(B | A)

When events are dependent, the outcome of the first event changes the probability of the second. Drawing cards without replacement is a classic example. The probability of drawing two aces in a row from a standard deck is (4/52) × (3/51) = 12/2652 = 1/221. After drawing the first ace, only 3 aces remain among 51 cards, so the second probability changes from 4/52 to 3/51.

Conditional Probability

Conditional probability measures the likelihood of an event given that another event has already occurred. The notation P(B | A) reads as "the probability of B given A." The formula is:

P(B | A) = P(A and B) / P(A)

Suppose a company has 200 employees, 120 of whom have a college degree. Among those with a degree, 36 are in management. The probability that a randomly selected employee with a college degree is in management is P(management | degree) = 36/120 = 0.30, or 30%. Note that this is different from the unconditional probability of being in management, which depends on the total number of managers regardless of education.

Conditional probability is the backbone of many real-world applications. Medical testing relies on it extensively. If a disease affects 1% of the population and a test has a 95% true positive rate and a 5% false positive rate, the probability that a person who tests positive actually has the disease (the positive predictive value) is surprisingly lower than most people expect. This counterintuitive result is best understood through conditional probability and Bayes' theorem.

Introduction to Bayes' Theorem

Bayes' theorem provides a systematic way to update probabilities based on new evidence. Named after the Reverend Thomas Bayes, who first formulated the idea in the 18th century, the theorem is expressed as:

P(A | B) = [P(B | A) × P(A)] / P(B)

In words: the probability of hypothesis A given observed evidence B equals the probability of observing B if A is true, multiplied by the prior probability of A, divided by the overall probability of observing B. The power of Bayes' theorem lies in its ability to "flip" conditional probabilities, allowing you to calculate P(A | B) when you know P(B | A).

Consider a medical example. A rare disease affects 0.1% of the population (P(disease) = 0.001). A diagnostic test correctly identifies the disease 99% of the time (P(positive | disease) = 0.99), but it also produces false positives 5% of the time (P(positive | no disease) = 0.05). If a person tests positive, what is the probability they actually have the disease?

Using Bayes' theorem: P(disease | positive) = (0.99 × 0.001) / [(0.99 × 0.001) + (0.05 × 0.999)] = 0.00099 / (0.00099 + 0.04995) = 0.00099 / 0.05094 = approximately 0.0194, or about 1.94%. Despite the test being 99% accurate, a positive result only means a roughly 2% chance of actually having the disease, because the disease is so rare that false positives far outnumber true positives.

Permutations and Combinations

Permutations and combinations are counting techniques used in probability to determine the total number of possible outcomes.

Permutations (Order Matters)

nPr = n! / (n − r)!

A permutation counts the number of ways to arrange r items from a set of n items where the order of arrangement matters. If you want to know how many ways to award gold, silver, and bronze medals to 3 out of 8 athletes, you use permutations: 8P3 = 8! / 5! = 8 × 7 × 6 = 336. Each distinct ordering counts as a different permutation because gold-silver-bronze assigned to athletes A-B-C is different from B-A-C.

Combinations (Order Does Not Matter)

nCr = n! / [r! × (n − r)!]

A combination counts the number of ways to choose r items from n items where order does not matter. Choosing a committee of 3 from 8 people uses combinations: 8C3 = 8! / (3! × 5!) = 56. It does not matter what order the committee members are chosen in, so the number is much smaller than the corresponding permutation.

The relationship between the two is straightforward: nCr = nPr / r!, because each combination corresponds to r! permutations (the number of ways to rearrange the chosen r items). Understanding when to use permutations versus combinations is one of the most important skills in probability and combinatorics.

Real-World Examples of Probability

Lottery odds: The Powerball lottery requires matching 5 numbers from 1 to 69 (order does not matter) plus a Powerball number from 1 to 26. The number of ways to choose 5 from 69 is 69C5 = 11,238,513, and there are 26 Powerball options, giving total odds of 1 in 292,201,338. This is a direct application of combinations.

Insurance: Auto insurance companies analyze historical data to estimate the probability of accidents for different demographics, locations, and driving records. A driver with a clean record in a rural area might have a 2% annual probability of filing a claim, while a driver with two prior accidents in a dense urban area might have a 12% probability. These empirical probabilities directly determine premium pricing.

Sports analytics: Baseball teams use probability models to determine batting orders, defensive alignments, and bullpen strategies. A hitter with a 0.300 batting average has a 30% probability of getting a hit in any given at-bat. The probability that the same hitter gets at least one hit in four at-bats is 1 − (0.7)4 = 1 − 0.2401 = 0.7599, or about 76%.

Quality control: A manufacturer tests a sample of 50 units from a production batch of 5,000. If 2 defective units are found in the sample, the estimated defect probability is 2/50 = 0.04, or 4%. Using this, the manufacturer can estimate approximately 200 defective units in the full batch and decide whether the batch meets quality standards.

Medicine: Clinical trials use probability to evaluate drug effectiveness. If 120 out of 200 patients in the treatment group recover compared to 80 out of 200 in the placebo group, probability analysis (including hypothesis testing and confidence intervals) determines whether the difference is statistically significant or could have occurred by chance.

Frequently Asked Questions

What is the difference between permutations and combinations?

Permutations count the number of ways to arrange items where order matters, while combinations count the number of ways to choose items where order does not matter. Use permutations when the arrangement or sequence is important (like assigning ranked positions), and use combinations when you are simply selecting a group (like choosing committee members). The formula for permutations is nPr = n! / (n - r)!, and for combinations it is nCr = n! / [r! × (n - r)!].

How do you calculate the probability of two independent events both occurring?

For two independent events A and B, multiply their individual probabilities: P(A and B) = P(A) × P(B). For example, the probability of flipping heads (1/2) and rolling a 6 on a die (1/6) is 1/2 × 1/6 = 1/12, approximately 8.33%. Events are independent when the outcome of one has no effect on the probability of the other.

What is the addition rule of probability?

The addition rule calculates the probability that at least one of two events occurs: P(A or B) = P(A) + P(B) − P(A and B). The subtraction prevents double-counting outcomes common to both events. If events are mutually exclusive (they cannot happen simultaneously), P(A and B) = 0, and the formula simplifies to P(A or B) = P(A) + P(B).

Can probability be greater than 1 or less than 0?

No. Probability values always fall between 0 and 1 (or equivalently, between 0% and 100%). A probability of 0 means the event is impossible, and a probability of 1 means it is certain. If a calculation produces a value outside this range, there is an error in the inputs or the formula was applied incorrectly.

What is Bayes' theorem used for?

Bayes' theorem is used to update the probability of a hypothesis based on new evidence. It is widely applied in medical testing (calculating the real probability of having a disease given a positive test), spam filtering (determining the probability that an email is spam based on its content), machine learning (training classifiers), and any scenario where you need to revise prior beliefs in light of observed data.

Related Calculators