Decimal, American and fractional odds to probability
The same price can be written three ways. Europe and Australia use decimal odds, North America uses American odds, and UK racing still uses fractions. Each one hides an implied probability. Here is one base R function per format.
The three functions
from_decimal <- function(d) 1 / d from_american <- function(a) ifelse(a > 0, 100 / (a + 100), -a / (-a + 100)) from_fractional <- function(num, den) den / (num + den) from_decimal(2.50) # 0.40 from_american(150) # 0.40 from_american(-110) # 0.5238 from_fractional(5, 2) # 0.2857
| Price | Format | Implied chance | Pays per $1 staked |
|---|---|---|---|
| 2.50 | Decimal | 40.0% | $2.50 back in total |
| +150 | American | 40.0% | $1.50 profit |
| -110 | American | 52.4% | $0.91 profit |
| 5/2 | Fractional | 28.6% | $2.50 profit |
Note the trap: decimal 2.50 includes the stake, fractional 5/2 does not. A 5/2 price is decimal 3.50, not 2.50.
Why -110 on both sides is not a fair coin
A line priced -110 on each side implies 52.4% twice, or 104.8% in total. The 4.8 points over 100 is the overround, the bookmaker's built-in cut. Chapter 1 of the free online book R for Betting-Market Data shows how that turns into a margin of about 4.5 per cent, and how to get fair odds back out: chapter 1, prices and probabilities.
How big that cut is across whole markets, day by day, is measured in the open daily margin index, with the method set out in the bookmaker margins study.
Text and code CC BY 4.0, Bet Better. A maths example, not betting advice. 18+. Gambling help in Australia: 1800 858 858.
The same sums work on player props: our NBA player prop picks list the chance and the best price for each one.
Put the formulas to work on today's games: our best bets for today list the price, the chance and what $10 returns.