Counting-figure questions show a drawing made of straight lines and ask how many triangles, squares or rectangles it contains. The answer is almost never the number of small shapes you can see. Larger shapes are made by combining smaller ones, and the usual mistake is to miss some of those, or to count one twice.

Two habits fix this. First, label every point where lines meet with a letter, so each figure can be named by its corners. Second, count in a fixed order: by size, smallest first, or by a fixed starting corner. For common figure types there are also formulas, which give the answer in seconds and act as a check on your count.

Take a triangle and draw straight lines from its top vertex down to the base. Every pair of lines from that vertex, together with the base, makes a triangle. So if there are k lines from the vertex in total, counting the two sides, the number of triangles is the number of ways to choose 2 of them: C(k, 2).

Worked example 1: three lines inside

A triangle has three lines drawn from its top vertex to the base. With the two sides, there are 5 lines from the vertex, so the figure has C(5, 2) = 10 triangles.

If lines are also drawn across the triangle parallel to the base, each one acts as another base. Multiply by the number of such lines, including the base itself.

Worked example 2: one line across

The same figure with one line drawn across, parallel to the base, has 10 triangles on each of 2 lines: 10 × 2 = 20.

In an n × n grid of small squares, count squares by size. There are n² squares of side 1, (n − 1)² of side 2, and so on down to 1 square of side n. The total is the sum of the first n square numbers:

Squares in an n × n grid = 1² + 2² + … + n² = n(n + 1)(2n + 1) ÷ 6

Worked example 3: a 4 × 4 grid

16 + 9 + 4 + 1 = 4 × 5 × 9 ÷ 6 = 30 squares.

For a rectangular grid m squares tall and n wide, with m smaller, count each size separately: squares of side k number (m − k + 1)(n − k + 1), for k from 1 to m.

Worked example 4: a 3 × 4 grid

Side 1: 3 × 4 = 12. Side 2: 2 × 3 = 6. Side 3: 1 × 2 = 2. The total is 20.

Every rectangle in a grid is fixed by choosing two horizontal lines and two vertical lines. A grid m squares tall and n wide has m + 1 horizontal lines and n + 1 vertical lines.

Rectangles = C(m + 1, 2) × C(n + 1, 2), squares included

Worked example 5: a 3 × 3 grid

There are 4 horizontal and 4 vertical lines. C(4, 2) × C(4, 2) = 6 × 6 = 36 rectangles. Of these, 14 are squares, so 22 are rectangles that are not squares.

A square with both diagonals drawn is a common building block. The diagonals meet at the centre and cut the square into 4 small triangles. Each half of the square cut off by one diagonal is a larger triangle, and there are 4 such halves.

Worked example 6: a square with both diagonals

4 small triangles + 4 half-square triangles = 8 triangles.

An equilateral triangle divided into small equilateral triangles, with n along each side, contains triangles pointing up and pointing down. Count both. For small n it is quick to count by size; the total also follows a formula, n(n + 2)(2n + 1) ÷ 8, rounded down.

Worked example 7: 3 along each side

Pointing up: 6 of size 1, 3 of size 2 and 1 of size 3, making 10. Pointing down: 3 of size 1. The total is 3 × 5 × 7 ÷ 8 = 13.125, rounded down to 13, which matches 10 + 3.

  • ✘ Counting only the smallest shapes and missing the combined ones.
  • ✘ Forgetting the two sides of the triangle when counting lines from a vertex.
  • ✘ Missing the pointing-down triangles in a triangular grid.
  • ✘ Using the n × n square formula on a grid that is not square.

Other spatial topics are dice problems and cube cutting and painting. More reasoning methods are on the study hub.

Q1. Inside a triangle, two straight lines are drawn from the top vertex to the base. How many triangles are there in the figure? easy

✅ Answer: (c) 6

💡 Explanation: There are 4 lines from the top vertex: the two sides and the two new lines. Any two of them, with the base, form a triangle, so the count is C(4, 2) = 6.

Q2. How many squares of all sizes are there in a 5 × 5 grid of small squares? easy

✅ Answer: (a) 55

💡 Explanation: Count by size: 25 of side 1, 16 of side 2, 9 of side 3, 4 of side 4 and 1 of side 5. The total is 1² + 2² + 3² + 4² + 5² = 55.

Q3. How many rectangles, including squares, are there in a grid 2 squares tall and 4 squares wide? medium

✅ Answer: (d) 30

💡 Explanation: A rectangle needs 2 of the 3 horizontal lines and 2 of the 5 vertical lines. C(3, 2) × C(5, 2) = 3 × 10 = 30.

Q4. Inside a triangle, three lines are drawn from the top vertex to the base, and two lines are drawn across parallel to the base. How many triangles are there? medium

✅ Answer: (b) 30

💡 Explanation: There are 5 lines from the vertex, giving C(5, 2) = 10 triangles on each horizontal line. With the base and the two cross lines there are 3 such lines: 10 × 3 = 30.

Q5. How many squares are there in a grid 2 squares tall and 5 squares wide? medium

✅ Answer: (c) 14

💡 Explanation: There are 2 × 5 = 10 squares of side 1 and 1 × 4 = 4 squares of side 2. No larger square fits, so the total is 14.

Q6. An equilateral triangle is divided into small equilateral triangles with 4 along each side. How many triangles of all sizes does the figure contain? hard

✅ Answer: (d) 27

💡 Explanation: Pointing-up triangles: 10 + 6 + 3 + 1 = 20. Pointing-down triangles: 6 of size 1 and 1 of size 2, a total of 7. Altogether 20 + 7 = 27.

What is the best general method when no formula fits?

Label every point where lines meet. Then count by size or by a fixed starting point, listing each figure by its corner letters. Listing by letters makes it easy to spot a figure counted twice or one you missed.

Does the rectangle count include squares?

Yes. A square is a rectangle, so the C(lines, 2) × C(lines, 2) formula counts squares too. If a question asks for rectangles that are not squares, subtract the square count from the rectangle count.

All problems and solutions on this page are original. No outside facts are relied on; every numeric answer is recomputed by software before publishing.

How this page was prepared. Drafted with AI assistance (Claude (Anthropic AI model)) from the sources listed above. 13 calculations on this page were recomputed by software and matched. Automated checks also covered structure, internal links and duplicate text. Software checks cannot confirm facts. Reviewed by praveenkumar on 2026-10-20 against the sources listed above.

Found an error? Report it and we will correct the page.