SASMO Geometry Practice: How to Count Rectangles in a Grid

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.

A three-column, two-row grid. Choosing two of four vertical lines and two of three horizontal lines gives 18 rectangles.
The shaded rectangle is one example: its boundaries are V2, V4, H1 and H3. Original practice diagram.

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:

Number of rectangles of 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.

  1. A grid with 2 columns and 2 rows.
  2. 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.

Scan to contact Hanlin on WeChat. Send SASMO RECTANGLES with your grade and preparation question.

Contact Hanlin on WeChat

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.

SASMO Number Patterns: From Spotting a Sequence to Explaining It

In Singapore & Asian Schools Math Olympiad preparation, finding the next number in a sequence is a useful start. The stronger skill is explaining a rule and checking whether it follows from the problem's definition. A few matching terms can suggest a pattern, but they do not prove how it continues.

Need a clearer next step?

Tell us your school year, current topics and the question you want to work on. We can discuss a suitable preparation starting point.

Go to the contact QR code · Contact Hanlin on WeChat

Define the pattern before predicting the next term

In this original example, build a staircase of dots. The first row has one dot, the second has two, the third has three, and so on. Let Tₙ be the total number of dots in the first n rows, where n is a positive integer.

The first totals are T₁ = 1, T₂ = 3, T₃ = 6, T₄ = 10 and T₅ = 15. The increases are 2, 3, 4 and 5. Because the construction states that each new row has one more dot, the next total is 15 + 6 = 21.

Without the staircase definition, a finite list alone could be extended by many different rules. Always separate “the numbers suggest this rule” from “the stated construction guarantees this rule”.

Find a total without adding every row

Write S = 1 + 2 + … + n. Then write the same sum in reverse: S = n + (n − 1) + … + 1. Adding the two lines gives n pairs, and every pair totals n + 1.

Therefore 2S = n(n + 1), so Tₙ = n(n + 1)/2. For n = 20, the total is 20 × 21/2 = 210 dots. This argument explains all positive integers n, rather than only confirming the first few cases.

Use a visual version of the same reasoning

Draw a small staircase, make a second copy and turn it around. The two copies fit into a rectangle with n rows and n + 1 dots in each row. The rectangle contains n(n + 1) dots, and one staircase contains half that number.

The drawing helps explain why the factor of two appears. For younger learners, use a small case first; for more experienced students, connect the picture to the symbolic sum. The picture and the algebra express the same counting structure.

Check both the formula and the boundary case

At n = 1, the formula gives 1 × 2/2 = 1. At n = 5, it gives 15, matching the table. As a further check, Tₙ₊₁ − Tₙ = n + 1, exactly the size of the next row.

A common mistake is using n² because the picture looks roughly square. At n = 5 that gives 25 rather than 15. A quick small-case check catches the error, while the pairing argument explains the correct rule.

Turn a discovered pattern into a clear solution

  1. State what the index and the total represent.
  2. List a few small cases to understand the construction.
  3. Explain why the proposed rule follows from that construction.
  4. Check a simple case and the change from one stage to the next.
  5. Use the rule to answer the actual question, with any required restrictions.

This introductory example is not an official SASMO question or a claim about any grade's difficulty. Practise with resources appropriate to your current level, using the official SASMO information to confirm the event and local arrangements. Keep an explanation with each answer so that a recognised pattern becomes a method you can reuse.

New to the subject? Read our SASMO Preparation: A Beginner's Guide to Levels, Scoring and Practice.

Official resources

Contact Hanlin

Tell us your school year, current topics and the question you want to work on. We can discuss a suitable preparation starting point.

Scan the QR code below or use the WeChat contact link. Send SASMO PATTERNS.

Scan to contact Hanlin on WeChat. Message: SASMO PATTERNS

Contact Hanlin on WeChat

Online Customer Service
Contact Customer Service