Gin Rummy

Draw, meld, and knock. First to 100 points wins!

Tim
♥ Hearts♦ Diamonds♣ Clubs♠ Spades

Tap Deal to start

Gin Rummy

2 players (you vs one CPU)Standard 52-card deck

Gin Rummy is a two-player draw-and-discard game played with ten-card hands. You take one card and throw one away each turn, arranging what you hold into sets of equal rank and runs of one suit, and you end the hand by knocking once the cards outside those melds — your deadwood — total 10 points or less.

The game turns on when to knock, because of one asymmetry our table enforces strictly: a knock can be punished, but gin cannot. Knock on 9 and your opponent may lay cards off onto your melds, match your count and take the difference plus a 10-point bonus. Go gin with zero deadwood and no lay-off is permitted at all — you collect 20 plus every point stranded in their hand.

Hands run to a target of 100. The winner then adds a 100-point game bonus, 200 against a loser who never scored, plus 20 per hand won — none of which count towards reaching 100.

Where Gin split from straight Rummy

The family resemblance to two-handed Rummy holds until you look at the table, because in Gin nothing is ever laid down. Melds are built in your hand, concealed, and revealed only when somebody knocks, so your opponent learns about your cards from what you take and throw.

The exit differs too. Rummy ends when a player sheds every card; Gin ends when a player judges their deadwood small enough to risk a comparison, which is why Gin carries bonuses where plain Rummy only counts cards. Ace is low: A-2-3 of a suit is a run, and an ace costs 1 point if you are caught with it.

A turn in Gin Rummy: draw, then discard

Each player gets ten cards. The twenty-first starts the discard pile face up and the remaining thirty-one become the stock. The deal alternates, and the non-dealer has first refusal on that card.

The deal and the opening up-card

The up-card is offered in a fixed order: non-dealer first, then the dealer, and if both decline the non-dealer draws from the stock. A card refused at that point is gone for good — our table marks it declined, so neither side can claim it later in the hand.

Draw and discard

Take either the unseen top of the stock or the known top of the pile, leaving eleven cards, then throw one away. Taking from the pile gives information away free: your opponent saw which card you wanted. Take the 8 of spades and you must throw something else this turn.

Knocking, laying off and gin

To knock, press Knock and pick the card you are throwing face down, so both hands are judged on ten cards. A choice leaving more than 10 points is refused, with the real count reported.

Both hands are then spread. Unless the knocker went gin, the defender may lay unmatched cards onto the knocker’s melds — a fourth card on a set, or either end of a run — and whatever they shed stops counting. Nothing goes onto deadwood, and the knocker never lays off.

Hand scoring: the knock, the undercut and gin

Everything is computed from deadwood, so start with the values. Only cards outside your melds count.

Three outcomes, counted out

Knock holding 6 against an opponent left with 19 after lay-offs and you score 13. Make the same knock against a defender who lays off two cards and also lands on 6, and the equal counts are an undercut: they take 0 plus the 10-point bonus.

Gin rewrites the sum. With zero deadwood you take 20 plus everything they hold, and no lay-off is allowed, so a king, a queen, a 9 and a 5 is 34 points.

The plays the table will not accept

The Knock button appears only when a legal knock exists, and its label carries the count it would leave you on, or reads Gin at zero. The check tries discarding each eligible card and keeps the lowest total available, so when no button is offered, no discard gets you under 11.

The declined up-card cannot be drawn later; the table says so if you click the pile. Throw a card our meld finder is using and you get a warning naming the set or run you are breaking, with the option to continue — chasing gin that way is sometimes right.

Your first ten hands: what to take and what to throw

Throw high cards early. A king costs 10 if you are caught with it and does nothing unless already connected. Count your deadwood rather than admiring your melds: two sets and four high cards is worse than one set and six small cards.

Take from the pile only when the card does real work, because a known card taken tells your opponent what you are building. Mirror their discards too — if they throw the 9 of clubs, nines are safer to collect. Our Gin Rummy strategy guide goes further into discard reading.

Pricing the knock and reading the pile

Strong Gin is two calculations: what your opponent is collecting, and what a knock is worth against what it risks.

What the discards tell you

Every card taken from the pile is a declaration. A taken 6 of hearts suggests hearts around it or more sixes; after a second take, assume both and hold what would complete it. Watch the stock counter beside the scores too: in single figures the hand is likelier to be cancelled than won.

When a knock at 8 is a bad bet

A knock pays the difference between the counts, so the upside is capped by how badly your opponent is doing while the downside is that difference plus 10. Against someone who has drawn from the pile twice and thrown nothing above a 7, a knock at 8 risks about 10 points to gain 5. Against someone who has thrown two face cards it is clearly right.

Gin variants we do not deal

Oklahoma Gin sets the knocking threshold from the up-card: a 6 showing means nobody may knock above 6, and an ace means gin or nothing. Hollywood Gin runs three games at once on one scoresheet. Our threshold is a flat 10, and we score one game at a time.

House scoring varies more than the play does, with bigger gin bonuses or targets of 150 and 200 elsewhere. Ours are fixed: 20 for gin, 10 for an undercut, 20 per box and 100 for the game.

How CardX Games runs a hand of Gin

