Gaming

Blackjack basic strategy: the math behind the chart

The blackjack basic strategy card looks like rote memorization: tape a laminated chart to your wrist and match the right color to the right box. But the chart never came from a seasoned player’s gut feeling, it is the output of an optimization problem. For every possible combination of player hand and dealer up-card, someone (or, on this site, an algorithm) computed the expected value (EV) of hitting, standing, doubling, splitting and surrendering, and kept whichever number came out highest. What is left over, the house edge, is small under good rules, commonly well under 1%, but small is not zero, and "optimal play" does not mean "always winning". This guide opens the math behind two classic entries in the chart (the most cited one, hard 16 against a dealer’s 10, and the flip point at 12), explains why the outcome hinges so heavily on the dealer’s visible card, and tells how Edward Thorp used one of the first research-accessible computers to derive that same logic back in 1961. Build the chart for your own table’s rules in the [blackjack basic strategy calculator](tool:blackjack-basic-strategy) as you read.

J-Kit18 min readIntermediate
  • Blackjack
  • Basic strategy
  • Expected value
  • House edge
  • Probability

Key takeaways

  • The basic strategy chart is the output of an expected-value (EV) algorithm, not a memorized list: for every hand against every dealer up-card, it compares the EV of hitting, standing, doubling, splitting and surrendering, and keeps the highest.
  • Under liberal rules, the house edge stays well under 1% (roughly 0.28% to 0.43% for the tables cited by Wizard of Odds), but that describes the average over thousands of hands, not the outcome of one session.
  • The dealer has no discretion: it plays by fixed rules, which is why its bust chance ranges from 16.7% (showing an Ace) to over 42% (showing a 5 or 6), the mechanical engine behind every "stand against weak, hit against strong" line in the chart.
  • Even the chart’s most famous call, hard 16 against a dealer’s 10, is decided by an EV gap of less than half a cent per dollar wagered: the math is real, it is just tight.

The chart is not memorized, it is computed

Every blackjack hand is hard or soft. A hard hand has no Ace, or has an Ace that can only count as 1 without busting (for example, 10+6+Ace = hard 17). A soft hand has an Ace that still counts as 11 comfortably, like Ace+7 = soft 18, because even drawing a small card will not bust it. The difference matters because a soft hand can take a hit with zero bust risk that round, which changes the whole EV calculation. For every one of these hands, against each of the ten cards the dealer can show (2 through 9, 10/J/Q/K treated as one group, and Ace), there is a different expected value for hitting, standing, doubling, splitting (when it is a pair) and surrendering (when the table allows it). This site’s blackjack basic strategy calculator does not reproduce a chart copied from some book, it derives the chart from scratch every time you change a rule: number of decks, whether the dealer hits or stands on soft 17, whether doubling after a split is allowed, whether the table takes surrender.

The full chart covers 340 decisions: 34 reference hands (16 hard totals from 5 to 20, 8 soft totals from Ace,2 to Ace,9, and 10 possible pairs) times the 10 cards the dealer can show. Each of those 340 cells is solved separately by dynamic programming over the remaining shoe: the engine recursively simulates every possible sequence of cards the dealer still has to draw (it is forced to hit until 17), sums the probability of each final outcome (17, 18, 19, 20, 21 or bust), and uses that distribution to work out the EV of each player action. That is what separates a "strategy chart" from a list of tips: every cell answers a specific mathematical question, not a rule of thumb.

Hard hand
No Ace, or an Ace that can only count as 1 without busting. E.g., 10+6.
Soft hand
An Ace that still counts as 11 with room to spare. E.g., Ace+7 = soft 18, can hit with no bust risk.
Expected value (EV)
The average gain or loss of an action, as a fraction of the bet, if the same decision repeated infinitely.
Total-dependent
The standard convention for published charts: the dealer distribution uses the shoe minus the up-card, without removing the player’s own two cards.
House edge
The average expected loss per unit wagered, under optimal play, across a very large number of hands.

The house edge is small, but it depends on the table

House edge is the fraction of every bet the player loses, on average, playing perfect basic strategy, over a very large number of hands. It is not one single, universal number: it shifts with the number of decks, with the dealer hitting or standing on soft 17, with double-after-split (DAS) allowed or not, with surrender available or not, and above all with how a natural blackjack pays (3:2 is standard; tables that pay only 6:5 worsen the house edge by roughly 1.39 percentage points, according to Wizard of Odds). Under a liberal 6-deck rule set, dealer standing on soft 17, double after split and late surrender allowed, Wizard of Odds calculates an edge of about 0.28%. Under the typical Atlantic City rules, the same source cites 0.43%.

