There are 204 squares on a chessboard, not 64. The 64 small cells are only the start. Once you count the 2×2, 3×3, 4×4, and every larger square hiding inside the board, the total jumps to 204.
The question sounds almost too easy: how many squares on a chessboard? Most candidates answer 64 in under two seconds, and that speed is exactly the trap. A standard board is an 8×8 grid, so there are 64 one-by-one squares. But the question asks for squares, not small cells. A 2×2 block of four cells is also a square, and so is a 3×3 block, all the way up to the board itself. The interviewer wants to see whether you notice that, and whether you can count all of them without missing any or counting one twice.
Counting the Squares on a Chessboard, Size by Size
The clean way to count is size by size. First, pick a size, work out how many positions it fits in, and move on to the next size. A square of side k can start in (9 minus k) columns and (9 minus k) rows, so the number of positions is (9 minus k) squared. For a 1×1 square that gives 8 times 8, or 64 positions. For a 2×2 square it gives 7 times 7, or 49. Keep going until the 8×8 square, which fits in exactly one position: the whole board.
| Square size | Positions per side | How many |
|---|---|---|
| 1×1 | 8 | 64 |
| 2×2 | 7 | 49 |
| 3×3 | 6 | 36 |
| 4×4 | 5 | 25 |
| 5×5 | 4 | 16 |
| 6×6 | 3 | 9 |
| 7×7 | 2 | 4 |
| 8×8 | 1 | 1 |
| Total | 204 |
Finally, add the column and you get 64 + 49 + 36 + 25 + 16 + 9 + 4 + 1 = 204. That is the full answer, and the table is the whole proof. If you can build this table in an interview, you do not need to memorize anything. Each row follows the same rule, and the running total keeps you honest: if your rows do not add to 204, one of them is wrong.
Warm Up on a Small Board First
For example, if the 8×8 board feels big, shrink it. This is the move strong candidates make out loud, and interviewers love it, because it shows you test a method before trusting it. On a 2×2 board there are 4 small squares plus the whole board, so 5 squares in total. Next, on a 3×3 board there are 9 small squares, 4 squares of 2×2, and the whole board, which gives 14. Then, on a 4×4 board the count is 16 + 9 + 4 + 1 = 30. The pattern is now visible: the answer is always the sum of the squares from 1 up to the board size. For the real board that sum runs from 1 squared to 8 squared, and it lands on 204.
The Formula for Squares on a Chessboard of Any Size
Once you see the pattern, you can write it as a formula. For a board with n squares on a side, the total number of squares is 1 squared + 2 squared + all the way up to n squared. In fact, that sum has a closed form: n times (n + 1) times (2n + 1), divided by 6.
For the standard board, n is 8, so the formula gives 8 x 9 x 17 / 6. Work it out step by step: 8 x 9 is 72, 72 x 17 is 1,224, and 1,224 / 6 is 204. The formula agrees with the table, which is the point. In an interview, always check a formula against a case you already know. Here the 3×3 board is the check: 3 x 4 x 7 / 6 is 84 / 6, which is 14, exactly the count from the warm-up. The 4×4 board checks out too: 4 x 5 x 9 / 6 is 180 / 6, which is 30.
However, quoting the formula alone is a weaker answer than building the table, even though both give 204. The table shows your thinking. The formula only shows your memory. If you do remember the formula, use it as the second step: count size by size first, then confirm with the formula. That order turns a recalled fact into a verified answer, and interviewers notice the difference.
The Follow-Up Question: How Many Rectangles?
In addition, good interviewers rarely stop at 204. The usual follow-up is: how many rectangles are on a chessboard? A rectangle is made by picking two vertical grid lines and two horizontal grid lines. The board has 9 vertical lines and 9 horizontal lines, and the number of ways to pick two from nine is 36. So there are 36 choices for the sides and 36 for the top and bottom, which gives 36 x 36 = 1,296 rectangles in total.
That 1,296 includes every square, because a square is a special kind of rectangle. So the number of rectangles that are not squares is 1,296 minus 204, which is 1,092. If the interviewer asks this follow-up, answer it the same way: state the counting rule first, then do the arithmetic. The rule is the answer; the numbers just follow it.
The Mistake Most Candidates Make
The most common wrong answer is 64, given with total confidence. It fails because it counts only one size. The second most common mistake is the opposite: candidates sense there are more squares, start counting in their head, lose track around the 4x4s, and guess a number like 180 or 250. Both mistakes come from the same habit, which is answering before choosing a method.
Finally, a third mistake is subtler. Some candidates count the 2×2 squares as 64 divided by 4, which is 16. That is wrong, because 2×2 squares overlap: a 2×2 square starting in the top-left corner shares cells with the one starting next to it. The correct count is 7 positions across times 7 down, which is 49. Overlapping is the whole point of the puzzle, and the position-counting method handles it automatically.
What the Interviewer Is Testing in the Squares on a Chessboard Puzzle
In short, this puzzle looks like a math question, but it is really a thinking question. Here is what the interviewer is scoring.
- Do you question the obvious answer? Saying 64 without a pause shows you took the question at face value. Pausing to ask what counts as a square shows judgment.
- Can you count in a structured way? The size-by-size table is a method, not a trick. Interviewers want to see a method that would still work if the board were 10×10 or 100×100.
- Do you test on a small case? The 2×2 and 3×3 warm-ups show you check your reasoning instead of trusting it blind. That habit matters far more in real work than the number 204.
- Can you generalize? Turning the table into a formula for any board size shows you can move from one example to a rule. That is the step that separates a good answer from a great one.
- Do you communicate clearly? Talking through the table as you build it lets the interviewer follow you. A silent candidate who announces 204 after a minute of staring gives the interviewer nothing to score.
Finally, notice that speed is not on the list. Nobody is impressed by a fast 64. The candidate who takes thirty seconds to set up the table and then counts cleanly to 204 is the one who gets the tick.
Squares on a Chessboard: Quick Answers
How many squares are on a chessboard?
There are 204 squares on a standard 8×8 chessboard: 64 of size 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.
Why is the answer not 64?
In short, 64 is the number of small cells. The question asks for squares of every size, and larger squares formed by joining cells count too. The board itself is one of them.
What is the formula for squares on any board?
For an n x n board, the total is n(n + 1)(2n + 1) / 6. For n = 8 that gives 204, for n = 3 it gives 14, and for n = 4 it gives 30.
How many rectangles are on a chessboard?
There are 1,296 rectangles, including the 204 squares. That leaves 1,092 rectangles that are not squares.
Try Another Puzzle Next
If you liked this one, try the rope around the Earth puzzle: add one metre to a rope around the planet and the gap it leaves is the same for a basketball. Or test your probability instincts on the Monty Hall problem, where switching doors wins two times out of three. For a pure counting challenge, the 25 horses puzzle asks for the fastest three horses in just seven races.

Lauren Brooks is a finance professional writing on professional exams, study strategies, and finance careers.
Leave a Reply