Mahjong Solitaire

Free · no download

Keep playing

How to play Mahjong Solitaire

Mahjong Solitaire, also called Mahjongg or Shanghai, is the tile-matching puzzle built into Windows for decades. Match pairs of free tiles to clear the stack.

At a glance

Mahjong Solitaire is the classic solo tile-matching game. Clear the full 144-tile board by pairing free tiles — no timer, no pressure, just a calm clear.

Game type
Mahjong
Players
Single player
Pieces
144 tiles
Best for
Calm focus
  • A tile is free when nothing sits on top of it and its left or right side is open.
  • Click two identical free tiles to remove them.
  • Flowers match any flower, seasons match any season.
  • Clear the whole board to win. Use hint, shuffle or undo if you get stuck.

Frequently asked questions

How many tiles are on the board?

The classic turtle layout uses all 144 tiles from a standard mahjong set.

Can every layout be solved?

Every deal is built with a guaranteed solution, but you can still get stuck by matching the wrong pairs. That is why the game offers hint, shuffle and undo.

How the board is built, and what "solvable" means here

Plenty of mahjong solitaire pages shuffle a pile of tiles and hope for the best. This board is generated backwards, and that changes what you can expect from it.

The game first builds the empty shape for the layout you picked, then repeatedly takes two free tiles off the top of a full board and writes down the order it removed them in. If that process cannot reach an empty board, the whole deal is discarded and it starts over. Only once a complete removal order exists are the real tile faces painted onto it.

The consequence is worth stating plainly: every deal you are given has at least one complete path from the first tile to the last. What it does not promise is that your path is one of them. A pair that looks harmless can close the only remaining route through the stack. That is also why the board reshuffles itself when it runs out of legal pairs instead of leaving you staring at a dead screen.

What makes a tile free

A tile is free when two things are true at the same time: nothing is resting on top of it, and either its left edge or its right edge is open at the same height.

Two details trip people up more than any rule:

  • Half steps count. Tiles sit on a grid where one tile is two units wide, and the game treats a neighbour half a tile to the side as a blocker too. A tile can look like it has daylight beside it and still be pinned.
  • One open side is enough. A tile boxed in on the left is perfectly playable if nothing stands to its right. Long base rows are open along one edge for exactly this reason.

Burial works the same way in the other direction: a tile is buried if any tile on a higher layer physically covers it, even partly. That is how the crown of the turtle can keep four tiles locked at once.

Three layouts, three different problems

The buttons in the toolbar are not a difficulty slider. They are three different boards with different tile counts, different numbers of layers and, importantly, different tile sets.

LayoutTilesPairsLayersDistinct facesFlowers and seasons
Turtle144725348 tiles
Tower7638519none
Pyramid12060430none

Turtle is the shape Microsoft shipped with Windows for years. Its base is 87 tiles in eight rows, with two thin wings hanging off the sides — one tile on the left, two on the right — and four stacked layers on the shell above it: 36, then 16, then 4, and a single crown tile on top. It is the only layout that uses the full tile set, and the only one with flowers and seasons.

Tower puts 76 tiles on a narrow six-by-six footprint. The part worth knowing is the top: the fourth and fifth layers occupy exactly the same four squares, so the last eight tiles form a column. You can only reach the top of it, and clearing that reveals the next.

Pyramid is 120 tiles in four layers, each inset by one tile from the one below, starting from an eight-by-eight base. There are no flowers or seasons here, and no spare pairs — with 30 faces in play, every face on the board is a pair you will need twice.

Every face appears four times

On the turtle board, each numbered tile — 1 to 9 in characters, bamboos and circles — and each honour tile — four winds and three dragons — appears exactly four times, as two separate pairs of the same face. That accounts for 136 tiles. The remaining eight are the flower and season tiles: two plum, two orchid, two spring, two summer.

Two things follow from that. First, clearing one pair of a face does not remove that face from the board — there is another pair of the same tile somewhere, possibly on the far side of the stack. Second, in the last third of a board the useful question is not "where is the twin of this tile" but "how many of these four are still down there", because a single stray copy is often the difference between a clean finish and a reshuffle.

Tower and pyramid work the same way with fewer faces: 19 and 30 respectively, four tiles each.

Flowers and seasons pair only inside their own group

A flower matches a flower; a season matches a season. That is the entire rule, and it is narrower than the word "wildcard" suggests — a plum tile will not clear a 5 of circles, however stuck you are.

What the rule does give you is flexibility. The turtle board carries four flower tiles and four season tiles, and any flower pairs with any other flower, so instead of one fixed pair you have a small pool of interchangeable tiles that can be combined however the stack allows. It is worth knowing where they sit: when the middle of the board is jammed, they are usually the cheapest legal moves left.

When the board runs out of moves

Three of these happen on their own; one you trigger yourself.

  • Automatic reshuffle. After each pair you clear, the game pauses for a moment and checks whether any legal pair is still reachable. If none is, it repaints the faces of the tiles still in play without announcing it and without any penalty. You do not lose progress and you are not sent back to the start.
  • Shuffle. The toolbar button does the same thing on demand. It repaints the faces of the tiles still in play, retrying up to sixty times to reach a position with at least one legal pair. It does not move tiles between positions, so it cannot dig anything out of a stack.
  • Real dead ends. If fewer than two tiles are free at all, no amount of reshuffling can produce a pair. The game says so instead of shuffling forever — the only ways out are undo or a new game.
  • Hint. Highlights one legal pair for a couple of seconds. When there is nothing to show it reshuffles instead, because "no pair is visible" and "no pair exists" are different situations.

Undo has no limit

Undo takes back the last pair removed. There is no counter, no cost and no cap, so you can walk back five pairs, look at what the board has become, and try a different order. On a layout where a single crown tile sits over four buried tiles, that is often the difference between guessing and planning.

No score, no countdown

The header tracks three numbers: tiles left, pairs left, and a clock that counts up. There is no score to inflate, no combo meter and no timer running down at you — the clock tells you how long a board took, it does not punish you for thinking.

Your best time is stored in the browser separately for each layout, so a turtle record is never compared against a pyramid record. The result card at the end is plain text you can copy or share: it records your time, how many pairs you cleared and how many shuffles you used, and on daily boards it also carries the seed, so whoever opens it plays the identical deal.

Daily boards

Adding ?daily=1 to the address ties the deal to today's UTC date, and ?d=20260925 picks a specific day. The seed is read from the URL only, never from local storage, because the point of a daily board is that the link can be handed to someone else and they get the same tiles in the same places.

On a phone

The board is measured against the viewport when it loads, and tiles are drawn between 18 and 74 pixels wide depending on how much room the layout needs. Rotating the device or resizing the window re-measures and redraws in place, without reloading the page or losing progress.

Reading a stuck board

Four habits that follow directly from the rules above:

  • Start at the top. On the turtle the crown is a single free tile, and everything beneath it stays locked until it goes, which makes it the highest-value move on the board most of the time.
  • Prefer pairs that expose a stack over pairs on the open edge. Two tiles taken from the outer row usually buy you nothing; two taken from the middle of a stack open the layer beneath.
  • Check the half-step before deciding a tile is playable. The most common misread on a crowded base row is a tile that looks isolated but has a neighbour offset by half a tile.
  • Count copies late. Every face appears twice over, and flowers are interchangeable within their group, so a lone tile with no partner in sight usually means the partner is still buried, not missing.

Embed this game on your site

Paste the code below into any page on your website. The game loads instantly and is free — a small credit link back to MahjongBreak is included.