Squaring Calculator – Check Square Diagonal
Use our squaring calculator below to check if a building, foundation, or anything else is square using the diagonal measurement. Enter the length and width, and get the precise diagonal measurement.
Results: Diagonal Measurement
On this page:
How to Check Square Using a Diagonal Measurement
When laying out a building, foundation, deck, concrete patio, or other rectangular structure, it is essential to verify that the corners form perfect right angles to ensure it is square. One of the simplest and most accurate ways to check for squareness is the diagonal measurement method.
The diagonal method works because a rectangle with four 90-degree corners will have two diagonals of exactly the same length. To perform the check, measure the length and width of the structure, then measure the distance from one corner to the opposite corner. Repeat for the other diagonal.
If both diagonal measurements are equal, the layout is square. If the diagonals differ, adjustments are needed until they match.
Squaring Formula
This method is based on the Pythagorean Theorem:
For a rectangle with length L and width W, you can calculate the expected diagonal D using this formula:
D = √(L² + W²)
Thus, the diagonal D is equal to the square root of the length L squared plus the width W squared. You can confirm this using a standard trigonometry formula to check a triangle’s hypotenuse.
For example, let’s get the expected diagonal measurement to check if a foundation that measures 30 feet by 40 feet is square:
D = √(30² + 40²) = √2,500 = 50 ft
So, both diagonals should measure exactly 50 feet if the foundation is square.
The 3-4-5 Rule
A common method to verify square is the 3-4-5 rule. To use this method, measure 3 feet along one side of a corner and 4 feet along the adjacent side. The diagonal distance between those two marks should be exactly 5 feet.
If it is, the corner forms a perfect 90-degree angle. For larger layouts, you can use multiples of these measurements, such as 6-8-10, 9-12-15, or 12-16-20, which provide greater accuracy over longer distances.
By comparing diagonal measurements before construction begins, you can quickly identify layout errors and ensure walls, corners, and structural elements are properly aligned.