Mathematical Formula For Blackjack

Mathematical Formula For Blackjack Average ratng: 7,4/10 6813 votes

The name blackjack comes from the fact that when blackjack was first introduced in the U.S. It wasn't very popular, so casinos and gambling houses tried offering different bonus payoffs. One of those was a 10-to-1 payoff for a hand consisting of the ace of spades and a black jack (that is, the jack of spades or the jack of clubs). Using Math in Baccarat. As mentioned above, there are a number of different formulas that you can try out in baccarat. One of these is a formula that Allan N. Wilson laid out in the book ‘The Casino Gambler’s Guide’. The house advantages mentioned earlier in this article are derived by using this formula.

One of the most interesting aspects of blackjack is the
probability math involved. It’s more complicated than other
games. In fact, it’s easier for computer programs to calculate
blackjack probability by running billions of simulated hands
than it is to calculate the massive number of possible outcomes.

This page takes a look at how blackjack probability works. It
also includes sections on the odds in various blackjack
situations you might encounter.

An Introduction to Probability

Probability is the branch of mathematics that deals with the
likelihood of events. When a meteorologist estimates a 50%
chance of rain on Tuesday, there’s more than meteorology at
work. There’s also math.

Probability is also the branch of math that governs gambling.
After all, what is gambling besides placing bets on various
events? When you can analyze the payoff of the bet in relation
to the odds of winning, you can determine whether or not a bet
is a long term winner or loser.

The Probability Formula

The basic formula for probability is simple. You divide the
number of ways something can happen by the total possible number
of events.

Here are three examples.

Example 1:

You want to determine the probability of getting heads when
you flip a coin. You only have one way of getting heads, but
there are two possible outcomes—heads or tails. So the
probability of getting heads is 1/2.

Example 2:

You want to determine the probability of rolling a 6 on a
standard die. You have one possible way of rolling a six, but
there are six possible results. Your probability of rolling a
six is 1/6.

Example 3:

You want to determine the probability of drawing the ace of
spades out of a deck of cards. There’s only one ace of spades in
a deck of cards, but there are 52 cards total. Your probability
of drawing the ace of spades is 1/52.

A probability is always a number between 0 and 1. An event
with a probability of 0 will never happen. An event with a
probability of 1 will always happen.

Here are three more examples.

Example 4:

You want to know the probability of rolling a seven on a
single die. There is no seven, so there are zero ways for this
to happen out of six possible results. 0/6 = 0.

Example 5:

You want to know the probability of drawing a joker out of a
deck of cards with no joker in it. There are zero jokers and 52
possible cards to draw. 0/52 = 0.

Example 6:

You have a two headed coin. Your probability of getting heads
is 100%. You have two possible outcomes, and both of them are
heads, which is 2/2 = 1.

A fraction is just one way of expressing a probability,
though. You can also express fractions as a decimal or a
percentage. So 1/2 is the same as 0.5 and 50%.

You probably remember how to convert a fraction into a
decimal or a percentage from junior high school math, though.

Expressing a Probability in Odds Format

The more interesting and useful way to express probability is
in odds format. When you’re expressing a probability as odds,
you compare the number of ways it can’t happen with the number
of ways it can happen.

Here are a couple of examples of this.

Example 1:

You want to express your chances of rolling a six on a six
sided die in odds format. There are five ways to get something
other than a six, and only one way to get a six, so the odds are
5 to 1.

Example 2:

You want to express the odds of drawing an ace of spades out
a deck of cards. 51 of those cards are something else, but one
of those cards is the ace, so the odds are 51 to 1.

Odds become useful when you compare them with payouts on
bets. True odds are when a bet pays off at the same rate as its
probability.

Here’s an example of true odds:

You and your buddy are playing a simple gambling game you
made up. He bets a dollar on every roll of a single die, and he
gets to guess a number. If he’s right, you pay him $5. If he’s
wrong, he pays you $1.

Blackjack

Since the odds of him winning are 5 to 1, and the payoff is
also 5 to 1, you’re playing a game with true odds. In the long
run, you’ll both break even. In the short run, of course,
anything can happen.

