Diagonal of a Square Calculator

Calculate diagonal of a square — enter your values and get an accurate result with the underlying formula.

Quick Facts

Diagonal formula
d = s × √2 ≈ 1.4142s
Follows from the Pythagorean theorem across two adjacent sides.
Side from diagonal
s = d / √2 ≈ 0.7071d
Invert the diagonal formula to recover the side length.
Area from diagonal
A = d² / 2
Equivalent to A = s², derived from the two right triangles the diagonal forms.

Your Results

Calculated
Diagonal Length
-
d = s × √2
Side Length
-
s = d / √2
Area
-
A = s² = d² / 2
Perimeter
-
P = 4 × side

Ready

Choose whether you know the side or the diagonal, enter its value and unit, then press Calculate.

Formula and Method for the Diagonal of a Square

A square's diagonal is the line segment connecting two opposite corners. It splits the square into two congruent right triangles, each with legs equal to the side length s and a hypotenuse equal to the diagonal d. By the Pythagorean theorem, d² = s² + s² = 2s², so d = s√2, where √2 ≈ 1.4142. This calculator works in both directions: enter a side length to get the diagonal, or enter a known diagonal to recover the side length, area, and perimeter.

How the calculation works

If you know the side length, multiply it by √2 to get the diagonal: d = s√2. If you know the diagonal instead, divide it by √2 (equivalently, multiply by √2/2 ≈ 0.7071) to recover the side length: s = d/√2. Once the side length is known, the calculator squares it to get the area (A = s², which is also equal to d²/2) and multiplies it by 4 to get the perimeter (P = 4s).

Common mistakes

  • Treating the diagonal as a side: the diagonal is always longer than the side — about 41% longer — so using it directly as s in A = s² overstates the area.
  • Forgetting to divide by √2: when working backward from a diagonal, dividing by 2 instead of √2 gives a side length that's too small.
  • Mixing units: keep the side or diagonal length in one consistent unit throughout — convert inches to feet, or centimeters to meters, before entering the value.

Real-world applications

  • Carpentry and framing use the diagonal to "square up" a rectangle or panel — equal diagonals confirm all four corners are true 90° angles.
  • Tile and paver layout uses the diagonal to plan diamond (45°) patterns, where the diagonal becomes the effective spacing dimension.
  • Screen and panel sizing sometimes specifies a diagonal measurement, from which the true side length and area can be derived.
  • Structural bracing calculations use the diagonal length to size a brace that spans a square or rectangular frame.

Frequently Asked Questions

What is the formula for the diagonal of a square?
The diagonal of a square equals its side length times the square root of 2: d = s√2 ≈ 1.4142 × s. This comes from the Pythagorean theorem applied to the right triangle formed by two adjacent sides, so d = √(s² + s²) = s√2.
How do I find the side length from a known diagonal?
Divide the diagonal by the square root of 2: s = d/√2, which is the same as s = d√2/2 ≈ 0.7071 × d.
How do I find the area of a square from its diagonal?
Use A = d²/2. Since the diagonal splits the square into two equal right triangles, squaring the diagonal and dividing by 2 gives the same area as squaring the side length.
Why is the diagonal always longer than the side?
The diagonal is the hypotenuse of a right triangle whose two legs are the square's sides, and a hypotenuse is always longer than either leg. Since √2 ≈ 1.4142, the diagonal is about 41% longer than the side.