Chess960 Position Generator

Roll a random Chess960 start, or pick any of the 960 by number. Each one comes with its board, back rank and FEN, ready to copy or to play against the computer.

Chess960 start 518: RNBQKBNR

Start number

518

The normal chess setup.

White’s back rank, a1 to h1 (Black mirrors it)

  1. Ra
  2. Nb
  3. Bc
  4. Qd
  5. Ke
  6. Bf
  7. Ng
  8. Rh

FEN

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w AHah - 0 1
Play it vs the computer

How the numbers work

The numbers are Reinhard Scharnagl’s, the standard numbering that other sites and engines use too, so start 518 is the same position everywhere. Each number gives the pieces their squares in five steps:

  1. Light-squared bishop. Divide the number by 4. The remainder (0–3) puts a bishop on b, d, f or h.
  2. Dark-squared bishop. Divide what's left by 4 again. The remainder puts the other bishop on a, c, e or g.
  3. Queen. Divide by 6. The remainder (0–5) picks one of the six empty squares, counting from the a-file.
  4. Knights. What's left (0–9) picks one of the ten ways to place two knights on the five empty squares.
  5. Rooks and king. The last three squares get rook, king, rook, so the king always stands between the rooks.

For 518: the remainder 2 puts the first bishop on f1, then 1 puts the second on c1, 2 puts the queen on d1 (the third empty square), and 5 puts the knights on b1 and g1. The rooks and king take a1, e1 and h1: RNBQKBNR, the normal setup.

The rules in short

Chess960 is normal chess from a shuffled back rank: the pawns stay where they are, the bishops start on opposite colors and the king between the rooks. Everything else, castling included, plays as in chess. The Chess960 page has the full rules and a bot to play against, at the level you pick.

Questions

How many Chess960 starting positions are there?

+

960. The light-squared bishop has 4 squares to choose from and the dark-squared one 4 more, the queen then takes one of the 6 squares left, and the two knights one of 10 pairs among the last 5. The rooks and king fill the three squares that remain, king in the middle: 4 × 4 × 6 × 10 = 960.

Which Chess960 number is the normal chess position?

+

Number 518: RNBQKBNR. It is one of the 960, so a random draw can land on ordinary chess.

Does Black get the same position as White?

+

Yes. Black's pieces mirror White's on the other side of the board, so both sides start from the same setup.

Is Chess960 the same as Fischer Random Chess?

+

Yes. Bobby Fischer presented it in 1996 as Fischer Random Chess; it took the name Chess960 from its number of starting positions.

How does castling work in Chess960?

+

It ends as in normal chess: the king on g1 and the rook on f1, or the king on c1 and the rook on d1 (on the 8th rank for Black). The squares between the king and its landing square, and between the rook and its, must be empty, and the king can't be in check or cross an attacked square.

Why does the FEN show letters like HAha for castling?

+

Chess960 FENs name the castling rooks by their file (Shredder-FEN): HAha means White can castle with the rooks on h1 and a1, and Black with those on h8 and a8. Normal FENs write KQkq, which only works when the rooks start in the corners.

Can I play the position I generated?

+

Yes. Press Play it vs the computer and the Chess960 game opens on that start, at the bot level you pick. Or copy the FEN into another board or app.