ChessHutGet the app
Free tool

Chess endgame trainer

Pick an ending, then play it out as White against Stockfish. Every position is a win with correct play. Use Hint if you are stuck and Show the idea for a short explanation.

8
7
6
5
♚︎
4
3
2
1a
b
c
♛︎d
♚︎e
f
g
h

Your move.

Your goal: Checkmate the black king. You play White.

Moves made: 0. A hint shows Stockfish's best move; try to understand why it works.

Engine: Stockfish (GPLv3), running in your browser through stockfish.js (Stockfish 19 lite, single-threaded; licence). Nothing is sent to a server.

Play and train offline on your phone: get ChessHut

ChessHut for iPhone, iPad and Android teaches the same endings in short lessons with playable exercises, and trains them with over 8,000 puzzles in 300 levels. It works offline. Free, with an optional Pro upgrade.

Download on the App StoreGet it on Google Play

The endings in this trainer

  • King and queen against king. Checkmate the black king. Free lesson
  • King and rook against king. Checkmate the black king. Free lesson
  • Two rooks against king: the ladder. Checkmate the black king. Free lesson
  • King and two bishops against king. Checkmate the black king. Free lesson
  • King and pawn: win with the king in front. Promote the pawn, then checkmate. Free lesson
  • King and pawn: gain the opposition. Promote the pawn, then checkmate. Free lesson
  • Pawn race: the rule of the square. Promote the pawn, then checkmate. Free lesson
  • Two connected pawns against a lone king. Promote a pawn, then checkmate. Free lesson
  • King and pawn: win when the defender must move. Promote the pawn, then checkmate. Free lesson
  • Rook ending: the Lucena position. Promote the pawn on b8 and win. Free lesson

How to practise

  1. Read the goal, look at the board and make a plan before your first move.
  2. Play it out. When Black's king moves, ask what it is trying to do and how your pieces can limit it.
  3. If you get lost, press Undo a few times instead of starting again: finding the wrong turn teaches more than a fresh start.
  4. Finish without hints, then try again with fewer moves. With perfect play king and queen against king is mate in at most 10 moves, but a clean method that takes a few more is just as good.

Read the theory

Frequently asked questions

Which endgames should a beginner learn first?

Start with the three basic checkmates: king and queen against king, king and rook against king, and two rooks against king. Then add the two-bishop mate and learn how a king and pawn beat a lone king (the opposition and the key squares), and later the Lucena position, the most important winning rook ending.

Why is the computer so hard to beat?

In every drill you play the winning side and Stockfish defends at full strength, so it always picks the toughest defence. These positions are all won with correct play, so you will win by following the idea, not by waiting for a mistake. Use Undo or Hint whenever you are stuck.

Are these positions really winning?

Yes. Every start position is checked with Stockfish when we build the site: it must show a forced mate or an advantage of at least three pawns for White. The two pawn endings and the Lucena position are also standard textbook wins.

How do I avoid stalemate?

Before you move, check whether the enemy king would have a legal move and whether it is in check. If it has no legal move and is not in check, the game is a draw. The usual cause is taking away the last free square without giving check. Our article on check, checkmate and stalemate has diagrams.

What does the Hint button do?

It asks Stockfish for the best move in the position and draws an arrow. It runs in your browser, so it works offline once the page has loaded. Try to work out why the move works before you move on.

More free chess tools