AI Fin Hub

Calculator

Kelly Criterion Calculator

With a 55% win rate and a 1.5 win/loss ratio, full Kelly is 25.0% of bankroll; quarter Kelly bets 6.25% a trade, and 0.6% of 500 simulated paths fall to the 50% ruin line.

On the documented defaults, computed by this tool's engine · the same answer as JSON

Fractional Kelly bet-size calculator: full/half/quarter Kelly, Monte Carlo drawdown simulation, ruin probability, per-trade cap.

01Calculator

Runs in your browser. Nothing you enter is uploaded, and no account or API key is needed.

Education, not investment advice. Past performance does not predict future results. How we check our numbers.

Inputs

Win rate

Share of trades that win.

Win / loss ratio

Average win divided by average loss: 1.5 = winners are 1.5× the size of losers.

Kelly fraction

Quarter Kelly is a common choice when win rate and payoff are estimates.

Single-trade cap

Most of the bankroll ever risked on one trade, whatever Kelly says.

Trades per path
Simulated paths
Ruin threshold

A path counts as ruined once the bankroll falls to this share of the start.

Random seed 42

Bet size

6.25%

Quarter Kelly of bankroll per trade, within the per-trade cap. Strong edge.

Raw Kelly: 25.00%. Fractional: 6.25%

Drawdown profile

Median DD

44.7%

typical

95th pct DD

62.7%

tail

Ruin rate

0.60%

bankroll < 50%

Bankroll multiple after 500 trades

5th pct

1,400×

worst 5%

Median

24,235×

typical

95th pct

285,642×

best 5%

Bankroll paths (Monte Carlo)

Median = line · 5th to 95th percentile = shaded

What this tool computes

Kelly fraction is the bet size that maximizes expected long-run log-growth of bankroll, given a known win rate and win/loss ratio. Fractional Kelly (half, quarter, eighth) reduces that size — a common practical choice because real-world win rates are estimated, not known, and full Kelly is unforgiving of overestimates.

The Monte Carlo simulator then runs independent paths of the same strategy at the capped bet size to show the distribution of outcomes, not just the expected value. Each win pays the win/loss ratio and each loss costs 1, both scaled by a random factor of 1 + 0.1 × N(0, 1) (floored at 0.1). The shaded band spans the 5th to 95th percentile of paths at each trade. The ruin rate is the share of paths that touched the ruin threshold at least once. The simulation is seeded, so the same inputs and seed always give the same result.

02Receipt

What the answer above ran on, how it is computed, where the data comes from, and a link that reopens it.

Inputs

  • fractionquarter
  • max_cap_pct0.1
  • ruin_threshold_pct0.5
  • seed42
  • sims500
  • trades500
  • win_loss_ratio1.5
  • win_rate0.55

The documented defaults. Change any input above and the tool recomputes.

Method

How the hub's tools are built and checked

Engine /engines/kelly-sizer.js, sha256 f4b47927a617. The page, the API and MCP run the same file.

Source

Your inputs

Page updated .

Permalink

aifinhub.io/kelly-sizer/

The link carries the inputs you set, so it reopens this result.

03For agents

Any agent can run this calculator by URL or MCP and get the same answer as JSON: the inputs that used defaults, the result and a line to cite. The call below follows the inputs you set above. In code, import the same engine; it runs where you import it, with no request or key.

Requestthe documented defaults
GET https://aifinhub.io/api/run/kelly-sizer
Response200 application/json · 1.4 KB
{
  "calculator": "kelly-sizer",
  "title": "Kelly Criterion Calculator",
  "site": "AI Fin Hub",
  "input": {},
  "defaults_used": {
    "fraction": "quarter",
    "max_cap_pct": 0.1,
    "ruin_threshold_pct": 0.5,
    "seed": 42,
    "sims": 500,
    "trades": 500,
    "win_loss_ratio": 1.5,
    "win_rate": 0.55
  },
  "result": {
    "rawKelly": 0.25,
    "fractionalKelly": 0.0625,
    "cappedBet": 0.0625,
    "bucket": "strong",
    "edgeLabel": "Strong edge",
    "sims": 500,
    "trades": 500,
    "finalP5": 1400.4101071832454,
    "finalMedian": 24235.437083888817,
    "finalP95": 285642.19783277286,
    "drawdownMedian": 0.44741468691488795,
    "drawdownP95": 0.6267166598947344,
    "ruinRate": 0.006
  },
  "provenance": {
    "run": "https://aifinhub.io/api/run/kelly-sizer",
    "page": "https://aifinhub.io/kelly-sizer/",
    "methodology": "https://aifinhub.io/kelly-sizer/",
    "contract": "https://aifinhub.io/contracts/kelly-sizer.json",
    "engine": "https://aifinhub.io/engines/kelly-sizer.js",
    "engine_sha256": "f4b47927a617ff5723b9632653cf087350b95eb74ebbcbfe01d280dcf5830ca6",
    "build": "7b9f824f0905a2f43f46cc5910525c4ea83a3514"
  },
  "disclaimer": "Planning estimates only — not financial, tax, or investment advice.",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "cite": "AI Fin Hub, Kelly Criterion Calculator (engine f4b47927a617), https://aifinhub.io/api/run/kelly-sizer"
}
The response for the defaults, as the run URL returns it. Provenance carries the engine hash and build.

