How many squares actually ARE in this picture? Is this a trick question with no right answer?

Thanks to Ross Millikan for helping me to find the last squares. Here is an GIF animation (344 kb) showing 40 squares from biggest to smallest:

40 squares


Ignoring the two strange squares in the middle, there are $16\ 1 \times 1$ squares, $9\ 2 \times 2,\ 4\ 3 \times 3,$ and $1\ 4 \times 4$ for a total of $30$ Each of the two strange squares has four small and one large square, five each, ten total.

The grand total is then $40$ squares.


To find total squares of $n \times n$ squares, the total no. of squares in it is given by: $$n^2+(n-1)^2+(n-2)^2\ldots1^2$$ In the box above of $4 \times 4$, the total no. of squares are $$4^2+3^2+2^2+1^2=30$$

Additionally, there are $2$ small squares in the middle along with 4 even smaller squares each. They total to $10$ squares.

$\therefore$ The total squares is $ 30+10=40$