Rectangle diagonal calculator online
Calculate rectangle diagonal online. Enter the required dimensions and parameters to estimate quantities and key values.
01 / Calculation method
Rectangle diagonal calculation
Checking the diagonals of a rectangle is one of the most reliable ways to verify set-out lines and corners on a construction site. The calculator finds the theoretical diagonal length from two known sides, the length and width.
This method is commonly used for:
- setting out strip and raft foundation axes;
- checking formwork corners before concrete placement;
- installing wall frames, partitions, and window or door openings;
- checking truss and roof geometry.
Formula
The calculation uses the Pythagorean theorem. A rectangle’s diagonal divides it into two congruent right triangles and acts as their hypotenuse:
where:
- is the calculated diagonal length in cm;
- is the rectangle length (side A) in cm;
- is the rectangle width (side B) in cm.
Calculation steps
- Enter the input dimensions: provide the adjacent side lengths and using the same unit, centimeters in this calculator.
- Square both sides: calculate and .
- Add the squares: find .
- Take the square root: the square root of the sum gives the theoretical diagonal length .
Checking a rectangle on site
To confirm that a set-out or assembled outline is a true rectangle with four 90° corners:
- Check opposite sides: verify that opposite sides are equal in pairs.
- Compare the measured diagonals: measure both corner-to-corner diagonals with a tape; they should match.
- Check the theoretical value: the measured length should match the calculator’s diagonal .
Under European standards for construction tolerances, such as EN 13670 for concrete and EN ISO 4463-1 for setting-out, allowable diagonal deviations depend on the accuracy class and side lengths. In practice, a difference of more than a few millimeters for a medium-sized layout often indicates skewed corners.
02 / Frequently asked questions
Why measure both diagonals if one can be calculated?
The calculated diagonal is the exact hypotenuse of an ideal right triangle with sides and . On site, however, the layout may be a parallelogram rather than a rectangle: opposite sides can be equal while the corners are skewed. One measured diagonal will then be longer and the other shorter. Comparing both measured diagonals with each other and with the calculated value helps confirm that the corners are 90°.
Which formula is used to calculate the diagonal?
The calculator uses the Pythagorean theorem. A rectangle’s diagonal divides it into two right triangles, with the diagonal as the hypotenuse and the rectangle’s length and width as the legs:
where is the length, is the width, and is the diagonal.
What deviation is acceptable when setting out a foundation?
Permitted deviations are governed by construction standards, such as EN 13670. For low-rise buildings and strip foundations, a difference of 5–10 mm between diagonals over a structure up to 10 m long is a useful practical target. Tolerances are tighter for critical reinforced-concrete structures and frames, around 3–5 mm. A larger difference can skew walls and make floor or roof installation difficult.
Can I use this calculator for an opening diagonal?
Yes. It works for any rectangular object, including window and door openings, masonry walls, framed partitions, floor slabs, foundation formwork, and land plots.
What should I do if a measured diagonal differs from the calculated value?
If the measured diagonals do not match each other or the theoretical value, the corners are out of square. To correct a foundation layout marked with stakes, move the corner points toward the shorter diagonal until both diagonals match each other and the calculated value, while keeping the design side lengths.