Probability and Expected Value

One of the truisms about probability is that the greater the
number of trials, the closer you’ll get to the expected results.

If you changed the equation slightly, you could play this
game at a profit. Suppose you only paid him $4 every time he
won. You’d have him at an advantage, wouldn’t you?

  • He’d win an average of $4 once every six rolls
  • But he’d lose an average of $5 on every six rolls
  • This gives him a net loss of $1 for every six rolls.

You can reduce that to how much he expects to lose on every
single roll by dividing $1 by 6. You’ll get 16.67 cents.

On the other hand, if you paid him $7 every time he won, he’d
have an advantage over you. He’d still lose more often than he’d
win. But his winnings would be large enough to compensate for
those 5 losses and then some.

The difference between the payout odds on a bet and the true
odds is where every casino in the world makes its money. The
only bet in the casino which offers a true odds payout is the
odds bet in craps, and you have to make a bet at a disadvantage
before you can place that bet.

Here’s an actual example of how odds work in a casino. A
roulette wheel has 38 numbers on it. Your odds of picking the
correct number are therefore 37 to 1. A bet on a single number
in roulette only pays off at 35 to 1.

You can also look at the odds of multiple events occurring.
The operative words in these situations are “and” and “or”.

  • If you want to know the probability of A happening AND
    of B happening, you multiply the probabilities.
  • If you want to know the probability of A happening OR of
    B happening, you add the probabilities together.

Here are some examples of how that works.

Example 1:Blackjack

You want to know the probability that you’ll draw an ace of
spades AND then draw the jack of spades. The probability of
drawing the ace of spades is 1/52. The probability of then
drawing the jack of spades is 1/51. (That’s not a typo—you
already drew the ace of spades, so you only have 51 cards left
in the deck.)

The probability of drawing those 2 cards in that order is
1/52 X 1/51, or 1/2652.

Example 2:

You want to know the probability that you’ll get a blackjack.
That’s easily calculated, but it varies based on how many decks
are being used. For this example, we’ll use one deck.

To get a blackjack, you need either an ace-ten combination,
or a ten-ace combination. Order doesn’t matter, because either
will have the same chance of happening.

Your probability of getting an ace on your first card is
4/52. You have four aces in the deck, and you have 52 total
cards. That reduces down to 1/13.

Your probability of getting a ten on your second card is
16/51. There are 16 cards in the deck with a value of ten; four
each of a jack, queen, king, and ten.

Mathematical Formula For Blackjack

So your probability of being dealt an ace and then a 10 is
1/13 X 16/51, or 16/663.

The probability of being dealt a 10 and then an ace is also
16/663.

You want to know if one or the other is going to happen, so
you add the two probabilities together.

16/663 + 16/663 = 32/663.

That translates to approximately 0.0483, or 4.83%. That’s
about 5%, which is about 1 in 20.

Example 3:

You’re playing in a single deck blackjack game, and you’ve
seen 4 hands against the dealer. In all 4 of those hands, no ace
or 10 has appeared. You’ve seen a total of 24 cards.

What is your probability of getting a blackjack now?

Your probability of getting an ace is now 4/28, or 1/7.
(There are only 28 cards left in the deck.)

Your probability of getting a 10 is now 16/27.

Your probability of getting an ace and then a 10 is 1/7 X
16/27, or 16/189.

Again, you could get a blackjack by getting an ace and a ten
or by getting a ten and then an ace, so you add the two
probabilities together.

16/189 + 16/189 = 32/189

Your chance of getting a blackjack is now 16.9%.

This last example demonstrates why counting cards works. The
deck has a memory of sorts. If you track the ratio of aces and
tens to the low cards in the deck, you can tell when you’re more
likely to be dealt a blackjack.

Since that hand pays out at 3 to 2 instead of even money,
you’ll raise your bet in these situations.

The House Edge

The house edge is a related concept. It’s a calculation of
your expected value in relation to the amount of your bet.

Here’s an example.

