Counting & Probability

Probability Formula: Basic Probability Explained with Examples

The probability formula is P(A)=n(A)n(S)P(A)=\frac{n(A)}{n(S)}: the number of outcomes that count as a success, divided by the total number of equally likely outcomes. The answer is always a number from 0 (impossible) to 1 (certain).

P(A)=n(A)n(S)P(A) = \frac{n(A)}{n(S)}

That single fraction handles coins, dice, cards and spinners. The harder part is deciding what to count, and that is where most lost points come from. The sections below cover where the formula comes from, when it breaks, the rules for combining events, and quick ways to check an answer.

What is the basic probability formula?

Start with the one idea behind it: probability is a way of sharing out a total of 1. The sample space SS, the list of everything that could happen, holds all of that probability. If there are n(S)n(S) outcomes and none is favored over another, each one gets an equal slice of size 1n(S)\frac{1}{n(S)}. An event AA is just a collection of outcomes, so its probability is the sum of its slices:

P(A)=n(A)n(S)P(A)=\frac{n(A)}{n(S)}

Here n(A)n(A) is the number of outcomes in the event and n(S)n(S) is the size of the sample space. For a fair die, S={1,2,3,4,5,6}S=\{1,2,3,4,5,6\} and “even” is A={2,4,6}A=\{2,4,6\}, so P(A)=36=12P(A)=\frac{3}{6}=\frac{1}{2}.

This slicing picture explains the two boundary values. If AA contains no outcomes, P(A)=0n(S)=0P(A)=\frac{0}{n(S)}=0. If AA contains every outcome, P(A)=n(S)n(S)=1P(A)=\frac{n(S)}{n(S)}=1. Everything else lands strictly between, which is why a negative probability or one above 1 always means a counting mistake.

Quick check

A fair spinner has 8 equal sections numbered 1 to 8. What is the probability of landing on a number greater than 5?

Why the probability formula needs equally likely outcomes

Grid of 36 two-dice outcomes showing six ways to roll a sum of 7 and one way for 2
Count the 36 equal pairs: 6 make a sum of 7, only 1 makes a sum of 2.

The formula quietly assumes every outcome in SS has the same chance. Break that assumption and the answer is wrong even when the arithmetic is flawless. The classic case is the sum of two dice. There are 11 possible sums (2 through 12), but 111\frac{1}{11} for each is false.

The fix is to count the underlying outcomes, which are equally likely. Each die has 6 faces, so by the fundamental counting principle there are 6×6=366\times 6=36 ordered pairs. A sum of 7 can be made by (1,6),(2,5),(3,4),(4,3),(5,2),(6,1)(1,6),(2,5),(3,4),(4,3),(5,2),(6,1), so P(7)=636=16P(7)=\frac{6}{36}=\frac{1}{6}. A sum of 2 comes only from (1,1)(1,1), so P(2)=136P(2)=\frac{1}{36}. The same trap hides in coins: flipping two coins gives HH,HT,TH,TTHH, HT, TH, TT, so “one head and one tail” has probability 24=12\frac{2}{4}=\frac{1}{2}, not 13\frac{1}{3}.

The distinguishable test

Before dividing, pretend the objects are different colors: a red die and a blue die, a penny and a dime. If your list treats (1,6)(1,6) and (6,1)(6,1) as one outcome, the list is not equally likely.

The same flaw explains the “it either happens or it does not, so 50/50” mistake. Two outcomes only mean one-half when they are equally likely, and “it rains or it does not” never is.

How to use the probability formula with fractions and percents

Answers can be given as a fraction, a decimal or a percent, and all three are the same number. Divide for the decimal, then multiply by 100 for the percent. Keep the fraction form as long as possible, because it makes later multiplication cleaner and avoids rounding drift.

Example 1. A jar holds 8 green, 5 yellow and 7 orange candies. Find P(yellow)P(\text{yellow}) and P(not orange)P(\text{not orange}).

The total is 8+5+7=208+5+7=20 candies. Then:

P(yellow)=520=14=0.25=25%P(\text{yellow})=\frac{5}{20}=\frac{1}{4}=0.25=25\%

For “not orange,” count every candy that is not orange, which is 8+5=138+5=13:

P(not orange)=1320=0.65=65%P(\text{not orange})=\frac{13}{20}=0.65=65\%

The trap here is writing 515\frac{5}{15}, which compares yellow to the non-yellow candies. That ratio is a set of odds, covered below, not a probability. The denominator must always include the favorable outcomes themselves. A fast check: the three color probabilities 820+520+720\frac{8}{20}+\frac{5}{20}+\frac{7}{20} must add to exactly 1.

Probability formula with combinations: counting without listing

Listing outcomes works for a die but collapses for “choose 2 from 10.” Here n(A)n(A) and n(S)n(S) become counting problems, and the tools are combinations and permutations. The rule for choosing between them: if the order of selection does not matter for the event, count combinations. If you are unsure which applies, the page on permutations vs combinations sorts it out.

Example 2. A bag has 4 red and 6 blue marbles. Two are drawn at once. Find the probability that both are red.

The total number of pairs is (102)\binom{10}{2}, and the favorable pairs are (42)\binom{4}{2}:

P(both red)=(42)(102)=645=215≈0.133P(\text{both red})=\frac{\binom{4}{2}}{\binom{10}{2}}=\frac{6}{45}=\frac{2}{15}\approx 0.133

Cross-check by drawing one at a time: 410⋅39=1290=215\frac{4}{10}\cdot\frac{3}{9}=\frac{12}{90}=\frac{2}{15}. Both routes agree, which is the best evidence the setup is right. The common error is mixing the two methods, for example using ordered pairs in the denominator (10⋅9=9010\cdot 9=90) but unordered pairs in the numerator (66). Numerator and denominator must count the same kind of object.

Sometimes the unknown is the size of the bag itself. Setting the probability equal to a given value then produces an equation like n(n−1)=30n(n-1)=30, which is a quadratic. The quadratic formula practice problems are good drills for that final algebra step.

The complement rule: the fast route to at least one

Bar comparison of wrong 0.667 and correct 0.518 chance of at least one six in four rolls
Adding 1/6 four times double-counts; the complement gives 671/1296, about 0.518.

The complement rule says P(A)=1−P(not A)P(A)=1-P(\text{not }A). It works because AA and “not AA” together fill the whole sample space, which has total probability 1. It is the fastest tool for any phrase containing “at least one,” because the direct count has many cases while the opposite has exactly one.

Example 3. A fair die is rolled 4 times. Find the probability of at least one 6.

The opposite of “at least one 6” is “no 6 on any roll.” Each roll avoids a 6 with probability 56\frac{5}{6}, and the rolls are independent:

P(no 6)=(56)4=6251296P(\text{no 6})=\left(\frac{5}{6}\right)^4=\frac{625}{1296}

P(at least one 6)=1−6251296=6711296≈0.518P(\text{at least one 6})=1-\frac{625}{1296}=\frac{671}{1296}\approx 0.518

The result is slightly above one-half, which surprises people who expect 4 rolls at 16\frac{1}{6} each to total 46\frac{4}{6}. Adding 16\frac{1}{6} four times double-counts the rolls where two sixes appear.

The complement also answers “how many tries do I need?” To push the chance past 50%, solve 1−(56)n≥0.51-\left(\frac{5}{6}\right)^n\ge 0.5, which means (56)n≤0.5\left(\frac{5}{6}\right)^n\le 0.5. Taking logs with the power rule from the logarithm rules gives n≥ln⁡0.5ln⁡(5/6)≈3.80n\ge\frac{\ln 0.5}{\ln(5/6)}\approx 3.80, so 4 rolls are needed. Three rolls give only 1−125216=91216≈0.4211-\frac{125}{216}=\frac{91}{216}\approx 0.421.

Quick check

