Rectangle diagonal calculator online

Calculate rectangle diagonal online. Enter the required dimensions and parameters to estimate quantities and key values.

DOC_REF // CALC-RECTANGLE-DIAGONAL

Input data

Length A, cm0 cm
Width B, cm0 cm
Diagonal length D0 cm
Rectangle diagram

Results are estimates. Verify all values against applicable standards and consult a qualified professional before construction.

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:

D=A2+B2D = \sqrt{A^2 + B^2}

where:

  • DD is the calculated diagonal length in cm;
  • AA is the rectangle length (side A) in cm;
  • BB is the rectangle width (side B) in cm.

Calculation steps

  1. Enter the input dimensions: provide the adjacent side lengths AA and BB using the same unit, centimeters in this calculator.
  2. Square both sides: calculate A2A^2 and B2B^2.
  3. Add the squares: find A2+B2A^2 + B^2.
  4. Take the square root: the square root of the sum gives the theoretical diagonal length DD.

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 DD.

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 D=A2+B2D = \sqrt{A^2 + B^2} is the exact hypotenuse of an ideal right triangle with sides AA and BB. 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:

D=A2+B2D = \sqrt{A^2 + B^2}

where AA is the length, BB is the width, and DD 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.