Free Probability Calculator

Enter the total number of outcomes and how many of them count as your event. See the probability that it happens and the probability that it does not.

What Is a Probability Calculator?

Quick answer: A probability calculator divides the outcomes that count by all possible outcomes, which is how you calculate probability as a number from 0 to 1. This one handles a single event. Enter both numbers, press Calculate, and read the chance that it happens and the chance that it doesn't, each as a decimal, a percentage and a reduced fraction. Try it with your own numbers.

It works as a chance calculator for one event at a time. It suits setups where every outcome is equally likely, such as a fair coin, a fair die, a standard deck of 52 cards or marbles in a bag, and results you counted yourself, like 28 heads in 50 flips. The tool just divides one number by another, so it can't tell a fair die from a loaded one. Check that assumption before you type.

It doesn't show odds, and it has no separate boxes for two events. The sections below cover a workaround for each.

How to Use This Probability Calculator

Two boxes and one button.

  1. Count the total. Type the number of possible outcomes into the field labeled "Total possible outcomes". A coin is 2, rolling a die is 6 and a deck of cards is 52.
  2. Count what qualifies. Type the number of outcomes that count as your event into "Outcomes where the event happens", for example 4 when the event is drawing an ace.
  3. Press Calculate. Pressing Enter inside either field does the same.
  4. Read the Result card. It has two rows, one for the chance that the event happens and one for the chance that it doesn't.

The first row, "Probability the event happens", is the chance that your event happens. The second, "Probability it does not happen", is the chance that it doesn't. Each row shows the decimal from 0 to 1, the percentage and the reduced fraction: type 6 and 1 and you get 0.166667 (16.6667%, 1/6) and 0.833333 (83.3333%, 5/6).

Use whole numbers, with a total of at least 1 and an event count from 0 up to the total. The card hides as soon as you change a number, so press Calculate again after every change. If a number is refused, the card stays hidden.

The copy icon beside each row copies that row as shown, decimal, percentage and fraction. With JavaScript on, the math runs in your browser, and in our tests the numbers weren't sent to our server.

Do this now: type 52 in the first box and 4 in the second, press Calculate and look for 0.0769231 and 0.923077. Then type your own two numbers into the calculator above.

Probability Calculator Examples: Coin, Dice and Cards

Every row below was typed into the calculator and then checked against the exact fraction.

QuestionTotal outcomesOutcomes that countWhat the calculator shows (happens and does not happen)Exact value
Heads on a coin toss210.5 and 0.51/2
A six on one die610.166667 and 0.8333331/6 (16.67 percent)
An even number on one die630.5 and 0.51/2
An ace from a deck5240.0769231 and 0.9230771/13 (7.69 percent)
A heart from a deck52130.25 and 0.751/4
One named card5210.0192308 and 0.9807691/52 (1.92 percent)
A face card52120.230769 and 0.7692313/13 (23.08 percent)
A total of 7 on two dice3660.166667 and 0.8333331/6
A red marble, 3 red in a bag of 101030.3 and 0.73/10

You do the counting and nothing checks it: enter 13 for face cards instead of 12 and you get a tidy, wrong 0.25. A standard deck has 13 ranks in 4 suits, so 52 outcomes, and the jack, queen and king of each suit make 12 face cards. Count outcomes, not categories: a face card is one category but 12 outcomes.

Two dice have 36 outcomes, not 21, because a 1 on the first die with a 6 on the second is a different outcome from the reverse. Treat the dice as distinct and all 36 pairs are equally likely. That's why a total of 7 has 6 ways out of 36, which makes it the most common sum of two dice, while a total of 2 has exactly one.

As a dice probability calculator it needs only a total, 6 for one die or 36 for two, plus the count your question calls for. Rows two, three and eight are the dice examples. The fourth column is the decimal the Result card prints, rounded to six significant digits, and the last is the exact fraction, so a small difference is only rounding, not an error. Change one count in the calculator and watch both numbers move.

How to Calculate Probability: The Formula Behind the Results

The probability formula fits on one line: P(event) = favorable outcomes / total outcomes. That ratio is the probability of an event, or its likelihood. "Favorable" only means counted in your event, not lucky.

An outcome is one result, like the king of spades, while an event is any set of results you care about, like drawing a king. The denominator is the size of the sample space, the full list of things that could happen. The formula holds only when those outcomes are equally likely.

