Blackjack Strategist

Select your cards and the dealer's up-card. The engine calculates optimal basic strategy and expected value for every possible action.

Explore blackjack basic strategy, expected value, and card-counting logic through a mathematical lens. This tool is educational, it illustrates decision theory and long-run expectation, not gambling advice.

Game Rules
Number of Decks

Multi-deck, standard casino rules.

Dealer hits soft 17
Double after split
Surrender allowed
Dealer's Up Card
Your Hand: Click Cards to Build Hand
Strategy Engine
♠

Select the dealer's up card and at least 2 player cards to compute optimal strategy and expected value.

How It Works

This engine calculates Expected Value (EV) for every action: the average profit/loss per unit bet over many hands.

A positive EV means the action is favourable. The engine uses full basic strategy adjusted for the rules you set above.

Changing deck count, soft 17, and double after split all affect the EV calculations. Try toggling them to see the difference.

Frequently Asked Questions

What is basic strategy in blackjack? ▾

Basic strategy is the mathematically optimal way to play every possible hand combination in blackjack. It is derived by calculating the expected value of every action (hit, stand, double, split) for every player hand against every dealer upcard. Following basic strategy reduces the house edge to approximately 0.5%.

What is Hi-Lo card counting? ▾

Hi-Lo is the most widely used card counting system. Cards 2–6 are counted as +1 (good for the player when removed), cards 7–9 are 0, and cards 10–Ace are -1. A high positive count means more high cards remain in the shoe, which favours the player. This is the system the MIT Blackjack Team used.

How does deck count affect the house edge? ▾

Fewer decks give a slightly lower house edge. A single-deck game with good rules has a house edge of around 0.17%, while an 8-deck shoe game with identical rules sits around 0.65%. Card counting is also more effective with fewer decks.

Should I always follow basic strategy? ▾

Basic strategy is the optimal play assuming no knowledge of the remaining cards. Card counters deviate from basic strategy when the count suggests the composition of the remaining deck makes a different action more profitable, these are called "indices" or "illustrious 18" deviations.

Related Reading

More Tools

Learning guide

The mathematics of blackjack

Why blackjack is the one casino game where decisions change the odds, how basic strategy was discovered, and what card counting really does.

1. A game with memory

Roulette spins and dice rolls are independent: the past does not affect the future. Blackjack is different. Cards that have been dealt are gone until the shuffle, so the composition of the remaining deck changes the probabilities of every future hand. This single fact makes blackjack the most studied casino game in mathematics.

2. Basic strategy: the optimal decision for every hand

For each combination of your hand and the dealer's visible card, there is one action (hit, stand, double, split or surrender) with the highest expected value. The full table of those actions is called basic strategy. In 1956, four US Army engineers, Baldwin, Cantey, Maisel and McDermott, worked it out using desk calculators and published it in the Journal of the American Statistical Association. Later computer simulations confirmed their table was almost exactly right.

With typical rules, basic strategy lowers the house edge to roughly half a percent. A player who plays by hunch typically faces an edge several times larger.

3. Reading the dealer's card

Many basic strategy decisions follow from one idea: how likely is the dealer to bust? The dealer must keep hitting until reaching 17. When the dealer shows a 5 or 6, the dealer busts roughly 42% of the time, so you often stand on weak totals like 13 and let the dealer take the risk. When the dealer shows a 10 or an ace, the dealer busts far less often, so you need to improve your own hand.

4. A worked example: insurance

When the dealer shows an ace, you are offered insurance, a side bet paying 2 to 1 if the dealer has blackjack. In a deck with no cards removed, the chance the hidden card is a ten-value card is 16/52 = 4/13, about 30.8%:

EV(insurance per $1) = (4/13) × 2  +  (9/13) × (−1)
                     = 8/13 − 9/13
                     = −1/13  ≈  −7.7%

That is why basic strategy says never take insurance. It only becomes profitable when more than one third of the remaining cards are tens, which brings us to card counting.

5. Card counting

In 1961 the MIT mathematician Edward Thorp published a three-page paper in the Proceedings of the National Academy of Sciences showing that tracking removed cards can give the player an edge. Small cards (2 to 6) help the dealer and high cards (10s and aces) help the player, mainly because blackjack pays 3 to 2. The popular Hi-Lo system counts +1 for each 2 to 6, 0 for 7 to 9 and −1 for each 10 or ace. Dividing the running count by the number of decks left gives the true count. Each +1 of true count shifts the edge by roughly half a percent toward the player. Counters then size their bets with the Kelly criterion (Kelly, 1956) to grow their bankroll without going broke.

6. Variance

Even with a small edge, results swing wildly. The standard deviation of a single blackjack hand is a little over one betting unit, so a counter with a 1% edge needs many thousands of hands before skill reliably outweighs luck.

Try it yourself
Use the strategy tool to look up a hard 16 against a dealer 10, then against a dealer 6. Ask yourself why the answers differ, using the dealer bust probabilities above. This is the core reasoning behind basic strategy.

References and further reading

Peer-reviewed research behind this page. Links open the official publisher page; free PDFs are marked. Browse every source in our Research Library.

  1. Baldwin, R. R., Cantey, W. E., Maisel, H. and McDermott, J. P. (1956). The Optimum Strategy in Blackjack. Journal of the American Statistical Association, 51(275), 429 to 439.

    Four US Army engineers computed blackjack basic strategy by hand with desk calculators. Their table is still almost identical to the one used today.

    Read the paper ↗DOI: 10.1080/01621459.1956.10501334
  2. Thorp, E. O. (1961). A Favorable Strategy for Twenty-One. Proceedings of the National Academy of Sciences, 47(1), 110 to 112.

    The MIT mathematician’s short paper proving that card counting can give a blackjack player an edge over the casino.

    Read the paper ↗DOI: 10.1073/pnas.47.1.110
  3. Kelly, J. L. (1956). A New Interpretation of Information Rate. Bell System Technical Journal, 35(4), 917 to 926.

    A Bell Labs physicist links information theory to betting and derives the Kelly criterion: the bet size that maximizes long-run growth.

    Read the paper ↗DOI: 10.1002/j.1538-7305.1956.tb03809.x