1001Ferramentas
♟️Games

Contador Peças FEN Xadrez

Conta peças de cada lado a partir de uma notação FEN.

Contagem

Checking material from a FEN string

A FEN turns up in an engine report, in a puzzle link or pasted into a chess group chat, and before setting the position up you want the basics: are the queens off? How many pawns does each side still have? Is this a rook endgame already? Paste the line and the page returns a count broken down by piece type, with each side's total next to it, no board required.

Only the first FEN field is read, the piece placement, which sidesteps a classic mistake: the b marking black to move, right after the space, would otherwise be counted as a bishop. Inside that field ranks run from the eighth down to the first, digits stand for runs of empty squares, uppercase is white and lowercase is black. The knight is N rather than K, since king already claimed that letter.

The page counts characters, it does not validate the position: it never checks for eight ranks, for digits adding up to eight squares per rank, or for exactly one king per side. Text that is not a FEN returns all zeros instead of an error, so a count of zero pieces means you pasted the wrong thing or left a stray space at the front. It does not total material either. Nothing leaves your browser as you type.

Frequently asked questions

Do I paste the full FEN or just the position?
Either one. Reading stops at the first space, so the complete line and the placement field alone produce the same count.
Why is R counted as a rook?
Because FEN uses English initials, and rook starts with R. King takes K, which is why the knight ended up as N.
Does it calculate material advantage?
No, it only counts pieces. For the difference, apply the usual values to the counts: pawn 1, knight and bishop 3, rook 5, queen 9.

Related Tools