# Odds Format

# Decimal Odds

The Odds API returns odds data in decimal format by default. The payout of a bet is the decimal odd multiplied by your wager.

Example

Consider team A with decimal odds 1.4, and team B with decimal odds 3.9

If you wager $100 on team A and win, you’ll receive a payout of 100 x 1.4 = $140, and profit of 140 - 100 = $40.

If you wager $100 on team B and win, you’ll receive a payout of 100 x 3.9 = $390, and profit of 390 - 100 = $290.


# Converting Decimal Odds To American Odds

To convert decimal odds to American odds, use the following formulas.

If the decimal odd is greater than or equal to 2, apply this formula:

A = (D - 1) x 100

If the decimal odd is less than 2, apply this formula:

A = 100 / (1 - D)

where D is the decimal odd and Ais the American odd.


Example

Consider team A with decimal odds 1.4, and team B with decimal odds 3.9

3.9 is above 2, so apply the first formula:

A = (3.9 - 1) x 100 = 290

1.4 is less than 2, so apply the second formula:

A = 100 / (1 - 1.4) = -250


# Get Started with The Odds API