Rules & basics · Board geometry

How Many Squares Are on a Chess Board? 64 vs. 204 Explained

A standard chessboard has 64 playing squares, arranged in eight rows and eight columns. Half are light and half are dark: 32 of each. In a mathematics puzzle, however, counting every grid-aligned square of every size, from single squares up to the whole board, gives 204 squares.

64Playing squares

8 × 8 = 64. The squares pieces stand on: 32 light, 32 dark. This is the chess answer.

204Mathematical squares

Every square you can trace on the grid, 1×1 to 8×8: 1² + 2² + … + 8² = 204. A puzzle answer, not playing squares.

An empty 8 by 8 chessboard with coordinates64 squares: files a to h along the bottom, ranks 1 to 8 up the side. a1 is dark, h1 is light.8a7b6c5d4e3f2g1h
The 8×8 board from White's side: a1 (bottom left) is dark, h1 (bottom right) is light.

Quick answer

64 or 204 squares?

Both numbers are correct, because they count different things. For playing chess, the board has 64 squares, as the FIDE Laws state: an 8 × 8 grid of 64 equal squares, alternately light and dark.FIDE As a counting puzzle, the same grid contains 204 squares if you also count every larger square formed by blocks of small squares (2×2, 3×3 and so on up to 8×8), aligned with the grid lines. Only the 64 are places a piece can stand.

Why does a chess board have 64 squares?

Because it has 8 ranks and 8 files, and every rank crosses every file exactly once: 8 × 8 = 64.

The e-file and the 4th rank highlightedThe e-file is the column of 8 squares from e1 to e8. The 4th rank is the row from a4 to h4. They cross on e4.8a7b6c5d4e3f2g1h
Blue: the e-file (a column). Gold: the 4th rank (a row). They meet on e4.

A rank is a horizontal row of 8 squares, numbered 1 to 8 starting from White's side. A file is a vertical column of 8 squares, lettered a to h from White's left.FIDE

Each square is named by its file and rank, so every one of the 64 has a unique name, from a1 in White's bottom-left corner to h8 in the far corner. The square in the diagram where the highlighted file and rank cross is e4.

Setting up a real board? Follow how to set up a chess board, which starts with turning the board so the light corner is on your right.

How many white and black squares are there?

There are 32 light squares and 32 dark squares. The colors alternate, so every rank and every file has 4 of each.

On a correctly placed board, the corner square on each player's right is light: h1 and a8 are light, a1 and h8 are dark.FIDE Chess books call them “white” and “black” squares, but real boards use cream and brown, cream and green, or any contrasting pair. The colors never change a rule; they help you see diagonals, which always stay on one color. Try the toggles below to count them.

Why do some people say a chessboard has 204 squares?

Because a grid contains bigger squares too. Any 2×2 block of four small squares forms a larger square, as does any 3×3 block, and so on up to the whole 8×8 board. Count all of them and you get 204.

The trick is to count one size at a time. A square of size k×k can start in 9 − k different columns (its left edge can be on file a, b, … up to the last file that still leaves room) and 9 − k different rows. So there are (9 − k)² squares of that size:

Grid-aligned squares on an 8×8 board, by size
Square sizePositions (across × down)Number of squaresRunning total
1×18 × 86464
2×27 × 749113
3×36 × 636149
4×45 × 525174
5×54 × 416190
6×63 × 39199
7×72 × 24203
8×81 × 11204
Total204204

Notice the pattern: the counts are the square numbers 64, 49, 36, … 1, in reverse. A 1×1 square has 8 starting positions in each direction (8² = 64); an 8×8 square fits in only one place (1² = 1). These 204 overlap, which is why they are a puzzle count and not playing squares. The count also includes only squares whose sides follow the grid lines; tilted squares are a different puzzle (see the note in the formula section).

See every placement for yourself in the counter below.

Interactive chessboard square counter

Three ways to count. Playing squares lets you select and tally individual squares. One size walks through every position of a square size. All 204 builds the total size by size.

The formula for counting squares on a chessboard

For an n×n grid, the number of grid-aligned squares of all sizes is the sum of the first n square numbers.

Sum of squares1² + 2² + … + n²

Closed formulan(n + 1)(2n + 1) ÷ 6

For a chessboard, n = 8: 1 + 4 + 9 + 16 + 25 + 36 + 49 + 64 = 204, and the formula gives 8 × 9 × 17 ÷ 6 = 1,224 ÷ 6 = 204.

Why it works. Every grid-aligned square is fixed by two things: its size and its top-left corner. For size k, the top-left corner can sit in any of the first n − k + 1 columns and the first n − k + 1 rows, giving (n − k + 1)² squares. As k runs from 1 to n, the number n − k + 1 runs from n down to 1, so the total is n² + (n − 1)² + … + 1², the same sum written backwards. That is why the table can be read in either order. The closed formula is the standard shortcut for adding the first n square numbers (these totals are called square pyramidal numbers).

Worked example: a 3×3 grid

9 squares of 1×1
4 squares of 2×2 (overlapping)
1 square of 3×3

9 + 4 + 1 = 14, and the formula agrees: 3 × 4 × 7 ÷ 6 = 14. Smaller checks: a 1×1 grid has 1 square, a 2×2 grid has 4 + 1 = 5, and a 4×4 grid has 16 + 9 + 4 + 1 = 30.

Grid square calculator

Enter any grid size from 1 to 10,000. The calculator uses exact integer arithmetic, so even huge grids give exact answers.

Whole number from 1 to 10,000. Presets:

Unit cells (n²)
64
All grid-aligned squares
204
Rectangles (incl. squares)
1,296
Formula
8 × 9 × 17 ÷ 6 = 204
Count by square size
SizeSquares
1×164
2×249
3×336
4×425
5×516
6×69
7×74
8×81

Bonus: how many rectangles are on a chessboard?

A rectangle on the grid is fixed by choosing two different horizontal lines for its top and bottom, and two different vertical lines for its sides. An 8×8 board has 9 lines each way, and there are 36 ways to choose 2 of 9 lines. So:

36 × 36 = 1,296 rectangles, counting squares as rectangles.

Squares are a special kind of rectangle. If you want only rectangles that are not squares, subtract the 204: 1,296 − 204 = 1,092. Both totals were checked by enumerating every pair of lines.

Chessboard coordinates explorer

Every square has a fixed name. Select a square to see its file, rank and color, or highlight the center and the light or dark squares.

Chessboard with 64 squares8a7b6c5d4e3f2g1h

e4

File
e
Rank
4
Color
Light

The four center squares are d4, e4, d5 and e5: e4 and d5 are light, d4 and e5 are dark. Flipping the board to Black's view changes where a square appears, never its name: e4 is always e4. These names are the basis of chess notation.

Starting position: 32 pieces on 32 of the 64 squares8a7b6c5d4e3f2g1h
At the start, 32 pieces fill 32 squares (ranks 1, 2, 7 and 8); the other 32 are empty.

At the start of a game exactly half the board is occupied: each side's 16 pieces fill its first two ranks. To see how each piece uses these squares, try the chess pieces trainer, read how many pieces are in chess, or see how many possible chess games there are.

Printable reference: chessboard squares, 64 vs. 204

A one-page sheet for classrooms, maths lessons and chess clubs. The button opens your browser's print dialog, where you can also save as PDF.

Chessboard squares: 64 vs. 204chessmovefinder.com
Chessboard with 64 squares, printable reference8a7b6c5d4e3f2g1h

64 playing squares: 8 ranks × 8 files. 32 light, 32 dark. Light square on each player's right (h1). a1 is dark.

204 grid-aligned squares

SizeCountSizeCount
1×1645×516
2×2496×69
3×3367×74
4×4258×81

Total: 1² + 2² + … + 8² = 204

Formula: n(n + 1)(2n + 1) ÷ 6 → 8 × 9 × 17 ÷ 6 = 204

3×3 example: 9 + 4 + 1 = 14

Bonus: 1,296 rectangles (36 × 36); 1,092 are not squares.

Chess vs. maths: a game uses only the 64 squares. The 204 count is a puzzle that includes overlapping larger squares made of smaller ones.

Free to print and share for teaching. Please credit Chess Move Finder and link to this page.

Frequently asked questions

How many squares are on a standard chessboard?

64 playing squares, in 8 rows (ranks) and 8 columns (files).

Are there 64 or 204 squares on a chessboard?

64 for playing chess. 204 if you count every grid-aligned square of every size as a maths puzzle. They answer different questions.

How many white and black squares are on a chessboard?

32 light (“white”) and 32 dark (“black”). Each rank and each file has 4 of each.

How do you count 204 squares?

Count each size separately: 64 of 1×1, 49 of 2×2, 36 of 3×3, 25 of 4×4, 16 of 5×5, 9 of 6×6, 4 of 7×7 and 1 of 8×8. They add up to 204.

How many 2×2 squares are on a chessboard?

49. A 2×2 square can start in 7 columns and 7 rows: 7 × 7 = 49.

How many 3×3 squares are on a chessboard?

36. It can start in 6 columns and 6 rows: 6 × 6 = 36.

How many rectangles are on a chessboard?

1,296, including the 204 squares, or 1,092 if squares are excluded.

How many rows and columns does a chessboard have?

8 rows, called ranks (1 to 8), and 8 columns, called files (a to h).

What are the center squares of a chessboard?

d4, e4, d5 and e5. Controlling them is a key idea in the opening.

Do chessboard square colors affect the rules?

Only for setup: the board must be placed with a light square in each player's right-hand corner, and each queen starts on her own color. Otherwise colors are a visual aid; a bishop simply stays on one color because it moves diagonally.

How many squares are occupied at the start of a chess game?

32 of the 64. Each player's 16 pieces fill their first two ranks.

What is the formula for counting squares in a grid?

For an n×n grid: n(n + 1)(2n + 1) ÷ 6, which equals 1² + 2² + … + n². For n = 8 it gives 204.

Ready to use the squares? Learn the rules in how to play chess, or read the legend of the wheat and the chessboard, where doubling grains across the 64 squares adds up to 18 quintillion.

Sources and method

  • FIDE Laws of Chess, effective 1 January 2023 (current edition): Article 2.1 (the board), 2.4 (files and ranks), Appendix C.5–C.7 (square names).

All counts on this page were verified by brute-force enumeration in Python (sliding every square size across every position, enumerating every pair of grid lines for rectangles, and every four-point combination for tilted squares) and compared with the formulas; the calculator's output was then compared with those results. Written by the Chess Move Finder team. Spot an error? Tell us.

64 squares, endless games

Put the board to work.

Play the computer, free, no account needed.

Play chess →