Probability Calculator

Probability Calculator


Enter the number of favorable outcomes and total possible outcomes.

Probability is the mathematics of uncertainty. Whether you are rolling dice in a board game, estimating the chance of rain, or deciding if a medical test result is meaningful, you are asking the same question: how likely is this outcome? This probability calculator answers that question instantly for three common situations — single events, pairs of independent events, and repeated trials — and shows each answer as a decimal, a percentage, a fraction, and betting odds.

If you have ever wondered “what are my chances?” and wanted a number instead of a gut feeling, this page is for you. Below you will find a step-by-step guide, the exact formulas the calculator uses, fully worked examples, and answers to the questions people ask most about probability.

How to Use the Probability Calculator

The calculator has three modes. Pick the one that matches your situation:

  1. Single event probability. Enter the number of favorable outcomes and the total number of possible outcomes. Example: the chance of rolling a 6 on a fair die is 1 favorable outcome out of 6 total.
  2. Two independent events. Enter each event’s probability as a percentage, then choose whether you want the probability that both happen (AND) or that at least one happens (OR). The events must be independent — the outcome of one must not affect the other.
  3. Binomial probability. For repeated identical trials, such as flipping a coin 10 times. Enter the number of trials (n), the exact number of successes you want (k), and the success probability per trial. The calculator returns the probability of getting exactly k successes.

Press Calculate Probability and the result appears immediately, expressed four ways so you can read whichever form makes sense to you.

Probability Formulas Explained

Single event

The classical definition of probability is beautifully simple:

P(event) = favorable outcomes ÷ total possible outcomes

Every outcome must be equally likely for this formula to apply. A fair six-sided die has 6 equally likely faces, so the probability of rolling a 4 is 1 ÷ 6 ≈ 0.1667, or about 16.67%.

Two independent events

Two events are independent when knowing one happened tells you nothing about the other — like two separate coin flips. For independent events A and B:

  • Both happen: P(A and B) = P(A) × P(B)
  • At least one happens: P(A or B) = P(A) + P(B) − P(A) × P(B)

The subtraction in the OR formula corrects for double-counting the overlap where both events occur. If you just added the probabilities, outcomes where both happen would be counted twice.

Binomial probability

When you repeat the same experiment n times and each trial has the same success probability p, the chance of getting exactly k successes is given by the binomial probability formula:

P(k successes) = C(n,k) × pk × (1−p)(n−k)

Here C(n,k) — “n choose k” — counts the number of ways to arrange k successes among n trials. Our binomial probability calculator mode evaluates this formula for you, including the combination count, so you never have to compute factorials by hand.

Worked Examples

Example 1: Rolling a specific number on a die

Question: What is the probability of rolling a 6 on a fair six-sided die?

Solution: There is 1 favorable outcome (rolling a 6) and 6 total outcomes. P = 1 ÷ 6 ≈ 0.1667, which is 16.67%, the fraction 1/6, and odds of 1 to 5 against.

This is the textbook single-event calculation. Notice the odds format: “1 to 5” means for every 1 time the event happens, it fails to happen about 5 times — another way of saying the same 1-in-6 chance.

Example 2: Exactly two heads in three coin flips

Question: A fair coin is flipped 3 times. What is the probability of getting exactly 2 heads?

Solution using the binomial formula: n = 3 trials, k = 2 successes, p = 0.5. First, C(3,2) = 3 (the arrangements are HHT, HTH, THH). Then P = 3 × 0.52 × 0.51 = 3 × 0.25 × 0.5 = 0.375, or 37.5%.

Many people guess 50% or 25% here, which shows why computing beats guessing. The binomial mode of this calculator handles the combination arithmetic automatically.

Example 3: Lottery-style long odds

Question: A lottery draws 6 numbers from 49. Roughly what are the odds of matching all 6 with a single ticket?

Solution: The number of possible combinations is C(49,6) = 13,983,816. With one ticket, your probability is 1 ÷ 13,983,816 ≈ 0.0000000715, or about 0.00000715%. Expressed as odds, that is roughly 1 to 14 million against.

Calculators like this one turn abstract “astronomical odds” claims into concrete numbers, which is exactly why an odds calculator view is included alongside the decimal and percentage.

Dice and playing cards illustrating probability concepts with a pie chart showing one-in-six chance
Dice, cards, and a one-in-six pie chart — the classic images of probability.

