It is a database with the perfect result of every position with few pieces. For each position it says whether the side to move wins, draws or loses, and in how many plies. The Syzygy tablebase this tool queries covers up to 7 pieces, kings included.
Set up an endgame with up to 7 pieces and see the perfect result, distance to mate and ranked moves, then practice against perfect play.
A tablebase is a database that has already solved every endgame position with few pieces: for each one it knows whether the result under perfect play is a win, draw or loss, and in how many moves. This tool queries the complete 7-piece Syzygy tablebase hosted by Lichess. You build the position with the palette (or paste a FEN), see the verdict, the DTZ and DTM, a move list from best to worst, and can watch the perfect line to checkmate. In practice mode the tablebase answers your moves with perfect attack and defense, and the library brings classic endgames with short explanations: queen, rook, Lucena, Philidor, opposition, bishop and knight and more.
DTM (distance to mate) counts how many plies are left until checkmate under perfect play by both sides. DTZ (distance to zeroing) counts how many plies are left until the next capture or pawn move, which resets the 50-move counter. A ply is one side's move, so 2 plies make one full move.
The 50-move rule declares a draw when 50 moves by each side, that is 100 plies, pass without a capture or pawn move. That is why DTZ is the number that matters in practice: a theoretically won position can be a draw if its DTZ plus the current counter exceeds 100. That is the "cursed win".
The library collects endgames that show up in books and real games: the basic mates (queen, rook, two bishops, bishop and knight), king and pawn (key squares, opposition, rook pawn) and the two most famous rook positions, Lucena, which wins, and Philidor, which draws.
In each one you can analyze with the tablebase or practice against it. Practice is the best way to make the idea stick: the tablebase never errs, so you only pass with the right method.
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
<iframe
src="https://jkit.tools/embed/en-US/chess-endgame-tablebase"
width="100%"
height="600"
style="border:0"
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
title="Chess Endgame Tablebase (up to 7 Pieces)"
></iframe>
<p style="font-size:12px;margin:6px 0 0">Tool by <a href="https://jkit.tools/en/tools/chess-endgame-tablebase">J-Kit</a></p>Using it in a paper, class or post? Copy the link or a ready-made reference. The access date is today's.
<a href="https://jkit.tools/en/tools/chess-endgame-tablebase">Chess Endgame Tablebase (up to 7 Pieces)</a>
These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
It is a database with the perfect result of every position with few pieces. For each position it says whether the side to move wins, draws or loses, and in how many plies. The Syzygy tablebase this tool queries covers up to 7 pieces, kings included.
Play both sides and see the perfect result of every position and every move.
Use the arrow keys to move between squares. Enter or space selects a piece, then the destination square. Escape cancels.
Set up a valid position to query.
Pick an endgame to analyze with the tablebase or to practice against perfect play.
Basic mates and the 50-move rule
King and queen against king
Win
The simplest mate. Use the queen to corner the enemy king and bring your own king to help. With perfect play, mate comes in at most 10 moves. Beware of stalemate, which is a draw.
King and rook against king
Win
Cut the enemy king off with the rook and advance your king until it faces the enemy king, in opposition, to give check on the edge. With perfect play, mate comes in at most 16 moves.
50-move rule: a cursed win
Cursed win
King and rook against king, but with the counter at 85 plies. The mate needs more moves before a capture or pawn move than are left until the draw, and the tablebase marks the position as a cursed win. Reset the counter in Set up and compare.
King and pawn
King and pawn: key squares
Win
When your king reaches a key square in front of the pawn, promotion is guaranteed even if the opponent moves first. Here the white king on e6 stands in front of the pawn on e5. Switch the side to move in Set up and see it wins both ways.
King and pawn: opposition
Win for the side not to move
Kings face to face with one square between: whoever has to move gives ground. With Black to move White wins; with White to move it is a draw (switch the side to move in Set up and check). Triangulation is the maneuver of losing a tempo with the king to hand the obligation to move to the opponent.
Rook pawn: a draw
Draw
With the pawn on the a or h file, the enemy king reaches the promotion corner and has no squares to attack, which draws (or stalemates). In practice, defend as Black.
Rook endgames
Lucena position
Win
The most famous rook endgame: pawn on the 7th rank and your king in front of it, cut off by the enemy rook. The technique is building a bridge: take the rook to the 4th rank and use it as a shield against the checks, so the king can step out and promote.
Philidor position
Draw
The classic drawing defense: the rook stays on the defender's 3rd rank (here a6) and stops the enemy king from advancing. When the pawn advances, the rook goes back and checks from behind. In practice, defend as Black.
Bishops and knights
Two bishops against king
Win
Bishops of opposite colors together push the king to a corner, with your king's help. It always wins, in at most 19 moves with perfect play.
Bishop and knight against king
Win
The hardest of the basic mates: the king can only be mated in the corner of the bishop's color, and the way there is long (up to 33 moves). Practicing against the tablebase shows the technique.
Wrong bishop and rook pawn
Draw
The dark-squared bishop does not control a8, which is light, so the king in the corner draws even with a bishop and a pawn up. With the right-colored bishop it would be a win.
Data: the Lichess Syzygy tablebase (tablebase.lichess.org), by Ronald de Man, with the 7-piece tables generated by Bojun Guo. Cburnett pieces by Colin M. L. Burnett (Wikimedia Commons), under the BSD license.