If the expected value of a $100 bet is $95, the house edge is
5%.

Expected value is just the average amount of money you’ll win
or lose on a bet over a huge number of trials.

Using a simple example from earlier, let’s suppose you are a
12 year old entrepreneur, and you open a small casino on the
street corner. You allow your customers to roll a six sided die
and guess which result they’ll get. They have to bet a dollar,
and they get a $4 win if they’re right with their guess.

Over every six trials, the probability is that you’ll win
five bets and lose one bet. You win $5 and lose $4 for a net win
of $1 for every 6 bets.

$1 divided by six bets is 16.67 cents.
Your house edge is 16.67% for this game.

The expected value of that $1 bet, for the customer, is about
84 cents. The expected value of each of those bets–for you–is
$1.16.

That’s how the casino does the math on all its casino games,
and the casino makes sure that the house edge is always in their
favor.

With blackjack, calculating this house edge is harder. After
all, you have to keep up with the expected value for every
situation and then add those together. Luckily, this is easy
enough to do with a computer. We’d hate to have to work it out
with a pencil and paper, though.

What does the house edge for blackjack amount to, then?

It depends on the game and the rules variations in place. It
also depends on the quality of your decisions. If you play
perfectly in every situation—making the move with the highest
possible expected value—then the house edge is usually between
0.5% and 1%.

If you just guess at what the correct play is in every
situation, you can add between 2% and 4% to that number. Even
for the gambler who ignores basic strategy, blackjack is one of
the best games in the casino.

Expected Hourly Loss and/or Win

You can use this information to estimate how much money
you’re liable to lose or win per hour in the casino. Of course,
this expected hourly win or loss rate is an average over a long
period of time. Over any small number of sessions, your results
will vary wildly from the expectation.

Here’s an example of how that calculation works.

  • You are a perfect basic strategy player in a game with a
    0.5% house edge.
  • You’re playing for $100 per hand, and you’re averaging
    50 hands per hour.
  • You’re putting $5,000 into action each hour ($100 x 50).
  • 0.5% of $5,000 is $25.
  • You’re expected (mathematically) to lose $25 per hour.

Here’s another example that assumes you’re a skilled card
counter.

  • You’re able to count cards well enough to get a 1% edge
    over the casino.
  • You’re playing the same 50 hands per hour at $100 per
    hand.
  • Again, you’re putting $5,000 into action each hour ($100
    x $50).
  • 1% of $5,000 is $50.
  • Now, instead of losing $25/hour, you’re winning $50 per
    hour.

Effects of Different Rules on the House Edge

The conditions under which you play blackjack affect the
house edge. For example, the more decks in play, the higher the
house edge. If the dealer hits a soft 17 instead of standing,
the house edge goes up. Getting paid 6 to 5 instead of 3 to 2
for a blackjack also increases the house edge.

Luckily, we know the effect each of these changes has on the
house edge. Using this information, we can make educated
decisions about which games to play and which games to avoid.

Here’s a table with some of the effects of various rule
conditions.

Rules VariationEffect on House Edge
6 to 5 payout on a natural instead of the stand 3 to 2 payout+1.3%
Not having the option to surrender+0.08%
8 decks instead of 1 deck+0.61%
Dealer hits a soft 17 instead of standing+0.21%
Player is not allowed to double after splitting+0.14%
Player is only allowed to double with a total of 10 or 11+0.18%
Player isn’t allowed to re-split aces+0.07%
Player isn’t allow to hit split aces+0.18%

These are just some examples. There are multiple rules
variations you can find, some of which are so dramatic that the
game gets a different name entirely. Examples include Spanish 21
and Double Exposure.

The composition of the deck affects the house edge, too. We
touched on this earlier when discussing how card counting works.
But we can go into more detail here.

Every card that is removed from the deck moves the house edge
up or down on the subsequent hands. This might not make sense
initially, but think about it. If you removed all the aces from
the deck, it would be impossible to get a 3 to 2 payout on a
blackjack. That would increase the house edge significantly,
wouldn’t it?