Two fair dice are rolled. What is the probability that the sum is at least 3?

Probability formula for AND and OR events

Two events combine in two ways, and each has its own rule.

  • OR (at least one of AA or BB): add, then subtract the overlap, P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B).
  • AND (both happen): multiply, P(A∩B)=P(A)⋅P(B∣A)P(A\cap B)=P(A)\cdot P(B\mid A), where P(B∣A)P(B\mid A) is the chance of BB once AA is known to have happened.
  • Independent events do not affect each other, so P(B∣A)=P(B)P(B\mid A)=P(B) and the AND rule shortens to P(A)⋅P(B)P(A)\cdot P(B).

For OR, take the chance of drawing a king or a heart from a 52-card deck. Adding 452+1352\frac{4}{52}+\frac{13}{52} counts the king of hearts twice, so subtract it once:

P(king or heart)=452+1352−152=1652=413P(\text{king or heart})=\frac{4}{52}+\frac{13}{52}-\frac{1}{52}=\frac{16}{52}=\frac{4}{13}

For AND without replacement, the second factor changes because the deck changed. That is why two aces in a row is 452⋅351\frac{4}{52}\cdot\frac{3}{51} and not (452)2\left(\frac{4}{52}\right)^2.

Exclusive is not independent

If AA and BB cannot happen together and each has positive probability, then learning that AA occurred makes BB impossible. That makes them dependent, never independent.

Students often swap these two terms, but they describe opposite situations. Mutually exclusive means the overlap is zero, so the OR rule loses its subtraction. Independent means one event tells nothing about the other, so the AND rule loses its conditional.

Geometric probability with spinners and angles

When outcomes form a continuous range, such as a point on a spinner or a dart on a board, there is nothing to count. The formula keeps its shape but swaps counts for measurements: favorable length, area or angle divided by the total.

For a spinner, the measure is the central angle. A sector with angle θ\theta has probability θ360∘\frac{\theta}{360^\circ}. A sector that is a right angle (see types of angles) covers 90360=14\frac{90}{360}=\frac{1}{4} of the wheel, and a 72∘72^\circ sector covers 72360=15\frac{72}{360}=\frac{1}{5}.

For area, suppose a dart lands uniformly at random on a 10×1010\times 10 square that has a circular bullseye of radius 2. The bullseye area is πr2=4π\pi r^2=4\pi and the square’s area is 100100:

P(bullseye)=4π100=π25≈0.126P(\text{bullseye})=\frac{4\pi}{100}=\frac{\pi}{25}\approx 0.126

The method fails if the throw is not uniform. A skilled player aims at the center, so the area ratio understates the real chance. The formula is only as honest as the “equally likely” assumption behind it, and here that assumption means equal chance per unit of area.

Probability vs odds: what is the difference?

Probability compares favorable outcomes to all outcomes. Odds compare favorable outcomes to unfavorable ones. They carry the same information in different clothes, and converting is a one-line job: odds of a:ba:b in favor mean P=aa+bP=\frac{a}{a+b}, and a probability pp means odds of p:(1−p)p:(1-p).

Event Probability Odds in favor
Rolling a 5 on a die 16\frac{1}{6} 1:51:5
Flipping heads 12\frac{1}{2} 1:11:1
Drawing a heart 14\frac{1}{4} 1:31:3
Rolling a 1 or 2 13\frac{1}{3} 1:21:2

The usual trap is vocabulary in sports and betting. “5 to 1 odds” in a betting line is normally odds against, which corresponds to a probability near 16\frac{1}{6}, not 56\frac{5}{6}. Always ask which side the first number describes before converting.

Quick check

The odds in favor of an event are 2:52:5. What is the probability of the event?

Theoretical vs experimental probability in real use

Everything so far is theoretical probability, computed from the structure of the situation. Experimental probability is measured instead: times A occurrednumber of trials\frac{\text{times }A\text{ occurred}}{\text{number of trials}}. If a die is rolled 600 times and a 3 shows up 98 times, the experimental value is 98600≈0.163\frac{98}{600}\approx 0.163, close to the theoretical 16≈0.167\frac{1}{6}\approx 0.167.

