Technique
Rectangles in a grid: choose two lines each way
Quantitative Aptitude • Permutations and Combinations
Formula
A rectangle drawn on a grid has a top and a bottom on two of the horizontal lines, and a left and a right side on two of the vertical lines. Any choice of two horizontal lines and two vertical lines gives exactly one rectangle, and every rectangle comes from one such choice. With horizontal and vertical lines the count is . A square is a rectangle, so this count already holds every square.
How to use it
- 1Count the lines in each direction, not the small boxes.
- 2Pairs from lines: .
- 3Multiply the two pair counts.
Worked example
A board has 3 horizontal and 5 vertical lines. How many rectangles can be formed?
Step-by-step
- 1Pairs of horizontal lines: .
Why: Two of them make the top and bottom.
- 2Pairs of vertical lines: .
Why: Two of them make the left and right sides.
- 3.
Why: Each pair of one kind goes with each pair of the other.
Answer
30
Watch out
Counting only the small boxes misses the larger rectangles. Adding the squares again to this count counts them twice.
Builds on
Also known as
number of rectangles in a grid, rectangles on a chessboard, squares and rectangles count