Probability Calculator Formula
Understand the math behind the probability calculator. Each variable explained with a worked example.
Formulas Used
Probability
probability = favorable / totalProbability Pct
probability_pct = (favorable / total) * 100Odds For
odds_for = favorable / (total - favorable)Odds Against
odds_against = (total - favorable) / favorableVariables
| Variable | Description | Default |
|---|---|---|
favorable | Favorable Outcomes | 3 |
total | Total Outcomes | 10 |
How It Works
How to Calculate Probability
Formula
P(event) = Favorable Outcomes / Total Outcomes
Probability ranges from 0 (impossible) to 1 (certain).
Odds
Worked Example
A bag has 10 marbles: 3 red, 7 blue. What is the probability of drawing a red marble?
- 01P(red) = 3 / 10 = 0.3
- 02As a percentage: 30%
- 03Odds in favor: 3 / 7 ≈ 0.4286
- 04Odds against: 7 / 3 ≈ 2.3333
Frequently Asked Questions
What is probability?
Probability is a measure of how likely an event is to occur. It is calculated as the number of favorable outcomes divided by the total number of possible outcomes.
What is the difference between probability and odds?
Probability is favorable/total (ranges 0 to 1). Odds are favorable/unfavorable (can be any positive number). Probability of 0.75 means odds of 3:1 in favor.
Learn More
Guide
How to Calculate Probability - Complete Guide
Learn the fundamentals of probability including basic probability, compound events, conditional probability, Bayes' theorem, and expected value with worked examples.
Ready to run the numbers?
Open Probability Calculator