Here’s the effect on the house edge when you remove a card of
a certain rank from the deck.

Card RankEffect on House Edge
When Removed
2-0.40%
3-0.43%
4-0.52%
5-0.67%
6-0.45%
7-0.30%
8-0.01%
9+0.15%
10+0.51%
A+0.59%

These percentages are based on a single deck. If you’re
playing in a game with multiple decks, the effect of the removal
of each card is diluted by the number of decks in play.

Looking at these numbers is telling, especially when you
compare these percentages with the values given to the cards
when counting. The low cards (2-6) have the most dramatic effect
on the house edge. That’s why almost all counting systems assign
a value to each of them. The middle cards (7-9) have a much
smaller effect. Then the high cards, aces and tens, also have a
large effect.

The most important cards are the aces and the fives. Each of
those cards is worth over 0.5% to the house edge. That’s why the
simplest card counting system, the ace-five count, only tracks
those two ranks. They’re that powerful.

You can also look at the probability that a dealer will bust
based on her up card. This provides some insight into how basic
strategy decisions work.

Dealer’s Up CardPercentage Chance Dealer Will Bust
235.30%
337.56%
440.28%
542.89%
642.08%
725.99%
823.86%
923.34%
1021.43%
A11.65%

Perceptive readers will notice a big jump in the probability
of a dealer busting between the numbers six and seven. They’ll
also notice a similar division on most basic strategy charts.
Players generally stand more often when the dealer has a six or
lower showing. That’s because the dealer has a significantly
greater chance of going bust.

Summary and Further Reading

Odds and probability in blackjack is a subject with endless
ramifications. The most important concepts to understand are how
to calculate probability, how to understand expected value, and
how to quantify the house edge. Understanding the underlying
probabilities in the game makes learning basic strategy and card
counting techniques easier.

Blackjack (also known as twenty-one or sometimes pontoon) is one of the most popular casino card games in the world. The name blackjack comes from the fact that when blackjack was first introduced in the U.S. it wasn't very popular, so casinos and gambling houses tried offering different bonus payoffs. One of those was a 10-to-1 payoff for a hand consisting of the ace of spades and a black jack (that is, the jack of spades or the jack of clubs). With the current rules, a blackjack hand doesn't even need to contain a jack.

Rules

A blackjack game has a dealer and one or more players. Each player plays against the dealer. All players are initially dealt two cards and the dealer is dealt one card face down and one face up (these are called the hole card and up card respectively). Each player can then hit (ask for an additional card) until her total exceeds 21 (this is called busting) or she decides to stand (stop taking cards for the rest of the hand). Face cards count as 10 and an ace may be counted as 1 or 11. After all of the players have finished, the dealer reveals the hole card and plays the hand with a fixed strategy: hit on 16 or less and stand on 17 or more.

Mathematical Formula For Blackjack Rules

The player loses if she busts and wins if she does not bust and the dealer does (observe that if both the player and the dealer bust, the player loses). Otherwise, the player wins if her total is closer to 21 than the dealer's. If the player wins, she gets twice her bet; if she loses, she loses her money. If the dealer and player tie it is called a 'push;' the player keeps her bet but does not earn any additional money. If the player's first two cards total 21, this is a blackjack and she wins 1.5 times her bet (unless the dealer also has a blackjack, in which case a tie results), so she gets back 2.5 times her bet.

Soft Hand. A hand that contains an ace that can be counted as 11 is called a soft hand, since one cannotbust by taking a card. With soft hands, the basic strategy is to always hit 17 or less and even hit 18 if the dealer's up card is 9 or 10 (where the 10 refers to a 10, J, Q, or K).

Doubling down. After the player is dealt her initial two cards she has the option of doubling her bet and asking for one additional card (which is dealt face down). The player may not hit beyond this single required card. With the basic strategy, you should always double with a total of 11, double with 10 unless the dealer's up card is 10 or A, and double with 9 only against a dealer's 2 to 6. (Some casinos only allow doubling down on 11).

