Gin rummy is a card game for two players. Each player holds ten cards and, turn by turn, draws one and discards one, trying to build them into sets and runs. The cards left over are deadwood. When yours add up to 10 or less you can knock and end the hand; with none at all you go gin. This guide gives the rules exactly as this site plays them, in the order a hand meets them: the deal, a turn, melds, knocking, laying off, scoring and the end of the game.
Overview
| Feature | Details |
|---|---|
| Players | 2 (two people on one device, or you against the computer) |
| Cards | One pack of 52, no jokers |
| Deal | 10 cards each; the next card is the upcard |
| Goal | Make sets and runs, then knock with less deadwood than the other player |
| Length | One hand, or a game to 100 points |
| Typical time | 5 to 10 minutes a hand, 20 to 40 minutes to 100 |
The deal and the upcard
Each player gets ten cards. The next card is turned face up beside the pack: it is the upcard, and it starts the discard pile. The remaining 31 cards are the stock, face down.
The first player is offered the upcard. They may take it or pass. If they pass, the other player may take it or pass. If both pass, the first player draws the top card of the stock instead, and the game goes on from there. Taking the upcard counts as your draw: you then discard, as on any turn.
In the first hand, the setup decides who goes first. After that, the winner of a hand deals the next one, so the player who lost plays first. After a hand that ends with no score, the same player goes first again.
A turn: draw, then discard
Every turn has two steps:
- Draw one card: the top card of the stock or the top card of the discard pile.
- Discard one card face up on the discard pile.
There is one limit: you can’t discard the card you just took from the discard pile in the same turn. A card you drew from the stock can go straight back out.
What you take from the discard pile, everyone sees. What you draw from the stock, only you see: the game tells you which card it was and tells the other player only that you drew.
Step through one short hand of a real game for two, seen from Ana’s side:
Step through a short hand
Step 1 of 6: A game for two, seen from Ana’s side. She holds three eights and 51 in deadwood. The eight of diamonds is the upcard, and she may take it first.
Melds: sets and runs
A meld is a group of cards that count for nothing at the end of a hand. There are two kinds:
- A set: three or four cards of the same rank, such as three eights or four kings.
- A run: three or more cards in a row of the same suit, such as the 7, 8 and 9 of spades.
Aces are low only. Ace, two, three of hearts is a run; queen, king, ace is not. Each card belongs to one meld at most, so a seven can be in a set of sevens or in a run of its suit, not both.

Ana’s ten cards split the way the game splits them: a run of spades, a set of eights, and four cards of deadwood. The ace, the two and the court cards are worth 1, 2 and 10; here the deadwood adds up to 25.
You never lay your melds down during the hand. They stay in your hand until someone knocks. On this site your hand sorts itself into its best split: the melds first, the deadwood last, and its count always shown.
Deadwood
Every card in no meld is deadwood, and it counts its points:
| Card | Points as deadwood |
|---|---|
| Ace | 1 |
| Two to ten | Their number |
| Jack, queen, king | 10 |
A hand can often be split more than one way, because a card may fit a set and a run. The game always counts your hand by the split that leaves the least deadwood, so you never lose points by sorting your cards badly.
Knocking and gin
On your turn, after drawing, you may knock instead of discarding. You put one card face down and both hands are shown. You may knock only if the deadwood in your other ten cards is 10 or less. The Knock button appears only when that is true.
If your ten cards have no deadwood at all, it is gin. The button then reads Gin.
The card you put face down is chosen like a discard, so the card you just took from the discard pile can’t be the one.
Laying off
After a knock, the other player, the defender, may lay off cards from their deadwood onto the knocker’s melds:
- the fourth card of a set of three;
- a card at either end of a run, and then the next one along: an eight on a run that ends with seven, then a nine on the eight.
Laid-off cards no longer count as deadwood. The defender lays off only onto the knocker’s melds, never onto their own, and the knocker never lays off onto the defender’s. There are no lay-offs after gin.
Here the game lays off for the defender, and does it as well as it can: it tries every choice and keeps the one that leaves the least deadwood. Where a card could either be laid off or stay in one of the defender’s own melds, it leaves the defender with as little either way.
Your move: what can you lay off?
What can you lay off?
You are Player 1. Player 2 knocks with 3-4-5 of clubs and three sevens. Which of your cards can you lay off on them?
Tap a card of your hand to see whether it can be laid off.
When two splits of the knocker’s hand leave the same deadwood, the game lays out the one with the fewest places to lay off, then the fewest melds. A four-card run is shown as one run, not a run of three and a spare.
Scoring a hand
Once lay-offs are done, both deadwood counts are compared:
| How the hand ends | Who scores | Points |
|---|---|---|
| Knock, the defender has more deadwood | The knocker | The difference |
| Knock, the defender has the same or less | The defender (an undercut) | The difference plus 25 |
| Gin | The player who went gin | 25 plus the other player’s deadwood |
| Two cards left in the stock, no knock | Nobody | None |
An undercut includes a tie. If Ana knocks with 8 and Ben is left with 8, Ben undercuts her and scores 25. The game says: “Ana knocked with 8 deadwood. Ben has 8 too: an undercut. Ben scores 25 points for the undercut.”
In the step-through above, Ana knocks with 2, Ben lays off three spades on her run and has 19, and the game says: “Ana knocked with 2 deadwood. Ben laid off 3 cards and has 19. Ana scores the difference, 17 points.”
When the stock runs low
The stock is never drawn to the end. If a player discards and leaves two cards in the stock without knocking, the hand is a wash: nobody scores, and the cards are dealt again. The player who drew the card that left two may still knock instead of discarding.
Playing a game
Under Play to in the setup you choose:
- 100 points, the default. Scores add up hand by hand, and the first player to reach 100 or more wins. Only one player scores in a hand, so two players can never reach 100 together.
- One hand. The player who scores in the hand wins. A washed hand is simply dealt again.
Between hands, both hands are laid out face up in their melds, the cards laid off are marked, and the score line says what happened. Tap Next hand to deal the next one.
Fine points that settle arguments
- The card you just took from the pile can’t be discarded or put face down to knock that turn. A card from the stock can.
- Knocking is never forced. You may keep playing for gin with a low count; the other player may knock first.
- A tie is an undercut. Equal deadwood after lay-offs goes to the defender.
- Gin can’t be undercut, even if the defender also has no deadwood.
- Lay-offs chain. A card laid off can make room for the next one, as long as each card touches the run when it is added.
- What everyone may know. The cards each player took from the discard pile and the cards they discarded are public. The cards drawn from the stock are not.
- One split counts. Your hand is always scored by its best split, whatever order you hold the cards in.
What this version leaves out
Gin rummy has many local variations. This site plays the rules above and leaves out:
- Box and game bonuses: extra points for each hand won and for winning the game. The score here is the points made in hands only.
- Big gin, a bonus for eleven cards all in melds without discarding.
- Oklahoma gin, where the upcard sets the knocking limit.
- Aces high, or an ace in the middle of a run.
- Choosing your own lay-offs: the game always lays off the best way for the defender.
Glossary
- Deadwood: the cards in no meld, and their total in points.
- Defender: the player who did not knock.
- Gin: a knock with no deadwood at all.
- Lay off: add a card from your deadwood to the knocker’s set or run.
- Meld: a set or a run.
- Undercut: the defender has the same or less deadwood than the knocker after laying off.
- Upcard: the first card turned up on the discard pile, offered before the first draw.
- Wash: a hand that ends with two cards left in the stock and no knock.
Ready to play? Start a game of Gin Rummy. For when to knock, what to keep and what to throw away, read the gin rummy strategy tutorial.