The gap shrinks as trials increase, and its typical size can be predicted. The spread of a measured proportion is about p(1−p)n\sqrt{\frac{p(1-p)}{n}}, which is a standard deviation of the proportion. Here it is (1/6)(5/6)600≈0.015\sqrt{\frac{(1/6)(5/6)}{600}}\approx 0.015, so a miss of 0.0040.004 is perfectly normal. Collected results usually go into a frequency table, and summaries such as mean, median, mode and range describe them.

Real uses lean on this link between the two. Insurers estimate probabilities from claims data, quality inspectors from defect counts, and genetics from Punnett squares, where each parent’s allele has probability 12\frac{1}{2}. Multiplying each outcome’s value by its probability and adding gives the expected value, which is a weighted average with probabilities as the weights.

How do you check a probability answer?

Most probability errors can be caught in under a minute, without redoing the problem. Run the answer through these tests:

  1. It must lie between 0 and 1 inclusive.
  2. All outcomes of the experiment must sum to exactly 1.
  3. An AND answer should be smaller than each single probability, and an OR answer should be larger than each one.
  4. Solve a second way, such as combinations against step-by-step multiplication, and compare.

The second test is the strongest. For the two dice, the sum probabilities have numerators 1,2,3,4,5,6,5,4,3,2,11,2,3,4,5,6,5,4,3,2,1 over 36, and they total 3636=1\frac{36}{36}=1. If a hand-built table misses that total, one entry is wrong.

Try this: Write all 36 outcomes of two dice in a 6×66\times 6 grid, count how many give each sum from 2 to 12, and confirm the eleven probabilities add to 1. Then find P(sum≥10)P(\text{sum}\ge 10) from the grid.

When a result still feels off, estimate it roughly. If a rare-sounding event comes out near 0.9, or a certain one near 0.1, re-read the wording for “not,” “at least” or “without replacement.”

Practice problems

0 of 5 solved

  1. A bag holds 5 red, 3 blue and 2 green marbles. One marble is drawn at random. What is P(blue)P(\text{blue})?

  2. A fair six-sided die is rolled. What is the probability of rolling a prime number?

  3. Two cards are dealt from a standard 52-card deck without replacement. What is the probability that both are aces?

  4. A fair coin is flipped 3 times. What is the probability of at least one head?

  5. A bag holds nn marbles, 3 of them blue. Two are drawn without replacement, and P(both blue)=15P(\text{both blue})=\frac{1}{5}. Find nn.

Common questions

What is the formula for probability?

The basic formula is P(A)=n(A)n(S)P(A)=\frac{n(A)}{n(S)}, the number of favorable outcomes divided by the total number of equally likely outcomes. The result is always between 0 and 1.

How do you turn a probability into a percentage?

Multiply the decimal or fraction by 100. For example, 38=0.375\frac{3}{8}=0.375, which is 37.5%37.5\%.

How do you find the probability that an event does not happen?

Subtract from 1: P(not A)=1−P(A)P(\text{not }A)=1-P(A). This is also the fastest route to any "at least one" question.

What is the difference between probability and odds?

Probability compares favorable outcomes to all outcomes, while odds compare favorable outcomes to unfavorable ones. An event with probability 14\frac{1}{4} has odds in favor of 1:31:3.

How do you find the probability of two events both happening?

Multiply: P(A and B)=P(A)⋅P(B∣A)P(A\text{ and }B)=P(A)\cdot P(B\mid A). If the events are independent, P(B∣A)=P(B)P(B\mid A)=P(B), so the formula becomes P(A)⋅P(B)P(A)\cdot P(B).

Can a probability be greater than 1 or negative?

No. A probability of 0 means the event is impossible and 1 means it is certain, so every valid answer sits between them. A result outside that range signals a counting error.

Up next