Splitting pairs. At the beginning of a hand, if the player has two cards with the same number (that is, a pair) she has the option of splitting the pair and playing two hands. In principle, a pair of aces should of course be split, but in this case blackjack rules allow you to get only one card on each hand, and getting a 10 does not make a blackjack. With the basic strategy, you should never split 10's, 5's or 4's, always split 8's, and, in the other cases, split against an up card of 2 to 7, but not otherwise.

Strategies for the Player

Blackjack is almost always disadvantageous for the player, meaning that no strategy yields a positive expected payoff for the player. In the long run, whatever you do, you will on average lose money. Exceptions exist: some casinos offer special rules that allow a player using the right strategy to have a positive expected payoff; such casinos are counting on the players making mistakes.

The so called basic strategy is based on the player's point total and the dealer's visible card. It consists of a table that describes what you should do in any situation in the game (you can find an example of this table at Wikipedia). Under the most favorable set of rules, the house advantage against a player using the basic strategy can be as low as 0.16%.

Many people assume that the best strategy for the player is to mimic the dealer. A second conservative strategy is called never bust: hit 11 or less, stand on 12 or more. Each of these strategies leads to a player disadvantage of about 6%.

Edward Thorp, in his 1962 book Beat the Dealer, describes a simple strategy that makes blackjack an almost even game: if the dealer's up card is 2 to 6, play never bust; if it is 7 to ace, mimic the dealer. The exception to this simple rule is that one should hit a 12 if the dealer's up card is 2 or 3. More advanced strategies include features such as taking into account the player's hand composition (as opposed to just considering the point total) and the other players' hands, specially card counting (that consists of keeping track of the cards that have been dealt so as to know the composition of the remaining cards in the deck), and shuffle tracking (which is far more complicated than card counting, and consists in roughly following groups of cards as they are shuffled). These two last strategies are usually forbidden in casinos.

What does it mean to have a 0.16% disadvantage?

Mathematical formula for blackjack for dummies

When discussing casino games, one usually finds statements such as the ones above saying something like: 'the house advantage in this game is about 0.16%'. A first explanation is the following: betting ten dollars each hand, you will in the long run lose an average of 1.6 cents per hand. It would be nice to have an idea of the probability of winning any particular bet when playing some specific strategy. Indeed, we can infer this from the player's disadvantage. Let's take, as an example, the potential 0.16% disadvantage when playing the basic strategy.

Suppose you bet $1 at each of 10,000 bets playing the basic strategy. Let's call p the total probability of winning a pass line bet (so p is the number we are trying to calculate). If p was, for example, 0.5, it would mean that, on average, half the times you should win the bet, so you would win 0.5 · 10,0000 = 5,000 times. Since each time you win a bet you get twice what you bet and each time you lose the bet you lose all the money, you would end up with 5,000 · $2 = $10,000, that is, the same total amountyou bet (10,000 times $1). In this case, the house advantage is 0%, as is the player advantage.

Mathematical Formula For Blackjack Card Game

The same idea applies for any p: if you bet 10,000, you should, on average, win the bet 10,000p times, so your average payoff is $20,000p. In our case, the house advantage is 0.16%, so if you play $10,000, on average you end up with $10,000 - $10,000 · 0.0016 = $10,000 - $16 = $9,984. So we only have to solve the equation $20,000p = $9,984 to get p = 0.4992.

Links

You can find more information on blackjack's rules, strategies, and history on the Internet. For instance, you can try Wikipedia.

A very interesting free on-line blackjack trainer can be found here.

Problems
  1. If you are dealt a point total of 16, what is the probability of busting if you hit, assuming that a whole deck will be used to choose among when you are dealt your next card?
  2. If you are dealt a 3 and an ace, what is the probability of not busting if you hit, assuming that a whole deck will be used to choose among when you are dealt your next card?
  3. Suppose you are the only player against the dealer, and you are in the first hand of a game played with one deck. You are dealt an 8 and a 6, while the dealer is showing a queen. What is the probability that you bust if you decide to hit?
SolutionsReturn to Lesson IndexTop of Page