A rectangle has four sides and four right angles (90°). When you draw a straight line from one corner to the opposite corner, you create the diagonal of a rectangle. Every rectangle has exactly two diagonals, and — unlike many other quadrilaterals — both diagonals of a rectangle are always equal in length and bisect each other (they cut each other exactly in half at the center).
Understanding this line is critical in fields ranging from basic geometry to advanced engineering because it defines the longest internal distance within the shape.
The formula to calculate the diagonal of a rectangle is derived directly from the Pythagorean theorem. Because the diagonal divides the rectangle into two right triangles, the diagonal acts as the hypotenuse, while the length and width become the two legs.
The standard formula for the diagonal of a rectangle is:
Where:
The Pythagorean theorem states that for any right triangle:
Applying this to the rectangle (where the diagonal is the hypotenuse c, and the sides are a and b):
If you know the area (A) and one side, you can also derive the diagonal:
Calculating the diagonal of a rectangle manually is straightforward if you follow these steps carefully.
Suppose a rectangle has a length of 8 cm and a width of 6 cm. Let’s find the diagonal of the rectangle:
Step 1: l = 8 cm, w = 6 cm
Step 2: l² = 8² = 64 | w² = 6² = 36
Step 3: l² + w² = 64 + 36 = 100
Step 4: d = √100 = 10 cm
The diagonal of this rectangle is 10 cm. This is a classic 6-8-10 Pythagorean triple.
The ability to calculate the diagonal of a rectangle has numerous practical applications across different industries and everyday situations.
Builders use the diagonal of a rectangle to verify that a wall, floor, or frame is perfectly square. If both diagonals are equal, the structure is correctly aligned. This technique — known as the “diagonal check” — is fundamental to construction accuracy.
Interior designers calculate the diagonal of rectangular rooms to determine the maximum length of furniture (such as a sofa or dining table) that can be moved through a doorway or space diagonally.
TV screens, monitors, and smartphones are measured by their diagonal dimension. Manufacturers use the diagonal of a rectangle formula to determine the advertised screen size from the display’s height and width.
The diagonal of a rectangle is a foundational geometry concept taught in schools worldwide. It reinforces the Pythagorean theorem and connects algebra to real-world geometric shapes.
Engineers calculate the diagonal of rectangular components to ensure proper fit, determine material stress lines, and optimize structural integrity in machinery, vehicles, and electronic components.
Our Diagonal of a Rectangle calculator is built for speed, accuracy, and ease of use. Here is why thousands of students, engineers, and professionals trust it:
Simply enter the length and width of your rectangle, and the tool instantly computes the diagonal of the rectangle using the verified mathematical formula — no rounding errors, no guesswork.
Our calculator works with any unit of measurement — millimeters, centimeters, meters, inches, or feet — making it versatile for international use.
The tool is completely free to use, available 24/7, and requires no registration or software installation. Access it from any device — desktop, tablet, or mobile.
Beyond just giving the answer, our tool helps users understand the underlying formula for the diagonal of a rectangle, making it an excellent resource for learning and verification.
The diagonal of a rectangle is the straight line segment connecting two opposite (non-adjacent) corners of the rectangle. A rectangle always has two equal-length diagonals.
The formula is d = √(l² + w²), where l is the length and w is the width of the rectangle. This is derived from the Pythagorean theorem.
Yes. In any rectangle, both diagonals are always equal in length. This is one of the defining properties that distinguishes rectangles from general parallelograms.
A square is a special case of a rectangle where length equals width (l = w). For a square with side s, the diagonal simplifies to d = s√2 ≈ 1.414 × s. For a general rectangle, both dimensions must be known separately.
Yes. If you know the area A and one side l, find the other side as w = A / l, then apply the formula: d = √(l² + w²).
No — unless the rectangle is a square. In a general rectangle, the diagonal does not bisect the corner angles equally. It bisects the angles equally only when both sides are equal (i.e., a square).
The diagonal uses the same unit as the length and width you provide. If you enter values in centimeters, the diagonal result is also in centimeters.
Our calculator provides results to multiple decimal places using precise mathematical computation. It applies the exact formula d = √(l² + w²) without any approximation, ensuring full accuracy.

This calculator is developed by Engineer Muhammad Bilal Arshad, a mechanical engineering professional with strong expertise in industrial systems, automation, and process optimization.
Explore the Engineer’s Guidebook! Find the latest engineering tips, industry insights, and creative projects. Get inspired and fuel your passion for engineering.
© 2023-2024 Engineer’s Guidebook. All rights reserved. Explore, Innovate, Engineer.