Back
Queen icon
ArticleAlgorithms9 min read2026-09-13

Eight Queens Puzzle: 92 Solutions, Only 12 Unique

Eight Queens Puzzle: 92 Solutions, Only 12 Unique — Queens.game

The eight queens puzzle looks simple: place eight queens on a chessboard so none attacks another. No two in the same row, same column, or same diagonal. Try it by hand and you'll quickly see the trap — a placement that looks safe at move five falls apart by move seven, and you're starting over.

That trial and error isn't a personal failing. It's the nature of the problem. Out of the billions of ways to arrange eight queens on 64 squares, exactly 92 satisfy every constraint. And here's the twist most people never hear: those 92 aren't 92 truly different ideas. Rotate or mirror the board, and the real number of distinct solutions drops to just 12.

This is for anyone who's played Queens or a classic eight queens puzzle and wondered where that "92" actually comes from — and why it isn't the full story. We'll define what counts as a valid solution, look at why brute-force guessing is hopeless, walk through how computers actually search this space, and unpack the symmetry that turns 92 into 12. We'll close with how the numbers explode on bigger boards, and who invented this puzzle in the first place.

The Question Behind the Number: 92 Solutions, But Is That the Whole Story?

Ask anyone who's studied the eight queens puzzle, and they'll tell you: there are 92 solutions. Place eight queens on a standard 8×8 board so none share a row, column, or diagonal, and 92 distinct arrangements satisfy the rules.

But spend time looking at those 92 solutions, and something odd emerges. Many of them look like the same pattern, just spun around or flipped over. Rotate one solution 90 degrees and you get another "solution" in the list. Mirror it, and you get yet another.

That raises a fair question: how many of these are actually different?

The answer splits this article into two parts:

  • How mathematicians actually count all 92 solutions in the first place
  • Why, once you strip out rotations and reflections, only 12 truly unique solutions remain

What Counts as a Solution to the Eight Queens Puzzle

A solution places all eight queens so that none attacks another. On a standard chessboard, that means satisfying three conditions at once:

  • No two queens share a row.
  • No two queens share a column.
  • No two queens share a diagonal, in either direction.

That's the whole rule set. There's no scoring for elegance or symmetry — a placement either satisfies all three conditions or it doesn't.

The trickier question is what makes two solutions "different." If you rotate a valid arrangement 90 degrees, it's still valid — but is it a new solution or the same one seen from another angle? The same applies to mirror images. Depending on how you answer that, you get very different totals: count every distinct placement on the board, and you get 92. Treat rotations and reflections as duplicates, and that number shrinks considerably.

Why You Can't Just Guess: The Size of the Search Space

