Skip to main content
poker-calculations · v3.0.0

Poker math, solved.

A fast, dependency-free Node.js library for No-Limit Hold’em equity, Monte Carlo simulation, pot odds, ICM, and tournament strategy.

$npm install poker-calculationslibrary: Node 18+
  • 300functions
  • 0dependencies
  • 3.3kDownloads
  • MITlicensed

30-second sample

From cards to expected value in three lines.

Compose a hero range against a board, run a fast Monte Carlo, and feed the result straight into decideAction.

Get started
// Equity vs. random villain on the flop
const poker = require('poker-calculations');

const equity = poker.simulateHandOutcome(
  ['As', 'Ks'],
  ['Qd', 'Jh', '2c'],
  50_000,
  42,
);

// → 0.71 (estimated win rate)