10 min read

How to Calculate Probability: Formula, Examples, and Common Mistakes

how to calculate probabilityprobability formulaprobability calculatorindependent eventsconditional probabilitymath

What Is Probability and Why Does It Matter?

Probability is the mathematics of uncertainty. It answers a single question: how likely is this to happen? The answer is always a number between 0 (impossible) and 1 (certain), often expressed as a percentage. Weather forecasts, insurance rates, medical tests, card games, and quality-control processes all depend on probability calculations. Learning how to calculate probability correctly lets you make better decisions under uncertainty.

This guide is educational. For case-specific decisions involving significant financial or medical risk, consult a licensed professional.

Use our probability calculator to compute any of the formulas below instantly.

The Basic Probability Formula

The foundation of probability is a simple ratio:

P(A) = (number of favorable outcomes) ÷ (total number of equally likely outcomes)

This formula works whenever every outcome is equally likely — fair coins, fair dice, well-shuffled card decks.

Worked Example: Rolling a Die

A standard six-sided die has six equally likely outcomes: {1, 2, 3, 4, 5, 6}. What is the probability of rolling a 4?

Favorable outcomes: 1 (only rolling a 4 counts)

Total outcomes: 6

P(rolling a 4) = 1 ÷ 6 ≈ 0.1667, or 16.67%

Worked Example: Drawing a Red Card

A standard 52-card deck has 26 red cards (13 hearts + 13 diamonds). What is the probability of drawing a red card?

P(red card) = 26 ÷ 52 = 0.50, or 50%

Probability values can also be written as fractions. A fraction calculator can help simplify fractions before converting them to decimals or percentages.

The Complement Rule: Probability Something Does NOT Happen

