Chess RedLesson catalog
Rules and notationLesson 018 / 500

Rules and notation

Read a position from FEN

Read the first FEN field from rank 8 to rank 1, a-file to h-file within each rank. The next fields give the turn, castling rights, en passant target and two move counters.

Worked example

Fig. 01 Decode the six fields below this midgame diagram.
Position in text

White to move. White: bishop b5, pawn e4, knight f3, pawn a2, pawn b2, pawn c2, pawn d2, pawn f2, pawn g2, pawn h2, rook a1, knight b1, bishop c1, queen d1, rook f1, king g1. Black: rook a8, bishop c8, queen d8, king e8, knight g8, rook h8, pawn a7, pawn b7, pawn d7, pawn e7, pawn f7, bishop g7, pawn h7, knight c6, pawn g6, pawn c5.

FEN: r1bqk1nr/pp1pppbp/2n3p1/1Bp5/4P3/5N2/PPPP1PPP/RNBQ1RK1 w kq - 2 5

Take the FEN under the diagram. The first rank string, r1bqk1nr, places a black rook on a8, leaves b8 empty, then places bishop c8, queen d8 and king e8; f8 is empty, with knight g8 and rook h8. Uppercase means White. Repeat through rank 1. The w means White moves, kq records both rights for Black only, and - gives no en passant target. The counters 2 5 mean two half-moves since the last pawn move or capture, and full move five.

A plausible mistake

Castling letters are rights, not promises that the intervening squares are currently empty or safe. The full-move number increases after Black moves; the half-move clock increases on each non-pawn, non-capturing move.

Try it yourself

Set up a board using 4k2r/8/8/8/8/8/8/R3K3 b Qk - 14 40. Which king and rook may still castle together? Who moves now?

Check your answer

White has king e1 and rook a1; Black has king e8 and rook h8. Qk records White queenside and Black kingside rights. Black is to move, so only Black’s right is relevant this turn. The last fields mean no en passant target, 14 half-moves without a pawn move or capture, and full move 40.

Sources