Expert Reviewed
Prof. Emily Rodriguez, Ph.D. MathematicsUpdated June 1, 2026Our Standards →

Last updated:

Probability Calculator

Calculate single event probability, permutations (nPr), combinations (nCr), and Bayes theorem with step-by-step results.

Back to Math

Probability Calculator

Ad-FreeAI-Powered

Free online probability calculator — single events, permutations, combinations, and Bayes' theorem with step-by-step solutions and AI insights.

Enter values above to see results.

About This Calculator

Related Articles

🎲 Probability Calculator — Complete Guide

0 to 1
Probability range (0% to 100%)
nCr
Combinations: order doesn't matter
nPr
Permutations: order matters
Bayes
P(A|B) = P(B|A)×P(A) / P(B)

Combinations vs Permutations

TypeFormulaExampleUse Case
Permutations nPrn! / (n−r)!P(5,3) = 60Ordered arrangements (passwords, rankings)
Combinations nCrn! / (r! × (n−r)!)C(5,3) = 10Unordered selection (lottery, committees)
Combinations w/ repetition(n+r−1)! / (r!(n−1)!)C(5+3−1,3) = 35Choosing items that can repeat
Derangementsn! × Σ(−1)ᵏ/k!D(4) = 9Permutations where nothing is in original place

Frequently Asked Questions

What is probability?

Probability measures the likelihood of an event: P(A) = (favorable outcomes) / (total equally likely outcomes). It ranges from 0 (impossible) to 1 (certain). E.g., P(rolling a 4 on a fair die) = 1/6 ≈ 0.167.

What is the difference between combinations and permutations?

Permutations count arrangements where ORDER matters (ABC ≠ BAC). Combinations count selections where order doesn't matter (choosing 3 from 5 people for a committee — order is irrelevant). nCr = nPr / r!

What are mutually exclusive events?

Two events are mutually exclusive if they cannot both occur simultaneously. E.g., rolling a 2 AND a 5 on one die. P(A or B) = P(A) + P(B) for mutually exclusive events.

What are independent events?

Events are independent if one's occurrence doesn't affect the other's probability. E.g., two coin flips. P(A and B) = P(A) × P(B) for independent events.

What is conditional probability?

P(A|B) = P(A and B) / P(B) — the probability of A given that B has occurred. E.g., P(second card is ace | first was ace) = 3/51, not 4/52, because the first ace is gone.

What is Bayes' theorem?

P(A|B) = P(B|A) × P(A) / P(B). It updates prior probability based on new evidence. Classic example: a positive test result for a rare disease — even with a 99% accurate test, the disease may still be unlikely if prevalence is very low.

Explore All Math Calculators

Reviewed by CalculatorApp.me Math Team

Probability Calculator — Complete Guide

Classical, conditional, and Bayesian probability with permutations, combinations, and distributions.

P(A)

Event probability

nCr

Combinations

nPr

Permutations

P(A|B)

Conditional prob

What Is Probability?

Probability quantifies the likelihood that an event will occur, expressed as a number between 0 (impossible) and 1 (certain). A probability of 0.5 means the event occurs half the time. Probability is the mathematical foundation of statistics, machine learning, insurance, genetics, quantum physics, and decision-making.

Three interpretations exist: Classical (equally likely outcomes: coin flip = 1/2), Frequentist (long-run relative frequency), and Bayesian (degree of belief updated with evidence). All three produce valid mathematics — the difference is philosophical.

