In architecture, the Pythagorean theorem sets out square corners, sizes rafters and braces, and produces the √2 proportion of a square's diagonal that medieval masons used to design plans and pinnacles. In art it hides in A4 paper, screen sizes, perspective drawing, floor-tile patterns and Islamic geometric ornament. Most of these uses come from one fact: a square's diagonal is √2 times its side.
Each use below is worked with real numbers. Where a popular claim goes beyond the evidence — and in architectural history many do — this page says so.
The square and its diagonal: where √2 comes from
Apply a2 + b2 = c2 to the diagonal d of a square with side s. Both legs are s, so
d2 = s2 + s2 = 2s2 ⇒ d = s√2 ≈ 1.414 sA square drawn on the diagonal therefore has exactly twice the area of the original. This "doubling the square" is one of the oldest pieces of applied geometry; it appears in the Indian Śulba Sūtras and in Plato's Meno. The isosceles right triangle it creates is the 45-45-90 triangle, and the ratio √2 cannot be written as a fraction (here is why), which is exactly why builders worked with the diagonal itself rather than with a number.
The Roman architect Vitruvius makes the same points in the introduction to Book IX of De architectura (1st century BCE). He shows that a 10-foot square field (100 square feet) cannot be doubled by arithmetic — a 14-foot side gives 196 square feet and a 15-foot side gives 225 — but can be doubled exactly by building on the diagonal. He then retells the story of Pythagoras's 3-4-5 triangle, with the legend that Pythagoras sacrificed to the Muses in thanks, and adds a practical use. In Morris Hicky Morgan's 1914 translation:
"This theorem affords a useful means of measuring many things, and it is particularly serviceable in the building of staircases in buildings, so that the steps may be at the proper levels."
His rule: divide the height of a story into three parts, set the foot of the stair four parts out from the wall, and the stringer will be five parts long — the 3-4-5 triangle again.
Ad quadratum: √2 in medieval design
Ad quadratum ("from the square") is a design method in which one square generates the next. Join the midpoints of a square's sides and you get a smaller square turned 45°; join the midpoints of that one and you get a square parallel to the first, and so on. Each new square has side 1 over √2 of the one before and exactly half its area, because the side of each square is half the diagonal of the next one out.
The method is documented, not just inferred. In 1486 the Regensburg master mason Mathes Roriczer printed a short booklet on how to design a Gothic pinnacle: you start from a square, inscribe a rotated square in it, inscribe another, and take the main dimensions of the pinnacle from that nest of squares. Lon R. Shelby's 1977 edition of Roriczer's and Hanns Schmuttermayer's booklets is the standard English source.
At Milan Cathedral, the building council's records from the 1390s show a long argument over whether the cross-section should be proportioned ad quadratum or ad triangulum — fitted to an equilateral triangle — and the mathematician Gabriele Stornaloco was consulted on the triangular scheme. An equilateral triangle with side s has height √s2 − (s/2)2 = √3 over 2s ≈ 0.866 s, another application of the theorem (see the 30-60-90 triangle). James Ackerman's 1949 article on the Milan debates is the classic study.
Be carefulBooks and websites often claim that a particular cathedral or temple was laid out on secret √2 (or golden-ratio) geometry. Some of these claims are well supported; many are not. Old buildings are irregular, and with enough choice of which lines to measure you can find almost any ratio. Unless the claim rests on careful survey or on written sources like Roriczer's booklet, treat it as a hypothesis.
A4 paper: the √2 rectangle
The most widespread √2 design in the world is a sheet of paper. ISO 216 paper sizes (A4, A3 and the rest) have sides in the ratio 1 : √2, chosen for one property: when you cut or fold a sheet in half across its long side, each half has the same shape as the original.
To see why that forces √2, let a sheet be 1 unit wide and r units long. Halving it gives a sheet r over 2 by 1, whose long-to-short ratio is 1 ÷ r over 2 = 2 over r. For the shape to be the same, r = 2 over r, so r2 = 2 and r = √2.
The series starts from A0, defined to have an area of 1 square meter (before rounding). With w · w√2 = 1, the width is 2−1/4 ≈ 0.8409 m and the length 21/4 ≈ 1.1892 m. Each smaller size is half the previous one, rounded down to a whole millimeter:
| Size | Width (mm) | Length (mm) | Length ÷ width | Diagonal (mm) |
|---|---|---|---|---|
| A0 | 841 | 1189 | 1.4138 | 1456.4 |
| A1 | 594 | 841 | 1.4158 | 1029.6 |
| A2 | 420 | 594 | 1.4143 | 727.5 |
| A3 | 297 | 420 | 1.4141 | 514.4 |
| A4 | 210 | 297 | 1.4143 | 363.7 |
| A5 | 148 | 210 | 1.4189 | 256.9 |
| A6 | 105 | 148 | 1.4095 | 181.5 |
That last fact gives a quick check you can do with a sheet of A4: fold one short edge down onto a long edge to make a square, and the fold line (the square's diagonal) is the same length as the sheet's long side, to within about 0.02 mm. The √2 rectangle and the ad quadratum square are the same idea.
The advantages of the √2 ratio were noted by the physicist Georg Christoph Lichtenberg in a letter of 1786. Germany standardized the A series as DIN 476 in the early 1920s, building on Walter Porstmann's proposals, and it became the international standard ISO 216 in 1975. The main holdouts are the United States and Canada, whose letter paper is 8.5 by 11 inches: ratio about 1.294, diagonal √8.52 + 112 ≈ 13.9 inches.
Roof trusses and rafters
A pitched roof is a pair of right triangles. The horizontal distance from the wall to the center is the run, the height gained is the rise, and the sloping rafter is the hypotenuse, so rafter = √run2 + rise2.
Example: rafter and strut lengths
A building is 24 ft wide and the roof has a 6/12 pitch (6 inches of rise per 12 inches of run). The run is half the span, 12 ft, and the rise is 12 × 6 over 12 = 6 ft.
rafter= √122 + 62 = √180 = 6√5 ≈ 13.42 ftstrut= √62 + 32 = √45 = 3√5 ≈ 6.71 ftEach rafter is about 13.42 ft and each strut about 6.71 ft (rounded to the nearest hundredth), before allowing for the overhang at the eaves and the thickness of the ridge.
Carpenters usually work per foot of run. For a pitch of p/12, a rafter rises p inches over 12 inches of run, so its length per foot of run is √122 + p2 inches:
| Pitch | Rafter length per foot of run (in) | Multiply run by |
|---|---|---|
| 4/12 | 12.65 | 1.0541 |
| 6/12 | 13.42 | 1.1180 |
| 8/12 | 14.42 | 1.2019 |
| 12/12 | 16.97 | 1.4142 |
The 12/12 row is √2 again: a 45° roof is half a square cut along its diagonal. To skip the arithmetic, use the rafter length calculator; for squaring foundations, stairs and braces, see the Pythagorean theorem in construction.
Frames, screens and perspective
Any rectangle — a canvas, a window, a print, a screen — has a diagonal of √w2 + h2. Framers use this to check corners: a frame with equal opposite sides and equal diagonals must be a rectangle, and a 30 cm by 40 cm frame should measure exactly 50 cm corner to corner.
Screens are sold by their diagonal. For the 16:9 shape of most TVs, the diagonal of a 16-by-9 rectangle is √162 + 92 = √337 ≈ 18.36, so a 55-inch screen is 55 × 16 over 18.36 ≈ 47.9 inches wide and 55 × 9 over 18.36 ≈ 27.0 inches tall. The screen size calculator does this for any aspect ratio, and the rectangle diagonal calculator handles frames and panels.
Painters met the square's diagonal in perspective drawing. In De pictura (1435), Leon Battista Alberti describes building a receding tiled floor and checking it with a single straight line: if the construction is correct, that line passes through the corners of tile after tile as a common diagonal. The check works because the diagonals of square tiles all run at 45° on the real floor, so in a correct picture they must line up.
The Pythagorean tiling: a floor that proves the theorem
The Pythagorean tiling covers a floor with squares of two sizes, each small square surrounded by four large ones. Tilers call it a hopscotch or pinwheel pattern, and it has long been used for floors; Jacob Ochtervelt's painting Street Musicians at the Door (1665) shows one. It also contains a proof of the theorem.
Give the small squares side a and the large squares side b. Pick any point of the pattern, such as the corner where a small and a large square meet below a third square, and find every point that sits in the same position. Those points form a grid of tilted squares, and each tilted square has side c = √a2 + b2 — it is the hypotenuse of a right triangle with legs a and b. Because the pattern repeats once per tilted square, each tilted square must contain exactly one small square's worth and one large square's worth of tile:
This five-piece dissection is one of the oldest dissection proofs. The Baghdad-era mathematicians Thābit ibn Qurra (died 901) and al-Nayrīzī (died c. 922) both used the tiling in proofs, and the nineteenth-century amateur Henry Perigal found the version in which the grid is centered on the large squares — the Perigal dissection. Shifting the grid gives different cuts but always the same conclusion, which is why the tiling is a favorite in classrooms. It sits naturally beside the rearrangement proof in the collection of proofs of the Pythagorean theorem.
Islamic geometric patterns
The star-and-polygon patterns of Islamic architecture were designed with compass and straightedge: circles, their divisions, and squares and polygons inscribed in them. The simplest star, the eight-pointed one, is two equal squares in the same circle, one turned 45° against the other. If the circle has radius r, each square's side is the hypotenuse of a right triangle whose legs are two radii, so the side is √r2 + r2 = r√2.
The connection to the Pythagorean theorem is direct in the work of Abū al-Wafāʾ al-Būzjānī (940–998), a Persian mathematician working in Baghdad, who wrote a book of geometric constructions for craftsmen in the late tenth century. One problem he discusses is cutting three equal square tiles into pieces that form a single larger square. Its side must be √3 times the original, a length that comes from applying the theorem twice. He describes a craftsmen's method that looks right but is only approximate, rejects it, and gives an exact dissection.
Later pattern books, such as the Topkapı Scroll studied by Gülru Necipoğlu, show large patterns built on grids of such constructions. The ratios √2 and √3 appear throughout because squares, octagons and hexagons produce them, not because designers consciously applied a theorem in every tile.
Frequently asked questions
How is the Pythagorean theorem used in architecture?
Builders use it to set out right angles (the 3-4-5 method), to find rafter, brace and stair-stringer lengths, and to check that walls and foundations are square by measuring diagonals. Historically, designers also used the √2 relationship between a square's side and diagonal to proportion plans and details.
Why is A4 paper 210 by 297 mm?
A-series sheets have sides in the ratio 1 : √2, so that a sheet cut in half keeps its shape. A0 has an area of one square meter, and A4 is A0 halved four times: 2−1/4/4 by 21/4/4 meters, about 210.2 by 297.3 mm, rounded down to 210 by 297.
What does ad quadratum mean?
It is Latin for "from the square" and names a medieval design method in which proportions are generated by inscribing squares inside squares, each turned 45° to the last. Each square has half the area of the one around it, so the sides go down by a factor of √2.
How does a tiling prove the Pythagorean theorem?
In the Pythagorean tiling of two square sizes, matching points form a grid of larger squares whose side is the hypotenuse c. Each grid square holds exactly the pieces of one small and one large tile, so c2 = a2 + b2. The animation above slides the pieces home.
Did medieval masons know the Pythagorean theorem?
Many worked with practical geometry rather than written proofs, but they certainly used its consequences: doubling and halving areas with the square's diagonal, and setting out right angles. Euclid's Elements, including I.47, was available in Latin from the twelfth century, though how much of it individual masons read is uncertain.
How do artists use the Pythagorean theorem?
Mostly through rectangles and diagonals: sizing and squaring canvases and frames, converting between aspect ratios, and checking perspective floors whose tile diagonals must line up. Pattern designers also rely on the √2 and √3 lengths that squares and hexagons produce.
Sources and further reading
- Vitruvius, The Ten Books on Architecture, Book IX, introduction, translated by Morris Hicky Morgan (Harvard University Press, 1914); Project Gutenberg edition.
- Lon R. Shelby, Gothic Design Techniques: The Fifteenth-Century Design Booklets of Mathes Roriczer and Hanns Schmuttermayer. Southern Illinois University Press, 1977.
- James S. Ackerman, "'Ars Sine Scientia Nihil Est': Gothic Theory of Architecture at the Cathedral of Milan", The Art Bulletin 31 (1949).
- International Organization for Standardization, ISO 216: Writing paper and certain classes of printed matter — Trimmed sizes — A and B series; overview at Wikipedia: ISO 216.
- Roger B. Nelsen, "Paintings, plane tilings, and proofs", Math Horizons 11 (2003); Greg N. Frederickson, Dissections: Plane & Fancy, Cambridge University Press, 1997. Overview at Wikipedia: Pythagorean tiling.
- Gülru Necipoğlu, The Topkapı Scroll: Geometry and Ornament in Islamic Architecture. Getty Center, 1995.
- Leon Battista Alberti, On Painting (De pictura, 1435), Book 1; many English translations.
Keep exploring
- Real-life usesThe Pythagorean Theorem in ConstructionHow builders use the Pythagorean theorem: the 3-4-5 rule for squaring corners and foundations, diagonal checks, stairs, rafters, ramps, braces and field tips.
- CalculatorsRafter Length and Roof Pitch CalculatorRafter length and roof pitch calculator. Enter the run and the pitch, rise or angle to get rafter length with overhang, roof angle, slope percent and slope factor.
- CalculatorsScreen Size Calculator for TVs and MonitorsTV and monitor screen size calculator. Turn a diagonal and aspect ratio into width, height and area in inches and cm, get PPI, and compare two screens.
- ProofsPerigal's Dissection Proof of the Pythagorean TheoremHenry Perigal's dissection proof of the Pythagorean theorem: cut the larger leg square into four equal pieces, then slide them and the small square into c².
- LearnThe 45-45-90 TriangleThe 45-45-90 triangle rules: why the sides are in the ratio 1 : 1 : √2, how to find a leg from the hypotenuse, the diagonal of a square, and worked examples.
- Real-life usesWhat Is the Pythagorean Theorem Used For?What is the Pythagorean theorem used for? 17 real-life uses in building, screens, navigation, GPS, games, physics and sports, each with a worked calculation.