Constructing squares of given area

Can you draw a square whose area is exactly 22 square units, or 55 square units, when the side length is not a whole number at all? On a dot grid you can — without ever measuring a single "messy" length with a ruler. Pick two whole numbers aa and bb, walk aa steps one way and bb steps the other along the grid, turn a quarter-turn, and repeat four times. The tilted shape you trace closes into a perfect square, and its area works out to exactly a2+b2a^2+b^2 square units — a direct visual use of the Baudhayana–Pythagoras theorem. This article builds that construction step by step, verifies it by counting area two different ways, and shows how to pick aa and bb to hit any target whole-number area you're asked for.

The core insight

Joining dots aa units across and bb units up on a grid, turned by 90°90° four times, builds a tilted square of side a2+b2\sqrt{a^2+b^2} and area exactly a2+b2a^2+b^2.

The core idea

Take a square dot grid — dots spaced 11 unit apart in rows and columns, like graph paper. Pick any dot as a starting point and draw a segment to another dot that is aa units away horizontally and bb units away vertically. That segment is the hypotenuse of a right triangle with legs aa and bb, so by the Baudhayana–Pythagoras theorem its length is

ℓ=a2+b2\ell=\sqrt{a^2+b^2}

where: aa and bb are the whole-number horizontal and vertical grid steps, and ℓ\ell is the length of the tilted (slanted) segment. Now repeat that same step vector three more times, turning 90°90° at each corner. Four equal, perpendicular sides close up into a tilted square — tilted because its sides run diagonally across the grid rather than along the rows and columns. Its side length is ℓ=a2+b2\ell=\sqrt{a^2+b^2}, and because area does not care whether a square is "upright" or tilted, its area is exactly

Area=a2+b2\text{Area}=a^2+b^2

where: the right-hand side is a whole number as long as aa and bb are whole numbers, even though the side length a2+b2\sqrt{a^2+b^2} itself is usually irrational. The figure below shows the tilted square built with a=1, b=2a=1,\ b=2, enclosed inside an upright square so you can see how the area is checked.

Figure
A tilted square with side vector 1 across and 2 up drawn inside an enclosing upright square of side 3, with the four corner right triangles shaded
Tilted square of area 5 inside an enclosing square of area 9 each grid step is 1 unit; step vector (1,2) rotated 90° four times closes the tilted square

Reading the picture: enclose the tilted square in the smallest upright square that contains it, then subtract the four leftover corner right triangles. That "enclose and subtract" idea is exactly the derivation below.

Derivation AThe enclosing-square check for a tilted square

The goal of this derivation is to prove, algebraically and not just by eyeballing a picture, that a tilted square built from grid steps aa (horizontal) and bb (vertical) really does have area a2+b2a^2+b^2 square units, by enclosing it in an upright square of side a+ba+b and subtracting the four corner triangles that stick out.

Step 1. Draw the tilted square's first side from one dot to another that is aa units right and bb units up. Extend the grid lines through the four corners of the tilted square so they form an upright square around it. Because each side of the tilted square has horizontal reach aa and vertical reach bb, the enclosing upright square has side length a+ba+b, so its area is (a+b)2(a+b)^2.

Step 2. Look at the four leftover corners. Each one is a right triangle with legs aa and bb — the same aa and bb as the tilted square's step. There are four of these triangles, one in each corner of the enclosing square, and together they exactly fill the gap between the enclosing square and the tilted square inside it.

Step 3. Find the area of one corner triangle: a right triangle with legs aa and bb has area 12ab\tfrac12 ab. Four identical corner triangles together have area 4×12ab=2ab4\times\tfrac12ab=2ab.

Step 4. Subtract the corners from the whole enclosing square to isolate the tilted square's area: (a+b)2−2ab=a2+2ab+b2−2ab=a2+b2(a+b)^2-2ab=a^2+2ab+b^2-2ab=a^2+b^2. The 2ab2ab terms cancel exactly, leaving a2+b2a^2+b^2 — matching the Baudhayana–Pythagoras length a2+b2\sqrt{a^2+b^2} squared, and confirming the tilted square's area is a2+b2a^2+b^2 no matter what whole numbers aa and bb you chose.

Worked example

Problem: Construct a tilted square of area 55 square units on a dot grid, and verify its area using the enclosing-square method.

