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?
favorable = 3total = 10
- 01P(red) = 3 / 10 = 0.3
- 02As a percentage: 30%
- 03Odds in favor: 3 / 7 ≈ 0.4286
- 04Odds against: 7 / 3 ≈ 2.3333
Ready to run the numbers?
Open Probability Calculator