Probability Calculator

Calculate event probability, combinations, permutations, and conditional probability.

Probability
---

Multiple Trials

P(at least one success)
---
P(all successes)
---
P(no successes)
---

Combinations & Permutations

Combinations C(n, r)
---
Permutations P(n, r)
---

Two Independent Events

P(A and B)
---
P(A or B)
---
P(not A)
---
P(not B)
---

How to Use This Probability Calculator

  1. Single event probability: Enter the number of favorable outcomes and total possible outcomes. The calculator instantly shows the probability as a fraction, decimal, and percentage.
  2. Multiple trials: Set the number of trials to see the probability of at least one success, all successes, or zero successes over repeated independent trials.
  3. Combinations and permutations: Enter n (total items) and r (items to choose). C(n,r) gives unordered selections; P(n,r) gives ordered arrangements.
  4. Two events: Enter the probability of each event to calculate joint probability (both happening), union probability (either happening), and complements.

Understanding Probability

Probability measures how likely an event is to occur, expressed as a number between 0 (impossible) and 1 (certain). A probability of 0.5 means the event has an equal chance of happening or not happening. Probability is fundamental to statistics, risk assessment, gambling, insurance, weather forecasting, and countless other fields.

The Basic Probability Formula

The probability of a simple event is: P(E) = favorable outcomes / total possible outcomes. For a fair six-sided die, the probability of rolling a 4 is 1/6 because there is 1 favorable outcome (the 4) out of 6 equally likely outcomes.

Combinations vs Permutations

Both count ways to select items from a larger set, but they differ in whether order matters. Combinations (C(n,r) = n! / (r!(n-r)!)) count unordered selections: choosing 3 cards from a deck of 52 gives C(52,3) = 22,100 possible hands. Permutations (P(n,r) = n! / (n-r)!) count ordered arrangements: the number of ways to arrange 3 books on a shelf from 10 books is P(10,3) = 720.

The Complement Rule

The probability of at least one success in repeated trials is most easily calculated using the complement: P(at least one) = 1 - P(none). For example, the chance of getting at least one head in 3 coin flips is 1 - (0.5)^3 = 0.875 or 87.5%. This is much simpler than calculating P(exactly 1) + P(exactly 2) + P(exactly 3) separately.

Independent vs Dependent Events

Two events are independent if one does not affect the other. Coin flips are independent: the result of the first flip has no effect on the second. For independent events, P(A and B) = P(A) x P(B). Dependent events affect each other: drawing cards without replacement changes the remaining probabilities after each draw.

Frequently Asked Questions

Combinations count selections where order does not matter (choosing a committee). Permutations count arrangements where order does matter (assigning ranks). For the same n and r, permutations are always greater than or equal to combinations.
Use the complement rule: P(at least one) = 1 - P(none). Calculate the probability of zero successes across all trials, then subtract from 1. This is simpler than summing every possible number of successes.
P(A or B) is the probability that at least one of the two events occurs. For independent events, P(A or B) = P(A) + P(B) - P(A) x P(B). The subtraction avoids double-counting the case where both happen.
JavaScript can represent integers exactly up to about 9 x 10^15. Since 170! is approximately 7.3 x 10^306 (near the floating-point maximum), factorials beyond 170 overflow to infinity. The calculator uses this limit to ensure accurate results.
Yes. A typical lottery requires choosing r numbers from n. Use the Combinations section: C(n,r) gives the total number of possible tickets. Your odds of winning are 1/C(n,r). For example, choosing 6 from 49 gives C(49,6) = 13,983,816, so the odds are about 1 in 14 million.