ExamShortcut

Counting Figures

🔒 Log in to track
medium importance~0-1 Q in Tier 15 formulas⚡ 6 shortcuts3 subtopics
All subtopics·Subtopic 2 of 3

Counting squares and rectangles

🔒 Log in to track
⏱ 4 min read🧩 5 question types🎯 16 practice Q
The idea in one minute

In a grid, count squares and rectangles by choosing lines, not by eye. Any 2 vertical grid lines and any 2 horizontal ones frame exactly one rectangle. For squares, go size by size: 1 by 1, then 2 by 2, and so on. Every square is also a rectangle, so rectangle counts include squares.

01

Every square is a rectangle

A rectangle has four sides and four right angles. A square is a rectangle with all four sides equal. So when a question asks for rectangles, the squares are inside the count. Only the phrase "rectangles that are not squares" leaves them out.

02

Count squares size by size

In a grid of m columns and n rows, count each size separately.

  • 1 × 1 squares: m×nm\times n
  • 2 × 2 squares: (m−1)(n−1)(m-1)(n-1)
  • 3 × 3 squares: (m−2)(n−2)(m-2)(n-2), and so on.

A 4 × 3 grid: 12+6+2=2012+6+2=20 squares. For a square n × n grid the total is 12+22+⋯+n21^2+2^2+\dots+n^2. A chessboard: 1+4+9+⋯+64=2041+4+9+\dots+64=204 squares.

Tip: Stop when the square's side reaches the smaller of m and n. Bigger squares simply do not fit.

03

Count rectangles by picking lines

Never hunt shapes. A rectangle is fixed the moment you pick its two vertical sides and its two horizontal sides.

A grid with m columns has m+1m+1 vertical lines. With n rows it has n+1n+1 horizontal lines. Pick any 2 of each:

R=(m+12)×(n+12)=m(m+1)2×n(n+1)2R=\binom{m+1}{2}\times\binom{n+1}{2}=\frac{m(m+1)}{2}\times\frac{n(n+1)}{2}

A 3 × 2 grid: 6×3=186\times3=18 rectangles. A single row of m cells has m(m+1)2\dfrac{m(m+1)}{2} rectangles.

04

Rectangles that are not squares

Some questions ask for rectangles that are not squares. Count all rectangles, then subtract the squares: R−SR-S.

A 3 × 3 grid: 36−14=2236-14=22 rectangles that are not squares.

Watch: Options love to offer R and S alone. Read whether the question wants all rectangles or only the non-square ones.

05

Check with a small grid

When you forget a formula, test it on a tiny grid you can count by eye.

A 2 × 2 grid has 4 small squares and 1 big square, so 5 squares. It has 9 rectangles: 4 single cells, 4 two-cell blocks and 1 whole grid. The formula gives 3×3=93\times3=9, so it works.

06

Tilted squares

Join the middles of a square's four sides and you get a tilted square, a diamond. It counts as a square too.

A square with both midlines and the diamond: 4 small squares + 1 big square + 1 diamond = 6 squares. The midlines cut the diamond into 4 triangles, so no extra squares hide inside it.

Watch: A tilted square needs all four sides fully drawn. Grid lines crossing a diamond only make triangles.

07

Irregular grids

Plus signs, L shapes and grids with missing lines break the formulas. Check every candidate by hand.

  1. Count the single cells.
  2. For each bigger square or rectangle, check that all four sides are drawn.
  3. Check the inside is completely filled.

Five equal squares in a plus sign: 5 single cells + 4 two-cell blocks + 1 full row + 1 full column = 11 rectangles.

Example: A missing middle line kills every rectangle that needs it as a side. Always trace the four sides.

08

Question types you will see

Each type: how to recognise it, the method step by step, and one question to try.

Type 1very common3 practice Q

Squares in a grid

How to spot it:

A chessboard-like grid; the question asks for squares of all sizes.

S=∑k=1min⁡(m,n)(m−k+1)(n−k+1)S=\sum_{k=1}^{\min(m,n)}(m-k+1)(n-k+1)
Method
  1. Note m columns and n rows.

  2. Add (m − k + 1)(n − k + 1) for k = 1, 2, ... up to the smaller side.

  3. For an n × n grid use 1 squared + 2 squared + ... + n squared.

Why it works:

A k by k square fits in (m − k + 1) places across and (n − k + 1) places down.

Try this

How many squares are there in a 4 × 4 grid?

Show solution
  1. 12+22+32+421^2+2^2+3^2+4^2.

  2. 1+4+9+161+4+9+16.

  3. =30=30.

Answer

30

Type 2common4 practice Q

Rectangles in a grid

How to spot it:

A grid of cells; the question asks for rectangles (squares included).

R=(m+12)(n+12)R=\binom{m+1}{2}\binom{n+1}{2}
Method
  1. Count the vertical lines (m + 1) and horizontal lines (n + 1).

  2. Choose 2 of each set.

  3. Multiply the two choose-2 values.

Why it works:

Choosing 2 vertical and 2 horizontal lines fixes exactly one rectangle.

Try this

How many rectangles are there in a grid of 4 columns and 3 rows?

