Learn Chess
King Safety in Chess and Where to Put Your King
At the start of a game, the white king sits in the center of the board, just to the right. The black king faces it directly, on the other side of the board. That's only the starting point though. As the game moves forward, the king's job changes, and so does what king safety means. Castling tucks it away to one side, and by the endgame it often marches right into the middle of the action.
How Do You Set Up the King at the Start of a Game?
Where does the king go in the starting position? The white king sits on e1, the black king on e8. Both are in the center of the board, just to the right for White and just to the left for Black. That king isn't going to stay there for long, sitting in the open with enemy pieces bearing down on it.
That's exactly why king safety is the top priority in the opening. Most players achieve it with castling, a special move that tucks the king behind a wall of pawns while bringing a rook into play at the same time. To castle, neither the king nor the rook involved can have moved before, the squares between them have to be empty, and the king cannot be in check or step through a square that an enemy piece attacks. Good king safety habits start this early, and they pay off for the rest of the game. There's more to say about that in a moment.
Where Do the King and Queen Go?
The king and queen both have a fixed starting square. The king goes on the e-file, e1 for White and e8 for Black. The queen goes on the d-file, d1 for White and d8 for Black. One simple rule makes this easy to remember. The queen always starts on a square of her own color. During the game the queen turns into your most powerful and flexible piece, moving in a straight line or on the diagonal, so bring her out with care and avoid exposing her to attacks too early. King safety stays the priority the whole time, and coordinating the king and queen well can open up real tactical chances while keeping the risk low.
Where Does the King Sit Among the Other Pieces?
Every piece has its own square to start the game.
- Pawns go on the second rank for White and the seventh rank for Black.
- Rooks take the corners, a1 and h1 for White, a8 and h8 for Black.
- Knights sit next to the rooks, b1 and g1 for White, b8 and g8 for Black.
- Bishops sit next to the knights, c1 and f1 for White, c8 and f8 for Black. Bishops and knights together are known as the minor pieces.
- The queen takes the remaining square of her own color, d1 for White and d8 for Black.
- The king takes the one square left, e1 for White and e8 for Black.
Getting comfortable with this layout matters. In the opening, the goals are to fight for the center, bring out the minor pieces, and get the king to safety, usually through castling.
Is the King or the Queen on Its Own Color?
The trick is easier than it looks. It's the queen who sits on her own color, not the king. The white queen starts on a light square, the black queen on a dark square, and the king simply takes the square right next to her. Once you remember "queen on her own color," you'll never mix up the two again, even before the real complexity of the game kicks in.
Where to Put Your King in the Opening
The opening is where king safety gets decided. The main goal is to move the king to safety, usually through castling. Castling in chess shifts the king two squares toward a rook on the back rank, and that rook lands on the square right next to the king on the other side.
Castling only works under a few conditions.
- Neither the king nor the rook involved can have moved earlier in the game.
- No piece can stand between the king and the rook.
- The king can't be in check, can't pass through a square under attack, and can't land on one either.
There are two ways to castle. Kingside castling happens on the king's side of the board, queenside castling on the queen's side. Kingside castling is usually seen as the safer option, since it exposes the king less and needs fewer pawns out of place. Queenside castling has its own uses too, and the right choice often comes down to how the pieces are arranged on the board and the plan you're following. Our guide to chess board setup walks through where every piece starts and why that matters.
Outside of castling, try not to move the king around in the opening for no reason. It puts the king in danger and burns time you should be spending developing your other pieces.
Where to Put Your King in the Middlegame
The king's role shifts once the middlegame begins. Safety is still a concern, especially with the queens still on the board, but the king can start to take on a more active part. The board tends to open up at this stage, and the chances for an attack grow with it. Getting the balance right between safety and activity is one of the core themes running through good chess strategy.
- Avoid unnecessary exposure. Keep the king off open files, ranks, or diagonals where enemy pieces can hit it directly.
- Use your pawns as a shield. A solid pawn structure around the king is valuable. Watch out for weak or scattered pawns that give your opponent something to attack, and be careful with any pawn move near your own castled king.
- Consider the center, but rarely. In some positions, especially once the queens are off the board, the king can head toward the center to help control key squares and support its pawns. This stays uncommon in the middlegame itself.
- Stay flexible. Every position is different. Keep checking on your king's safety and its potential role as the game develops.
Where to Put Your King in the Endgame
In the endgame, the king turns into one of your most active pieces. With fewer pieces left on the board, the danger of getting checkmated drops, and the king can take a leading role in the fight.
- Activate the king. Bring it toward the center, where it can support a pawn on its way to promotion, go after the opponent's pawns, and control key squares.
- Work as a team. Combine the king with your remaining pieces, rooks or pawns, to put maximum pressure on your opponent.
- Play with precision. Every move should improve your position while cutting down your opponent's options.
- Stop the other side's pawns. One of the king's main endgame jobs is holding back an opposing pawn from promoting, all while helping your own pawns get there first.
- Help deliver checkmate. In plenty of endgames, the king has to team up with another piece to trap the opposing king.
- Remember stalemate. If you have no legal move left and your king is not in check, the game ends in a draw by stalemate. It's worth keeping in the back of your mind when things look lost.
Your Move
King safety runs through the entire game, from the very first move to the final one. Get familiar with how the king moves, and if you're just getting started, our full guide on how to play chess is the right next stop.