Kalshi and Polymarket Odds: How to Convert Contract Prices

Turn Kalshi and Polymarket contract prices into probabilities, American and decimal odds, adjust for fees and liquidity, and map contracts onto sportsbook markets in code.

A Kalshi or Polymarket contract and a sportsbook moneyline describe the same thing in different units. The contract trades in cents and pays a dollar if the outcome happens; the sportsbook quotes American odds with its margin built in. If you want Kalshi and Polymarket odds on the same screen, in the same model or in the same database table as sportsbook lines, you need a conversion layer, and that layer has more edge cases than the one-line formula suggests.

This post is the engineering view: the math for converting contract prices to odds and where it loses precision, how to fold fees in without hard-coding anyone's fee schedule, what a liquidity number does and does not tell you, how contracts map onto sportsbook market keys, and a working Node.js pipeline. For the conceptual comparison of the two kinds of venue, read betting exchanges vs sportsbooks first; this post assumes it and does not repeat it.

Kalshi and Polymarket odds from contract prices

A binary contract that settles at $1 and trades at price p implies a probability of p. Every other format follows from that:

probability = p
decimal     = 1 / p
American    = +100 * (1 - p) / p     if p < 0.5
            = -100 * p / (1 - p)     if p > 0.5
            = +100                   if p = 0.5

A few reference points, chosen to show the full range of the price scale:

Contract priceProbabilityDecimalAmerican
$0.1212%8.333+733
$0.3434%2.941+194
$0.4747%2.128+113
$0.5858%1.724-138
$0.7171%1.408-245
$0.9191%1.099-1011

If any of the formats are unfamiliar, the odds formats guide covers them, and the glossary has short entries for implied probability, American odds and decimal odds.

The tick size problem

Contracts trade on a fixed price grid, most commonly one cent; check each venue and market for its tick size. A one-cent grid is a fine one in the middle of the scale and a coarse one at the edges, and it matters when you compare a contract against a sportsbook price that moves in smaller steps.

MoveAmericanChange in decimal return
$0.10 → $0.11+900 → +80910.0%
$0.50 → $0.51+100 → -1042.0%
$0.90 → $0.91-900 → -10111.1%
$0.95 → $0.96-1900 → -24001.1%

Two consequences for your code. A one-tick gap on a longshot is a large difference in return, so "one cent apart" is not "the same price". And American odds explode near the edges: one tick at 95 cents moves the American number by 500. Store probabilities or decimal odds as the canonical representation and render American only for display.

Normalized prices are not exactly cents

PreciseAPI normalizes every source to one internal price representation and converts on the way out, so with format=probability a 42-cent contract can come back as 0.4202 rather than 0.42. The difference is rounding, not a different market. If you need to recover the tick, round Kalshi and Polymarket probability prices to the venue's tick size; do not round sportsbook rows, which have no tick grid.

Two sides, one overround

A sportsbook posts both sides of a market. A contract exchange has a buy price on each side, and the two buy prices sum to slightly more than $1. That sum plays the same role as a sportsbook's overround. If a "Team A wins" contract costs $0.58 to buy and the opposite side costs $0.45, the pair costs $1.03 and settles at exactly $1.00:

overround = 0.58 + 0.45 - 1 = 3.0%

You can de-vig that pair the same way you de-vig a sportsbook market, by hand or with the no vig calculator. The multiplicative method gives Team A 0.58 / 1.03 = 0.5631. The no-vig fair odds guide covers the alternatives; for near-even contracts every method lands in roughly the same place.

PreciseAPI returns both outcomes of a contract market as ordinary outcomes, so the overround is just the sum of price values across outcomes when you request format=probability. That is also the first data-quality check worth running: a pair that sums to well under 1.00 is usually stale on one side, not a real market.

Folding in fees without hard-coding them

Sportsbooks build their margin into the price. Kalshi, Polymarket and other contract exchanges usually quote a tighter price and charge fees on top. Fee rules differ between venues, can differ between order types and market types, and change over time. PreciseAPI prices reflect the market, not any account's trading costs, so fees are your code's responsibility.

The safest design is to make the fee a function you inject, not a constant you bury in a formula:

// fee(price, contracts) returns the total fee in dollars for buying `contracts` at `price`.
// Implement it from the venue's current published schedule. The two below are hypothetical shapes.
const flatFee = (cents) => (price, contracts) => (cents / 100) * contracts;
const proportionalFee = (rate) => (price, contracts) => rate * contracts * price * (1 - price);

function effectivePrice(price, contracts, fee) {
  return price + fee(price, contracts) / contracts;
}

Different fee shapes distort different parts of the price scale, which is why a single "add one cent" adjustment is not enough if you cover several venues. Here is the same set of contracts under two hypothetical structures: a flat one cent per contract, and a fee proportional to p × (1 - p) with a made-up rate of 0.05.

QuotedFlat 1¢: effectiveFlat 1¢: AmericanProportional: effectiveProportional: American
$0.12$0.1300+669$0.1253+698
$0.34$0.3500+186$0.3512+185
$0.58$0.5900-144$0.5922-145
$0.91$0.9200-1150$0.9141-1064

A flat fee costs the most in return terms on longshots, where one cent is a large share of the price; a proportional fee is largest in cents near 50 cents and fades toward the edges. Neither table describes a real venue. Plug in the current schedule, and remember details such as rounding fees up to the next cent per order, which makes the per-contract cost higher on small orders.

Apply fees before every cross-venue comparison. With the proportional example, the 3.0% overround pair above costs about $1.055 all-in, which is wider than a -110 / -110 sportsbook market at 4.76%. A tighter quote is not automatically a cheaper market.

Liquidity: what the number means

Every exchange outcome in a PreciseAPI response, from contract exchanges and betting exchanges alike, carries a liquidity field: the size available at the quoted price, in USD. It answers one question, how much could trade at this price, and it is the right filter for deciding whether a price is information or noise.

What it does not give you is the rest of the order book. If a model or screen evaluates an order larger than liquidity, the remainder would fill at worse prices that the field does not describe. Practical rules:

Mapping contracts onto sportsbook markets

The hard part of using Kalshi and Polymarket odds is rarely the arithmetic. It is knowing which sportsbook market a contract corresponds to. In PreciseAPI that mapping is done for you: Kalshi (kalshi), Polymarket (polymarket) and Polymarket US (polymarket_us) are sources of type: "exchange", attached to the same event ids and using the same market keys and outcome sides as every sportsbook. For Kalshi and Polymarket, that means game-winner contracts under moneyline and over/under contracts under total. Player props come from sportsbooks and DFS apps, not from these venues.

Even with shared ids, check these before treating two prices as the same market:

SituationWhat to check
Two-way winner contract"No" on Team A equals Team B only if the contract has no other way to settle. Read the rules on ties, postponements and overtime.
Soccer winner contract"No" on the home team covers both away and draw. It is not the away side of a three-way moneyline. Compare all three outcomes.
TotalsMatch on the outcome point. Over 44.5 and over 45.5 are different markets.
Polymarket vs Polymarket USSeparate order books, separate source ids. Treat them as two venues.
FuturesSettlement sources and dates can differ from a sportsbook's outright market.

/v1/best-lines groups prices by market key, period and line before choosing the best one, which handles the totals case. It compares quoted prices, so a contract exchange price it reports as best has not had fees applied. Post-process with your fee function before displaying it.

A working pipeline in Node.js

This script pulls NFL moneylines from Kalshi, Polymarket and a sharp sportsbook in probability format, filters thin exchange prices, applies an injected fee function and prints each venue's all-in price next to a de-vigged sportsbook reference.

const API = 'https://api.preciseapi.com/v1';
const VENUES = ['kalshi', 'polymarket'];
const REFERENCE = 'pinnacle';
const MIN_LIQUIDITY = 500; // USD at the quoted price
const CONTRACTS = 100;

// Hypothetical fee function. Replace with each venue's current schedule.
const fees = {
  kalshi: (p, n) => 0.05 * n * p * (1 - p),
  polymarket: (p, n) => 0.01 * n,
};

const toAmerican = (p) => (p === 0.5 ? 100 : p > 0.5 ? -100 * p / (1 - p) : 100 * (1 - p) / p);
const devig = (ps) => {
  const s = ps.reduce((a, b) => a + b, 0);
  return ps.map((p) => p / s);
};

