Diagonal Pythagorean Calculator

Find a diagonal or check a layout for square using the Pythagorean theorem. Enter two sides; add your measured diagonal to test whether a corner is truly 90 degrees.

abc (diagonal)
Diagonal
Hypotenuse of the two sides.

Usage Tip

For big jobs use multiples of 3-4-5 (like 6-8-10) for more accuracy. Adjust one corner until the two diagonals match exactly before you fasten anything.

THE MATH
Diagonal c = √(a² + b²)
A corner is square when the measured diagonal equals c
3-4-5 rule: sides of 3 and 4 give a 5 diagonal
The Pythagorean theorem: in a right triangle the diagonal (hypotenuse) squared equals the sum of the other two sides squared.
To check a rectangle for square, its two diagonals must be equal; this gives the target length.
To square a layout, measure both diagonals of the rectangle — they are equal only when all four corners are 90°.
The 3-4-5 method scales: 6-8-10 or 9-12-15 work the same and are easier on big layouts.
Small errors compound over distance; re-check square after fastening, since nailing can shift things.
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.