# Middle calculator

> Enter an over at one line and an under at another. See the profit if the result lands in the middle, the cost of a miss and the break-even hit rate. 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/middle-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

## 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



A middle is an over at one line and an under at a higher line, usually at different books. If the result lands between the lines, both bets win. Over 44.5 and under 47.5 at -110 for $110 each wins $200 on 45, 46 or 47 and loses $10 on anything else, so the middle needs to land 4.76% of the time to break even.

Your bets Odds format Over bet (lower line)

Line Odds Stake ($)

Under bet (higher line)

Line Odds Stake ($)

Result

Profit if the middle hits **+$200.00**

A miss costs −$10.00 below and −$10.00 above. Break-even when the middle lands 4.76% of the time, with misses split evenly.

| Outcome | Returns | Net |
| --- | --- | --- |
| Result below 44.5 Over loses, under wins | $210.00 | −$10.00 |
| Result 45 to 47 Over wins, under wins | $420.00 | +$200.00 |
| Result above 47.5 Over wins, under loses | $210.00 | −$10.00 |
| Total staked | $220.00 |  |

Middle window

45 to 47 (3 whole numbers)

Balanced under stake

$110.00

Break-even middle rate

4.76%

## When a middle is worth it

A middle needs two venues to set different lines on the same player or game. The wider the gap and the better the prices, the less a miss costs and the more often the middle hits. Compare the break-even rate with how often you think the result lands in the window.

Player props are where lines differ most. The [line explorer](https://underdogapi.com/tools/line-explorer) shows the current Underdog line for each market, and the [line movement guide](https://underdogapi.com/underdog-line-movement-api) shows how to get an alert when a number moves.

## The formula

Middle profit = S₁ × (D₁ − 1) + S₂ × (D₂ − 1). Miss below = S₂ × (D₂ − 1) − S₁; miss above = S₁ × (D₁ − 1) − S₂. Break-even rate = −miss ÷ (middle − miss), with miss the average of the two.

## Worked example

Over 44.5 at -110 and under 47.5 at -110, $110 each. A result of 45, 46 or 47 wins both: $200 profit. Below 45 or above 47, one bet wins $100 and the other loses $110: −$10. Break-even: 10 ÷ (200 + 10) = 4.76%.

## Questions

What happens on a whole-number line?

A result exactly on a whole-number line is a push for that bet, which returns its stake. The calculator lists those results separately.

Does this work for point spreads?

Yes. Write the spread as a margin: Team A +3.5 is an under 3.5 on Team B’s winning margin, and Team B -1.5 is an over 1.5. Enter those lines.

How do I balance the stakes?

Set the under stake to over stake × over odds ÷ under odds and both misses cost the same. The calculator shows that stake.

Where do player prop lines differ most?

Pick’em lines and sportsbook prop lines are often set at different numbers for the same player and stat. The line explorer shows the current Underdog line for each market, which you can compare with a book’s number.

## Watch lines move as they happen

The Underdog API records every line move with a timestamp and streams changes as they happen, so you can spot when a number moves away from the line you hold. Free key with 100 credits a month.

[Get a free API key](https://underdogapi.com/sign-up) [Change feed](https://underdogapi.com/docs#changes)

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