0.28%6 decks, S17, DAS, late surrender (liberal Vegas Strip rules)
0.43%typical Atlantic City rules
+1.39 pppenalty for paying 6:5 instead of 3:2 on a natural blackjack

This site’s basic strategy calculator computes the house edge the same way, but live, for whichever exact rules you pick, instead of interpolating a generic table. Under the calculator’s own default rules (6 decks, dealer standing on soft 17, DAS, surrender and doubling on any two cards), the engine lands at about 0.40%, a bit above the 0.28% cited above because, by a simplification documented right in the code, it does not model re-splitting pairs (playing a third or fourth hand from the same pair), something more permissive tables assume is available. It is a good reminder that "the house edge of blackjack" is not a constant, it is the output of a calculation that depends on every rule at the table, including the ones that look small.

Why the dealer is a hostage to its own rules

The player chooses. The dealer does not: at every table it is forced to draw while its total is under 17 (and, at H17 tables, on soft 17 too), and forced to stop at any total of 17 or higher. There is no dealer decision, only the execution of a fixed rule. That means before the player even acts, the one piece of visible information (the up-card) already determines a full probability distribution over how the dealer’s hand will end, bust chance included. Low up-cards (2 through 6) force the dealer to keep drawing from fragile totals, so it busts often. High up-cards (7 through Ace) usually build or complete a safe total with few draws, so the dealer rarely busts.

The chart below shows the bust chance by up-card, computed for 6 decks with the dealer standing on soft 17 (this site’s calculator default rules), and it matches, within rounding, the per-up-card bust tables Wizard of Odds publishes for the same scenario. Notice the jump: from 16.7% on an Ace to over 42% on a 5 or 6, a dealer showing a 6 busts more than two and a half times as often as one showing an Ace.

235.35
337.42
439.58
541.84
642.28
726.19
824.37
922.92
1023.02
A16.7
Probability the dealer busts, by up-card (6 decks, dealer stands on soft 17). Sources: this site’s calculator engine and Wizard of Odds.
View the data
CategoryValue
235.35
337.42
439.58
541.84
642.28
726.19
824.37
922.92
1023.02
A16.7

That directly explains the "stand against weak, hit against strong" logic for hard totals of 12 to 16 (the so-called stiff hands). Against a 2 through 6, standing lets almost 2 out of 5 dealers bust on their own, so it is not worth risking a bust on your own hand to improve it. Against a 7 through Ace, the dealer busts less than 1 in 4 times, so standing on a weak hand is nearly always a guaranteed loss, and hitting, even with its own bust risk, has the better EV. The next section walks that math through in real numbers for two cases: the chart’s most famous one (16 against a 10) and the exact point where the call flips from hit to stand (12).

Two examples: 16 against a 10, and the flip at 12

No cell in the chart gets cited more than hard 16 against a dealer’s 10. It is the classic example because both obvious options are bad: standing on 16 loses almost every time against a dealer holding a 10 (it only needs a 7 or higher underneath to win), and hitting risks busting on any card worth 6 or more, more than half the shoe. The question is not "which action wins", it is "which action loses less", and the only way to answer it is by comparing the EV of each.

EV(parar) = P(dealer estoura) x (+1) + soma_{T=17..21} P(dealer = T) x sinal(total_jogador - T)
P(dealer estoura)
probability the dealer goes over 21, computed by integrating the hidden card and every forced draw sequence
sinal(x)
+1 if the player wins (x > 0), -1 if it loses (x < 0), 0 on a push
T
each non-bust final dealer total, from 17 to 21
How the engine computes the EV of standing: it sums the payoff of every possible dealer outcome, weighted by its probability.

The EV of hitting is harder to write in one line because it is recursive: hitting well now can mean hitting again later. The engine resolves it like this:

  1. List the possible next cardsFor every card still in the shoe, the chance of drawing it is the count remaining divided by the shoe’s total.
  2. Discard the bust branchIf the new total goes past 21, that branch is worth -1 (an automatic loss): no future decision saves the hand.
  3. Compare standing against hitting againIf it did not bust, compute the EV of standing on the new total and the EV of hitting once more from there (a recursive call), and keep whichever is higher.
  4. Sum it all weighted by probabilityMultiply every branch by its chance of happening and add them up: the result is the EV(hit) of the original hand.
-0.5395EV of standing on hard 16 vs. a 10
-0.5347EV of hitting hard 16 vs. a 10
-0.5000EV of surrendering, when the table allows it

