To solve the 8 queens puzzle in Chess.com - Play and Learn, place eight queens on an empty board so that no two pieces share the same rank, file, or diagonal. Out of more than 4 billion possible arrangements of eight pieces on a 64-square board, exactly 92 configurations are valid solutions.

A reliable, conflict-free solution assigns one queen to each vertical file from left to right: a4, b7, c3, d8, e2, f5, g1, and h6.

Placement Coordinates for a Valid Solution

Because each queen controls its entire rank and file, any valid layout must place exactly one queen on each column (files a through h) and exactly one queen on each horizontal row (ranks 1 through 8). Diagonal safety requires that no two pieces share the same diagonal lines.

The following setup meets all rank, file, and diagonal constraints:

FileCoordinateRankMajor Diagonal (File - Rank)Minor Diagonal (File + Rank)
File Aa44-35
File Bb77-59
File Cc3306
File Dd88-412
File Ee2237
File Ff55111
File Gg1168
File Hh66214

In this configuration, every diagonal index remains unique, ensuring that no queen attacks another.

Testing the Setup in the Chess.com Analysis Board

You can test this layout or experiment with other solutions using the custom board editor on the platform:

  1. Open the Learn or More menu on Chess.com - Play and Learn and select Analysis.
  2. Select the Set Up Position option to access the board editing palette.
  3. Click Clear Board to remove all standard starting pieces.
  4. Select the White Queen and place one piece on each target square: a4, b7, c3, d8, e2, f5, g1, and h6.
  5. Click on each queen individually to view its legal movement paths and confirm that no other queen lies along its path.

Rules for Constructing Alternative Solutions

If you want to discover one of the other 91 valid arrangements manually, apply these elimination rules as you place pieces from left to right:

  • Enforce strict rank isolation: Never place a new queen on a rank that is already occupied.
  • Maintain square-color balance: A valid solution typically balances four queens on light squares and four on dark squares. Placing too many queens on one color early in the attempt quickly congests diagonal paths for the final columns.
  • Check diagonal intersections early: Before placing a queen on files e through h, calculate lines back to files a through d. Most failed attempts satisfy rank and file limits but leave no safe squares on the final two files due to overlapping diagonal attacks.
Chess.com - Play and Learn icon

Free Chess.com - Play and Learn Codes

Current active codes and how to redeem them.

View Codes
Sarah Williams

Sarah Williams

Sarah specializes in RPG and collection games, explaining team building, character growth, and beginner-friendly ways to avoid expensive early mistakes.