The formula for a rectangle
For a rectangle with length L and width W, the diagonal d is the square root of (L² + W²). For example, a rectangle 3 feet long and 4 feet wide has a diagonal of √(9 + 16) = √25 = 5 feet.
Squares
A square is a rectangle with equal sides. If each side is s, the diagonal is s times the square root of 2. For a square with 2 foot sides, that is about 2.83 feet.
Steps
- Measure the two sides that meet at a right angle. These are the length and the width.
- Square each measurement.
- Add the two squares.
- Take the square root of the sum. That is the diagonal.
- Check the result. It must be longer than either side and shorter than the two sides added together.
A map example
Suppose you walk 300 meters east and then 400 meters north, following grid lines on a map. Your route on the ground is 700 meters, but the straight-line distance from start to finish is √(300² + 400²) = √(90,000 + 160,000) = √250,000 = 500 meters.
Use the map scale to measure the east and north distances, or use a pace count on the ground. A pace count is an estimate, so the straight-line result is only as good as the count.
Shapes that are not rectangles
The formula works for any shape where the two measured sides meet at a right angle, such as a rectangle or a square. A general four-sided shape needs more information, such as an angle or a second measurement, before you can find its diagonal from the sides. If you cannot get that information, measure the diagonal directly.
Direction as well as length
Length tells you how far. To find the direction as well, you also need the angle from north, which you can get from how to do bearings on a map. For a plan that uses both, read the distance and the bearing from the map, then check the route on the ground.