DemoSlots

How Slot Machines Work: RNG, Reels, Jackpots

Jackpot Slot game cover

A slot machine looks like a box of spinning wheels, but the wheels are not where the result comes from. When you press Spin, the machine draws random numbers, uses them to pick a stop on each reel, reads the symbols at those stops along its paylines and pays what the paytable says. The spinning is a show. This guide walks through each step with the actual code of our three-reel Jackpot Slot, so every number below is counted, not guessed.

Step 1: a random number picks each reel stop

Inside every modern slot is a random number generator (RNG). Ours uses the browser’s cryptographic random source, the same kind used for security keys. On each spin it produces three numbers between 0 and 1, one per reel. Each number is multiplied by 32 and rounded down, which gives a stop position from 0 to 31.

That is the entire decision. The stop positions are fixed before any reel moves. The animation then blurs random symbols for about a second and lands on the stops already chosen. Pressing the button faster, slower or at a “lucky” moment changes nothing, because the draw happens in a single line of code.

Diagram of one spin on the Jackpot Slot: three random numbers become three stop positions out of 32, the stops show a 3 by 3 window of symbols, five paylines are checked and the paytable sets the win
One spin, start to finish. Everything after the random draw is bookkeeping.

Step 2: the reel strip sets the odds

A reel is a list of symbols called a strip. Ours has 32 stops on each of the three reels:

Symbol Stops on each reel Chance on the middle row
Star 1 1 in 32
Seven 2 1 in 16
BAR 3 1 in 10.7
Bell 4 1 in 8
Grapes 5 1 in 6.4
Orange 5 1 in 6.4
Lemon 6 1 in 5.3
Cherry 6 1 in 5.3

This table is the heart of the machine. A symbol with more stops lands more often, so it has to pay less. A symbol with a single stop lands rarely, so it can pay a lot. Our strip spreads the symbols out so that copies of the same symbol don’t sit next to each other: the Star sits at stop 0, the two Sevens at stops 1 and 8, and so on.

Commercial machines use the same idea with larger numbers. Many map the random number onto a “virtual reel” that has far more positions than the symbols you can see, which lets a top symbol be much rarer than it looks. The principle doesn’t change: the strip, real or virtual, decides how often each symbol appears.

Step 3: paylines and the paytable

The reels show a 3 × 3 window: the symbol at the stop plus the one above and below it. Our slot reads five lines through that window: the three rows and the two diagonals. A line pays when it shows three of a kind from left to right, or a Cherry on the first reel (2× the line bet) or two (5×). How paylines, Wilds and scatters work on bigger machines is covered in our guide to slot paylines and symbols.

Because each reel is independent, the chance of three of a kind on one line is simply the reel chance cubed. We checked every one of the 32 × 32 × 32 = 32,768 stop combinations with the game’s own line code:

Result on the middle line Combinations out of 32,768 Chance
Star Star Star 1 1 in 32,768
7 7 7 8 1 in 4,096
BAR BAR BAR 27 1 in 1,214
Bell Bell Bell 64 1 in 512
Lemon Lemon Lemon 216 1 in 152
Cherry on reel 1 only 4,992 1 in 6.6
No win 26,058 4 in 5

Slot machine jackpot odds, counted exactly

The jackpot needs three Stars on one of the five lines. Each reel has one Star, and it shows up in the window when the reel stops on it or on either neighbor. Each line needs the Star on a specific row of each reel, and for each of the five lines exactly one stop combination does that. So 5 of the 32,768 combinations win the jackpot: a chance of 1 in 6,553.6 per spin.

Bar chart of how often each result appears on any of the five lines of the Jackpot Slot, from a cherry on about every second spin to three Stars once in 6,553.6 spins, on a log scale
Chance per spin of each result on any of the five lines. Each step to the right is ten times rarer.

Those are exact odds for our game. For a slot in a casino you normally can’t do this count, because the strips aren’t published. When people ask about “chances of winning the jackpot on slots” in general, the only honest answer is that it varies with the machine and the player usually can’t see it.

What 1 in 6,553.6 means in practice is also less tidy than it sounds. We spun the slot 40 million times with the same random source the game uses and timed the gaps between jackpots. Half the gaps were shorter than 4,436 spins. One in ten was shorter than 696 spins, one in ten was longer than 14,977, and the longest wait was 71,585 spins. The average is fixed; the wait around it varies widely.

What a progressive jackpot means

A progressive jackpot is a prize that grows as people play. A slice of each bet feeds a pool, and the pool resets to a starting value when someone wins it. Fixed jackpots, by contrast, always pay the same amount.

On the Jackpot Slot the pool starts at 5,000 credits and grows by 2% of every bet. At the max bet of 50 credits that is 1 credit per spin. Three Stars at the max bet win the whole pool; at smaller bets they pay 500 times the line bet and the pool stays put. In our long run at the max bet the pool averaged about 11,500 credits when it was won, which matches the 5,000 start plus roughly 6,554 spins of growth. Half the jackpots were under about 9,500.

A bigger pool means a bigger prize. It does not mean the jackpot is closer: the chance stays 1 in 6,553.6 on every spin, whatever the meter shows. We tested that belief and others in slot machine myths.

Where the house edge comes from

Put the strip, the lines and the paytable together and you can add up the average payout over all 32,768 combinations. The result is 95.32%: for every 100 credits bet, 95.32 come back over a very long run. At the max bet the jackpot pool returns the 2% it collected, which lifts the figure to about 97.3%.

That gap is built in on purpose. The rare symbols pay a lot, but not quite enough to cover how rarely they land. No sequence of bets, no timing and no choice of line changes it. What RTP means for a single session, and why most sessions still lose, is in our RTP and volatility guide. How slots compare with blackjack, roulette and baccarat is in the guide to the house edge.

Try it with virtual credits

The Jackpot Slot runs exactly the code described here, with 1,000 virtual credits and free refills. Credits can’t be bought, cashed out or exchanged for anything. The game is for adults (18+). Real-money slots work on the same principle, every one of them returns less than it takes, and they may be illegal where you live.

Frequently asked questions

How do slot machines decide if you win?

A random number generator picks a stop position for each reel when you press Spin. The symbols at those stops are compared with the paylines and the paytable. On our Jackpot Slot that is three random numbers, one per reel, each choosing one of 32 stops.

What are the odds of hitting the jackpot on a slot?

It depends entirely on the machine's reel strips. On our Jackpot Slot, 5 of the 32,768 possible reel positions show three Stars on a line, so the chance is 1 in 6,553.6 per spin. Commercial slots don't publish their strips, so their exact jackpot odds are usually unknown to players.

What does progressive jackpot mean?

A progressive jackpot is a prize that grows as people play. A small share of every bet goes into the pool until someone wins it, then it resets to a starting value. On our Jackpot Slot the pool starts at 5,000 credits and grows by 2% of each bet.

Do the spinning reels affect the result?

No. In our game the stop positions are chosen in code before the animation starts. The reels you see blur through random symbols and then land on the stops that were already picked.

Can a slot machine be predicted?

Not from its past results. Each spin draws new random numbers, and nothing in the code looks at earlier spins, the time, or the jackpot size when it picks the stops.

Do you need the max bet to win a progressive jackpot?

On many progressive slots, yes, and on ours too: three Stars win the pool only at the max bet of 50 credits. At smaller bets the same three Stars pay a fixed 500 times the line bet.