Skip to content
Chessblood

Chess960 generator

Chess960: generate any of the 960 starting positions

Draw a random Fischer Random start or look one up by its number, see it on the board, and copy the FEN for your board, app or tournament software.

Free · runs in your browser

A new Chess960 start in one click

  • Random position or any number from 0 to 959
  • The back rank spelled out, ready to set up on a real board
  • X-FEN and Shredder-FEN to copy, and a link to share the position
Generate a position No account, no download.

What is Chess960?

Chess960, also called Fischer Random Chess, is chess with a shuffled back rank. Bobby Fischer introduced it in 1996 to take memorised opening theory out of the game: when the pieces start somewhere new, both players have to think from the first move.

Everything else is ordinary chess. The pieces move as usual, the pawns start on the second and seventh ranks, and checkmate, stalemate and the draw rules are unchanged. Only the starting squares of the pieces behind the pawns differ, and castling is adjusted so it still works from any start.

The setup rules

  • White's eight pieces are placed on the first rank in any order that keeps the rules below.
  • The two bishops stand on squares of opposite colours.
  • The king stands somewhere between the two rooks, so castling is possible on both sides.
  • Black's pieces mirror White's exactly on the eighth rank.

Those rules allow exactly 960 arrangements, which is where the name comes from.

Castling in Chess960

After castling, the king and rook stand where they would in a normal game. Castling towards the h-file puts the king on g1 and the rook on f1; castling towards the a-file puts the king on c1 and the rook on d1. Black castles to g8 and f8 or c8 and d8.

The usual conditions apply: neither the king nor that rook has moved, the king is not in check, and it does not pass through or land on an attacked square. In addition, every square the king or the rook crosses or lands on must be empty, apart from the king and rook themselves.

Because the pieces can start anywhere, castling sometimes moves only one of them. If the king already starts on g1 with the rook on h1, castling on that side moves just the rook to f1.

Our analysis board and engine do not handle Chess960 castling yet, so this tool sets up positions rather than playing them. Paste the FEN into any program that supports Chess960 to play or analyse.

How the position numbers work

The standard numbering scheme, devised by Reinhard Scharnagl, gives every start a number from 0 to 959. A number is decoded one piece at a time:

  1. Divide by 4. The remainder places the light-squared bishop on b, d, f or h.
  2. Divide the result by 4. The remainder places the dark-squared bishop on a, c, e or g.
  3. Divide by 6. The remainder places the queen on the first, second, … sixth empty square from the a-file.
  4. The result, 0 to 9, picks one of the ten ways to put the two knights on the five squares left.
  5. The last three squares take a rook, the king and a rook, in that order.

Position 518 works out to RNBQKBNR, the normal setup: 518 = 2 + 4 × 1 + 16 × 2 + 96 × 5, which puts the light-squared bishop on f1, the dark-squared bishop on c1, the queen on d1 and the knights on b1 and g1, leaving a1, e1 and h1 for rook, king and rook.

Some positions by number

NumberWhite's back rank (a to h)
0BBQNNRKR
1BQNBNRKR
518RNBQKBNRstandard chess
706BRKQNBNR
959RKRNNQBB

K king, Q queen, R rook, B bishop, N knight. Black uses the same order on the eighth rank.

Chess960 questions

How many starting positions does Chess960 have?
Exactly 960, numbered 0 to 959. That is every way to place the pieces with the bishops on opposite colours and the king between the rooks. Each position's mirror image (a and h files swapped) is also on the list under a different number.
Is the normal chess starting position one of the 960?
Yes. In the standard numbering it is position 518, RNBQKBNR. A Chess960 draw can therefore produce an ordinary game, about once in every 960 draws.
How does castling work in Chess960?
The king and rook end on the same squares as in normal chess: castling on the h-side puts the king on g1 and the rook on f1, castling on the a-side puts the king on c1 and the rook on d1 (g8, f8, c8 and d8 for Black). Neither piece may have moved, every square they cross or land on must be empty apart from the two of them, and the king may not be in check, pass through check or end in check. Depending on the start, the king or the rook may not move at all.
Do both players get the same position?
Yes. One arrangement is chosen for White's back rank, usually at random just before the game or round, and Black's pieces mirror it on the eighth rank. Pawns start on their usual squares.
Which FEN should I copy, X-FEN or Shredder-FEN?
Both describe the same start. X-FEN keeps the familiar KQkq for castling rights, which works at move one because each side has exactly one rook on either side of its king. Shredder-FEN names the files of the castling rooks instead, such as HAha. Use X-FEN unless your program asks for the other form.