Step 1. We need whole numbers with a2+b2=5a^2+b^2=5. Trying small values: 12+22=1+4=51^2+2^2=1+4=5. ✓ So take a=1, b=2a=1,\ b=2.

Step 2. Starting at dot (0,0)(0,0), move 11 unit right and 22 units up to reach (1,2)(1,2) — that is the first side of the tilted square.

Step 3. Rotate the step vector (1,2)(1,2) by 90°90° to get (−2,1)(-2,1); from (1,2)(1,2) this reaches (−1,3)(-1,3). Rotate again to get (−1,−2)(-1,-2), reaching (−2,1)(-2,1). Rotate once more to get (2,−1)(2,-1), which returns you to (0,0)(0,0). The four corners (0,0),(1,2),(−1,3),(−2,1)(0,0),(1,2),(-1,3),(-2,1) form the tilted square.

Step 4. Verify by enclosing: the enclosing upright square has side a+b=1+2=3a+b=1+2=3, so its area is 32=93^2=9. Each corner right triangle has legs 11 and 22, area 12×1×2=1\tfrac12\times1\times2=1; four of them total 44.

Step 5. Subtract: 9−4=59-4=5 square units, matching a2+b2=12+22=5a^2+b^2=1^2+2^2=5 exactly. The constructed tilted square has side length 5\sqrt5 units and area exactly 55 square units.

Competitive stretch

For area 1313: try a=2, b=3a=2,\ b=3, since 22+32=4+9=132^2+3^2=4+9=13. The enclosing square has side 2+3=52+3=5 (area 2525), and four corner triangles of legs 2,32,3 total 4×12×2×3=124\times\tfrac12\times2\times3=12. Then 25−12=1325-12=13. ✓ So a tilted square built from step (2,3)(2,3), side length 13\sqrt{13}, has area exactly 1313 square units — the same enclose-and-subtract check works for any target area that can be written as a sum of two whole-number squares.

Common traps

  • Trying to measure the slanted side with a ruler. The whole point of the construction is that you never measure 5\sqrt5 or 13\sqrt{13} directly — you place whole-number grid steps and let the area come out exactly right on its own.
  • Rotating the step vector incorrectly. Each side must be the previous side turned by exactly 90°90°; a wrong turn breaks the shape, and the four sides stop being equal and perpendicular.
  • Mixing up area and side length. The area is the whole number a2+b2a^2+b^2; the side length is the (usually irrational) square root a2+b2\sqrt{a^2+b^2} — do not report one when asked for the other.
  • Forgetting the enclosing square's side is a+ba+b, not aa or bb alone. The check only works if the upright square drawn around the tilted square has side exactly a+ba+b, so that all four corner triangles have legs aa and bb.

Ask the tutor: Want to try constructing a tilted square of a different area, say 1717 or 2020 square units — ask the AI tutor to help you find the right aa and bb and sketch the steps.

Why does a tilted square even count as a square if its sides look slanted on the grid?

A shape is a square as long as all four sides are equal in length and each pair of adjacent sides meets at a right angle — nothing in that definition requires the sides to run along the horizontal and vertical grid lines. In the construction, each side is the same rotated step vector, so all four sides are automatically equal, and each 90°90° rotation guarantees the right angles. It is a genuine square; it is simply drawn at an angle to the grid.

How do I choose a and b to build a square of a specific area, like 8 square units?

Look for two whole numbers whose squares add up to the target area. For 88: try small pairs — 12+12=21^2+1^2=2, 12+22=51^2+2^2=5, 22+22=82^2+2^2=8. ✓ So a=2, b=2a=2,\ b=2 works, giving a tilted square of side 8\sqrt8 and area 88. Not every whole number splits neatly into two squares with small a,ba,b (try a few pairs and see), but for the areas used in this chapter — 2,5,8,10,132,5,8,10,13 and similar — a small search always finds a pair.

Does the enclosing square always have to be bigger than the tilted square?

Yes, and that is exactly why the method works: the tilted square sits diagonally inside the upright square of side a+ba+b, touching each side of the enclosing square at one point, with four right-triangle gaps in the corners. The enclosing square's area is always (a+b)2(a+b)^2, which is always more than a2+b2a^2+b^2 (unless aa or bb is zero), and the extra area is precisely the four corner triangles you subtract.

Before this

Where this leads