Every result is a probability between 0 and 1. A value of 0 marks an event that cannot happen, and 1 marks one that always does. The complement of an event is everything else, and the complement rule says its chance is 1 minus the chance that the event happens. Before the decimals are rounded to six significant digits, the two rows on the Result card therefore add to 1.

Take the aces: four of the 52 cards qualify, so 4 divided by 52 gives 0.0769, or 1/13 once reduced. The calculator shows 0.0769231 (7.69231%, 1/13) for the ace and 0.923077 (92.3077%, 12/13) for everything else, because 1 minus 0.0769 is 0.9231.

Inside the page, the script reads both boxes as whole numbers and divides the event count by the total for the first row. For the second row it divides the total minus the event count by the total. Each decimal is printed with up to six significant digits, the percentage is the same ratio times 100, printed the same way, and the fraction is the two counts divided by their greatest common divisor. Nothing else happens behind the button, so you can rebuild any answer on paper.

For the formal definitions, see the free textbook section OpenStax Introductory Statistics, terminology.

Why Small Probabilities Keep Their Digits

The Result card prints each decimal with up to six significant digits and drops trailing zeros, so you see 0.5 and 1 instead of 0.500000 and 1.00000. Significant digits are counted from the first non-zero digit, so a small value keeps its detail and is never shown as 0 or in exponent form.

In our tests 1 out of 1,000 showed 0.001 (0.1%, 1/1000), 1 out of 365 showed 0.00273973 (0.273973%, 1/365), 1 out of 100,000 showed 0.00001 (0.001%, 1/100000), and two aces in a row, 12 out of 2,652, showed 0.00452489 (0.452489%, 1/221). A row reads 0 only when its chance really is 0: the first row when you enter 0 outcomes that count, the second when you enter all of them.

Each decimal is still rounded on its own, to six significant digits, so a displayed pair can miss 1 in the last place: 4 out of 52 prints 0.0769231 and 0.923077, which add to 1.0000001. The percentage and the reduced fraction come from the same two counts, and the fraction is exact. The same rounding shows at the top end: 1 out of 14,000,000 shows 0.0000000714286 (0.00000714286%, 1/14000000) for the event but 1 (100%, 13999999/14000000) for everything else. Once a chance is closer to 1 than one in two million, only the fraction shows the gap.

Exact values that fit in six digits print in full: 1 out of 8 shows 0.125 and 0.875, and 23 out of 40 shows 0.575 and 0.425.

Turn a Probability Into a Percentage, Fraction or Odds

The Result card already prints the percentage chance beside each decimal, so 6 and 1 shows 16.6667% next to 0.166667. The boxes don't take percentages, only the two whole-number counts.

To check a percentage another way, open the Percentage Calculator, choose the formula "Y out of X is What%", type the outcomes that count first and the total second, and press Calculate. In our tests 1 and 6 gave 16.667 and 1 and 36 gave 2.778. That one calculates on our server.

If the arithmetic feels rusty, our guide on how to calculate a percentage walks through it. A fraction is just the two counts, reduced, and the calculator does the reducing: 4 out of 52 shows 1/13, and 3 out of 6 shows 1/2.

Odds in favor compare the outcomes that count with the ones that don't, which makes a six on a die 1 to 5. To turn odds of a to b into a probability, use a divided by (a plus b), so 1 to 5 becomes 1/6. Going the other way, a probability p becomes odds of p to (1 minus p), which turns 0.25 into 1 to 3.

Odds are not counts: odds of 1 to 5 describe a total of 6 and an event count of 1, but typing 5 and 1 shows 0.2 and 0.8, the answer to a different question. A six on a die is 1/6, 0.166667 on the card and odds of 1 to 5, so if your own conversion disagrees, recheck which count you divided by.

Theoretical vs Experimental Probability

Theoretical probability comes from the setup, before anything happens: assume the outcomes are equally likely and count. A fair die gives 1 out of 6, so you enter 6 and 1 and get 0.166667. Experimental (empirical) probability comes from what did happen. It is the number of times the event occurred divided by the number of trials, which some textbooks call the relative frequency.

The same two boxes cover both. For an experiment, the total is the number of trials and the event count is how many times it happened. Flip a coin 50 times, get 28 heads, enter 50 and 28, and the card shows 0.56 and 0.44 against a theoretical 0.5. Trials go first and the number of times it happened goes second; swap them and you'll get the error message instead of a result.