One function does the hard work for both sides. Our meld finder, findOptimalMelds, backtracks over every candidate set and run and keeps the arrangement with the lowest deadwood, so the count under your cards comes from the same optimiser the CPU uses on its own.

The CPU draws from the pile only when the top card improves its optimal deadwood by more than a single point. It then throws its highest-valued deadwood card, never the one it took from the pile that turn.

Its knocking policy is deliberately loose. Gin is declared the moment its deadwood hits zero, but below 6 points it knocks about seven times in ten and otherwise plays on, so hands it could have ended are left running. A cancelled hand counts as neither a win nor a score, and its speed can be set to slow, normal or fast.

A hand played out, draw by draw

You are dealt 7-8-9 of clubs, three 4s, the king of spades, the queen of diamonds, the 9 of hearts and the 2 of spades. Two melds are already there, but the deadwood is 10 plus 10 plus 9 plus 2, which is 31.

You pass the up-card, draw the 10 of clubs so the run reaches four cards, and throw the king: 21 left. Next turn the jack of clubs extends the run to five and the queen goes out, leaving 11. Then the 2 of hearts arrives, so discarding the 9 of hearts face down leaves two deuces for a count of 4, and the Knock button appears.

The CPU spreads the 6 of clubs and a fourth 4, lays both off onto your run and your set, and keeps the king of diamonds and the 8 of hearts for 18 — 14 points to you. Knock two turns earlier at 21 and those same lay-offs put them on 18 against your 21, handing them 13.

Winning the game rather than the hand

With a 100-point game bonus against hands worth 10 to 30, standings matter more than margins: a player on 92 should take any legal knock, because 8 points finishes the game.

Box bonuses reward volume. Every hand won is worth 20 regardless of margin, so three narrow 6-point knocks are worth 78 in the final tally while one 34-point gin is worth 54. The shutout is the trap: if the loser never scores, the game bonus doubles to 200, so one cheap hand early is worth taking.

Where these rules come from

Our rules follow the pagat.com Gin Rummy reference linked below, reconciled against the shipped build on 2026-09-21 under our rules verification policy. Content was rephrased for compliance with licensing restrictions. If the game does something this page does not describe, report it on the contact page. For the shedding version of the family, read the ten-card Rummy guide or browse our card games index.

Gin Rummy Terms Explained

Deadwood
The cards outside your melds, and the number shown under your hand. It is recomputed after every draw and discard from the best arrangement available.
Knock
Ending the hand with 10 or fewer deadwood points. You press Knock and discard one card face down; an illegal choice is refused with its count.
Gin
A hand with no deadwood. It pays 20 plus the opponent’s full count and cannot be undercut or laid off against.
Undercut
The defender matching or beating the knocker’s count, worth the difference plus 10. Our scorer treats a tie as an undercut, so it pays the defender 10.
Lay-off
Shedding unmatched cards onto the knocker’s melds during the show. Ours extends runs at either end and fills sets to four, but never runs after gin.
Up-card
The twenty-first card, turned up to start the discard pile. Offered to the non-dealer, then the dealer; if both pass it is locked out of the hand.
Box bonus
Twenty points for each hand you won, added once somebody reaches 100. Our scoreboard shows hands won beside your points, since the two settle the game.

Frequently Asked Questions

Why can my opponent not lay off cards when I go gin?

Because gin is protected. A knock at 1 to 10 deadwood invites lay-offs and can be undercut; gin cannot be touched, so their whole count is added to your 20-point bonus as dealt.

Why did my hand end with no score while cards were left?

The stock reached 2 cards and the player to act discarded without knocking, so the deal was cancelled: nothing scored, no hand credited towards box bonuses, and a redeal.

Can I discard the card I just picked up from the pile?

Not on the same turn, and the rule covers the knock discard too, since that is still a discard. A card drawn from the stock may be thrown straight back.

Why is there no Knock button when my deadwood looks low?

Knocking includes a discard, so the check looks at the best ten-card hand you could leave after throwing one card. If no eligible discard gets the remainder to 10 or less, no button is offered.

What happens if we tie on deadwood after a knock?

The defender wins the comparison. Equal counts are treated as an undercut, so they score the difference of zero plus the 10-point bonus and the knocker gets nothing.

Do the bonuses count towards reaching 100?

No. Hand scores alone take a player to 100; the game bonus, the doubled 200 for a shutout and the 20 per hand won are added afterwards, so they never shorten the game.

Can I put melds on the table during the hand?

No, and that is what separates Gin from its parent game. If you prefer laying combinations down as you build them, our two-handed Rummy table is the game to play instead.

Why did the computer not knock when it clearly could?

Its knocking rule is loose on purpose: gin is declared immediately, but with deadwood of 5 or less it knocks roughly seven times in ten and otherwise plays on for a better hand.

Rules Sources

Rules reviewed:

The rules on this page were checked against pagat.com — Gin Rummy and Bicycle Cards — How to play Gin Rummy and against the game as it runs here. Where our table plays a house variant, this page says so above rather than leaving you to find out mid-hand. Content was rephrased for compliance with licensing restrictions. See how we verify our rules, or report a rule we have got wrong. Full Gin Rummy rules guide.