Skip to content
Probability Calculator
Menu

Probability Formulas

Updated · exact formulas, double precision

Every probability formula you're likely to need, with a quick example of each. All probabilities are numbers from 0 to 1.

RuleFormulaExample
Basic probabilityP(A) = favorable ÷ totalRolling a 3: 1/6
ComplementP(not A) = 1 − P(A)Not rolling a 3: 5/6
And (independent)P(A and B) = P(A) × P(B)Two heads: 1/4
And (general)P(A and B) = P(A) × P(B | A)Two aces without replacement: 4/52 × 3/51
OrP(A or B) = P(A) + P(B) − P(A and B)Heart or face card: 13/52 + 12/52 − 3/52 = 22/52
Or (mutually exclusive)P(A or B) = P(A) + P(B)Rolling a 1 or a 2: 2/6
ConditionalP(A | B) = P(A and B) ÷ P(B)See the conditional calculator
BayesP(A | B) = P(B | A) P(A) ÷ P(B)Medical test example
At least once1 − (1 − p)ⁿA six in 4 rolls: 51.8%
BinomialC(n, k) pᵏ (1 − p)ⁿ⁻ᵏ5 heads in 10 flips: 24.6%
Expected valueE(X) = Σ x · P(x)Fair die: 3.5

Probability definition

Probability is a number from 0 to 1 that measures how likely an event is: 0 means it can't happen, 1 means it's certain, and 0.5 means it's as likely as not. When every outcome is equally likely, it's the share of outcomes that count as the event. A probability model is the full description of a random process: the list of possible outcomes (the sample space) and the probability of each.

Compound probability

A compound probability is the chance of two or more events together, such as "heads and a six". For independent events, multiply: P(heads and six) = 1/2 × 1/6 = 1/12. When the first event changes the odds of the second, as when drawing cards without putting them back, multiply by the conditional probability instead: two aces in a row is 4/52 × 3/51 = 1/221. For "either" events, use the or rule and subtract the overlap.

Probability distributions

A probability distribution lists every value a random variable can take with its probability. For a discrete variable you can write it as a table; the discrete probability distribution calculator checks a table and finds its mean and standard deviation. For a continuous variable, a probability density function describes the curve instead, as with the normal distribution.

How to find probability, step by step

  1. Define the event precisely: "at least one six", not "a six".
  2. Decide whether outcomes are equally likely and whether events are independent.
  3. Pick the rule: and, or, complement, conditional.
  4. Sanity-check: the answer must be between 0 and 1, and the complement should add up to 1.

To split a problem into cases, use the law of total probability; for the long-run average, the expected value calculator. Often the easiest route is the complement: "at least one" = 1 − "none". Try any of these with the probability calculator, and see theoretical vs experimental probability for where the numbers come from.

Questions people ask

What is the basic probability formula?

Favorable ÷ total equally likely outcomes, a number from 0 to 1.

What does mutually exclusive mean in probability?

They can't happen together, so P(A and B) = 0 and P(A or B) = P(A) + P(B).

Sources

More probability calculators