Probability Calculator
Probability Calculator. Free online calculator with formula, examples and step-by-step guide.
What Is Probability?
Probability quantifies the likelihood of an event occurring, expressed as a number between 0 and 1 (or 0% to 100%). A probability of 0 means the event is impossible; a probability of 1 means it's certain. Everything in between represents varying degrees of uncertainty that govern decisions in finance, medicine, engineering, and everyday life.
Consider a weather forecast stating "30% chance of rain." This doesn't mean 30% of the area gets wet or it rains for 30% of the day. It means that under identical atmospheric conditions, rain would occur in 3 out of 10 similar scenarios. Understanding this interpretation prevents costly misjudgments.
The Probability Calculator computes P(E) = favorable outcomes / total possible outcomes for equally likely events. For complex scenarios involving multiple events, conditional probability, or independent/dependent relationships, the calculator applies appropriate rules to deliver accurate results.
Probability Formulas With Complete Calculations
Basic Probability (Single Event):
P(E) = n(E) / n(S)
Where: P(E) = probability of event E, n(E) = number of favorable outcomes, n(S) = total outcomes in sample space
Complementary Probability (Event Not Occurring):
P(E') = 1 - P(E)
Probability of A or B (Union):
P(A ∪ B) = P(A) + P(B) - P(A ∩ B)
Subtracting the intersection prevents double-counting outcomes where both events occur.
Probability of A and B (Intersection, Independent Events):
P(A ∩ B) = P(A) × P(B)
Conditional Probability:
P(A|B) = P(A ∩ B) / P(B)
Complete Worked Calculation: Drawing Cards
Problem: What's the probability of drawing a King OR a Heart from a standard 52-card deck?
Step 1: Identify favorable outcomes for each event
P(King) = 4/52 (four Kings in deck)
P(Heart) = 13/52 (thirteen Hearts in deck)
Step 2: Identify intersection (King of Hearts counts for both)
P(King ∩ Heart) = 1/52
Step 3: Apply union formula
P(King ∪ Heart) = 4/52 + 13/52 - 1/52 = 16/52
Step 4: Simplify and convert
16/52 = 4/13 ≈ 0.308 = 30.8%
Result: Probability ≈ 30.8%
Complete Worked Calculation: Independent Events
Problem: A factory has two machines. Machine A works properly 95% of the time; Machine B works 92% of the time. What's the probability both work on a given day?
Step 1: Convert percentages to decimals
P(A) = 0.95, P(B) = 0.92
Step 2: Verify independence (machine failures don't affect each other)
Step 3: Apply intersection formula for independent events
P(A ∩ B) = 0.95 × 0.92 = 0.874
Step 4: Convert to percentage
0.874 = 87.4%
Result: Both machines work 87.4% of days
6 Steps to Calculate Probability
Step 1 — Define the Event Clearly: Specify exactly what outcome you're measuring. "Drawing an ace" is clear; "drawing a good card" is not. Precision prevents calculation errors and misinterpretation.
Step 2 — Determine the Sample Space: List or count all possible equally likely outcomes. For a die roll, S = {1, 2, 3, 4, 5, 6}, so n(S) = 6. For two coin flips, S = {HH, HT, TH, TT}, so n(S) = 4.
Step 3 — Count Favorable Outcomes: Identify which outcomes satisfy your event definition. For "rolling an even number," favorable outcomes are {2, 4, 6}, so n(E) = 3.
Step 4 — Check for Dependencies: Are events independent (one doesn't affect the other) or dependent (one changes probabilities for the next)? Drawing cards without replacement creates dependence; coin flips are independent.
Step 5 — Apply the Appropriate Formula: Use basic probability for single events, union formula for "or" situations, intersection formula for "and" situations, and conditional probability when one event affects another.
Step 6 — Verify the Result Makes Sense: Probabilities must fall between 0 and 1 (or 0% and 100%). If you calculate P = 1.2 or P = -0.3, something went wrong. Also check whether the magnitude matches intuition.
5 Detailed Examples
Example 1: Lottery Odds
A lottery requires matching 6 numbers chosen from 1 to 49. What's the probability of winning with one ticket?
Total combinations: C(49, 6) = 49! / (6! × 43!) = 13,983,816
Favorable outcomes: 1 (only one winning combination)
P(Winning) = 1 / 13,983,816 ≈ 0.0000000715 = 0.00000715%
This explains why lottery wins are newsworthy—the probability is roughly 1 in 14 million.
Example 2: Medical Test Accuracy
A disease affects 2% of the population. A test has 95% sensitivity (correctly identifies sick patients) and 90% specificity (correctly identifies healthy patients). If someone tests positive, what's the probability they actually have the disease?
Using Bayes' theorem:
P(Disease|Positive) = P(Positive|Disease) × P(Disease) / P(Positive)
P(Positive) = P(Positive|Disease) × P(Disease) + P(Positive|Healthy) × P(Healthy)
P(Positive) = 0.95 × 0.02 + 0.10 × 0.98 = 0.019 + 0.098 = 0.117
P(Disease|Positive) = 0.95 × 0.02 / 0.117 = 0.019 / 0.117 ≈ 0.162 = 16.2%
Despite 95% test accuracy, a positive result means only 16.2% probability of actual disease—counterintuitive but mathematically correct due to low disease prevalence.
Example 3: Manufacturing Defect Probability
A production line has a 3% defect rate. If you randomly select 5 items, what's the probability all 5 are non-defective?
P(Non-defective) = 1 - 0.03 = 0.97
P(All 5 non-defective) = 0.97⁵ = 0.8587 = 85.87%
Conversely, P(At least one defective) = 1 - 0.8587 = 14.13%
Example 4: Project Completion Risk
A software project has three critical phases. Phase 1 has 85% on-time completion probability, Phase 2 has 90%, and Phase 3 has 80%. All phases must succeed for on-time project delivery. What's the probability?
P(On-time) = 0.85 × 0.90 × 0.80 = 0.612 = 61.2%
Project managers use this to set realistic expectations and identify phases needing risk mitigation.
Example 5: Sports Betting Odds
A team wins 60% of home games. Their opponent wins 45% of away games. If these statistics represent independent probabilities, what's the probability the home team wins?
This requires additional assumptions about how these probabilities interact. A simple model might use:
P(Home win) = P(Home win rate) / [P(Home win rate) + P(Away win rate)]
P(Home win) = 0.60 / (0.60 + 0.45) = 0.60 / 1.05 ≈ 0.571 = 57.1%
Professional bookmakers use far more sophisticated models incorporating dozens of variables.
4 Common Mistakes to Avoid
Mistake 1 — Assuming Independence When Events Are Dependent: Drawing cards without replacement changes probabilities. P(Drawing Ace) = 4/52 initially, but if you drew an Ace first, P(Second Ace) = 3/51, not 4/52. Always verify whether earlier outcomes affect later probabilities.
Mistake 2 — Double-Counting Overlapping Outcomes: For "A or B" probabilities, adding P(A) + P(B) without subtracting P(A ∩ B) inflates the result. In a deck, P(King or Heart) ≠ 4/52 + 13/52 = 17/52. The correct answer is 16/52 because the King of Hearts appears in both counts.
Mistake 3 — Confusing P(A|B) with P(B|A): P(Test positive | Disease) is not the same as P(Disease | Test positive). The first might be 95% (test sensitivity), while the second could be 16% (as shown in Example 2). This confusion—called the prosecutor's fallacy—has wrongful convictions.
Mistake 4 — Treating Small Probabilities as Zero: A 0.1% probability seems negligible until you realize it happens 1 in 1,000 times. For high-volume operations (airlines, hospitals, data centers), rare events occur regularly. A 0.01% daily failure rate means 3-4 failures per year.
4 Practical Tips
Tip 1 — Use Complements for "At Least" Problems: Calculating P(At least one success) directly requires summing many scenarios. Instead, find P(No successes) and subtract from 1. For "at least one heads in 5 coin flips": P = 1 - 0.5⁵ = 1 - 0.03125 = 96.875%.
Tip 2 — Visualize With Tree Diagrams: For multi-stage probability problems, draw branches showing each outcome and its probability. Multiply along branches for "and" situations, add across branches for "or" situations. This prevents missing scenarios.
Tip 3 — Convert Percentages to Decimals for Calculations: Working with 0.25 instead of 25% prevents decimal place errors. Convert back to percentages only for final presentation. This habit reduces arithmetic mistakes significantly.
Tip 4 — Apply the Multiplication Rule Sequentially: For complex "and" problems with dependent events, calculate step-by-step: P(A and B and C) = P(A) × P(B|A) × P(C|A and B). This systematic approach prevents overlooking conditional dependencies.
4 FAQs
Probability expresses favorable outcomes divided by total outcomes (0 to 1). Odds express favorable outcomes divided by unfavorable outcomes (0 to infinity). For a 1/4 probability, odds are 1:3 (one to three). Gambling uses odds; statistics uses probability. Conversion: Odds = P / (1 - P).
No. By definition, probability is bounded between 0 and 1 inclusive. A result outside this range indicates a calculation error. If you get P = 1.2, you likely added probabilities without accounting for overlap. If P = -0.1, you probably subtracted incorrectly.
Multiply for "and" situations (both events must occur). Add for "or" situations (either event can occur), but subtract the intersection if events can both happen. Memory aid: AND = Multiply, OR = Add (with adjustment for overlap).
Events are independent if one's occurrence doesn't change the other's probability. Coin flips are independent—previous results don't affect future flips. Card draws without replacement are dependent—each draw changes the remaining composition. Ask: Does knowing A happened change P(B)?
Related Calculators
- Combinations Calculator — Counts selections without regard to order
- Permutations Calculator — Counts arrangements where order matters
- Confidence Interval Calculator — Estimates population parameters with probability
- Z-Score Calculator — Finds probability under normal distribution