Probability Calculator

Calculate probability for single events, multiple events (AND, OR), conditional probability, and at least one occurrence.

Calculate Probability

Calculation Type:

3
010
10
1100

P(A) = 3 / 10

Probability

30.0000%

= 0.300000 = 3/10

🎯Probability
0.300000
↩️Complement P(not A)
70.0000%
📉Odds Against
2.33:1
📈Odds For
1:2.33

Visual Representation:

Favorable: 3Unfavorable: 7

Probability Formulas

Basic Probability

P(A) = favorable / total

Complement

P(not A) = 1 - P(A)

Addition Rule

P(A∪B) = P(A) + P(B) - P(A∩B)

At Least One

P(≥1) = 1 - (1-p)^n

What Is Probability?

Probability measures the likelihood of an event occurring, expressed as a number between 0 and 1 (or 0% to 100%). It's the foundation of statistics, risk assessment, machine learning, and decision-making under uncertainty. Understanding probability helps interpret everything from weather forecasts to medical test results.

Probability ValueMeaningExample
P = 0Impossible eventRolling 7 on a standard die
P = 0.5 (50%)Equally likely outcomesFair coin showing heads
P = 1Certain eventRolling 1-6 on a standard die
0 < P < 0.5Unlikely but possibleRolling a 6 (P = 1/6 ≈ 0.17)
0.5 < P < 1Likely but not certainNot rolling a 6 (P = 5/6 ≈ 0.83)

Basic Probability Formula

P(A) = Number of favorable outcomes / Total number of possible outcomes

Where:

  • P(A)= Probability of event A occurring
  • Favorable= Outcomes where A happens
  • Total= All possible outcomes

Fundamental Probability Rules

Probability follows strict mathematical rules that govern how probabilities combine. These rules are essential for calculating complex probabilities from simple ones.

RuleFormulaWhen to Use
Complement RuleP(not A) = 1 - P(A)Finding probability of opposite event
Addition Rule (Mutually Exclusive)P(A or B) = P(A) + P(B)Events that can't both occur
Addition Rule (General)P(A or B) = P(A) + P(B) - P(A and B)Any two events
Multiplication Rule (Independent)P(A and B) = P(A) × P(B)One event doesn't affect the other
Multiplication Rule (Dependent)P(A and B) = P(A) × P(B|A)One event affects the other

Key insight: The sum of probabilities of all possible outcomes must equal 1. This is why P(not A) = 1 - P(A).

Conditional Probability

Conditional probability is the probability of an event given that another event has already occurred. It's written as P(A|B), read as "probability of A given B." This concept is crucial for understanding dependent events and is the foundation of Bayes' theorem.

ScenarioUnconditional PConditional PDifference
Drawing a heart from deckP(heart) = 13/52 = 25%P(heart|red card) = 13/26 = 50%Knowledge changes probability
Rain tomorrowP(rain) = 30%P(rain|cloudy today) = 60%Prior information helps
Disease test positiveP(disease) = 1%P(disease|positive test) = variesBase rate matters (Bayes)

Conditional Probability Formula

P(A|B) = P(A and B) / P(B)

Where:

  • P(A|B)= Probability of A given B occurred
  • P(A and B)= Probability both A and B occur
  • P(B)= Probability of B

Bayes' Theorem

Bayes' theorem lets you update probabilities based on new evidence. It's essential for medical diagnosis, spam filtering, machine learning, and rational decision-making. The theorem reverses conditional probabilities: if you know P(B|A), you can find P(A|B).

ComponentNameMeaning
P(A|B)Posterior probabilityUpdated probability after evidence
P(A)Prior probabilityInitial probability before evidence
P(B|A)LikelihoodProbability of evidence if A is true
P(B)Marginal likelihoodTotal probability of evidence

Bayes' Theorem

P(A|B) = P(B|A) × P(A) / P(B)

Where:

  • P(A|B)= Posterior: probability of A given evidence B
  • P(B|A)= Likelihood: probability of B if A is true
  • P(A)= Prior: initial probability of A
  • P(B)= Total probability of evidence B

Independent vs Dependent Events

Events are independent if one occurring doesn't affect the probability of the other. For independent events, P(A|B) = P(A). For dependent events, knowing one occurred changes the probability of the other.

TypeCharacteristicExampleMultiplication Rule
IndependentOne doesn't affect the otherTwo coin flipsP(A and B) = P(A) × P(B)
DependentOne affects the otherCards without replacementP(A and B) = P(A) × P(B|A)

Testing independence: Events A and B are independent if and only if P(A and B) = P(A) × P(B).

