Logo

Blackjack Simulator

A simulator for the popular card game blackjack. It simulates millions of blackjack games in seconds and calculates your average profit/loss and other statistics, given the strategy you play with and the house rules you’re using. It implements the game of blackjack to a very detailed level so the results are representative of real-world results. Do realise, however, that these results are only achieved on the long-term and on the short-term your results will vary wildly. The simulator’s speed is dependent on your device’s processing power as it is run locally. Only modern browsers are supported. This project is open source and can be found on GitHub.

Settings

1. Allow surrender Late Early Never
2. Allow double-down Always 9, 10, 11 Never
3. Allow splitting Always  max Never
4. Allow hitting of split aces Yes No
5. Allow resplitting of aces Yes No
6. Allow double-down after splitting Yes No
7. Triple 7 bonus Yes No
8. Dealer's move for soft 17 Hit Stand
9. Blackjack payout 3 to 2 6 to 5
10. Shuffle after each game Yes No
11. Deck penetration  %
12. Number of decks  decks
13. Maximum amount of games  games
14. Number of threads  threads

1. Surrendering is a starting move in which the player gives up their hand and loses half of their bet. It can only be done on the initial hand and therefore not after splitting. With late surrender, the player gets to keep half of their bet only if the dealer doesn’t have a blackjack, else they lose their entire bet. With early surrender the player always gets to keep half of their bet regardless of the dealer’s cards.

2. Double-down is a move where the player doubles their initial bet and receives just one more card. It is only available on the initial hand or directly after splitting. After this move the hand is completely frozen. This option is offered at most casino's, but some only allow double-down on a hand with a value of 9, 10 or 11.

3. Splitting is a move where the player creates two new hands out of one hand consisting of two cards with the same value. The player has to put down another bet equal to the initial bet at the newly created hand. The first of two hands receives a new card and the player can play this hand just like normal. Once this 'side' is done the second hand gets a card and the same thing happens. If the new hand is a pair again, the player can decide to split again. Most casino's restrict the amount of splits to a number normally between 1 and 3. Some casino's allow unlimited splits and then the 'always' setting should be used.

4. This setting influences whether or not the player is allowed to hit or double-down after having split a pair of aces. Most casino's don't allow this.

5. This settings influences whether or not the player is allowed to split once more after having split aces and receiving another ace. Most casino's don't allow this.

6. This settings influences whether the player is allowed to double-down on a hand after having split. Some casino's don't allow this.

7. Hand out a bonus equal to the initial bet to the player if they happen to have a hand consisting of three sevens (excluding hands that have been split before).

8. The move of the dealer when they get a soft 17 hand. This differs wildly accross regions; for example in Las Vegas they almost universally hit and in Europe they almost always stand.

9. The payout the player gets when they have a blackjack. The traditional payout is 3 to 2, meaning the player wins 1.5x their bet (on top of getting back their initial bet). Some casinos offer a 6 to 5 payout, meaning the player wins just 1.2x their bet.

10. Determines whether the simulator shuffles the deck after each game instead of when the deck has reached the deck penetration threshold. Setting this to 'yes' significantly reduces the simulator's performance, as the shuffling process is quite resource intensive, especially using the maximum amount.

11. The minimum percentage of cards that have already been played for the dealer to decide to reshuffle the deck. This is basically at which percentage the 'cut card' is put.

12. The number of decks to play the game with. Most common are 4, 6 and 8 decks.

13. The limit at which the simulator decides to stop as to prevent the simulator from going on infinitely.

14. The amount of 'web worker' threads the simulator uses. The default value is half of the threads available on your device. In general, more threads results in faster simulation. Do keep in mind that more threads will slow down your device more during calculations.

Strategy

The strategy the player uses is expressed in three tables. The top row is the dealer's upcard and the side row is the player's total hand value. 'Hard' is the strategy for when you have a normal hand, 'Soft' is for when you have at least one ace which is compressible to 1 and 'Pair' is for when you have a pair. It can be edited at will, given you use the standard letter combinations. The first letter gives the preferred move and the second gives the move if the first one isn't allowed in a particular situation. H = hit, S = stand, D = double-down, P = split, R = surrender, Ph = split if double-down after splitting is allowed, else hit. The default strategy filled in here is pretty much the standard basic strategy in the industry.

Hard

Soft

Pair

Results

Starting the simulation is simply done by pressing the button below. You can let the simulation run for as long as you want, but it will stop at the set maximum amount of games in the settings. The results are also below and are updated live as the simulation goes on. The balance is relative to your starting capital given you bet 1 unit each game as a base bet. The house edge is the average percentage of your base bet you lose/win to the house per game. For example, a house edge of 1% would mean you lose 1 cent every game.

Total games played:  ...

Total simulation time:  ...

Average simulations per second:  ...

Balance:  ...

House edge:  ...

Wins:  ...

Pushes:  ...

Losses:  ...

Wins after doubling:  ...

Pushes after doubling:  ...

Losses after doubling:  ...

Blackjacks:  ...

Surrenders:  ...

Splits:  ...

Triple seven bonuses:  ...