A gap of 0.06 is ordinary at this size. The exact binomial sum puts 28 or more heads in 50 fair flips at about 24 percent, and a miss that big in either direction at nearly half of all runs. The typical wobble in the proportion, the standard error, is about 0.07 at 50 flips and 0.022 at 500, so ten times the flips narrows it by a factor of about three.

This pattern is the law of large numbers: more trials tend to pull the experimental value toward the theoretical one, but any single run can still stray.

A persistent gap is also how you catch a bent coin or a loaded die: the formula assumes fairness, and the experiment reports what happened. A fair coin lands 70 or more heads in 100 flips about once in 25,000 runs (enter 100 and 70 and the card shows 0.7 and 0.3), and the 1/2 formula can't warn you, because it assumes the coin is fair. For exercises, try these free probability practice problems.

Sample size: treat a handful of trials as a hint, not a measurement. 28 heads in 50 flips and 280 in 500 print the same 0.56, but a rough 95 percent margin of error is about 14 points for the first and about 4 for the second.

Probability of Two Events and Multiple Events

This calculator does one event at a time. For two or more events, combine the counts first, then enter the combined counts once.

Never multiply results you have rounded by hand. Rounding 1/6 to 0.17 and squaring it gives 0.0289, but the exact value is 1/36, or 0.0278, so the shortcut overshoots by about four percent.

Under the multiplication rule, two independent events that must both happen mean multiplying the totals together and the event counts together. The addition rule covers either of two events that can't overlap (mutually exclusive): keep the total and add the event counts. If they can overlap, add and then subtract the overlap once.

SituationWhat to enterCalculator showsExact value
Two sixes on two dice (both must happen, independent events)Multiply each count: total 36, event 10.0277778 and 0.9722221/36 (2.78 percent)
A king or a queen from a deck (either one, no overlap)Add the event counts: total 52, event 80.153846 and 0.8461542/13 (15.38 percent)
A heart or an ace (they overlap in the ace of hearts)13 plus 4 minus 1: total 52, event 160.307692 and 0.6923084/13 (30.77 percent)
No six in three rolls5 times 5 times 5 out of 6 times 6 times 6: total 216, event 1250.578704 and 0.421296, where 0.421296 is the chance of at least one six125/216 and 91/216 (0.4213)

Forget the overlap and the ace of hearts gets counted twice: entering 17 instead of 16 in the heart-or-ace row shows 0.326923 instead of 0.307692.

Draws without replacement are dependent events: each draw shrinks the deck, so the second card comes from 51, not 52. Two aces in a row is 4 times 3 favorable ordered pairs out of 52 times 51, which is 12 out of 2,652. The card shows 0.00452489 (0.452489%, 1/221) for that, which is about 0.45 percent. Put the first card back and reshuffle, which is drawing with replacement, and the count becomes 16 out of 2,704, or 1/169.

For at least one, work backwards from 1 minus the chance of none. A single roll misses six 5 times out of 6, so three rolls in a row miss it 125 times out of 216. Enter 216 and 125 and the card's second row, 0.421296 (42.1296%, 91/216), is the chance of at least one six. Counting those 91 sequences directly means adding 75 with one six, 15 with two and 1 with three, so the complement row is the cheaper route.

Conditional probability, Bayes' rule and the binomial and normal distributions need other calculators. The textbook's section on addition and multiplication rules covers the formal versions.

What This Probability Calculator Cannot Do

Five limits worth knowing before you rely on a result.

  • One event only. There are no boxes for event A and event B, and no conditional probability, Bayes' rule, or binomial, normal and Poisson distributions. It shows no working either, so check your counts on paper first.
  • No odds, six digits. You get the decimal, the percentage and the reduced fraction, but no odds, and the decimal and percentage stop at six significant digits. For a chance below one in a quadrillion the decimal shows at most five significant digits, because the page prints at most 20 decimal places.
  • Whole numbers only. The total must be at least 1, and the event count can be 0 up to the total, which gives probability 0 for none of the outcomes and probability 1 for all of them. A zero total, a negative number or a decimal in either box is stopped by your browser's own field check. An event count above the total shows "The outcomes where the event happens cannot be more than the total possible outcomes." Whole numbers up to 9,007,199,254,740,991 are accepted and the fraction is reduced exactly, and a larger number shows "Invalid Input".
  • Equally likely outcomes. A loaded die, a stacked deck or a streaky shooter breaks the formula, not the calculator.
  • Long-run frequency only. A probability describes a fair setup over many repetitions. It doesn't predict the next draw, and it isn't advice for games played for money.