Common mistake: Confusing independent with mutually exclusive. Mutually exclusive events (can't both happen) are actually dependent—if one happens, the other has probability 0.

Counting: Permutations and Combinations

Many probability problems require counting possible outcomes. Permutations count arrangements where order matters; combinations count selections where order doesn't matter.

ConceptFormulaWhen to UseExample
PermutationP(n,r) = n!/(n-r)!Order mattersArranging 3 people in 3 seats: 6 ways
CombinationC(n,r) = n!/[r!(n-r)!]Order doesn't matterChoosing 3 from 5 people: 10 ways
Factorialn! = n×(n-1)×...×1Arranging all n items5! = 120

Combination Formula (Choose)

C(n,r) = n! / [r! × (n-r)!] = "n choose r"

Where:

  • n= Total number of items
  • r= Number of items to choose
  • != Factorial (e.g., 5! = 120)

Common Probability Distributions

Probability distributions describe patterns of random outcomes. Understanding common distributions helps solve real-world probability problems.

DistributionUse CaseExampleKey Parameter
UniformEqual probability outcomesRolling a dieMin, max values
BinomialFixed trials, yes/no outcomesCoin flipsn trials, p probability
PoissonEvents in time/spaceCustomer arrivals per hourλ (average rate)
NormalContinuous, bell-shapedHeights, IQ scoresμ (mean), σ (SD)
ExponentialTime between eventsTime until next customerλ (rate)

Worked Examples

Basic Probability: Drawing Cards

Problem:

What's the probability of drawing a King or a Heart from a standard 52-card deck?

Solution Steps:

  1. 1Count Kings: 4 cards
  2. 2Count Hearts: 13 cards
  3. 3Count King of Hearts (overlap): 1 card
  4. 4Apply addition rule: P(King or Heart) = P(King) + P(Heart) - P(King and Heart)
  5. 5Calculate: 4/52 + 13/52 - 1/52 = 16/52 = 4/13

Result:

P(King or Heart) = 16/52 ≈ 30.8%. We subtract the King of Hearts to avoid double-counting.

Conditional Probability: Medical Testing

Problem:

A disease affects 1% of the population. A test is 95% accurate for positive cases and 90% accurate for negative cases. If you test positive, what's the probability you have the disease?

Solution Steps:

  1. 1Prior: P(disease) = 0.01, P(no disease) = 0.99
  2. 2Likelihood: P(positive|disease) = 0.95, P(positive|no disease) = 0.10
  3. 3Total positive: P(positive) = 0.95×0.01 + 0.10×0.99 = 0.0095 + 0.099 = 0.1085
  4. 4Apply Bayes: P(disease|positive) = (0.95 × 0.01) / 0.1085
  5. 5Calculate: 0.0095 / 0.1085 = 0.0876

Result:

P(disease|positive) ≈ 8.76%. Despite a positive test, there's only ~9% chance of having the disease! This is because the disease is rare (base rate fallacy).

Independent Events: Multiple Trials

Problem:

What's the probability of getting at least one 6 when rolling a die 4 times?

Solution Steps:

  1. 1P(not 6 on one roll) = 5/6
  2. 2P(no 6 in 4 rolls) = (5/6)⁴ (independent events)
  3. 3Calculate: (5/6)⁴ = 625/1296 ≈ 0.482
  4. 4Apply complement: P(at least one 6) = 1 - P(no 6s)
  5. 5Calculate: 1 - 0.482 = 0.518

Result:

P(at least one 6) ≈ 51.8%. The complement rule often simplifies 'at least one' problems.

Tips & Best Practices

  • For 'at least one' problems, use the complement: P(at least one) = 1 - P(none).
  • Draw probability trees for complex conditional probability problems.
  • Check independence by testing if P(A and B) = P(A) × P(B).
  • Remember that mutually exclusive events (can't both happen) are NOT independent.
  • Bayes' theorem is powerful when you know P(evidence|hypothesis) but want P(hypothesis|evidence).
  • For counting problems: does order matter? If yes, permutations; if no, combinations.
  • The base rate (prior probability) dramatically affects posterior probability—don't ignore it!

Frequently Asked Questions

Probability is favorable outcomes ÷ total outcomes (e.g., 1/6 for rolling a 6). Odds are favorable ÷ unfavorable (e.g., 1:5 for rolling a 6). To convert: if probability is p, odds are p:(1-p). Odds of 3:1 means probability of 3/4 = 75%.
The sum of probabilities of all possible outcomes equals 1 because something must happen. In a coin flip, P(heads) + P(tails) = 1. This is called the 'normalization' condition and ensures probabilities represent a complete description of possibilities.
The mistaken belief that past random events affect future ones. If a coin shows heads 10 times, the next flip is still 50-50—coins have no memory. Each flip is independent. However, this doesn't apply to dependent events like drawing cards without replacement.
Events are independent if knowing one occurred doesn't change the probability of the other. Mathematically: P(A and B) = P(A) × P(B), or equivalently P(A|B) = P(A). Coin flips are independent; drawing cards without replacement is not.
Ignoring the prior probability (base rate) when interpreting conditional probabilities. A 95% accurate test for a rare disease (1% prevalence) will give mostly false positives! Of those testing positive, most don't have the disease. Always consider base rates when interpreting test results.
Use permutations when order matters (arranging people in line, assigning positions). Use combinations when order doesn't matter (choosing committee members, selecting lottery numbers). If swapping two items creates a different outcome, use permutations.

Sources & References

Last updated: 2026-01-22