Checking a rectangle diagonal with a right triangle
A rectangle's diagonal is the hypotenuse of a right triangle built from two adjacent sides. This guide checks that the rectangle and right-triangle calculators agree.
Why a rectangle contains a right triangle
Every corner of a rectangle is a right angle. Draw one diagonal and the rectangle splits into two triangles, each with the two adjacent sides as legs and the diagonal as the hypotenuse. That is the whole link between the two tools: the Rectangle calculator finds the diagonal as the square root of length squared plus width squared, and the Right Triangle Calculator finds the hypotenuse of legs a and b as the same square root. If the legs are the rectangle's sides, both tools must return the same number. A disagreement means that an input was mistyped or that the figure is not the shape you think it is.
The 3 by 4 rectangle
A rectangle with length 3 and width 4 has area 12 and perimeter 14. Its diagonal is the square root of 9 plus 16, which is 5. The Right Triangle Calculator with legs 3 and 4 also returns a hypotenuse of 5, and an area of 6. The triangle area is half of the rectangle area, because the diagonal cuts the rectangle into two congruent triangles. That second comparison gives a useful extra check. When the diagonal agrees and the triangle area is exactly half of the rectangle area, the decomposition is confirmed and nothing has been mixed up between the two tools.
What the diagonal is not
The diagonal is shorter than the sum of the two sides. For the 3 by 4 rectangle, going along two sides covers 7 units, while the diagonal covers 5. It is also not part of the perimeter, which counts only the four outer sides: 3 plus 4 plus 3 plus 4 is 14. A common slip is to add the diagonal into the perimeter or to treat it as one of the sides in a perimeter total. The diagonal passes through the interior, so it is a separate measurement. Its length always falls between the longer side and the sum of the two sides, which gives a sanity check on any result.
More rectangles with whole-number diagonals
The same arithmetic works for any pair of sides. A rectangle 5 by 12 has diagonal 13, area 60 and perimeter 34. A rectangle 6 by 8 has diagonal 10, area 48 and perimeter 28, and is simply the 3 by 4 rectangle enlarged by 2. A square with side 1 has a diagonal of the square root of 2, about 1.414, and a square with side 10 has about 14.142. These whole-number sets are called Pythagorean triples, and they are useful for checking your own work. Most real rectangles will not have whole-number diagonals, which is where the calculators earn their keep.
A screen or panel example
Screen sizes are quoted by diagonal. As an illustration, a panel 48 inches wide and 27 inches tall has a diagonal of the square root of 2,304 plus 729, which is the square root of 3,033, about 55.073 inches. The area is 1,296 square inches and the perimeter is 150 inches. The width to height ratio is 16 to 9. Two screens with the same diagonal can have different areas if their shapes differ, since a squarer screen of the same diagonal has more area. Comparing screens by diagonal alone therefore mixes size with shape, and the sides are needed to compare areas.
A squareness check for frames
Builders use the same relationship to check that a frame is square. Measure the two diagonals of a rectangular frame. In a true rectangle they are equal. For a door opening that is 36 inches wide and 80 inches tall, the expected diagonal is the square root of 1,296 plus 6,400, which is about 87.727 inches. If the two measured diagonals differ, the frame is a parallelogram, not a rectangle, and has been pushed out of square. Matching one diagonal to the calculated value tests the corner angle, but checking both diagonals is the more reliable test. Real tolerances come from the applicable specification, not from this geometry. A difference of a few millimeters between diagonals on a frame of this size is a typical reason to adjust the corners before fastening, and the calculated diagonal gives the target to aim for when only one diagonal can be measured.
Keeping the right-angle assumption attached
The check works because the shape has perpendicular adjacent sides. A four-sided figure with sides 3 and 4 can have many diagonal lengths: a parallelogram with those sides can have a short diagonal when it leans one way and a long one when it leans the other. Only when the angle is 90 degrees is the diagonal 5. This is why the label rectangle must travel with the number. If you only know two side lengths and nothing else about the quadrilateral, the diagonal is undetermined, and the figure might not be a rectangle at all.
Entering the sides correctly
Both tools expect two side lengths in the same unit, and the diagonal and perimeter come back in that unit while the area comes back in its square. Inches and feet cannot be mixed in one calculation without converting. The order of the two sides does not matter for the diagonal, area or perimeter, because the formulas are symmetric. Do not enter the diagonal as one of the sides. If you know a diagonal and one side, find the other with the Pythagorean relationship: for a diagonal of 13 and a side of 5, the other side is the square root of 169 minus 25, which is 12.
Ideal rectangles with exact right angles
The results are geometric values for ideal rectangles with exact right angles and straight sides. They do not account for the thickness of lines, frame members or panels, and they say nothing about whether a physical object meets a size standard. Treat the agreement between the two calculators as a confirmation of arithmetic, not of any real measurement. If the two tools ever disagree on the diagonal for the same two sides, compare the typed values digit by digit first, then check that neither field holds a diagonal or a perimeter by mistake. A transposed digit such as 34 for 43 explains most mismatches. For material takeoffs, construction layout or product specifications, rely on the governing drawings, standards and the tolerance stated by the manufacturer.
Reproduce the checks
Rectangle outputs
Open the Rectangle calculator and enter:
- Length
3- Width
4
Expected output:
Diagonal
5Area
12Perimeter
14The diagonal crosses the interior.
Right-triangle control
Open the Right Triangle Calculator and enter:
- Side a
3- Side b
4
Expected output:
c
5area
6The diagonal separates the rectangle into two equal-area triangles.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- MathWorld ↗ · 2026-10-08