Pythagoras off the page: braces, doorways and square frames
Most of what Pythagoras is good for happens with a tape measure in your hand. Three jobs come up constantly — sizing a diagonal, deciding whether something fits, and proving a corner is square — and all three are the same one line of arithmetic.
What the tool takes and returns
The free Right Triangle calculator takes the two legs, a and b, and returns three things: the hypotenuse √(a² + b²), the angle opposite a, and the angle opposite b, both in degrees to six decimals. Its defaults of 3 and 4 return a hypotenuse of 5 and angles of 36.869898 and 53.130102, which sum to 90 as they must — the two acute angles of a right triangle always do.
It solves in one direction only. Give it two legs and it hands back the long side. If what you know is the hypotenuse and one leg, rearrange it yourself: a = √(c² − b²). A 12-foot plank spanning a rise of 1 foot covers a horizontal run of √(144 − 1) = √143 ≈ 11.958261 feet — noticeably less than 12, and the gap is the whole reason to check.
Job one: sizing a diagonal brace
A rectangular frame with no diagonal in it is a hinge. The brace that stops it racking runs corner to corner, and its length is the hypotenuse of the two sides.
For an opening 36 inches wide and 48 inches tall: 36² + 48² = 1296 + 2304 = 3600, and √3600 = 60 inches exactly. That is not luck — 36, 48 and 60 are the 3-4-5 triple multiplied by 12, so the tool returns the same angles, 36.869898 and 53.130102, that it returns for 3 and 4. Scaling a triangle changes every length and no angle.
The exact whole-number triples are worth recognising, because they let you check a measurement in your head: 3-4-5, 5-12-13, 8-15-17, 7-24-25 and 20-21-29. Feed 5 and 12 to the tool and it returns exactly 13, with angles of 22.619865 and 67.380135.
Job two: will it go through the opening
The measurement that decides this is not the width of the object. It is the diagonal of the cross-section the object presents to the opening, and you get to choose which cross-section that is by turning the thing.
Take a tabletop 30 inches wide and 29 inches tall standing upright, facing a 32-inch doorway. Presented face-on and turned, the limiting measure is the diagonal of that 30 by 29 rectangle: √(900 + 841) = √1741 ≈ 41.725292 inches. That does not go through 32 inches, and no amount of pushing changes it.
Tip the same table so the leading face is the top's width by its thickness — 30 inches by 1.5 inches — and the diagonal becomes √(900 + 2.25) = √902.25 ≈ 30.037477 inches. Under 32, with room to spare. The object never changed; the cross-section did. Measure before you lift, and measure the diagonal rather than the width.
Job three: proving a corner is square
This is the 3-4-5 check. Measure 3 units along one edge from the corner, 4 units along the other, and measure between those two marks. If it is exactly 5, the corner is 90 degrees. If it is not, the corner is not.
How much does a small error show? Use the law of cosines, which is Pythagoras with a correction term for corners that are not right: c² = a² + b² − 2ab × cos C. At 91 degrees instead of 90, with legs 3 and 4, the diagonal becomes √(25 − 24 × cos 91°) ≈ 5.041712 — a difference of only 0.041712 units. If those units are inches, one degree out of square shows up as about a twenty-fourth of an inch, which a tape measure will not reliably tell you.
Scale the check up and the same error becomes visible. With legs of 30 and 40, the correct diagonal is 50, and at 91 degrees it reads 50.417118 — a difference of 0.417118, ten times the signal for the same error, because every length in the triangle scaled by ten. Use the largest multiple of 3-4-5 that fits the work.
Rearranged, the same formula reads an error off a measurement. Legs of 3 and 4 with a measured diagonal of 5.1 give cos C = (9 + 16 − 26.01) / 24, so C ≈ 92.411910 degrees. A diagonal of 5.05 gives C ≈ 91.199718 degrees. Long diagonal means an open corner; short means a closed one.
One corner is not a rectangle
A square corner proves one corner. A four-sided frame can have one perfect corner and still be a parallelogram leaning off in some other direction. The check that covers the whole thing is to measure both full diagonals of the finished frame: in a rectangle they are equal, and in anything racked out of true they are not. It is one comparison, it needs no arithmetic at all, and it is the one to do last, after the glue is on and before it sets.