Count the number of squares in the given figure.
20242024
Count the number of squares in the given figure.

- A.
18
- B.
19
- C.
25
- D.
27
Attempted by 11 students.
Show answer & explanation
Correct answer: D
To count all squares in a compound figure, classify every square by its size — that is, by how many of the smallest grid cells it encloses — and count each size-class separately; the total number of squares equals the sum of the counts across every distinct size, from the smallest unit square up to the single largest square formed by the whole figure.
The figure may be labelled as shown.

Listing every square of each size by its four corner labels:
Size (cells enclosed) | Count | Squares (corner labels) |
|---|---|---|
1 (simplest) | 13 | EFRQ, MQYX, QRZY, RNSZ, LXWK, XYA1W, YZB1A1, ZSTB1, SGHT, WA1VP, A1B1UV, B1TOU, VUIJ |
2 | 4 | AEYL, FBGZ, KA1JD, B1HCI |
4 | 4 | MRB1W, QNTA1, XZUP, YSOV |
7 | 4 | AFB1K, EBHA1, LZID, YGCJ |
9 | 1 | MNOP |
17 | 1 | ABCD |
Each row is a distinct, non-overlapping size-class, so summing every class once — 13 + 4 + 4 + 4 + 1 + 1 — checks out to the full count without double-counting or missing any square.
So the figure contains 27 squares in total.