All three numbers come straight from the calculator, under its default rules (6 decks, dealer stands on soft 17). Hitting beats standing by 0.0048, less than half a cent per dollar wagered, which makes "16 against a 10" the closest call in the whole classic chart once you remove surrender from the picture. When late surrender is available, as in this calculator’s default, it beats both by a wider margin: deliberately giving up half the bet is better than risking the rest of the hand on a 16 against a strong dealer. Without surrender at the table, the correct answer is to hit, even though it feels risky: the two numbers prove that standing is slightly worse.

The second example shows the same logic flipping sides at the total of 12, one of the few hard totals that does not follow the simple "stand against 2 through 6" pattern. Against a 2 or a 3, the engine recommends hitting; against a 4, 5 or 6, it recommends standing, even though the dealer is "weak" in all three cases.

Hard 12 against weak dealer cards: why the call flips from hit to stand.
Dealer cardBust chanceBest action on hard 12EV stand vs. hit
235.35%Hit-0.2930 vs. -0.2511
337.42%Hit-0.2516 vs. -0.2311
439.58%Stand-0.2084 vs. -0.2101
541.84%Stand-0.1632 vs. -0.1890
642.28%Stand-0.1543 vs. -0.1696

The reason is that hard 12 is too weak a hand to benefit much from a dealer that is only slightly more fragile: against a 2 or 3, the 12 itself still busts on any ten-value card (nearly a third of the shoe), so hitting still pays off even with the dealer busting "only" 35% to 37% of the time. From the 4 onward, the dealer’s bust chance has already crossed 39%, high enough that standing and leaving the problem in the dealer’s hands is worth more than risking the hand a second time.

Where this chart came from: Thorp and the IBM 704

Before a chart existed, there was only the instinct of experienced players, and it was wrong often. The first mathematically derived strategy came from Edward O. Thorp, then a mathematician in MIT’s Department of Mathematics, who in January 1961 published the paper "A Favorable Strategy for Twenty-One" in the Proceedings of the National Academy of Sciences, the journal of the United States National Academy of Sciences. A year later, Thorp expanded the idea into the book "Beat the Dealer" (1962), which became a bestseller (roughly 700,000 copies sold) and is widely cited as the moment that popularized both basic strategy and card counting.

  1. January 1961The Proceedings of the National Academy of Sciences paper

    Thorp publishes the first peer-reviewed, mathematically derived blackjack strategy, showing that the game, under certain conditions, could favor the player.

  2. 1962"Beat the Dealer"

    Thorp writes that "the analysis on which this book is based would have been impossible" without access to an IBM 704 computer, used to simulate thousands of hands and systematically test every decision.

  3. 1966 onwardRevisions and the casino response

    The book is updated, card counting spreads, and casinos respond by tightening table rules, the same kind of rule (decks, S17/H17, DAS) that still shifts the house edge today.

It is worth separating two concepts Thorp left tangled together in popular culture. Basic strategy, the subject of this article, assumes a full, freshly shuffled shoe: the probabilities are fixed, exactly what this site’s basic strategy calculator computes. Card counting is a different thing: it tracks how the shoe’s composition changes as cards come out (more high cards left favors the player, more low cards favors the dealer), which shifts those same probabilities round by round. Counting cards is not illegal anywhere, but casinos can refuse service to anyone they suspect of doing it, so this is a historical portrait, not a tutorial. The principle of recomputing EV from the shoe’s real composition, rather than a generic one, is exactly what this site’s live blackjack advisor does with every card you enter, removing from the calculation exactly the cards already seen at the table.

From chart to table: how to read the decision blocks

Nobody memorizes 340 cells one by one. Players who run basic strategy from memory learn a handful of patterns, the same ones the math in the previous sections explains. The table below summarizes the general logic; for the exact numbers of any specific hand, use the calculator, especially because a few details break from common sense. A real example: under this calculator’s default rules, hard 11 doubles against every dealer card except the Ace, against which the correct answer is just to hit. That is the kind of exception that "memorizing the general rule" misses, and that only shows up by actually computing the EV for that specific combination.

The general logic of basic strategy (not the full chart, use the calculator for each cell).
Player handAgainst a weak dealer card (2-6)Against a strong dealer card (7-A)
Hard 13-16Stand (let the dealer risk the bust)Hit; 15-16 surrender against 9-A if the table allows it
Hard 9, 10 and 11Double (one extra card at twice the bet)Hit against the highest cards (10, Ace block doubling on 10/11)
Soft 13-18 (Ace+2 to Ace+7)Double on the middle ones (Ace,4-Ace,7 against 4-6)Hit most of them; Ace,8 and Ace,9 always stand
Pair 8,8 and A,AAlways splitAlways split, even against the Ace
Pair 5,5 and 10,105,5 doubles like a hard 10; 10,10 never splitsSame pattern; only 5,5 switches from doubling to hitting against 10/A

