Skip to content
CalculatorGeek

FEN vs PGN for Chess Analysis

On this page

Use FEN to share one position. Use PGN to preserve a game, moves, headers, and annotations.

What FEN stores

FEN records piece placement, side to move, castling rights, en-passant target, halfmove clock, and fullmove number. It does not contain the preceding game.

What PGN stores

PGN records a game or variation in Standard Algebraic Notation and may include headers, comments, results, and variations.

Which format should you use?

Use FEN for a puzzle or shared position. Use PGN for post-game review, move history, or annotated export. A screenshot requires extra review because it contains neither format's rule state.

Example

After 1.d4, the FEN contains the black-to-move field and d3 en-passant target. The PGN simply records 1. d4 as the first move.

How to audit the six FEN fields

  1. Check all eight piece-placement ranks.
  2. Confirm w or b for the side to move.
  3. Retain only castling rights supported by unmoved king and rook history.
  4. Use an en-passant target only immediately after the relevant two-square pawn move.
  5. Preserve the halfmove clock when draw rules matter.
  6. Preserve the fullmove number for game context.

A syntactically valid FEN can still describe an impossible or historically inaccurate position. King count, adjacent kings, pawns on the first or eighth rank, castling pieces and en-passant rank should be validated before analysis.

How PGN improves post-game review

PGN preserves the move sequence so you can step through turning points instead of analyzing only the final board. Headers can identify the event, players, date and result; comments and variations can record engine findings. CalculatorGeek imports the main line, updates the shared board and lets you copy an annotated result without changing the original legal move sequence.

Load or export both formats

The Chess Analysis Board Calculator validates FEN, imports PGN, and exports an annotated PGN. For a photographed board, use the image-to-FEN review workflow; after analysis, use the engine evaluation guide to interpret the score.

Frequently asked questions

Can FEN show how the position was reached?

No. It stores the current position and rule-state fields, not the preceding moves.

Can PGN represent a puzzle position?

Yes. A PGN can use a SetUp header and FEN header, but a plain FEN is usually simpler for sharing one position.

Why can a screenshot not replace FEN?

Pixels can show pieces and orientation, but not reliably show the side to move, castling history, en-passant target or move counters.

Sources

From the guide library

Latest Gaming articles

View all articles