HexMathv1.0.4

Probability calculator

This probability calculator finds the chance of an event from equally likely outcomes, such as coins, dice, cards and marbles. Type the question or scan a word problem. HexMath counts the favorable and total outcomes, using complements and combinations when they help, and returns the probability as an exact fraction with each step shown.

Loading math input...

What this page covers

  • Equally likely outcomes: coins, dice, cards, marbles and spinners.
  • The complement rule, for questions with not or at least one.
  • Counting with combinations, such as choosing items from a group.
  • Not covered here: chains of several events with and or or (see the probability calculator for multiple events) and odds (type the problem into the solver).

How to enter the problem

  • Type it or paste it. Write the question in words, with the numbers, as it appears in the problem.
  • Scan it. Fit the one problem in the frame.
  • Choose a photo. Several problems in one photo are solved as a list.
  • Then tap Solve.

Worked examples

Example 1: Find the probability of exactly 2 heads in 5 fair coin flips.

Problem

Find the probability of exactly 2 heads in 5 fair coin flips.

Answer

Verified

The answer is

516\frac{5}{16}

Explanation

  1. Count all outcomes
    Each flip has 22 results, so 55 flips have 25=322^5 = 32 equally likely outcomes.
  2. Count the favourable outcomes
    Choose which 22 of the 55 flips are heads
    (52)=5⋅42=10\binom{5}{2} = \frac{5 \cdot 4}{2} = 10
  3. Divide
    P=1032P = \frac{10}{32}
  4. Simplify
    1032=516=0.3125\frac{10}{32} = \frac{5}{16} = 0.3125

Example 2: Two fair dice are rolled. What is the probability that the sum is at least 10?

Problem

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

Answer

Verified

The answer is

16\frac{1}{6}

Explanation

  1. Count all outcomes
    Each die has 6 faces, so there are 6×6=366 \times 6 = 36 equally likely ordered pairs.
  2. List the favorable pairs
    Sum 10: (4,6),(5,5),(6,4)(4,6), (5,5), (6,4). Sum 11: (5,6),(6,5)(5,6), (6,5). Sum 12: (6,6)(6,6). That is 6 pairs.
  3. Divide
    P=636=16P = \frac{6}{36} = \frac{1}{6}

Example 3: A box of 10 bulbs has 3 faulty ones. You pick 3 bulbs at random. What is the probability that exactly one is faulty?

Problem

A box of 10 bulbs has 3 faulty ones. You pick 3 bulbs at random. What is the probability that exactly one is faulty?

Answer

Verified

The answer is

2140\frac{21}{40}

Explanation

  1. Count all ways to pick 3 bulbs
    (103)=120\binom{10}{3} = 120
  2. Count the favorable picks
    Choose 1 of the 3 faulty bulbs and 2 of the 7 good ones
    (31)(72)=3×21=63\binom{3}{1}\binom{7}{2} = 3 \times 21 = 63
  3. Divide and simplify
    P=63120=2140P = \frac{63}{120} = \frac{21}{40}

Common mistakes

  • Dividing the number of heads by the number of flips. For 2 heads in 5 flips that gives 25\frac{2}{5}, not 516\frac{5}{16}.
  • Counting (4,6)(4,6) and (6,4)(6,4) as one outcome. With two dice the ordered pairs are the equally likely outcomes.
  • Adding probabilities that overlap, or forgetting the complement when the question says at least one.
  • Using permutations when the order of the chosen items does not matter.

Checks, assumptions and limits

  • Check the range. A probability is between 0 and 1, and the probabilities of all outcomes add up to 1. For the example in the solver above, the chances of 0 to 5 heads add up to 3232\frac{32}{32}.
  • This page assumes equally likely outcomes, fair coins and dice, and random draws unless the problem says otherwise.
  • HexMath can make mistakes. Double check important steps.

Frequently asked questions

The final answer is an exact fraction where the question allows it. Ask a follow-up question in the same thread if you want it as a decimal or a percentage.

Yes. Write the question in words with the numbers. The steps count the outcomes, then divide.

Yes. Use the camera on the one problem, or choose a photo. Several problems in one photo are solved as a list.

This page gives probabilities, not odds. For odds, compare the favorable outcomes to the unfavorable ones instead of to the total: a probability of 1/4 means odds of 1 to 3.

Ready to solve your next math problem?

Create a free account for 3 math questions a day in your browser. No card.

Get HexMath on your phone

The same solver and camera scan on iPhone and Android.

Last updated: · HexMath