Syntax Reference
Operators
| Operator | Name | Meaning | Precedence |
|---|
, | Union | OR — combine ranges | Lowest |
: | Intersection | AND — both must match | Medium |
! | Difference | NOT — exclude combos | Medium |
() | Grouping | Override precedence | Highest |
Evaluation order: Parentheses first, then : and ! left-to-right, then , last.
AA,KK:xxyy = AA OR (KK AND double-suited)
(AA,KK):xxyy = (AA OR KK) AND double-suited
TT+!AA = TT through KK (excluding AA)
AA!AAA = Exactly two aces (not three+)
Ranks
A K Q J T 9 8 7 6 5 4 3 2
Rank Variables
| Variable | Convention | Example |
|---|
R | First rank | RR = any pair |
O | Second rank | RROO = two different pairs |
N | Third rank | RRON = pair + two different cards |
P | Fourth rank | For 4+ card patterns |
Rank variables do NOT bind to explicit ranks. AARR = aces plus another pair, not quad aces.
Rank Ranges
| Syntax | Meaning |
|---|
A-T | Ace through Ten = [A,K,Q,J,T] |
9-5 | Nine through Five = [9,8,7,6,5] |
[A,K,Q,J] | Explicit rank list |
[A,2,3,4,5] | Wheel cards (use list, not A-5) |
Aces are always HIGH in ranges. A-5 means A through 5 going high-to-low (all 10 ranks), not a wheel. Use [A,2,3,4,5] for wheel cards.
Rank Modifiers
| Syntax | Meaning | Example |
|---|
+ | This hand or better | TT+ = TT through AA |
- | Range (through) | AA-TT = AA, KK, QQ, JJ, TT |
Suits
| Suit | Letter |
|---|
| Spades | s |
| Hearts | h |
| Diamonds | d |
| Clubs | c |
Suit Variables
| Variable | Meaning |
|---|
x | First suit variable |
y | Second suit variable |
z | Third suit variable |
w | Fourth suit variable |
Suit variables do NOT bind to explicit suits. ssxx = two spades + two of another suit, not four spades. A suit letter belongs to the rank just before it, in every game. AKs = an ace with the king of spades, not ace-king suited (write AK$s or AxKx for that). AAxx = aces where one ace is suited with another card. For aces with any other cards write AA or AA**.
Suited/Offsuit Patterns
| Pattern | Meaning | Example |
|---|
xx | Suited (two cards same suit) | AxKx = AK suited |
xy | Offsuit (different suits) | AxKy = AK offsuit |
xxyy | Double-suited | AxAyKxKy |
wxyz | Rainbow (all four suits) | Four different suits |
Suit Macros
| Macro | Meaning |
|---|
$s | Suited: AK$s, AT$s+, (AK,AQ)$s; on its own, same as xx |
$o | Offsuit: AK$o, (AK,AQ)$o; on its own, same as xy |
$ds | Double-suited (Omaha) |
$ss | Single-suited (Omaha) |
$np | No pair (Omaha) |
Percentage Ranges
| Syntax | Meaning |
|---|
10% | Top 10% of hands (full-ring ranking; 6-card Omaha uses this calculator's own six-handed ranking) |
5%-15% | Hands ranked between 5% and 15% (either order) |
15%6h | Top 15% by the six-handed ranking (not available in 6-card Omaha) |
5%-15%6h | A range by the six-handed ranking |
A percentage takes whole hand classes and never part of one, as in ProPokerTools: 15% is every class that fits within 15% of all hands, so the count can be a few hands under an exact 15%.
Combining with Other Ranges
AA,10% AA OR top 10%
xx:15% Suited hands in top 15%
TT+:20% Pairs TT+ that are also in top 20%
Hold'em
| Syntax | Meaning |
|---|
AsAh | Exact hand: ace of spades, ace of hearts |
AA | Pocket aces (6 combos) |
AK | All AK (16 combos) |
AK$s or AxKx | Ace-king suited (4 combos) |
AK$o or AxKy | Ace-king offsuit (12 combos) |
AKs | An ace with the king of spades (4 combos) |
AhK | The ace of hearts with any king (4 combos) |
TT+ | Tens or better (TT through AA) |
55-99 | Pair range: fives through nines |
A5-A2 | Ace-five through ace-deuce |
[A-J][2-5] | Rank lists: an ace to jack with a two to five |
AA,KK,QQ | Union: aces OR kings OR queens |
TT+!AA | TT through KK (excluding aces) |
AA@50,KK | Aces half as often as kings |
AT$s+ | Suited ace-ten, ace-jack, ace-queen, ace-king |
JT$s-54$s | Suited connectors, jack-ten down to five-four |
AhKx | Ace of hearts with a king of another suit |
* | Any random hand |
A suit letter names the suit of the card it follows. The older shorthand AKs (suited) and AKo (offsuit) is not used here: AKs means the king of spades, and AKo is refused. Ranges you saved before this changed were converted for you.
Omaha
Ranges are implicitly topped off with wildcards. AA equals AA** (aces with any two other cards).
| Syntax | Meaning |
|---|
AA | At least two aces + any other cards |
AARR | Aces plus another pair |
AA$ds | Aces, double-suited |
AA$ss | Aces, single-suited |
wxyz | Rainbow (all four suits) |
15%$np | Top 15% with no pair |
(AA,KK):xxyy | Aces or Kings AND double-suited |
AA!AAA | Exactly two aces (not three+) |
$0G | 0-gap rundown (e.g. 5678, 789T) |
$1G | 1-gap rundown (e.g. 5679) |
$2G | 2-gap rundown: one two-rank gap (e.g. 567T, 589T) |
$FI30 | ProPokerTools' first-in (opening) range of 30%. Sizes: 12, 15, 20, 25, 30, 40, 50. 4-card Omaha Hi only |
$3B10I / $3B10O | ProPokerTools' 10% three-betting range, in / out of position. Sizes: 2, 4, 6, 8, 10, 12, 15. 4-card Omaha Hi only |
$4B4 | ProPokerTools' 4% four-betting range. Sizes: 2, 3, 4, 5, 6. 4-card Omaha Hi only |
AA,KK,QQ | Union: any of these pairs |
AAxx | Aces with a suited ace |
AA@50,KK | Aces half as often as kings |
Stud
Stud uses pipe (|) notation to separate hole cards from upcards and later streets.
Basic Syntax
hole hole | upcard Third street (3 cards)
hole hole | up up up Fifth street (5 cards)
hole hole | up up up up | down Seventh street (7 cards)
Examples
| Syntax | Meaning |
|---|
* * | Ks | Any two down, king of spades showing |
AA-TT | B | Big pair in hole, broadway up |
(B B | Kh):(hh hh | Kh) | Two broadway cards down, both hearts, king of hearts showing |
[A,K] [Q,J] | Kh | Rank lists in hole cards |
AA | Kh@50, QQ | Kh | Aces half as often as queens, king showing |
AA, KK | Kh | Aces or kings in the hole, king showing |
* | A completely random hand |
Stud Rank Macros
| Macro | Cards | Purpose |
|---|
B | A, K, Q, J | Big cards |
M | T, 9, 8, 7 | Middle cards |
Z | 6, 5, 4, 3, 2 | Small cards |
L | A, 2, 3, 4, 5, 6, 7, 8 | Low-qualifying cards |
N | K, Q, J, T, 9 | Non-low cards |
W | A, 2, 3, 4, 5 | Wheel cards |
Omaha Hi/Lo
Same syntax as Omaha, with emphasis on low-card patterns for the low half of the pot.
| Syntax | Meaning |
|---|
A2** | Ace-deuce for low draw |
A23* | Wheel draw (three wheel cards) |
[A,2,3,4,5]*** | Any wheel card + three others |
A2:xxyy | Ace-deuce double-suited |
Board Notation
| Syntax | Meaning |
|---|
AhKs2c | Flop: A hearts, K spades, 2 clubs |
AhKs2c5d | Turn: flop + 5 diamonds |
AhKs2c5d9h | River: complete board |
Shorthand: type just rank letters (e.g. AK2) and the calculator will auto-assign suits. The order of the board cards does not change the result.
Weighting
Append @ followed by a percentage to weight part of a range. Those hands are then dealt that much less often than the rest of the range; no hands are removed. A weight on a whole range by itself changes nothing, because every hand is scaled alike.
| Syntax | Meaning |
|---|
AA@50,KK | Aces at half frequency, kings at full |
QQ+,AK$s@75,AK$o@25 | AK suited three times as often as each AK offsuit combo |
AA | Kh@50, QQ | Kh | Stud: aces at half the frequency of queens |
Custom Macros
Save a range with a name using the save icon next to any hand input. Reference it later with $name in any hand field.
Save "TT+,AK,AQ$s" as "premium"
Then use $premium in any hand input
Combine: $premium:xx (premium AND suited)
$premium!AA (premium without aces)Quick Reference Card
OPERATORS: , OR (union)
: AND (intersection)
! NOT (difference)
() Grouping
@ Weighting (e.g. AA@50)
SUITS: s h d c (specific suits)
x y z w (suit variables)
$s $o (suited / offsuit)
$ds $ss (double / single suited)
RANKS: A K Q J T 9 8 7 6 5 4 3 2
R O N P (rank variables)
* (wildcard)
RANGES: + (or better: TT+ = TT-AA)
- (through: AA-TT)
% (percentage: 10%)
STUD MACROS: B Big (A,K,Q,J)
M Middle (T,9,8,7)
Z Small (6,5,4,3,2)
L Low (A,2,3,4,5,6,7,8)
W Wheel (A,2,3,4,5)
STUD SYNTAX: hole hole | upcard [| more streets]