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:
| File | Coordinate | Rank | Major Diagonal (File - Rank) | Minor Diagonal (File + Rank) |
|---|---|---|---|---|
| File A | a4 | 4 | -3 | 5 |
| File B | b7 | 7 | -5 | 9 |
| File C | c3 | 3 | 0 | 6 |
| File D | d8 | 8 | -4 | 12 |
| File E | e2 | 2 | 3 | 7 |
| File F | f5 | 5 | 1 | 11 |
| File G | g1 | 1 | 6 | 8 |
| File H | h6 | 6 | 2 | 14 |
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:
- Open the Learn or More menu on Chess.com - Play and Learn and select Analysis.
- Select the Set Up Position option to access the board editing palette.
- Click Clear Board to remove all standard starting pieces.
- Select the White Queen and place one piece on each target square: a4, b7, c3, d8, e2, f5, g1, and h6.
- 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.
Free Chess.com - Play and Learn Codes
Current active codes and how to redeem them.
COMMUNITY
Player Comments
42 players commented on this guide.
I tried this today and it worked better than my old setup.
Can you add more details about strategy in a future update?
The explanation is clear, especially for beginners.
Good guide for Chess.com - Play and Learn players. The strategy part was useful.