breakevenCallEquityFromPotOddsDisplayRatio
Convert a display pot-odds ratio R = potBeforeCall / toCall (the “2:1” number) into breakeven equity: 1 / (1 + R).
breakevenCallEquityFromPotOddsDisplayRatio(displayPotToCallRatio: number): number
Import
const poker = require('poker-calculations');
ESM (Node):
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const poker = require('poker-calculations');
When to use
Use when your UI or notes already express odds as pot : call (e.g. user entered “2:1” meaning the pot is twice the call) and you need the equity threshold without re-entering chip counts. Inverse of potOddsDisplayRatioFromBreakevenCallEquity.
How to use
const poker = require('poker-calculations');
// Villain offers 2:1 — pot before your call is twice what you must put in
const displayRatio = 2; // potBeforeCall / toCall
const need = poker.breakevenCallEquityFromPotOddsDisplayRatio(displayRatio);
console.log(need); // 1 / (1 + 2) ≈ 0.333...
// Same threshold from chips
const fromChips = poker.breakevenCallEquity(100, 50);
console.log(fromChips);
// Free call line (R = +Infinity) → 0
console.log(
poker.breakevenCallEquityFromPotOddsDisplayRatio(Number.POSITIVE_INFINITY),
);
Returns number — 1 / (1 + R) for finite non-negative R; 0 when R is +Infinity. Throws if R is invalid (negative finite, NaN, etc.).
See also
potOddsDisplayRatioFromBreakevenCallEquity · breakevenCallEquity · formatPotOddsReducedFraction