Free tool
Odds converter
An odds converter for the three formats you will meet: decimal, fractional and American, plus the implied probability behind each price. Type in any box and the others follow; below it, take the bookmaker's margin out of a market.
Convert a price
A 2.50 price returns 25.00 for a 10 stake (15.00 profit) and implies a 40.00% chance.
Margin and fair odds
Bookmaker margin (overround): 4.81%. The fair prices share that margin out in proportion to each outcome's implied probability.
Three ways to write one price
Decimal odds (2.50) are the total return per unit staked, stake included: 10 at 2.50 comes back as 25. They are the default in Europe and in most data feeds, ours included, because they convert cleanly and add up across markets.
Fractional odds (6/4) are the profit per unit staked: 6 won for every 4 risked. Add one to the fraction and you have the decimal price, so 6/4 is 1 + 1.5 = 2.50. The converter writes fractions in lowest terms (3/2); bookmakers keep some traditional forms such as 6/4 or 11/10.
American odds split at 100. A positive number (+150) is the profit on a 100 stake; a negative one (−200) is the stake needed to win 100. So +150 is 2.50 in decimal and −200 is 1.50.
| From | To decimal |
|---|---|
| Fractional a/b | 1 + a ÷ b |
| American +A | 1 + A ÷ 100 |
| American −A | 1 + 100 ÷ A |
| Implied probability p | 1 ÷ p |
Implied probability and the margin
The implied probability of a price is one over its decimal odds: 2.50 implies 40%. Add up the implied probabilities of every outcome in a market and you get more than 100%. The excess is the bookmaker's margin, also called the overround or vig. In the default example above, 2.10, 3.40 and 3.60 add up to about 104.8%, a margin of 4.8%.
Dividing each implied probability by that total gives a fair book that sums to exactly 100%, and one over each fair probability gives the fair price. This proportional method is the simplest; others shift more of the margin onto long shots, so fair prices from different methods can differ by a few hundredths.
The same arithmetic in code
// Any format to decimal odds
const fromFractional = (a, b) => 1 + a / b; // 6/4 -> 2.5
const fromAmerican = (x) => (x > 0 ? 1 + x / 100 : 1 + 100 / -x); // -200 -> 1.5
const implied = (d) => 1 / d; // 2.5 -> 0.4
// Margin and fair prices of one market
function fairPrices(prices) {
const book = prices.reduce((sum, d) => sum + 1 / d, 0);
return { margin: book - 1, fair: prices.map((d) => d * book) };
}
fairPrices([2.10, 3.40, 3.60]); // margin ≈ 0.048def to_decimal(american: float) -> float:
return 1 + american / 100 if american > 0 else 1 + 100 / -american
def fair_prices(prices: list[float]) -> tuple[float, list[float]]:
book = sum(1 / d for d in prices)
return book - 1, [d * book for d in prices]
margin, fair = fair_prices([2.10, 3.40, 3.60]) # margin ≈ 0.048The betting odds API returns every price in both decimal and fractional form, with the opening price beside the current one, so only the American format is left for your code to derive: GET /v2/fixtures/{id}/odds for one match, GET /v2/odds for a whole day of a sport.
Questions
Odds conversion, answered
Anything else? The full FAQ covers quota, plans and the data in general.
How do I convert American odds to decimal?
For a positive number, divide it by 100 and add 1: +150 becomes 2.50. For a negative number, divide 100 by it (without the sign) and add 1: −200 becomes 1.50.
How do I convert fractional odds to decimal?
Divide the first number by the second and add 1: 6/4 is 1.5 + 1 = 2.50, and evens (1/1) is 2.00.
What does an implied probability of 40% mean?
It is the chance the price stands for once the stake is counted: 1 divided by the decimal odds, so 2.50 stands for 40%. Because of the margin, the implied probabilities of all outcomes add up to more than 100%.
Which odds format should an app store?
Decimal. It converts to every other format, it adds and compares directly, and it is what most odds feeds deliver. Convert to fractional or American only when you show the price to a reader who expects it.
Odds for every match, in decimal.
Pre-match and live prices by fixture or by day, on the Pro plan. Every other plan starts free.