How to use it

  1. Enter win probability p (decimal 0-1) and win/loss ratio b (avg win / avg loss). These are the only required inputs — no historical data upload needed.
  2. Pick a Kelly fraction (full / half / quarter / eighth). Quarter-Kelly is a sensible default for real-world strategies where p and b are estimated from data.
  3. Set a single-trade absolute cap (e.g., 5% of bankroll max). This bounds the worst case even if the formula recommends more.
  4. Read the Monte Carlo results, which update as you change inputs: median and 5th-percentile ending bankroll, drawdowns and ruin rate together. A high median with a high ruin rate means the strategy gambles for growth.
  5. If the ruin rate is not zero, try a smaller Kelly fraction or a lower cap. Change the trade count to see how the spread of outcomes widens over a longer horizon, and draw a new sample to check the result is not a lucky seed.

Questions people ask

Why does Kelly recommend a fraction of bankroll, not a fixed dollar amount?

Kelly's 1956 derivation maximizes the long-run expected log-growth of bankroll. Fixed dollars don't compound efficiently because winning bets aren't pressed and losing streaks don't shrink the bet size. Fractional sizing keeps geometric growth optimal; the cost is that drawdowns can be severe at full Kelly.

Should I bet full Kelly?

No, not when you estimated p and b from data. Full Kelly assumes you know the true win rate and win/loss ratio. With estimation error, full Kelly often turns into over-betting and ruinous drawdowns. Half-Kelly (0.5×) or quarter-Kelly (0.25×) is the standard real-world choice — Thorp and MacLean argue this in print.

What's the ruin rate output mean?

The share of simulated paths whose bankroll fell to the ruin threshold at least once; the default threshold is 50% of the starting bankroll. It rises with the Kelly fraction and the number of trades and falls as the edge grows. The default (quarter-Kelly, 55% wins at 1.5×, 500 trades) shows about 0.6%; the page marks a ruin rate above 5% in red, a sign the fraction is too large for the edge you estimated.

Why does the simulator use Gaussian noise on outcomes?

Real strategies don't have flat $1 wins and $b losses — there's a distribution around the average. The simulator multiplies outcomes by (1 + 0.1·N(0,1)), floored at 0.1, to inject mild variance. This gives more realistic drawdown distributions than a deterministic model. Heavy-tailed strategies (e.g., option selling) need a smaller Kelly fraction than this Gaussian-noise floor implies.

Does Kelly work for trading?

Kelly was originally formulated for repeated independent bets with known parameters — closer to blackjack than markets. Trading violates several Kelly assumptions: edges drift (regime change), trades correlate (sector exposure), and outcome distributions have fat tails. Treat Kelly as a sizing ceiling, not a target. Most professional traders run far below Kelly-optimal.

The same numbers as a table

  • Calculators Backtest Overfitting Score

    Upload a returns CSV (one column per strategy you tried) or simulate a strategy search: the probability of backtest overfitting (PBO) by CSCV and the Deflated Sharpe Ratio.

  • Calculators Risk-Adjusted Returns Calculator

    Paste a returns CSV. Sharpe, Sortino, Calmar, Omega, alpha, beta, tracking error, information ratio, max drawdown, and tail moments — plus a benchmark-relative block when you include one.

  • Calculators Efficient Frontier Calculator

    Paste a multi-asset returns CSV. See the Markowitz mean-variance frontier, the minimum-variance portfolio, the max-Sharpe (tangency) portfolio, and the per-asset weights for each highlighted point. Closed-form solution, client-side.