Who Uses a Probability Calculator?

An online probability calculator fits problems you can count, where every outcome is equally likely.

  • Math homework. Students test their answers on coins, dice and cards, then compare the display with the exact fraction.
  • Classroom examples. Teachers can pair a counted experiment with the theoretical value in a statistics lesson.
  • Game nights. Players settle arguments in board games and card games with fair dice and a shuffled deck, where the equally likely assumption holds.
  • Counted results. A defect rate is an experimental probability: 3 faulty items in a sample of 20 is 20 and 3, which shows 0.15 and 0.85.

Related Free Calculators

Three neighboring calculators cover everyday problems close to this one.

Last updated

Frequently Asked Questions

Frequently Asked Questions (FAQs) is a list of common questions and answers provided to quickly address common concerns or inquiries.

How do you calculate probability?

Divide the number of outcomes that count by the total number of equally likely outcomes. For 4 aces in a 52-card deck that is 4 divided by 52, about 0.077, or 7.7 percent. The calculator on this page runs the same division from two numbers. Type 52 and 4 and it shows 0.0769231 (7.69231%, 1/13), plus 0.923077 for no ace.

How do you calculate theoretical probability?

Theoretical probability comes from the setup, before anything happens: outcomes that count divided by total outcomes, assuming each is equally likely. A fair die gives 1 out of 6. In the calculator enter 6 and 1, which displays 0.166667 and 0.833333, with 16.6667% and 1/6 beside the first. Check that every face is equally likely before you trust it.

How do you calculate experimental probability?

Divide the number of times the event happened by the number of trials. Flip a coin 50 times, see 28 heads, and the experimental probability is 28 divided by 50, which is 0.56. Enter the trials first and the hits second, 50 and 28, to see it. Small samples drift, and more trials tend to move the result closer to the theoretical value.

What is the probability of rolling two sixes with two dice?

It is 1/36, about 0.0278 or 2.78 percent. Each die shows a six with probability 1/6, and 1/6 times 1/6 is 1/36. In the calculator enter 36 and 1 and you will see 0.0277778 (2.77778%, 1/36) and 0.972222 (97.2222%, 35/36).

How do I find the probability of two events?

For independent events that must both happen, multiply their probabilities. For either of two events that cannot overlap, add them; if they can overlap, subtract the overlap once. For at least one, take 1 minus the chance of none. This calculator handles one event, so combine the counts first and run it once.

Why does the calculator refuse my numbers or show an error?

One of the two boxes holds a number the calculator rejects. A zero total, a negative number or a decimal is stopped by your browser's own field check, and an event count above the total shows 'The outcomes where the event happens cannot be more than the total possible outcomes.' Use whole numbers, with a total of at least 1 and an event count from 0 up to the total. Probability 0 and probability 1 are allowed: enter 0 or the full total as the event count.

Can I get the probability as a percentage?

Yes. Each result row shows the decimal, the percentage and the reduced fraction, so 6 and 1 shows 16.6667% beside 0.166667. You cannot type percentages into this calculator, only the two whole-number counts. For other percentage problems use the Percentage Calculator.

How do I convert odds to probability?

Divide a by (a plus b). Odds of a to b in favor mean a outcomes that count for every b that do not, so odds of 3 to 2 give 3 divided by 5, which is 0.6. In reverse, a probability p gives odds of p to (1 minus p), so 0.6 is 0.6 to 0.4, or 3 to 2.

Can this calculator do conditional probability or dependent events?

Not directly, because it handles one event, but you can get dependent draws by combining counts first. Two aces in a row is 12 out of 2,652, which is 1/221. Enter 2652 and 12 and the display shows 0.00452489 (0.452489%, 1/221). Conditional probability, P(A given B) equals P(A and B) divided by P(B), needs working out by hand.

Is the probability calculator free, and are my numbers sent anywhere?

It is free, with no sign up and no account. With JavaScript on, the calculation runs in your browser, and in our testing no request to our server carried the numbers you typed. There is no usage cap, because the calculation never runs on our server.
Share on Social Media: