Follow us
15 July 2026
Latest Stories

The square-counting puzzle: why 16 is wrong and 30 is right

30
The correct number of squares in a standard 4×4 grid — not 16, as most people instinctively answer.

One formula that works for any grid size

The step-by-step method works, but mathematicians have condensed it into a single formula. For any n × n grid, the total number of squares equals the sum of squared integers from 1 to n: 1² + 2² + 3² + … + n².

Mathematical formula written in notebook for solving grid square counting puzzle
Illustration © Toptenplay

This simplifies to the closed-form expression n(n+1)(2n+1) / 6. For a 4×4 grid: 4 × 5 × 9 / 6 = 180 / 6 = 30. For a 5×5 grid: 5 × 6 × 11 / 6 = 330 / 6 = 55. The formula scales instantly to any grid without manual counting.

The underlying principle is the sum of squares formula, a standard result in combinatorics. It means the puzzle, however it is dressed up visually, is always a straightforward arithmetic problem once the correct framework is applied.

Common traps that inflate or deflate the count

The source material flags several traps that trip up even careful solvers. The most frequent is stopping after counting 1×1 squares — the 16-answer trap described above. But an equally common error runs in the opposite direction: overcounting by including shapes that are rectangles, not squares.

Grid on paper with squares and rectangles marked in different colors to show counting errors
Illustration © Toptenplay

A 1×2 or 2×3 arrangement of cells is a rectangle, not a square, and must be excluded. The definition is strict: all four sides must be equal in length. Solvers who lose track of this constraint tend to overshoot the correct total significantly.

A third trap appears when the puzzle image includes additional lines — diagonals, internal dividers, or irregular subdivisions. These can introduce tilted squares (rotated 45 degrees) that are genuinely valid but easy to miss. When the grid is a clean, unadorned n×n structure, the formula applies directly. Any added complexity requires a fresh visual audit before the formula can be used.

See the rest on the next page ⬇⬇
Advertisement

Suggested Posts

Share on Facebook