markets
What is an arbitrage in sports betting? The formula and real rows
A sports betting arbitrage is a set of prices at different books, one for each outcome of a market, whose implied probabilities add up to less than 100%. With 2.10 on one side and 2.05 on the other, the sum is 96.40% and the margin is 3.60%. This article gives the formula, a worked example and real rows from the API.
What is the arbitrage formula?
total = sum of 1 / decimal, one price per outcome
margin = 1 - total (above 0 when total is below 1)
stake share = (1 / decimal) / total
return = amount staked / totalThe stake share splits an amount so that every outcome returns the same. When the total is 1 or more there is no arbitrage, which is the normal state of a market: inside one book the total is normally above 1, because that excess is the hold of the market.
What does a worked example look like?
$100.00 split across two prices at two books:
| Outcome | Decimal | 1 / decimal | Stake | Return if it wins |
|---|---|---|---|---|
| Side A, book 1 | 2.10 | 0.4762 | $49.40 | $103.73 |
| Side B, book 2 | 2.05 | 0.4878 | $50.60 | $103.73 |
| Total | 0.9640 | $100.00 | $103.73 |
Both results return $103.73 on $100.00, 3.73% more than the amount staked. The arbitrage calculator does the same for 2 or 3 prices.
What do real rows look like?
GET /v1/arbs returns the markets where the top prices across books add up to less than 100%. This script asks for one league and checks the margin of the last three rows of the list by hand. It needs Node 18 or later and no packages.
// arbs.mjs: rows of GET /v1/arbs for one league, with the margin checked by hand. Node 18 or later.
// Usage: PRICEDODDS_API_KEY=... node arbs.mjs
const BASE = "https://api.pricedodds.com/v1";
const auth = { headers: { Authorization: `Bearer ${process.env.PRICEDODDS_API_KEY}` } };
const res = await (await fetch(`${BASE}/arbs?league=nfl&min_margin=0.005`, auth)).json();
console.log("rows:", res.data.length, "filters:", JSON.stringify(res.filters));
for (const row of res.data.slice(-3)) {
// margin = 1 - sum of 1/decimal over the legs
const sum = row.legs.reduce((total, leg) => total + 1 / leg.decimal, 0);
console.log(row.matchup, "|", row.market, row.period, row.player?.name ?? "", "|", row.status,
"| margin", row.margin, "| by hand", (1 - sum).toFixed(4));
for (const leg of row.legs) console.log(" ", leg.side, leg.line ?? "", leg.book, leg.decimal, "stake share", leg.stake_share);
}Run it with PRICEDODDS_API_KEY=... node arbs.mjs.
Our run on November 24, 2026, 00:38 UTC, as an example and not a current price:
rows: 50 filters: {"min_margin":0.005,"max_margin":0.1,"above_max_margin":17}
Cincinnati Bengals @ Washington Commanders | spread 1h | scheduled | margin 0.0071 | by hand 0.0071
home 3.5 fanduel 2.05 stake share 0.4913
away -3.5 prophetx 1.98 stake share 0.5087
Cincinnati Bengals @ Washington Commanders | player_anytime_td game Jack Endries | scheduled | margin 0.0071 | by hand 0.0071
yes polymarket 10 stake share 0.1007
no novig 1.12 stake share 0.8993
New England Patriots @ Los Angeles Chargers | spread game | scheduled | margin 0.0071 | by hand 0.0071
home 7 betmgm 1.333 stake share 0.7555
away -7 bet365 4.12 stake share 0.2445Three things to read in it. The margin of each row equals 1 minus the sum of 1 / decimal of its legs, which the script recomputes. Each leg says the book, the price and the stake_share from the formula above. And the filters object says what was left out: this call returned 50 rows and hid 17 more whose margin was above 10%.
Why does the API hide the largest margins?
Because a very large margin is usually a wrong or stale price, not two books that disagree. max_margin defaults to 0.10, and the rows above it are counted in filters.above_max_margin. The other parameters are league, sport, books, markets, status and min_margin, which defaults to 0.
What are the limits of an arbitrage?
The sum is arithmetic on two prices read at one moment. Prices move in seconds, and one of the two can be gone before both are placed. Books settle the same market by different rules, for example on overtime or on a player who does not play, so two prices that look like opposite sides are not always opposite. Books also limit stakes and void bets on clear errors. A row from the endpoint is a discrepancy to check, not a result. Nothing here is betting advice.
Where do I start?
The step-by-step version in code is in the Python arbitrage tutorial, the fields are in the docs and the books are on the coverage page. Every plan starts with a 3-day free trial with a $1 card verification that is refunded immediately. The plan you pick at signup is charged from day 4 unless you cancel before the trial ends. See pricing or create an account.
Splitting a stake so every outcome returns the same amount is called dutching; the dutching calculator does the split. Free bets are often hedged the same way as an arbitrage; the free bet calculator works out the stake on the other side and the amount kept. A cash-out offer can be checked before you take it; the cash out calculator gives the fair value of the open bet and how far the offer is below it.