Show solution
  1. Vertical lines: 5, so (52)=10\binom{5}{2}=10.

  2. Horizontal lines: 4, so (42)=6\binom{4}{2}=6.

  3. 10×6=6010\times6=60.

Answer

60

Type 3common3 practice Q

Squares with a tilted (diamond) square inside

How to spot it:

A square or grid with lines joining the middles of the sides, forming a diamond.

Method
  1. Count the upright squares of the grid.

  2. Add each tilted square whose four sides are fully drawn.

  3. Do not count the triangles made where grid lines cut the diamond.

Why it works:

A tilted square is a square too, but grid lines through it only create triangles.

Try this

A square is divided into 4 equal squares by its two midlines, and the midpoints of its four sides are joined to form a diamond. How many squares are there?

Show solution
  1. Upright: 4 small + 1 big = 5.

  2. Tilted diamond: 1.

  3. 5+1=65+1=6.

Answer

6

Type 4occasional3 practice Q

Irregular grids (plus, L-shape, missing lines)

How to spot it:

Cells joined in a cross or L shape, or a grid with a line missing.

Method
  1. Count the single cells.

  2. For each bigger shape, check all four sides are drawn.

  3. For rectangles, fix a top-left cell and extend right and down while the region stays filled.

Why it works:

The grid formulas assume every line runs the full width; here they do not.

Try this

Five equal squares form a plus sign (one centre square, one on each side). How many rectangles are there?

Show solution
  1. Single cells: 5.

  2. Two-cell blocks (centre with an arm): 4.

  3. Full row and full column: 2.

  4. 5+4+2=115+4+2=11.

Answer

11

Type 5common

Rectangles that are not squares

How to spot it:

The question says 'rectangles which are not squares'.

non-square=R−S\text{non-square} = R - S
Method
  1. Count all rectangles with the line-pair method.

  2. Count the squares size by size.

  3. Subtract: non-square rectangles = R − S.

Why it works:

The full count includes squares, so removing the squares leaves exactly the rest.

Try this

How many rectangles in a 3 × 3 grid are not squares?

Show solution
  1. All rectangles: (42)2=36\binom{4}{2}^2=36.

  2. Squares: 1+4+9=141+4+9=14.

  3. 36−14=2236-14=22.

Answer

22

09

Formula sheet

Rectangles in an m × n grid
R=(m+12)(n+12)R = \binom{m+1}{2}\binom{n+1}{2}

Pick 2 of the m + 1 vertical lines and 2 of the n + 1 horizontal lines.

Squares in an m × n grid
S=∑k=1min⁡(m,n)(m−k+1)(n−k+1)S = \sum_{k=1}^{\min(m,n)} (m-k+1)(n-k+1)

An n × n grid gives 1 squared + 2 squared + ... + n squared.

10

Shortcuts that save time

⚡ Line-pair trick

A rectangle is decided by its two vertical sides and two horizontal sides. Count line pairs, never shapes.

Example

How many rectangles are there in a 3 × 2 grid?

Show solution
  1. Vertical lines: 4, so (42)=6\binom{4}{2}=6.

  2. Horizontal lines: 3, so (32)=3\binom{3}{2}=3.

  3. 6×3=186\times3=18.

Answer

18

⚡ Memorise the small grids

2 × 2: 5 squares, 9 rectangles. 3 × 3: 14 squares, 36 rectangles. 4 × 4: 30 squares, 100 rectangles. They appear inside bigger questions.

Example

How many squares are there in a 4 × 4 grid?

Show solution
  1. 12+22+32+421^2+2^2+3^2+4^2.

  2. 1+4+9+161+4+9+16.

  3. =30=30.

Answer

30

11

Mistakes to avoid

Where most students lose marks on this subtopic.

Mistake 01

Leaving squares out when the question asks for rectangles.

Every square is a rectangle. Subtract them only when the question says non-square.

Mistake 02

Using the number of cells instead of lines in the choose-2 count.

A grid with m columns has m + 1 lines. Choose 2 of the lines.

Mistake 03

Missing the bigger squares (2 × 2, 3 × 3) in a grid.

Count size by size up to the smaller side of the grid.

Mistake 04

Counting a tilted square's triangle pieces as more squares.

Grid lines through a diamond cut it into triangles, not squares.

Mistake 05

Applying the grid formula to a plus or L shape.

Irregular shapes need a side-by-side check: all four sides drawn, inside filled.

12

Quick revision

Read this the night before the exam.

  • Squares in an m×nm\times n grid: add (m−k+1)(n−k+1)(m-k+1)(n-k+1) for each size k.

  • Square grid: 12+22+⋯+n21^2+2^2+\dots+n^2; chessboard = 204.

  • Rectangles: (m+12)×(n+12)\binom{m+1}{2}\times\binom{n+1}{2}.

  • Non-square rectangles = R − S.

  • Every square is a rectangle.

  • Tilted squares count once; irregular grids need a four-sides check.

13

Practice: 16 questions

Sets of 10, mixed across the question types above. Every answer has a step-by-step explanation.

Topic test · 10 questions

Suggested time 7 min · wrong answers go to your mistake notebook automatically.