Skip to content

Baccarat Math Specification

Card Valuation

CardValue
2-9Face value (2-9)
10, J, Q, K0
A1

Hand Score

The score of a hand is calculated by summing the values of all cards in the hand and taking the last digit (modulo 10).

Score = (Sum of card values) mod 10

ExampleCalculationScore
K♥ + 7♠0 + 7 = 77
8♦ + 7♣8 + 7 = 155
Q♣ + J♥ + 5♠0 + 0 + 5 = 55

Initial Deal

Four cards are drawn from the deck after the provably fair cut:

PositionRecipient
1Player
2Banker
3Player
4Banker

Player receives cards at positions 1 & 3. Banker receives cards at positions 2 & 4.

Natural Detection

After the initial two-card deal, if either hand has a score of 8 or 9, a natural is declared. No further cards are drawn. The game ends immediately and the winner is determined.

text
IF player_score >= 8 OR banker_score >= 8:
    -> Natural -> Skip third cards -> Determine winner

Third-Card Drawing Rules

If neither hand is a natural, the third-card drawing rules are applied in this strict order.

Step 1: Player Decision

Player ScoreAction
0, 1, 2, 3, 4, 5Draw third card (position 5)
6, 7Stand

The player has no choice, this is a fixed rule.

Step 2: Banker Decision (Player Stands on 6 or 7)

When the player does not draw a third card:

Banker ScoreBanker ActionCard Position
0, 1, 2, 3, 4, 5Draw5
6, 7StandN/A

Step 3: Banker Decision (Player Drew)

When the player has drawn a third card, the banker's decision depends on two variables: the banker's own score and the value of the player's third card.

Banker ScoreBanker Draws?Condition
0, 1, 2AlwaysUnconditionally
3YesPlayer's third card value ≠ 8
3NoPlayer's third card value = 8
4YesPlayer's third card ∈
4NoPlayer's third card = 0, 1, 8, 9
5YesPlayer's third card ∈
5NoPlayer's third card = 0, 1, 2, 3, 8, 9
6YesPlayer's third card ∈
6NoPlayer's third card = 0, 1, 2, 3, 4, 5, 8, 9
7NoAlways stands

When the banker draws, the card is taken from position 6 (after the player's third card at position 5).

Winner Determination

text
IF player_final_score > banker_final_score -> PLAYER wins
IF banker_final_score > player_final_score -> BANKER wins
IF player_final_score == banker_final_score -> TIE

The winner is determined after all cards are drawn and final scores computed.

Payout Multipliers

Bet TypeMultiplierFormulaExample ($100 bet)
Player2.0×win = bet × 2.0$200
Banker1.95×win = bet × 1.95$195
Tie9.0×win = bet × 9.0$900

Tie Push Logic

When the result is a Tie, the settlement is:

text
IF winner == TIE:
    Tie bet    -> win = bet * 9.0     (pays 8:1)
    Player bet -> win = bet * 1.0     (push, bet returned)
    Banker bet -> win = bet * 1.0     (push, bet returned)

Player and Banker bets are not lost on a Tie, they are returned to the player. Only the Tie bet pays the 9.0× multiplier. This is a critical difference from games where non-winning bets are forfeited.

Configurable Parameters

ParameterDefaultRange
player_multiplier2.0≥ 1.0
banker_multiplier1.95≥ 1.0
tie_multiplier9.0≥ 1.0

All multipliers are configurable per-game-instance by the operator.