Before you even think about non-attacking rules, just placing 8 queens on 64 squares gives you 4,426,165,368 possible arrangements (that's 64!/(56!·8!)). Of those, exactly 92 are valid solutions.

Do the math and only about 1 in 48 million placements actually works.

That ratio explains why random guessing, or even a naive computer program that tries every combination without shortcuts, is a bad strategy. A brute-force search checking all 4.4 billion placements would waste enormous effort on arrangements that fail immediately — two queens sharing a row, for instance, which you could rule out before checking anything else.

This is why real solvers, human or computer, use constraints to shrink the space as they go:

  • Fix one queen per row, cutting the field to 8^8 (about 16.7 million) right away
  • Skip columns already used
  • Skip diagonals already threatened

Each rule eliminates whole branches of guesses at once. That's the difference between brute force and actual logic — and it's why the Queens game rewards deduction over trial and error.

How Backtracking Finds All 92 Solutions

A computer doesn't guess its way to 92 solutions — it works through the board systematically using a method called backtracking. The idea is simple: place one queen per row, check for conflicts immediately, and abandon any path that fails.

Here's the process in practice:

  1. Start in row 1. Place a queen in the first column and move to row 2.
  2. Check the next row. Try each column in turn, skipping any square that shares a column or diagonal with a queen already placed.
  3. Move forward when safe. If a column works, place the queen there and advance to the next row.
  4. Backtrack when stuck. If no column in a row is safe, the algorithm returns to the previous row, moves that queen to its next available column, and tries again.
  5. Record a solution. When all eight rows hold a queen with no conflicts, that arrangement gets logged as one of the 92.
  6. Keep going. Instead of stopping, the algorithm backtracks anyway, as if the first success were a dead end, to uncover every other valid arrangement.

This row-by-row constraint is what makes the search manageable — since only one queen can occupy each row, the algorithm never wastes time checking placements that violate that rule. Combined with instant column and diagonal checks, it prunes away millions of dead-end branches before they're ever fully explored. The result is a complete, verified list of all 92 solutions, generated not by trial and error but by disciplined elimination.

The Symmetry of the Square: Rotations and Reflections

Take a square board and pick it up. You can set it back down in eight different ways and it will still look like the same board: four rotations (0°, 90°, 180°, 270°) and four mirror flips (over the vertical axis, the horizontal axis, and the two diagonals). That's the full set of ways a square can map onto itself.

This matters for the eight queens puzzle because a solution is really a pattern of eight dots on the grid. If you rotate the board a quarter turn, the queens move with it, but they're still non-attacking — you haven't found a new idea, just viewed the old one from a different angle.

Here's a simple way to picture it:

  • Print a solution on paper.
  • Turn the paper 90 degrees. Still valid, still the same underlying pattern.
  • Hold it up to a mirror. Also valid, also the same pattern.

Do this for every solution and many of the "92" collapse into each other. What's left are the patterns that are genuinely different no matter how you turn or flip the board.

From 92 Down to 12: Why Symmetry Collapses the Count

The board's eight symmetries — four rotations and four reflections — act like a multiplier on every fundamental solution. Take any one arrangement of eight queens and run it through all eight transformations. Normally you get eight distinct-looking boards, even though they're all "the same" solution in disguise.

That's exactly what happens for 11 of the 12 fundamental solutions. Each one produces a full set of 8 variants:

  • 11 fundamentals × 8 variants each = 88 solutions

But one fundamental solution breaks the pattern. It happens to be symmetric under a 180° rotation — rotate the board half a turn and the queens land back on themselves. That self-symmetry means two of its eight transformations produce duplicates instead of new arrangements, so it only yields 4 distinct variants instead of 8:

  • 1 fundamental × 4 variants = 4 solutions

Add them together and the arithmetic lines up perfectly with the known total:

  • 88 + 4 = 92

That single symmetric solution is why the math doesn't divide evenly — 92 isn't 12 × 8, because one fundamental "costs" less. It only takes up half the usual space in the count. This is a common pattern in combinatorics: whenever an object has internal symmetry, it collapses its own orbit under the group of transformations, shrinking the total count in a way that pure multiplication would miss.

Beyond Eight: How Solution Counts Explode for Larger Boards

Move past the standard 8×8 board and the numbers stop being cute. Nauck's original generalization — n queens on an n×n board — grows explosively as n increases. Add just a few rows and columns, and the count of valid arrangements multiplies far faster than the board size does.

The current frontier is n=27. Researchers found its exact solution count — over 2.34×10^17 — only by using a massively parallel FPGA-based exhaustive search in 2016. That's not a laptop running overnight; it's custom hardware grinding through possibilities for a single board size.

That effort highlights why brute force stops working. A few reasons:

  • The search space grows combinatorially, not linearly, so each added row multiplies the work.
  • Backtracking still helps by pruning bad branches early, but the surviving branches still multiply out of reach.
  • Symmetry reduction (the trick that turns 92 solutions into 12 for n=8) saves only a constant factor — roughly dividing by 8 — which barely dents astronomically large counts.
  • Checking whether a partial placement can even be completed is itself NP-complete, meaning no known shortcut scales cleanly.

Larger boards don't just have more answers — they demand fundamentally different tools to find them.

A Short History: Who Actually Invented the Puzzle

The eight queens puzzle is often linked to Carl Friedrich Gauss, but that's a myth. It comes from an 1874 account claiming Franz Nauck proposed the puzzle to Gauss in 1850. Historical research corrects this: the puzzle was actually first published by Max Bezzel in 1848, two years before Nauck ever wrote about it.

Nauck's real contribution came in 1850, when he published the first complete set of solutions to the eight-queens problem. He also took the idea further, generalizing it into the n-queens problem — placing n queens on an n×n board — which is the version mathematicians and computer scientists still study today.

Keep exploring on Queens.game