Gaming calculators

Chess Best Move Calculator

Updated Aug 24, 2026 By Jehan Wadia
Rate Formulas
Board
White captured:
Black captured:
Opening: —
Session Moves
Start position
#WhiteBlack
FEN Position
Engine Controls
Depth: — 0.0 s
Search stops at whichever limit is reached first — time or depth.
Depth: 15
After Analysis
Engine: built-in WebAssembly-free alpha-beta search running in a background worker.
Best Move
Best Move
 
Evaluation
0.00
 
0.00
Equal position
Nodes searched0
Search time0.00 s
Legal moves in position0
Side to moveWhite
Analysis Lines
    Click any move in a line to load that position on the board.
    Evaluation History
    Step-by-Step Solution

    Introduction

    The Chess Best Move Calculator finds the strongest move in any chess position. Set up a board, play some moves, or paste a FEN string. Then press Find Best Move and the built-in chess engine does the work for you.

    The engine searches ahead through many moves and picks the best one it can find. You get the top move in chess notation, a score that shows who is winning, and up to three full lines of play. Arrows on the board point to the move, so it is easy to see.

    You can drag pieces to play a game, use the Board Editor to build your own puzzle, or import a game from PGN. The move list marks each move as best, good, an inaccuracy, a mistake, or a blunder. A chart tracks how the score changes move by move.

    Use this chess engine calculator to check your games, solve tricky positions, study openings, or train tactics. The step-by-step solution shows how the score is built from material, piece placement, pawn structure, and search depth, so you learn why a move is best and not just what to play. Once you know how strong your play is, you can see how results translate into rating points with the FIDE Rating Calculator.

    How to use our Chess Best Move Calculator

    Set up any chess position on the board, pick your engine settings, and the tool shows you the best move, the score for the position, and the top lines to follow.

    Play Moves tab: Click a piece, then click a highlighted square to make a move. You can also drag and drop pieces.

    Board Editor tab: Switch here to build your own position instead of playing full moves.

    White and Black piece trays: Click a piece in the tray, then click a square to place it on the board.

    Remove Piece: Turn this on, then click any piece to take it off the board.

    Side to Move: Choose White to Move or Black to Move so the engine knows whose turn it is.

    Castling Rights: Tick the boxes for each side that can still castle kingside or queenside.

    En Passant Square: Type the square (like e3 or d6) if an en passant capture is possible. Leave it blank if not.

    Half-Move Clock: Enter how many moves have passed with no capture and no pawn move. Use 0 if you are not sure.

    Full-Move Number: Enter the move number of the game. Use 1 for a fresh position.

    FEN String: Paste a FEN code and press Set Position to load it. Press Copy FEN to save the current position.

    Import from PGN: Paste a game's PGN, then load the final position or stop after a chosen half-move.

    Flip Board, Start Position, Clear Board: Turn the board around, reset to the normal start, or wipe all pieces.

    Board options (gear icon): Pick a board theme, a piece set, and turn coordinate labels on or off.

    Engine Think Time: Enter how long the engine may think, then pick seconds, milliseconds, or minutes. If you want to plan a study session around fixed clock limits, the Time Duration Calculator helps you split the total time between positions.

    Search Depth: Drag the slider to set how many plies deep the engine looks. Higher depth is stronger but slower.

    Analysis Lines: Choose 1, 2, or 3 to see that many best lines.

    After Analysis: Pick Show Move to just see the answer, or Auto-Play Move to play it on the board.

    Show Move Arrows: Keep this ticked to draw arrows for the top moves right on the board.

    Find Best Move: Press this to run the engine. You get the best move, the score, the eval bar, the top lines, and a step-by-step breakdown.

    Chess Best Move Finder: What It Does

    In every chess position, some moves are better than others. A chess engine looks ahead at many moves, counts what each side wins or loses, and picks the move that gives the best result. This is called finding the best move. Strong players use engines to check their games, study openings, and learn why a move works.

    How a Chess Engine Thinks

    An engine builds a tree of moves. It plays a move in its memory, then all the replies, then the replies to those. Each ending position gets a score. The engine keeps the line that gives the highest score for the side to move. Two ideas make this fast:

    • Search depth: how many half-moves (plies) deep it looks. One ply is one move by one side. Depth 10 means five moves for each player.
    • Alpha-beta pruning: the engine skips branches that are already worse than a line it found before, so it saves time.

    The number of possible lines grows very fast with depth, in the same way values grow in the Exponential Growth Calculator. That is why pruning matters so much: without it, even a modern computer could not reach useful depths.

    What the Evaluation Number Means

    The score is written in pawns. A plus number means White is better. A minus number means Black is better. So +1.00 means White is ahead by about one pawn.

    • 0.00 to ±0.25 — even game
    • ±0.25 to ±0.75 — small edge
    • ±0.75 to ±1.50 — clear edge
    • ±1.50 to ±3.00 — big advantage
    • Over ±3.00 — usually winning
    • M3 — forced checkmate in 3 moves

    The score comes from piece values (pawn 1, knight 3, bishop 3, rook 5, queen 9), plus where the pieces stand, pawn structure, king safety, and having both bishops. To compare two scores as a relative shift rather than a raw gap, the Percent Difference Calculator is handy.

    FEN and PGN

    FEN is one line of text that stores a whole position: the pieces, who moves next, castling rights, the en passant square, and the move counters. PGN stores a full game as a list of moves, like 1. e4 e5 2. Nf3 Nc6. Both formats work in almost every chess app, so you can copy a position or game from one place and paste it into another.

    Reading Move Notation

    Moves use algebraic notation. The letter is the piece (K king, Q queen, R rook, B bishop, N knight), and pawns have no letter. Then comes the square, like Nf3. An x means a capture, + means check, # means checkmate, and O-O means castling. Engines also use UCI style, which just lists the start and end square, like g1f3.

    Principal Variation and Move Quality

    The principal variation (PV) is the best line the engine found — the best move, the best reply, and so on. Looking at the whole line tells you why a move is good, not just that it is. When you compare the score before and after a move, you can label it: best, good, inaccuracy, mistake, or blunder. A blunder is a move that throws away a big part of your advantage. Tracking how often you find the top move over many games gives you an accuracy figure, much like the ratio you get from a Win Rate Calculator.

    Tips for Using Engine Advice

    • Give the engine more time or depth in sharp, tactical positions. Shallow searches can miss traps.
    • Ask "why?" before you copy a move. Look for the threat, the loose piece, or the open file.
    • Small score changes near 0.00 do not matter much. Focus on the big swings.
    • Engine analysis is not allowed during real games. Use it to study afterward.

    More Gaming and Probability Tools

    If you enjoy working out the math behind games, try the Poker Odds Calculator for card equity, the Probability Calculator for general chance problems, the Combination Calculator for counting positions and hands, the Dice Probability Calculator for tabletop rolls, or the Yugioh Probability Calculator and MTG Probability Calculator for deck-building draws.


    Formulas used

    Static evaluation (total position score, centipawns)
    E_{static} = (M_W - M_B) + (PST_W - PST_B) + (S_{pawns}) + (S_{bishops}) + S_{tempo}
    Material count per side
    M = 100 n_P + 320 n_N + 330 n_B + 500 n_R + 900 n_Q
    Game phase factor from non-pawn material
    \phi = \frac{\min(\text{npm},\,6400)}{6400}
    King piece-square interpolation (middlegame to endgame)
    PST_K(s) = \mathrm{round}\left(PST_K^{mid}(s)\cdot\phi + PST_K^{end}(s)\cdot(1-\phi)\right)
    Pawn structure penalties (doubled, isolated)
    S_{pawns} = -12\sum_{f=0}^{7}\max(0, n_f - 1) \; - \; 18 \cdot (\text{isolated files})
    Side-to-move relative score (negamax convention)
    E_{rel} = \begin{cases} E_{static}, & \text{White to move} \\ -E_{static}, & \text{Black to move} \end{cases}
    Evaluation bar (white winning percentage)
    P_W = \frac{100}{1 + e^{-\,\mathrm{clamp}(cp,\,-1500,\,1500)/350}}
    Mate distance in moves from search score
    N_{mate} = \max\left(1,\ \left\lceil \frac{100000 - |score|}{2} \right\rceil \right)
    Nodes per second
    NPS = \frac{\text{nodes}}{t\ [\text{s}]}

    Frequently asked questions

    Why does the engine sometimes give a different best move when I run it again?

    The engine stops when it hits your time limit or depth limit, whichever comes first. If your computer is a little busier one time, the search may end a bit earlier or later, so it can land on a different move. Two moves that score almost the same are both fine. To get steadier answers, raise the Search Depth and give the engine more think time.

    How strong is this chess engine?

    It is a solid club-level engine. It uses alpha-beta search, quiescence search, killer moves, and a scoring function based on material, piece squares, pawn structure, the bishop pair, and tempo. It runs right in your browser with no download. It is great for checking blunders, solving tactics, and studying openings, but it is not as strong as top desktop engines running for minutes on many cores.

    What does the number on the eval bar mean?

    It is the score in pawns. +0.80 means White is ahead by about eight tenths of a pawn. A minus number means Black is ahead. The white part of the bar grows when White is better. If you see M4, one side has a forced mate in four moves.

    Why is the score not 0.00 at the starting position?

    White moves first, so the engine adds a small bonus called tempo. That is why the start shows a tiny plus for White. Real chess games do give White a small edge, so this is normal.

    What is a ply?

    A ply is one move by one player. A full move is two plies: one for White and one for Black. So depth 16 means the engine looks about eight moves ahead for each side.

    Should I raise think time or search depth?

    Raise both. Depth sets the ceiling, and time decides if the engine can reach it. For quick checks, 3 seconds at depth 15 works well. For sharp tactical spots, try 10 to 20 seconds and depth 18 or more.

    Why did my analysis stop before the depth I set?

    Time ran out first. The engine searches deeper one step at a time and keeps the best answer it finished. Give it more time if you want it to reach the full depth.

    Can I set up a position that is not legal?

    You can place pieces freely in the Board Editor, but the engine needs a legal setup. It needs one white king and one black king. It will also refuse a position where the side that is not to move is in check. An error message tells you what to fix.

    How do I get a FEN for my position?

    Set the position on the board, then press Copy FEN. The FEN text is copied to your clipboard, and you can paste it into any chess site or save it for later.

    My PGN will not load. What is wrong?

    The tool strips headers, comments, and side lines, then reads the moves. If a move cannot be read, check for typos, odd symbols, or moves that are not legal in order. Copy only the move text if you are unsure. Games that start from a custom position are not supported.

    What do the Best, Good, Inaccuracy, Mistake, and Blunder tags mean?

    After each move, a quick search compares the score before and after. The drop in score sets the tag:

    • Best — almost no loss
    • Good — small loss
    • Inaccuracy — about half a pawn to one pawn lost
    • Mistake — one to two pawns lost
    • Blunder — over two pawns lost

    These tags come from a fast check, so run Find Best Move for a deeper look at any move you care about.

    How do I promote a pawn?

    Move the pawn to the last rank. A small box pops up with a queen, rook, bishop, and knight. Click the piece you want. This lets you pick an underpromotion when a knight or rook is better.

    How do I castle?

    Move the king two squares toward the rook. The rook jumps over on its own. Castling only shows up when it is legal and the castling rights are still ticked in the Board Editor.

    Can I play against the engine?

    Yes. Make your move, then choose Auto-Play Move under After Analysis and press Find Best Move. The engine plays its reply on the board. Repeat for a full game. Lower the think time for fast games and raise it for a tougher opponent.

    What is the principal variation shown in Analysis Lines?

    It is the best line the engine found: the best move, the best reply, the next best move, and so on. Click any move in the line to jump the board to that position and see it for yourself.

    Why do the second and third lines sometimes look weak?

    The engine spends most of its effort on the top move. Backup lines get less search, so their scores are rougher. Trust line one the most. If you want a fair look at another move, play it on the board and analyse from there.

    Does the tool know chess openings by name?

    Yes. It matches your move order against a list of common openings and shows the name under the board, like Ruy López or Sicilian Defense. The name updates as you play more moves.

    What is the half-move clock for?

    It counts moves since the last capture or pawn move. When it hits 100 (fifty moves by each side), a draw can be claimed. Set it to 0 if you are not sure; it barely changes the engine's advice in most positions.

    Can I use this during a rated game?

    No. Using an engine during a live game is cheating and can get you banned. Use it before or after a game to study and learn.

    Does the tool work on a phone?

    Yes. The board resizes to fit your screen, and you can tap a piece then tap a square, or drag pieces. Keep think time short on a phone so the engine finishes fast and the page stays smooth.

    How do I flip the board to see it from Black's side?

    Press the Flip Board button. Black's pieces move to the bottom. This does not change the position or whose turn it is.

    Can I use the keyboard instead of a mouse?

    Yes. Press Keyboard Mode, then use the arrow keys to move the highlighted square. Press Enter or Space to pick up a piece, move to the target square, and press Enter again. Escape cancels the pick.

    What does the evaluation chart show?

    It plots the score after each half-move in your game. A sharp drop or spike shows where the game turned. Click the move in the move list to jump to that spot and see what happened.

    What is the step-by-step solution for?

    It shows how the score is built: material count, piece-square values, pawn structure, bishop pair, tempo, then the search results with nodes and depth. It helps you see why the engine likes a move, not just which move it picked.

    What are nodes and nodes per second?

    A node is one position the engine looked at. Nodes per second shows how fast it searched. More nodes usually means a deeper, more reliable answer. The number depends on your device speed.

    Can I go back and change a move?

    Yes. Press Take Back to remove the last move, or click any move in the move list to jump there. If you then play a new move, the moves after that point are replaced.

    Why does the engine say checkmate or stalemate with no move?

    Because there are no legal moves in that position. If the king is in check, it is checkmate. If the king is safe but nothing can move, it is stalemate and the game is a draw.