Permutations count ordered arrangements (nPr = n!/(n-r)!), while combinations count unordered selections (nCr = n!/(r!(n-r)!)). The distinction matters: winning a lottery requires the right combination (order doesn't matter), but finishing positions in a race are permutations (order matters).

Probability Formulas

Basic Probability & Operations
Classical Probability:
  P(A) = favorable outcomes / total outcomes

Complement:
  P(A') = 1 − P(A)

Addition Rule:
  P(A or B) = P(A) + P(B) − P(A∩B)
  If mutually exclusive: P(A∪B) = P(A)+P(B)

Multiplication Rule:
  P(A and B) = P(A) × P(B|A)
  If independent: P(A∩B) = P(A) × P(B)

Example: Deck of cards
  P(King) = 4/52 = 1/13 ≈ 7.69%
  P(Heart) = 13/52 = 1/4 = 25%
  P(King of Hearts) = 1/52 ≈ 1.92%
  P(King OR Heart) = 4/52 + 13/52
                     − 1/52 = 16/52

The addition rule subtracts P(A∩B) to avoid double-counting. For mutually exclusive events (can't both happen), P(A∩B) = 0.

Permutations & Combinations
Permutations (order matters):
  nPr = n! / (n−r)!

  10P3 = 10! / 7! = 10×9×8 = 720
  How many ways to arrange 3 of 10 items

Combinations (order doesn't matter):
  nCr = n! / [r!(n−r)!]

  10C3 = 10! / (3!×7!)
       = 720/6 = 120
  How many ways to choose 3 of 10 items

Relationship: nPr = nCr × r!
  720 = 120 × 6 ✓

Lottery: Powerball
  Main: 69C5 = 11,238,513
  Power: ×26
  Odds = 1 in 292,201,338

Combinations are always ≤ permutations. Divide permutations by r! to remove the ordering. Lottery odds use combinations because drawn order doesn't matter.

Conditional & Bayes' Theorem
Conditional Probability:
  P(A|B) = P(A∩B) / P(B)
  'Probability of A given B occurred'

Bayes' Theorem:
  P(A|B) = P(B|A) × P(A) / P(B)

Medical test example:
  Disease prevalence:  P(D) = 0.01
  Test sensitivity:    P(+|D) = 0.99
  Test specificity:    P(−|~D) = 0.95
  False positive rate:  P(+|~D) = 0.05

  P(D|+) = P(+|D)×P(D) /
    [P(+|D)×P(D) + P(+|~D)×P(~D)]
  = 0.99×0.01 / (0.99×0.01 + 0.05×0.99)
  = 0.0099 / (0.0099 + 0.0495)
  = 0.0099 / 0.0594
  = 16.7%  ← Only 1 in 6!

A positive test ≠ 'you have the disease'
when the disease is rare.

Bayes' theorem is perhaps the most important result in probability. The base rate (prevalence) dramatically affects how to interpret test results — a counterintuitive but crucial insight.

Expected Value & Variance
Expected Value:
  E(X) = Σ xᵢ × P(xᵢ)

Variance:
  Var(X) = E(X²) − [E(X)]²

Fair die example:
  E(X) = 1(1/6)+2(1/6)+...+6(1/6)
       = 21/6 = 3.5
  E(X²) = 1(1/6)+4(1/6)+9(1/6)
          +16(1/6)+25(1/6)+36(1/6)
        = 91/6 ≈ 15.17
  Var(X) = 91/6−(21/6)² = 35/12 ≈ 2.92
  SD(X) = √2.92 ≈ 1.71

Gambling insight:
  Casino edge = E(payout) − bet
  Roulette (US): E = −$0.053/dollar
  Over 1000 bets: expect to lose $53

Expected value is the long-run average. A 'fair' game has E(X) = 0. All casino games have negative expected value for players — the 'house edge.'

Common Probability Distributions

DistributionTypeParametersMeanUse Case
BinomialDiscreten trials, p successnpCoin flips, pass/fail
NormalContinuousμ mean, σ SDμHeights, test scores
PoissonDiscreteλ rateλArrivals per hour
ExponentialContinuousλ rate1/λTime between events
UniformBotha min, b max(a+b)/2Random number gen
GeometricDiscretep success1/pTrials until 1st success
Chi-squaredContinuousk degrees of freedomkGoodness-of-fit tests
BetaContinuousα, β shapeα/(α+β)Bayesian priors

Everyday Probability Examples

EventProbabilityOddsComparison
Coin heads50%1 in 2Fair coin baseline
Roll 6 on die16.67%1 in 6Single die
Royal flush (poker)0.000154%1 in 649,7405-card draw
Powerball jackpot0.00000034%1 in 292.2 millionUS lottery
Lightning strike (year)0.00008%1 in 1.2 millionUS annual risk
Identical birthday (23 people)50.7%~1 in 2Birthday paradox

History of Probability

~3000 BC

Dice Games — Earliest Probability

Astragali (knucklebones) were used for games and divination in Mesopotamia. While players developed intuitive probability, no formal theory existed. The historian F.N. David notes this as the origin of random events in human culture.

1654

Pascal & Fermat — Birth of Probability Theory

Blaise Pascal and Pierre de Fermat exchanged letters solving the 'Problem of Points' — how to fairly divide stakes in an interrupted game. Their correspondence established the mathematical foundations of probability, including expected value.

1713

Bernoulli — Ars Conjectandi

Jacob Bernoulli published Ars Conjectandi posthumously, proving the Law of Large Numbers: as trials increase, observed frequency converges to true probability. He also introduced the Bernoulli distribution and binomial probability.

1763

Bayes — An Essay Towards Solving a Problem

Thomas Bayes' posthumous paper introduced what we now call Bayes' theorem — a method for updating probability based on new evidence. It languished for centuries before becoming central to modern statistics, AI, and machine learning.

1933

Kolmogorov — Axiomatic Probability

Andrey Kolmogorov axiomatized probability theory using measure theory, resolving centuries of foundational debates. His three axioms (non-negativity, normalization, countable additivity) remain the rigorous foundation of all modern probability.

2003

Bayesian Revolution in Machine Learning

Bayesian methods became central to ML: spam filters (naive Bayes), recommendation systems, A/B testing, and eventually large language models. Bayesian inference — updating beliefs with data — is now the dominant paradigm in AI/ML.

Key Research & Data

Myths vs. Facts

Past coin flips affect future ones (Gambler's Fallacy).

Each coin flip is independent. After 10 heads in a row, the next flip is still 50/50. The coin has no memory. The law of large numbers applies over thousands of flips, not the next single flip.

Rare events don't happen — so low-probability risks can be ignored.

With enough exposure, rare events become likely. A 1-in-million daily risk becomes ~1-in-2,740 over a year. Insurance, safety engineering, and portfolio diversification all exist because rare events DO happen to someone.

A positive medical test means you probably have the disease.

Bayes' theorem shows this depends on the disease prevalence. For a rare disease (1% prevalence) with a 95% accurate test, a positive result means only ~17% chance of having it — because most positives are false positives from the 99% healthy population.

Probability is just for gambling and games.

Probability underpins all of science (quantum mechanics is fundamentally probabilistic), AI/ML (neural networks optimize probabilistic models), medicine (clinical trials, diagnostic tests), finance (risk models), insurance, weather forecasting, genetics, and virtually every field involving uncertainty.

Frequently Asked Questions

What is the difference between permutation and combination?
Permutation counts ordered arrangements (ABC ≠ CBA); combination counts unordered groups (ABC = CBA). Use permutations for rankings, passwords, license plates. Use combinations for committees, lottery picks, card hands.
What is the birthday paradox?
In a group of just 23 people, there's a >50% chance two share a birthday. With 70 people, it's 99.9%. It's counterintuitive because we compare pairs, not individuals — 23 people yield 253 pairs, each with a 1/365 chance of matching.
How do I calculate odds vs probability?
Probability = favorable/total (e.g., 1/6 for a die). Odds = favorable/unfavorable (e.g., 1:5 for a die). To convert: odds a:b → probability = a/(a+b). Probability p → odds = p/(1-p).
What is the Law of Large Numbers?
As you repeat an experiment many times, the average result converges to the expected value. Flip a coin 10 times: might get 70% heads. Flip 10,000 times: almost certainly near 50%. This is why casinos always profit long-term.
What is independence in probability?
Two events are independent if one occurring doesn't affect the other. Coin flips are independent. Drawing cards WITHOUT replacement is NOT independent (removing a card changes remaining probabilities). Test: P(A∩B) = P(A)×P(B)?
How is probability used in machine learning?
ML is fundamentally probability. Classification outputs are probability distributions. Bayesian networks model uncertain reasoning. Language models predict P(next word | context). Training maximizes the likelihood of observed data.
What is the Monte Carlo method?
A technique for estimating probabilities by running millions of random simulations. Instead of solving complex equations, simulate the process (coin flips, stock prices, particle paths) many times and count outcomes. Named after the Monaco casino.
What is the Central Limit Theorem?
The average of many independent random variables approaches a normal distribution regardless of the original distribution. This is why the normal distribution appears everywhere — and why sample means are approximately normal even from non-normal populations.
How do I handle 'at least one' probability?
Use the complement: P(at least one) = 1 − P(none). Example: probability of at least one 6 in 4 dice rolls = 1 − (5/6)⁴ = 1 − 0.482 = 51.8%. Much easier than calculating P(exactly 1) + P(exactly 2) + ...
What is a p-value in hypothesis testing?
The probability of observing results at least as extreme as the data, assuming the null hypothesis is true. p < 0.05 traditionally means 'statistically significant.' But p-value ≠ P(hypothesis is true) — a common misinterpretation.
What is the difference between joint and marginal probability?
Joint probability P(A∩B) is both events occurring together. Marginal probability P(A) is one event regardless of others. P(A) = Σ P(A∩Bᵢ) summed over all possible Bᵢ. Think: joint is a cell in a table; marginal is a row/column total.
How does probability relate to entropy?
Shannon entropy H = −Σ P(x)log₂P(x) measures the average surprise or information content of a probability distribution. High entropy = high uncertainty = more information needed. It's the foundation of information theory and data compression.

References

Related Calculators

Explore All Math Calculators

Precision math tools for students, teachers, and professionals — CalculatorApp.me.

Browse Math Calculators →

See Also