Use these patterns to recognize the chart’s general shape, and the calculator for the exact call at whichever table you are at, with its own rules. It reacts to every rule change instantly, so you can watch visually how DAS, surrender or the deck count shift the closest-to-even cells, like the 16 against 10 and the 12 against 2 through 6 discussed above.

Adjust the table rules (decks, S17/H17, DAS, surrender) and watch the chart and house edge recompute instantly.Open the tool full page

Frequently asked questions

What is the house edge in blackjack playing perfect basic strategy?
It depends on the exact table rules, but it is always well under 1%. Wizard of Odds calculates about 0.28% for a liberal 6-deck game with the dealer standing on soft 17, double after split and late surrender, and about 0.43% for typical Atlantic City rules. A 6:5 payout instead of 3:2 on a natural blackjack worsens that figure by roughly 1.39 percentage points.
Why does the chart say stand on 16 against a weak card but hit against a strong one?
Because the dealer is forced to draw until 17 and has no choice in the matter. Showing a weak card (2 through 6), it busts between 35% and 42% of the time, so standing leaves the problem in its hands. Showing a strong card (7 through Ace), it busts less than 27% of the time (just 16.7% on an Ace), so standing on a weak hand is nearly always a sure loss, and hitting becomes the option with the less negative EV.
Does playing basic strategy guarantee I will win?
No. Basic strategy minimizes expected loss over many hands, it does not remove the variance of a short session. With a house edge of 0.3% to 0.5%, the outcome of a 100- or 200-hand night is decided almost entirely by luck, not by the quality of the decisions.
What is surrender and when is it worth using?
Late surrender lets the player give up the hand right after seeing the first two cards and the dealer’s up-card, losing only half the bet instead of risking the whole hand. It is worth it exactly when both the EV of hitting and of standing are worse than -0.5, the classic example is hard 16 against a dealer showing 9, 10 or Ace, where this site’s calculator computes a stand EV of -0.54 and a hit EV of -0.53, both worse than the guaranteed -0.50 from surrendering.
Is card counting the same thing as basic strategy?
No. Basic strategy assumes a full, freshly shuffled shoe with fixed probabilities. Card counting tracks how the shoe’s real composition changes as cards come out, which shifts those same probabilities round by round, and it was popularized by Edward Thorp in the book "Beat the Dealer" (1962). Counting cards is not illegal, but casinos can refuse service to anyone they suspect of doing it.
Why does the chart change if I play with fewer decks or the dealer hits soft 17?
Because the number of decks and the soft 17 rule directly change the probability distribution the engine uses to compute every EV. Fewer decks change how fast pairs and naturals get completed; a dealer that hits soft 17 (H17) is slightly stronger against the player than one that stands (S17), because it gets one more chance to improve hands like Ace,6. The basic strategy calculator recomputes the entire chart and house edge every time one of these rules changes, instead of always showing the same generic chart.

The blackjack basic strategy chart is the output of an expected-value algorithm run over each of the 340 player-hand-against-dealer-card combinations, not a memorized list. It works because the dealer, unlike the player, chooses nothing: it plays by fixed rules that make its bust chance range from 16.7% (Ace) to over 42% (5 or 6), and that asymmetry decides when it pays to stand and let the dealer hang itself, and when it pays to risk a hit. Under good rules the house edge stays well under 1% (roughly 0.28% to 0.43%, per Wizard of Odds), but that is an average over thousands of hands, not a promise about your next session: even the chart’s most famous call, 16 against a 10, is decided by less than half a cent of difference per dollar wagered.

Sources & references

  1. Wizard of Odds, Dealer Odds in Blackjack under U.S. Rules (bust probability by up-card)
  2. Wizard of Odds, Blackjack, House Edge and Rule Sets (Ask the Wizard)
  3. Wizard of Odds, Blackjack (Atlantic City rules and house edge)
  4. Edward O. Thorp, "A Favorable Strategy for Twenty-One", Proceedings of the National Academy of Sciences, Jan. 1961
  5. Engadget, "Gaming the system: Edward Thorp and the wearable computer that beat Vegas" (the IBM 704 and "Beat the Dealer", 1962)