🎲 Probability Calculator

Calculate single, multiple, and conditional probabilities, plus permutations (nPr) and combinations (nCr) — with fractions, percentages, odds, and Bayes theorem.

What is Probability Calculator?

A full-featured probability toolkit for students, statisticians, and decision-makers. Compute simple event probabilities, combine independent or dependent events, apply Bayes theorem for posterior probabilities, and evaluate combinations and permutations with exact BigInt math up to n=1000. Every result is shown as a fraction, decimal, percentage, odds ("1 in X"), and a 100-dot visual grid. Pre-built examples cover coin flips, dice, lotteries, card draws, and medical-test Bayesian inference.

How to Use

  1. Pick a mode: Single Event, Multiple Events, Conditional/Bayes, or nCr & nPr.
  2. Enter your inputs — favorable and total outcomes, or P(A) and P(B), or n and r.
  3. For multiple events, choose the operation: independent AND/OR, mutually exclusive, dependent (with replacement removed), or complement.
  4. Read the result as a fraction, decimal, percentage, and odds, with a 100-dot grid showing the share visually.
  5. Tap a classic example (coin flip, lottery 6/49, medical test) to instantly load that scenario.

Probability Rules at a Glance

Probability sits between 0 (impossible) and 1 (certain). For a single event with equally likely outcomes, P(A) equals favorable outcomes divided by total outcomes. When combining events, the rule depends on their relationship: independent events (two coin flips) multiply — P(A and B) = P(A) × P(B) — while mutually exclusive events (rolling a 1 OR a 2 on one die) add — P(A or B) = P(A) + P(B). For inclusive OR with independent events, subtract the overlap to avoid double-counting.

Bayes Theorem and Conditional Probability

Conditional probability P(A|B) — read "the probability of A given B" — answers questions like "given that a test came back positive, how likely is the disease?". Bayes theorem flips the conditioning: P(A|B) = [P(B|A) × P(A)] / P(B), where P(B) is the total probability of the evidence. This is why a 95%-accurate test for a rare disease (1% prevalence) can still produce a posterior probability under 20% — the false-positive rate dominates when the prior is small.

Combinations vs Permutations — When Order Matters

Use permutations (nPr = n! / (n-r)!) when the arrangement counts: gold/silver/bronze medals, password orderings, seating plans. Use combinations (nCr = n! / (r! × (n-r)!)) when the selection alone matters: lottery picks, poker hands, committee membership. A handy mental check — if swapping two chosen items produces a different outcome, you want permutations; if they are the same, use combinations.

Frequently Asked Questions

What is the difference between a permutation and a combination?

Permutations count arrangements where order matters (1st, 2nd, 3rd place finishers); combinations count selections where order does not (a 5-card hand is the same hand regardless of deal order). nPr is always greater than or equal to nCr.

When should I use Bayes theorem?

Use Bayes whenever you need to update a prior belief P(A) after observing evidence B. Classic uses: medical-test accuracy, spam filters, fault diagnosis. The calculator derives P(A|B) from your prior, the true-positive rate P(B|A), and the false-positive rate.

Are the nCr and nPr results exact for very large n?

Yes. The calculator uses JavaScript BigInt to avoid floating-point overflow, so values like C(52,5) or C(49,6) are computed exactly. n is capped at 1000 for performance.

What does "1 in 6" mean for odds?

It means the event is expected to occur once for every 6 equally likely trials, on average. It is just 1 ÷ probability — useful for intuition (a die roll giving a 6 is 1 in 6).

What is the difference between mutually exclusive and independent events?

Mutually exclusive events cannot both happen (rolling a 1 OR a 2). Independent events can both happen and do not influence each other (two coin flips). For exclusive OR you simply add; for independent OR you add then subtract the overlap.

Related Tools

  • 📉 Statistics Calculator — Calculate mean, median, mode, standard deviation, variance, quartiles & more from any dataset. Live histogram
  • ⅓ Fraction Calculator — Add, subtract, multiply, and divide fractions with step-by-step solutions. Shows simplified results and decima
  • 🔬 Scientific Calculator — Free online scientific calculator with sin, cos, tan, log, sqrt, exponents, and history. Use as a math calcula
  • 🎲 Random Number Generator — Generate cryptographically secure random numbers with customizable range, count, and duplicate settings.
  • 🎂 Age Calculator — Free age computation tool — calculate age from date of birth in years, months, days, hours, and minutes with f
  • % Percentage Calculator — Calculate percentages instantly — find X% of Y, percentage change, increase/decrease by %, and what percent X
  • 💔 Relationship Compatibility Calculator — REAL compatibility (not zodiac BS). Based on Gottman Institute's 97% divorce prediction research + attachment
  • 🏦 Loan Calculator — Calculate monthly loan payments, total interest, and amortization schedule. Free amortization calculator with

Related: probability calculator, permutation calculator, combination calculator, ncr calculator, npr calculator, bayes calculator, bayes theorem calculator, conditional probability calculator, dice probability, coin flip probability, lottery odds calculator, independent events probability, factorial calculator, odds calculator