The complement of event A is written P(not A) or P(A'). Because an event either happens or it does not:

P(not A) = 1 − P(A)

Worked Example: At Least One Success

You flip a fair coin three times. What is the probability of getting at least one heads?

The complement is getting zero heads — meaning tails on all three flips. The probability of tails on one flip is 0.5, so the probability of tails on all three independent flips is:

P(no heads) = 0.5 × 0.5 × 0.5 = 0.125

P(at least one heads) = 1 − 0.125 = 0.875, or 87.5%

The complement shortcut is extremely useful for "at least one" questions. Calculating the probability that something never happens and subtracting from 1 is often far easier than listing every scenario where it happens at least once.

Independent Events: The Multiplication Rule

Two events are independent when the outcome of one has no effect on the probability of the other. Flipping a coin does not affect rolling a die. Drawing a card, replacing it, and drawing again produces independent draws.

P(A and B) = P(A) × P(B)

Worked Example: Coin and Die

You flip a fair coin and roll a six-sided die. What is the probability of getting heads AND rolling a 6?

P(heads) = 0.5

P(rolling a 6) = 1/6 ≈ 0.1667

P(heads and rolling a 6) = 0.5 × 0.1667 ≈ 0.0833, or 8.33%

This makes intuitive sense: only 1 out of 12 equally likely (coin, die) combinations is (heads, 6).

Worked Example: Multiple Independent Events

A quality-control inspector checks products coming off a production line. Each product independently has a 2% defect rate. What is the probability that all three products in a batch are defect-free?

P(one product is fine) = 1 − 0.02 = 0.98

P(all three fine) = 0.98 × 0.98 × 0.98 = 0.98³ ≈ 0.9412, or 94.12%

Mutually Exclusive Events

Two events are mutually exclusive if they cannot both happen in the same trial. Rolling a 3 and rolling a 5 on a single die roll are mutually exclusive. On one flip of a coin, heads and tails are mutually exclusive.

For mutually exclusive events: P(A and B) = 0

This is the key distinction from independence. Independent events can both occur (heads AND rolling a 6 is possible). Mutually exclusive events cannot both occur.

The Addition Rule: P(A or B)

The addition rule calculates the probability that at least one of two events occurs:

P(A or B) = P(A) + P(B) − P(A and B)

The subtraction removes the double-counting of outcomes where both events occur. If you add P(A) and P(B), every outcome where both happen gets counted twice — once in P(A) and once in P(B).

For Mutually Exclusive Events (Simplified)

Since P(A and B) = 0 when events are mutually exclusive:

P(A or B) = P(A) + P(B)

Worked Example: Drawing a King or a Heart

From a standard 52-card deck, what is the probability of drawing a King or a Heart?

P(King) = 4/52 (there are 4 Kings in the deck)

P(Heart) = 13/52 (there are 13 Hearts in the deck)

P(King and Heart) = 1/52 (only the King of Hearts is both)

These events are NOT mutually exclusive — the King of Hearts is both a King and a Heart. Apply the full formula:

P(King or Heart) = 4/52 + 13/52 − 1/52 = 16/52 ≈ 0.3077, or 30.77%

Worked Example: Mutually Exclusive (Die Roll)

What is the probability of rolling a 2 or a 5 on a single six-sided die?

P(rolling a 2) = 1/6

P(rolling a 5) = 1/6

These are mutually exclusive — one roll cannot show both numbers. So:

P(rolling a 2 or a 5) = 1/6 + 1/6 = 2/6 = 1/3 ≈ 33.33%

Conditional Probability: P(A | B)

Conditional probability answers: given that B has already happened, how likely is A? It is written P(A|B) and read "the probability of A given B."

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

Worked Example: Card Draw Without Replacement

You draw two cards from a 52-card deck without replacing the first card. What is the probability that the second card is an Ace, given that the first card was an Ace?

After drawing one Ace, only 3 Aces remain in a deck of 51 cards:

P(second Ace | first was Ace) = 3/51 ≈ 0.0588, or 5.88%

If the first card were not an Ace, all 4 Aces remain among 51 cards:

P(second Ace | first was NOT Ace) = 4/51 ≈ 0.0784, or 7.84%

Knowing the first result changes the probability for the second draw. This is why draws without replacement are dependent events, not independent.

For Independent Events, Conditioning Changes Nothing

When A and B are independent, P(A|B) = P(A). Knowing that B occurred gives no new information about A. Rolling a 6 on one die does not change the probability of rolling a 6 on a second die.

Probability Formulas at a Glance

The table below summarizes every formula covered in this guide.

SituationFormula
Basic probabilityP(A) = favorable outcomes ÷ total outcomes
Complement (not A)P(not A) = 1 − P(A)
AND (independent)P(A and B) = P(A) × P(B)
AND (mutually exclusive)P(A and B) = 0
OR (general)P(A or B) = P(A) + P(B) − P(A and B)
OR (mutually exclusive)P(A or B) = P(A) + P(B)
ConditionalP(A|B) = P(A and B) ÷ P(B)

Our probability calculator computes all of these automatically once you enter P(A), P(B), and the event relationship.

Common Mistakes When Calculating Probability

Mistake 1: Treating Dependent Events as Independent

The multiplication rule P(A and B) = P(A) × P(B) only holds for independent events. Drawing cards without replacement, pulling colored balls from a bag without replacement, or predicting weather on consecutive days (where today's weather affects tomorrow's) all involve dependent events. Using the independence formula in these cases gives the wrong answer.

Mistake 2: Forgetting to Subtract in the Addition Rule

When events can overlap — when it is possible for both A and B to happen — the simple sum P(A) + P(B) double-counts the overlap. Always subtract P(A and B) unless you have confirmed the events are mutually exclusive.

Mistake 3: Reversing Conditional Probabilities

P(A|B) and P(B|A) are generally not equal. The probability that a person has a disease given a positive test result is very different from the probability that the test is positive given the person has the disease. Confusing these two is called the base rate fallacy and is one of the most common errors in probability reasoning.

Mistake 4: Assuming Streaks Change Probability

A fair coin that lands heads five times in a row still has a 50% probability of landing heads on the sixth flip. Each flip is independent. Past outcomes do not change future probabilities for independent events — this misconception is sometimes called the "gambler's fallacy."

Putting It Together: A Full Worked Problem

A box contains 5 red marbles and 3 blue marbles (8 total). You draw two marbles without replacing the first.

What is the probability that both marbles are red?

P(first is red) = 5/8

P(second is red | first was red) = 4/7 — after removing one red marble, 4 reds remain among 7 total

Since draws without replacement are dependent:

P(both red) = P(first red) × P(second red | first red) = (5/8) × (4/7) = 20/56 = 5/14 ≈ 0.357, or 35.7%

What is the probability that the first marble is red and the second is blue?

P(first red, second blue) = (5/8) × (3/7) = 15/56 ≈ 0.268, or 26.8%

You can verify these kinds of calculations with our probability calculator. For percentage conversions, see our percentage calculator.

How to Use the Probability Calculator

The CalcCenter probability calculator handles two-event scenarios. Enter:

  • P(A): the probability of the first event, as a percentage (0–100)
  • P(B): the probability of the second event, as a percentage (0–100)
  • Event relationship: choose Independent or Mutually Exclusive

The calculator instantly returns P(A and B), P(A or B), P(not A), P(not B), and P(A|B). This covers the most common classroom and real-world probability questions in one step.

For problems involving more than two events, apply the formulas above iteratively. For grading and academic calculations, our GPA calculator handles the weighted average math that often accompanies probability courses.

Conclusion

Calculating probability comes down to three ideas: count favorable and total outcomes for basic events, multiply probabilities to combine independent events, and use the addition rule (minus the overlap) to find P(A or B). The complement rule — subtracting from 1 — shortcuts many "at least one" problems. Conditional probability asks how a known outcome changes the odds for another event.

The most reliable way to avoid mistakes is to be explicit about whether events are independent or mutually exclusive before applying any formula. When in doubt, draw a sample space or tree diagram and count directly. Use our probability calculator to verify your work.

Related Calculators

Ready to calculate?

Try our free probability calculator to get accurate results instantly.

Try the Calculator

Frequently Asked Questions

What is the basic probability formula?
The basic probability formula is P(A) = (number of favorable outcomes) ÷ (total number of equally likely outcomes). For example, the probability of rolling a 4 on a standard six-sided die is 1 ÷ 6, which equals about 16.67%. This formula applies whenever each outcome is equally likely. Use our probability calculator to evaluate more complex two-event scenarios instantly.
What is the difference between independent and mutually exclusive events?
Independent events are events where the outcome of one does not affect the other. For example, flipping a coin and rolling a die are independent — the coin result tells you nothing about the die. Mutually exclusive events cannot both happen at once. Rolling a 3 and rolling a 5 on a single die roll are mutually exclusive because you can only get one number per roll. The key distinction: independent events can both occur (heads and rolling a 6 is possible), while mutually exclusive events cannot (one die roll cannot show both 3 and 5).
How do you calculate the probability of two independent events both happening?
For independent events A and B, multiply their individual probabilities: P(A and B) = P(A) × P(B). For example, if the probability of event A is 0.5 and the probability of event B is 0.3, then P(A and B) = 0.5 × 0.3 = 0.15, or 15%. This multiplication rule holds only when the events are truly independent. Use a probability calculator to compute this automatically along with all related probabilities.
What is the complement rule in probability?
The complement of an event A is everything that is NOT A. The complement rule states: P(not A) = 1 − P(A). Because something either happens or it does not, these two probabilities always sum to 1. If the probability of rain tomorrow is 0.35 (35%), then the probability of no rain is 1 − 0.35 = 0.65 (65%). The complement rule is especially useful for calculating "at least one" probabilities — it is often easier to calculate the probability that something never happens and subtract from 1.
How do you calculate the probability of A or B occurring?
For any two events, P(A or B) = P(A) + P(B) − P(A and B). The subtraction removes the double-counting of outcomes where both A and B occur. For mutually exclusive events, P(A and B) = 0, so the formula simplifies to P(A or B) = P(A) + P(B). For example, the probability of drawing a King or a Queen from a standard deck is 4/52 + 4/52 − 0 = 8/52, or about 15.4%, because a card cannot be both a King and a Queen.
What is conditional probability and how do you calculate it?
Conditional probability is the probability of event A occurring given that event B has already occurred, written P(A|B). The formula is P(A|B) = P(A and B) ÷ P(B). For example, suppose 30% of people exercise regularly and 18% both exercise regularly and eat a healthy diet. The conditional probability that someone eats a healthy diet given they exercise regularly is 0.18 ÷ 0.30 = 0.60, or 60%. For independent events, knowing B has occurred gives you no new information, so P(A|B) = P(A).
How do I convert a probability to a percentage?
Probability is expressed as a decimal between 0 and 1. To convert to a percentage, multiply by 100. A probability of 0.25 equals 25%. A probability of 1/4 also equals 25%. Some problems give you the fraction directly — use a fraction calculator to simplify before converting. A probability of 0 means impossible; a probability of 1 means certain. Our probability calculator automatically displays results as percentages for easy interpretation.
What common mistakes do people make when calculating probability?
The most common mistakes are: (1) treating dependent events as independent — drawing cards without replacement changes the deck, so events are not independent; (2) forgetting to subtract P(A and B) in the addition rule for non-mutually-exclusive events; (3) confusing P(A|B) with P(B|A) — the probability of having a disease given a positive test is not the same as the probability of a positive test given the disease; and (4) assuming that a "50/50" intuition applies when it does not, such as assuming flipping three heads in a row is just as likely as any other sequence.

Related Articles

JW

Brandon Sorensen

Founder & Editor

Brandon Sorensen is the founder and editor of CalcCenter.io. He is not a licensed financial advisor, tax professional, or medical practitioner — every calculator on the site uses formulas drawn from primary authoritative sources (IRS publications, Federal Reserve data, WHO and CDC standards, peer-reviewed journals), and the formula plus a worked example is published on each calculator page so users can verify the methodology themselves and consult a licensed professional for case-specific decisions.

Learn more about James

Disclaimer: This article is for informational purposes only and should not be considered financial, tax, legal, or professional advice. Always consult with a qualified professional before making important financial decisions. CalcCenter calculators are tools for estimation and should not be relied upon as definitive sources for tax, financial, or legal matters.