Practical Uses of Probability Calculations

  • Games and gambling: Evaluating dice odds, card draws, and lottery tickets before you play — and understanding why the house always wins in the long run.
  • Weather and planning: A “30% chance of rain” means that under similar conditions, rain occurred about 3 times in 10. Probability turns forecasts into decisions about umbrellas and outdoor plans.
  • Quality control: Manufacturers use binomial probability to decide sample sizes — for example, the chance that a batch passes inspection given a known defect rate.
  • Medical testing: Understanding test accuracy requires conditional probability: even a 99%-accurate test can mislead when the condition being tested for is rare.
  • Finance and insurance: Insurers price policies from probability models of accidents, illness, and mortality; investors use probability to weigh expected returns against risk.
  • Education: Probability is the gateway to statistics. Mastering P = favorable ÷ total makes later topics like expected value and distributions far easier.
Bar chart showing binomial distribution of coin flip results with a coin in the foreground
Binomial distribution: the probability of each possible number of heads in repeated coin flips.

The Complement Rule and “At Least One”

The complement of an event is everything that could happen instead of it, and the two probabilities always add to 1: P(not A) = 1 − P(A). This is the shortcut for “at least one” questions: the chance of at least one six in four rolls is 1 minus the chance of no sixes, 1 − (5/6)4 ≈ 0.5177, about 51.77%. In the binomial mode above, compute P(exactly 0 successes) and subtract it from 1.

Mutually Exclusive vs Independent Events

These terms sound similar but describe nearly opposite situations. Mutually exclusive events cannot happen together — one card cannot be both a heart and a spade — so P(A and B) = 0 and the union rule reduces to plain addition. Independent events do not influence each other, like separate coin flips; only then can you multiply, P(A and B) = P(A) × P(B). When events overlap, subtract the double-counted part: an ace or a heart is 4/52 + 13/52 − 1/52 = 16/52 ≈ 30.77%, because the ace of hearts belongs to both groups.

Tips and Limitations

  • Independence matters. The two-event formulas only work when events are truly independent. Drawing two cards without replacement is not independent — the first draw changes the deck.
  • “Due” is a myth. After five heads in a row, the next flip is still 50/50. This is the gambler’s fallacy, and no calculator can make past independent outcomes influence future ones.
  • Percentages are probabilities too. 37.5% and 0.375 are the same number in different clothes. The calculator shows all forms so you can sanity-check your intuition.
  • Binomial trials must be identical. Each trial needs the same success probability and exactly two outcomes (success/failure). If conditions change between trials, the binomial formula does not apply.
  • Big n, small p needs care. For very large trial counts the numbers can underflow; the calculator caps trials at 170, which covers virtually all practical cases.

For related math, try our permutation and combination calculator (for counting arrangements), percentage calculator, fraction to decimal converter, or statistics calculator.

Frequently Asked Questions

What is the probability formula?

The basic probability formula is P(event) = number of favorable outcomes ÷ total number of possible outcomes. All outcomes must be equally likely. For example, drawing an ace from a 52-card deck is 4 ÷ 52 ≈ 7.69%.

How do you calculate binomial probability?

Use P(k) = C(n,k) × pk × (1−p)(n−k), where n is the number of trials, k the desired successes, p the per-trial success probability, and C(n,k) the combination count. The binomial mode of this probability calculator evaluates the full formula for you.

What is the difference between probability and odds?

Probability is successes ÷ total outcomes (e.g., 1/6 ≈ 16.67%). Odds compare successes to failures: “1 to 5” for the same die roll. Convert with odds = p ÷ (1−p). Bookmakers quote odds; scientists usually quote probability — they describe the same chance.

Can probability be greater than 1 or 100%?

No. Probability ranges from 0 (impossible) to 1 (certain), or 0% to 100%. If your calculation exceeds 1, check for an error — a common one is adding probabilities of overlapping events without subtracting the overlap.

What does independent mean in probability?

Two events are independent if one occurring does not change the probability of the other — like separate coin flips or dice rolls. The AND/OR formulas in this calculator assume independence; for dependent events (e.g., cards drawn without replacement) you need conditional probability instead.

How is probability used in real life?

Insurers set premiums from accident probabilities, doctors interpret test results with them, engineers compute system reliability, and weather services express forecasts as rain probabilities. Any decision under uncertainty is, formally or informally, a probability calculation.

How do I find the probability of at least one success?

Use the complement: P(at least one) = 1 − P(none). For repeated independent trials that is 1 − (1 − p)n — at least one six in four rolls is 1 − (5/6)4 ≈ 51.77%.

What is conditional probability?

Conditional probability P(A|B) = P(A and B) ÷ P(B) is the chance of A once B is known to have happened — for example, a second ace drawn without replacement has probability 3/51. This calculator’s two-event mode assumes independence.

Related Calculators

Scroll to Top