const url = `${API}/odds?league=nfl&markets=moneyline&format=probability&books=${[...VENUES, REFERENCE].join(',')}`;
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.PRECISEAPI_KEY}` } });
if (!res.ok) throw new Error((await res.json()).error.message);
const { data } = await res.json();

for (const event of data) {
  const byBook = Object.fromEntries(event.bookmakers.map((b) => [b.id, b.markets.find((m) => m.key === 'moneyline')]));
  const ref = byBook[REFERENCE];
  if (!ref) continue;
  const fair = devig(ref.outcomes.map((o) => o.price));

  console.log(`${event.away.abbr} @ ${event.home.abbr}`);
  for (const venue of VENUES) {
    const m = byBook[venue];
    if (!m) continue;
    m.outcomes.forEach((o, i) => {
      if (o.side !== ref.outcomes[i]?.side) return; // align by side, not position alone
      if ((o.liquidity ?? 0) < MIN_LIQUIDITY) return;
      const quoted = Math.round(o.price * 100) / 100; // recover the tick (assumes a one-cent grid)
      const fee = fees[venue];
      const allIn = quoted + fee(quoted, CONTRACTS) / CONTRACTS;
      const gapPts = ((fair[i] - allIn) * 100).toFixed(2);
      console.log(
        `  ${venue.padEnd(10)} ${o.name.padEnd(12)} quoted ${quoted.toFixed(2)} all-in ${allIn.toFixed(4)}`,
        `(${Math.round(toAmerican(allIn))}) ref ${fair[i].toFixed(4)} gap ${gapPts} pts liq $${o.liquidity}`,
      );
    });
  }
}

The output is descriptive: how each venue's all-in price compares with a de-vigged reference at one moment. A gap can reflect stale data, a fee assumption that is wrong for your account, different settlement terms, or simply that the reference itself is an estimate. Prices move and fills are not certain, so treat it as a data view, not a recommendation.

Making it real time

Polling /v1/odds costs 2 credits per call. The WebSocket stream (on Syndicate) pushes the same market shape, liquidity included, as deltas. When a venue stops reporting a market, PreciseAPI marks it suspended and omits it unless you pass include_suspended=true, so a frozen contract price does not look like a live price gap. For trends in Kalshi and Polymarket odds, /v1/history accepts book=kalshi or book=polymarket on full-game moneylines and totals.

Storing contract data alongside sportsbook data

Treat exchanges as first-class sources, with Kalshi odds data and Polymarket odds data in the same table as sportsbook rows: event id, outcome id (the same outcome at the same line shares an id across every source), source id and type, a canonical probability price, liquidity (null for sportsbooks) and a capture timestamp. Store quoted prices and compute all-in prices at read time with a versioned fee function. Fee schedules change, and if you bake fees into stored prices you cannot reprocess history when they do.

To see which leagues each venue currently covers, call GET /v1/sportsbooks?type=exchange (free) or browse the Kalshi, Polymarket and Polymarket US source pages. The exchange odds API page summarizes the feed, and plan limits are on pricing.

Frequently asked questions

How do I convert a Kalshi or Polymarket price to American odds?

Treat the price as a probability p. Below 50 cents, American odds are +100 × (1 - p) / p; above 50 cents, -100 × p / (1 - p); exactly 50 cents is +100. A 34-cent contract is about +194 and a 71-cent contract about -245. PreciseAPI does this server-side when you pass format=american.

Why does a probability price come back as 0.4202 instead of 0.42?

PreciseAPI normalizes every source to one internal representation and converts on output, so probability prices can carry a small rounding difference. Round Kalshi and Polymarket probabilities to the venue's tick size, commonly one cent, if you need the original quote.

Do PreciseAPI prices include Kalshi or Polymarket fees?

No. Prices reflect the market. Fees depend on each venue's current schedule and sometimes on the order, so apply them in your own code, ideally through a fee function you can update and version.

What does the liquidity field represent?

It is the size available at the quoted price, in USD, on every exchange outcome, whether the source is a contract exchange or a betting exchange. It tells you how much could trade at that price, not what the rest of the order book looks like.

Can I compare a Kalshi total with a sportsbook total?

Yes, if the point values match. A contract on over 44.5 is a different market from a sportsbook's over 45.5. Match on the point, or use /v1/best-lines, which groups by line before comparing, and then apply fees.

Keep reading