When a grid contains six small cells, why can the answer to "How many rectangles?" be 18? The challenge is to count every permitted shape once, including larger rectangles that contain several cells. For students preparing for the Singapore & Asian Schools Math Olympiad (SASMO), this is a useful exercise in turning a picture into an organized argument.
The organizer's syllabus overview includes geometry and mensuration alongside non-routine problem solving. The examples below are original foundation practice, rather than official SASMO questions or a difficulty benchmark for a particular grade.
Does your child spot some shapes but struggle to count them all? Try the worked example together, then ask the child to explain how the list covers every possibility.
For help choosing a preparation starting point, scan the contact QR code below or contact Hanlin on WeChat. Send SASMO RECTANGLES with your school grade and question.
Start by deciding which rectangles count
Draw a complete grid with 3 columns and 2 rows of equal square cells. Count rectangles whose sides lie along the drawn grid lines. A rectangle may contain one cell or several cells, and the whole outer boundary also counts.
Squares are rectangles too. Include them unless the question explicitly asks for non-square rectangles. We are not counting tilted shapes, open outlines or rectangles that require an extra line to be drawn.

Method 1: organize the count by width and height
Use one small cell as the unit of width and height. A rectangle that is 1 unit wide can start in any of 3 columns. A rectangle that is 2 units wide has 2 starting positions. A rectangle that is 3 units wide has only 1.
For height, a 1-unit-high rectangle can start in either of 2 rows. A 2-unit-high rectangle has only 1 starting position. Multiply the number of horizontal positions by the number of vertical positions for each size:
| Height | Width 1 | Width 2 | Width 3 | Subtotal |
|---|---|---|---|---|
| 1 unit | 3 × 2 = 6 | 2 × 2 = 4 | 1 × 2 = 2 | 12 |
| 2 units | 3 × 1 = 3 | 2 × 1 = 2 | 1 × 1 = 1 | 6 |
The total is 12 + 6 = 18 rectangles. Every rectangle has one of the listed widths and one of the listed heights, so the table leaves no possible size out. Each position appears in only one size category, so it is counted once.
Method 2: choose the four boundary lines
A rectangle is determined by its left and right boundaries and its top and bottom boundaries. The grid has 4 vertical lines, even though it has only 3 columns, and 3 horizontal lines, even though it has only 2 rows.
- Choose the vertical pair: V1-V2, V1-V3, V1-V4, V2-V3, V2-V4 or V3-V4. There are 6 choices.
- Choose the horizontal pair: H1-H2, H1-H3 or H2-H3. There are 3 choices.
- Each vertical pair can be combined with every horizontal pair, giving 6 × 3 = 18 rectangles.
This works because every such choice produces one rectangle in a complete grid, and every permitted rectangle has exactly one set of these boundaries. Reversing a pair, such as V2-V4 to V4-V2, does not create another rectangle.
For a complete grid with c columns and r rows, the number of horizontal intervals is c + (c - 1) + ... + 1 = c(c + 1)/2. The number of vertical intervals is r(r + 1)/2. Multiplying gives c(c + 1)r(r + 1)/4 rectangles. Build the counting argument before using the formula. Our guide to explaining number patterns shows why this kind of sum has a factor of two.
What if the question excludes squares?
In the same 3-column, 2-row grid, there are 6 squares of size 1 × 1 and 2 squares of size 2 × 2. A 3 × 3 square cannot fit because the grid has only 2 rows.
That gives 6 + 2 = 8 squares, so the number of non-square rectangles is 18 - 8 = 10. Read the wording before subtracting: an ordinary request to count rectangles includes the squares.
Four mistakes to catch before checking the answer
- Counting only cells: six cells give six of the smallest rectangles. Larger outlines still count.
- Mixing up cells and boundary lines: three columns have four vertical boundaries. Label the lines if this is easy to miss.
- Counting a boundary pair twice: choosing the left line and then the right line should not duplicate the same rectangle in reverse order.
- Applying the formula to an incomplete picture: if line segments are missing, some boundary choices may not form a closed rectangle. Check those cases separately.
Try two short practice questions
Draw each complete grid with equal square cells. Count all rectangles, then count squares and non-square rectangles separately. Explain one way to check that your count is complete.
- A grid with 2 columns and 2 rows.
- A grid with 4 columns and 3 rows.
Show the answers and checks
Question 1: Three vertical lines give 3 boundary pairs; three horizontal lines also give 3. There are 3 × 3 = 9 rectangles. The squares are four 1 × 1 shapes and one 2 × 2 shape: 5 squares. Therefore there are 4 non-square rectangles.
Question 2: Five vertical lines give 10 boundary pairs; four horizontal lines give 6. There are 10 × 6 = 60 rectangles. The square counts are 12 of size 1 × 1, 6 of size 2 × 2 and 2 of size 3 × 3: 20 squares. Therefore there are 40 non-square rectangles.
To check Question 2 by size, widths have 4 + 3 + 2 + 1 = 10 possible positions in total, and heights have 3 + 2 + 1 = 6. Their product is again 60.
Turn one solved example into useful SASMO preparation
For a short practice session, first let the student draw and label a small grid. Ask for a count organized by size, then introduce the boundary-line method. Finish with a different grid and ask the student to explain why the answer includes every rectangle exactly once.
If a student can use a formula but cannot explain the four boundary choices, return to the picture. If a student can count a small grid accurately, increase the size and compare the two methods. Choose further work to suit the student's current understanding and competition level.
New to the competition? Read our SASMO beginner's guide to levels, scoring and practice. For current entry arrangements, check the organizer's registration guidance and the partner responsible for your country or region; dates and fees should be confirmed for your actual entry.
Discuss your SASMO preparation with Hanlin
Preparing for a first attempt, choosing practice for your child or working on a specific difficulty? Scan the QR code and send SASMO RECTANGLES.

On your phone, use the button above. You can also save the QR image and scan it within WeChat.
Include these details so we can understand your starting point:
SASMO RECTANGLES
School grade:
Country or competition region:
Previous mathematics competition experience:
The topic or step you find difficult:
Sources: the official SASMO syllabus overview and registration guidance linked above. The examples, diagram and suggested practice routine were created for this article.
