Skip to content

Build a sportsbook or embed one? What building from scratch really takes

How to build a sportsbook: the parts, the hard problems, cited time and cost ranges, and when to embed a play-for-fun sportsbook (no real money) instead.

Updated 10 min readBy The Sportsbook team

If you want to know how to build a sportsbook, the short answer is: you need an odds and results pipeline, a market model, a betslip with live acceptance, a settlement engine that can undo itself, a wallet that never moves a balance twice, limits, history and a back office. Industry guides put a custom build at 6 to 18 months and self-builds at well over a million euros. If what you actually need is a play-for-fun sportsbook on your site for your community, with free tokens and never real money, embedding one takes days instead.

Key takeaways

How to build a sportsbook: the parts

Here is the component list we'd hand any team that asks how to create a sportsbook app. Each line is a system with its own failure modes.

If you are building for real money, add payments, identity checks, player-protection tooling, licensing and a risk team on top. Those are outside this article, and whether you need them depends on licenses in each country, so take legal advice.

The hard parts nobody mentions

Most guides stop at the feature list, which is the part you can estimate. These are the parts that eat the schedule.

Corrections after settlement

Results get corrected. A goal is reassigned, a match result is amended, a player market is re-graded. When that happens after you've already settled, you have to reverse the first settlement, recover what it returned, and settle again. The player may already have staked what the first settlement returned. You need a policy for a balance that goes below zero, a way to tell every downstream system, and keys that make each generation of the settlement distinct so nothing is treated as a duplicate by mistake.

Half-won and half-lost Asian lines

Asian handicaps and totals on quarter lines split the stake: half the bet is graded on one line, half on the next. The result can be half won or half lost. Inside an accumulator, that leg contributes a partial factor to the combined odds. Get the arithmetic wrong once and your history, your balances and your reports all disagree.

Live prices that move under the player

In play, prices change every few seconds and markets suspend on dangerous attacks, penalties and VAR checks. A live bet needs an acceptance window, then a re-check against the current price and market status, then either acceptance or a clear rejection. The player sees all of this in the betslip, so the UX and the backend have to agree on every state.

Retries and idempotency

Networks fail between "debit accepted" and "response received". If your client retries and your wallet applies the debit twice, you've invented tokens or taken them away. Every balance-moving call needs an idempotency key, a unique index behind it, and the same response on repeats. Placement also needs a compensation path: if the debit went through but the bet couldn't be recorded, something has to give the stake back, exactly once.

Settlement timing and manual review

Most bets can be settled from results within minutes. Some can't: abandoned matches, disputed results, markets with unclear rules. You need a manual review queue and people who understand the rules well enough to grade them consistently.

We know this list well because we've shipped every item on it. The Sportsbook was built by people with seven years of experience building sportsbook software, and most of those years went into the rows above, not the betslip.

Time and cost to build: what published ranges say

We can't tell you how long your build will take. It depends on your team, your scope and your data source. What we can do is show what others publish, with links, so you can check them.

These sources disagree, mix currencies and describe real-money products, so treat them as a spread, not a quote. The pattern is still clear. According to Altenar, building your own costs several times more than any bought option, and every option has ongoing costs, whether that's staff, fees or a revenue share. For a deeper look at how these fees add up, see our guide to white label sportsbook cost.

Two costs the ranges tend to hide:

Buy: a licensed white label or turnkey

If you are building a real-money betting business, you will almost certainly talk to white label or turnkey providers before you write a line of code. Broadly:

We explain the differences, who holds the license and who holds the players in white label vs turnkey vs embedded sportsbooks. If real-money betting is your business, those providers are the right people to talk to. We're not one of them.

Embed: a play-for-fun sportsbook in days

There's a third route that most build-vs-buy articles skip, because it doesn't exist in the real-money world: embed a hosted sportsbook where players stake free tokens.

This fits streamers, communities, fan sites, media, game studios and any site whose users already have points or tokens. You keep your users and your login. The sportsbook runs in an iframe on your page. The integration is three steps:

On the server (your API key stays there):

Shell
curl -X POST https://api.thesportsbook.app/b2b/v1/sessions \  -H "Authorization: Bearer $SPORTSBOOK_API_KEY" \  -H "Content-Type: application/json" \  -d '{"user_ref": "viewer-42", "display_name": "Viewer 42", "locale": "en"}'

On the page:

HTML
<div data-thesportsbook data-launch-url="LAUNCH_URL_FROM_YOUR_SERVER"></div><script src="https://play.thesportsbook.app/sdk.js"></script>

Here is how the build list above maps onto what you get when you embed:

What stays on your side: your login, the page the sportsbook sits on, how players get free tokens (a starting balance, a daily refill, points for taking part), and your community's rules. Our embeddable sportsbook guide covers the whole setup, and the integration docs (opens in a new tab) have the details.

Pricing is public. At the time of writing (September 2026), our plans are:

Prices exclude VAT. Paid plans are a flat price per month or per year; we don't take a share of tokens or of what players stake.

What embedding won't give you: real-money betting, your own trading, custom domains, cash-out or a bet builder. If you need any of those, embedding is the wrong tool.

Build, buy or embed: decision table

A few questions to settle before choosing:

If embedding fits, compare the plans and prices, or read how a hosted sportsbook differs from raw data in sportsbook API vs odds API.

Frequently asked questions

How long does it take to build a sportsbook from scratch?

Industry guides give wide ranges. Bettoblock, a development agency, says a custom build typically takes 6 to 18 months. Your own timeline depends on the team, the sports and markets you cover, live betting, and whether you need real-money payments and licensing, which add their own work.

How much does sportsbook development cost?

Published estimates vary a lot. Altenar's blog puts a self-built sportsbook at €1.5m or more plus staffing, and a white label at €25k to €50k to set up. For a play-for-fun sportsbook embedded on your site, The Sportsbook starts at $0 on the Free plan (September 2026).

Is it cheaper to buy or build a sportsbook?

For most teams, buying or embedding is cheaper and faster, because odds, settlement and corrections are ongoing work, not a one-off build. Building makes sense when the sportsbook itself is your product and you have the budget and team to run it for years.

What tech stack do you need to build a sportsbook app?

Any mainstream stack can work. The hard part is the domain: an odds ingestion pipeline, a market model, a ledger with idempotent movements, a settlement engine that handles corrections, and a real-time layer for live prices. The language matters much less than getting those right.

Written by

The Sportsbook team

The people who build The Sportsbook. We have spent seven years building sportsbook software, and we write these guides from that work.

Last updated .

Start free. Pay only for what you add.

Free covers one sport, pre-match. Custom adds sports, leagues, live betting and the seamless wallet one by one. Full has everything.

Free plan · nothing to pay, no approval. For businesses and creators, 18+.