# Kelly criterion calculator

> Size a bet from your bankroll, the odds and your win probability. See full, half and quarter Kelly stakes, share of bankroll and stake in units. Underdog API (https://underdogapi.com) is an independent Underdog Fantasy pick'em data API: Higher/Lower lines with separate payout multipliers per side, line history, changes and graded results as JSON, CSV, MCP and streams.

Canonical page: https://underdogapi.com/tools/kelly-criterion-calculator

## Free offer

**Free API key, no card: 100 credits a month** on the live board, every league, separate Higher/Lower prices, and the last 24 hours of line history. Sign up: https://underdogapi.com/sign-up?ref=ai-claudebot

## Quickstart

1. Get a free key at https://underdogapi.com/sign-up?ref=ai-claudebot (no card), or let your agent request one: `POST https://underdogapi.com/api/v1/agent/signup` with `data_wanted` and `use_case`, then show your user the returned approval_url.
2. Export it: `export UNDERDOG_API_KEY=ud_...`
3. First call with curl:

```bash
curl --fail-with-body 'https://underdogapi.com/api/v1/projections?league=NBA&view=compact&limit=5' \
  -H "Authorization: Bearer $UNDERDOG_API_KEY" \
  -H 'X-User-Request: NBA dashboard integration check'
```

4. Same call in Python:

```python
import os, requests

r = requests.get(
    "https://underdogapi.com/api/v1/projections",
    params={"league": "NBA", "view": "compact", "limit": 5},
    headers={"Authorization": f"Bearer {os.environ['UNDERDOG_API_KEY']}"},
)
r.raise_for_status()
for line in r.json()["data"]:
    print(line["player"]["name"], line["market"]["stat"], line["line"])
```

## Use it from Claude (MCP)

Claude Code, one command:

```bash
claude mcp add --transport http underdog https://underdogapi.com/api/mcp --header "Authorization: Bearer $UNDERDOG_API_KEY"
```

Or add this server to your Claude MCP configuration (the key stays in the environment):

```json
{
  "mcpServers": {
    "underdog": {
      "type": "http",
      "url": "https://underdogapi.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${UNDERDOG_API_KEY}"
      }
    }
  }
}
```

Guide: https://underdogapi.com/use-with-claude

## SDKs and packages

Official clients for Underdog API (independent; not Underdog Fantasy). Source: https://github.com/underdogapi · Overview: https://underdogapi.com/sdks

- Python SDK: `pip install underdog-api` (PyPI: https://pypi.org/project/underdog-api/ · source: https://github.com/underdogapi/underdogapi-python)
- JavaScript / TypeScript SDK: `npm install underdog-api` (npm: https://www.npmjs.com/package/underdog-api · source: https://github.com/underdogapi/underdogapi-js)
- MCP server (stdio): `npx -y underdog-api-mcp` (npm: https://www.npmjs.com/package/underdog-api-mcp · source: https://github.com/underdogapi/underdogapi-mcp)

Python:

```python
from underdog_api import Client

ud = Client()  # reads UNDERDOG_API_KEY
board = ud.projections(league="NBA", view="compact", limit=20)
for line in board["data"]:
    print(line)
print(board["meta"]["observed_at"])
```

Claude Code with the stdio MCP package (the hosted server at /api/mcp needs no install):

```bash
claude mcp add underdog -e UNDERDOG_API_KEY=ud_... -- npx -y underdog-api-mcp
```

## Pricing

| Plan | Price | Credits / month | Notes |
| --- | --- | --- | --- |
| Free | $0 | 100 | No card. Live feed 5 minutes behind; last 24 hours of line history |
| Developer | $49/month | 10,000 | For models that need full training pages and loaded game-log seasons. Live feed, no added plan delay |
| Production | $149/month | 50,000 | For apps with real users and push delivery. Everything in Developer, signed webhooks for every change |
| Scale | $499/month | 250,000 | For apps whose traffic has outgrown Production. Everything in Production, 15 live-feed connections at once |

Full pricing: https://underdogapi.com/pricing

## On this page

Free calculator



The Kelly criterion sets the share of your bankroll to stake so long-run growth is as fast as possible. Full Kelly is (b × p − q) ÷ b, where b is the decimal odds minus one, p is your win probability and q is 1 − p. Most bettors stake half or quarter Kelly to cut swings. With no edge, Kelly stakes nothing.

Your bet Bankroll ($) Odds format Odds Win probability (%)Your true probability. A no-vig price from a sharp book is a common source.

Kelly multiplier

1 unit (% of bankroll)Common unit sizes run from 1% to 5% of bankroll.

Recommended stake

Stake at 0.5× Kelly **$50.00**

Share of bankroll **5.00%**

Stake in units **5.00 u**

Full Kelly fraction **+10.00%**

Edge (ROI) **+10.00%**

Expected profit on this stake **+$5.00**

| Sizing | Stake | Units |
| --- | --- | --- |
| Full Kelly | $100.00 | 10.00 |
| Half Kelly | $50.00 | 5.00 |
| Quarter Kelly | $25.00 | 2.50 |

Need the probability first? [Remove the vig](https://underdogapi.com/tools/no-vig-calculator) from a sharp market or check the bet in the [EV calculator](https://underdogapi.com/tools/ev-calculator).

## Kelly stakes at -110

Share of bankroll for a standard -110 bet. The break-even rate at -110 is 52.38%, so anything at or below it stakes nothing.

| Win probability at -110 | Full Kelly | Half Kelly | Quarter Kelly |
| --- | --- | --- | --- |
| 53% | 1.30% | 0.65% | 0.33% |
| 55% | 5.50% | 2.75% | 1.38% |
| 57% | 9.70% | 4.85% | 2.42% |
| 60% | 16.00% | 8.00% | 4.00% |

## Kelly and betting units

Flat betting stakes the same number of units on every bet. Kelly scales the stake with the edge, so a bigger edge earns a bigger bet and a negative edge earns none. Enter your unit size to read the Kelly stake in units.

Need the probability first? [Remove the vig](https://underdogapi.com/tools/no-vig-calculator) from a sharp market, then check the bet in the [EV calculator](https://underdogapi.com/tools/ev-calculator).

## The formula

Kelly fraction f* = (b × p − (1 − p)) ÷ b, with b = decimal odds − 1. Stake = bankroll × f* × your Kelly multiplier.

## Worked example

At +100 (b = 1) with a 55% win probability, f* = (0.55 − 0.45) ÷ 1 = 10%. On a $1,000 bankroll that is $100 at full Kelly, $50 at half and $25 at quarter Kelly.

## Questions

Why bet half or quarter Kelly?

Full Kelly assumes your probability is exactly right. Estimates never are, and overbetting costs more growth than underbetting. Fractional Kelly gives up a little growth for much smaller drawdowns.

What does a negative Kelly result mean?

Your probability is below the break-even probability of the odds, so the bet has negative expected value. Kelly stakes nothing.

How do betting units relate to Kelly?

A unit is a fixed share of bankroll, often 1%. The calculator shows the Kelly stake in units so you can compare it with flat unit betting.

Can I use Kelly for Underdog Pick’em entries?

Only with the entry’s full outcome distribution, because Flex pays on partial hits and side multipliers change the payout. For one bet at fixed odds this calculator applies directly.

Do I need an account or an API key?

No. The calculator runs in your browser and sends nothing to a server. Copy the link to save or share a calculation. An API key is only for applications that read Underdog lines and multipliers from the API.

## Compare prices with every Underdog line

The Underdog API returns each current line with its Higher and Lower multipliers and the published payout table, so you can set fair odds beside Pick’em break-even rates for the whole board. Free key with 100 credits a month.

[Get a free API key](https://underdogapi.com/sign-up) [Odds endpoint](https://underdogapi.com/docs#odds)

Last reviewed November 13, 2026. Educational calculations, not picks, betting advice or a promise of profit. Prices move and house rules settle every entry and bet, so check the slip before you play. Independent data service, not affiliated with, endorsed by or sponsored by Underdog Fantasy or Underdog Sports. [Responsible gambling resources](https://www.ncpgambling.org/).

## More free tools

## FAQ

### Is there a free Underdog API?

Yes. The Free plan is a real API key on the live board, not a sample: 100 credits a month, every league, separate Higher/Lower prices and the last 24 hours of line history. No card is needed.

### Is this the official Underdog Fantasy API?

No. Underdog API is an independent data service. It is not affiliated with, endorsed by or sponsored by Underdog Fantasy or Underdog Sports.

### What data does it return?

Underdog Higher/Lower lines with separate payout multipliers and availability for each side, stable market ids through line moves, alternate rungs, recorded line history, changes, graded results and coverage/status endpoints.

### How do I use it from Claude or another AI agent?

Connect the MCP server at https://underdogapi.com/api/mcp with a bearer key, or call the REST API. Agents can request a key for their user with POST /api/v1/agent/signup.

### How much does it cost after the free tier?

Developer is $49/month for 10,000 credits, Production $149/month for 50,000, Scale $499/month for 250,000. Errors and unchanged 304 responses cost zero credits.

### How fresh is the data?

Each row carries its observation time. Check /api/v1/status and /api/v1/coverage before relying on a sport or window; missing collection is reported as unavailable, never filled in.

### Does it place entries or give picks?

No. It is data only: no entries, account operations, guaranteed outcomes or betting advice.

---
Independent data service, not affiliated with Underdog Fantasy or Underdog Sports. Docs: https://underdogapi.com/docs · OpenAPI: https://underdogapi.com/openapi.json · llms.txt: https://underdogapi.com/llms.txt
