Chess Solver

Set up a puzzle or a position you are stuck on, choose who moves, and Stockfish solves it: the forced mate if there is one, otherwise the best move.

A chess solver takes a position you give it and works out the strongest continuation. Build the position below (or paste a FEN), press Use this position, then press the side to move. If a forced checkmate exists, the score shows it as M plus the number of moves.

Position editor

White to move
Loading chessboard…

Choose a piece, then tap a square. Drag to reposition. Eraser removes a piece.

Castling rights

Basic position checks passed. This does not prove the position can arise from a legal game.

How to solve a chess position

  1. Set up the position. The board opens in edit mode. Pick a piece from the palette and tap a square, or press Clear to start from an empty board. Already have a FEN? Paste it into the Import box and press Load.
  2. Set the side to move. In a puzzle this is the side that has to find the answer. Turn castling rights on only if that king and rook have not moved.
  3. Press Use this position. The solver checks that the position is legal: one king each, no more than 8 pawns per side, and the side that just moved is not in check.
  4. Press White to move or Black to move. Stockfish searches and draws the best move as an arrow. The score tells you what it found: +M3 means White mates in three, −M2 means Black mates in two, and a number like +2.40 means there is no forced mate but White is clearly better.
  5. Walk through the solution. Tick “Update the suggestion after each move”, play the arrow, then play the defender's reply. The solver answers again after every move until the mate is on the board.

Want to see it work first? Load a mate-in-2 puzzle from a real game, press Use this position, then Black to move. The solver should show −M2 with 1...Re1+ as the key move.

What you can solve with it

Mate-in-N puzzles

“White to play and mate in 3” is exactly the kind of question an engine answers with certainty. If the score shows M and a number, the mate is forced against any defense, not just likely. If you expected mate in 3 and the solver reports M2, there is a faster route you missed. Practice the patterns in our mate in 2 and mate in 3 sets.

Positions where you are stuck

From your own game, a book diagram or a study position: set it up, ask for the best move, and compare it with the move you were going to play. If the two scores are close, both moves are fine. If they are far apart, look for the tactic the engine found.

Homework and club puzzles

Coaches set puzzles so you practice calculating, so solve it on paper first. Then use the solver to check your answer, including the defenses you didn't consider. Our puzzle trainer works the same way, with hints and the full solution after you try.

Endgame studies

Set up a king and pawn ending or a rook ending and the solver shows which move keeps the win or holds the draw. A score near 0.00 points to a draw; a large score or an M score points to a win. Our king and pawn endgame lesson explains the ideas behind the answer.

Reading the solver's answer

Scores are always from White's point of view. +M means White can force mate, −M means Black can. A plain number is an estimate in pawns: around 0.00 is equal, and beyond about ±2 one side is usually winning. When the arrow and score settle and stop changing, the search has found its answer for the time it had. For a full explanation of the numbers, see how to read chess engine evaluations.

Limitations

The solver is for puzzles, study and finished games. Never use it, or any engine, during a game you are playing.

FAQ

Is this chess solver free?

Yes. The solver is free with no account and no limit. Stockfish 17.1 runs inside your own browser, so the positions you set up are not uploaded anywhere to be solved.

Can the chess solver find mate in 2, 3 or more?

Yes. When Stockfish finds a forced checkmate it shows the score as M followed by the number of moves, for example −M2 when Black mates in two. Short mates usually appear in Quick mode; for longer mates, switch to Deep, which searches for 5 seconds instead of 1.5.

How do I see the whole solution, not just the first move?

Tick "Update the suggestion after each move", then play the suggested move and the opponent's reply on the board. The solver recalculates after every move, so you can walk through the full solution one move at a time.

Why does the solver say my position is invalid?

Each side needs exactly one king, no more than 16 pieces and 8 pawns, and the side that just moved cannot be in check. Castling and en passant settings must also match the board. Fix the highlighted problem in the editor and press Use this position again.

Does the solver work for chess homework and club puzzles?

Yes, as a way to check your answer. Try the puzzle yourself first, then set it up here to confirm the solution or see what you missed. You learn far more that way than by copying the move.

Can I use a chess solver during an online game?

No. Chess.com, Lichess and every major site ban engine help during games you are playing, and accounts that use it get closed. Use the solver for puzzles, study and finished games only.