Square Diagonal - Diagonal of a Square From Side or Area

Use this square diagonal calculator to read d = s sqrt(2) in cm, m, in, or ft from a side or area, with perimeter, area, and decimal precision in a panel.

Updated: June 16, 2026 • Free Tool

Square Diagonal

Length of one side of the square, in the unit selected below. Negative values are rejected.

Enter the square area in the matching square unit to recover the side and the diagonal. Leave at 0 to use the side as the source of truth.

Display unit for the side, perimeter, and diagonal. The area uses the matching square unit (cm², m², in², ft²).

Display precision for the side, perimeter, diagonal, and area rows.

Results

Diagonal (d = s sqrt(2))
0
Side Length (s) 0
Perimeter (P = 4s) 0
Area (A = s squared) 0

What Is a Square Diagonal?

A square diagonal is the line segment that joins two opposite corners of a square. In a square with side length s the diagonal has length d = s * sqrt(2), and the same relationship can be written as d = sqrt(2 * area) when the area is the input. The square diagonal calculator below turns a side or area into the diagonal, the perimeter, and the matching area in cm, m, in, or ft.

  • Geometry homework and exam problems: Find d = s * sqrt(2) for a given side, or solve for the side from a stated diagonal, with the perimeter and area as cross-checks.
  • Woodworking, tile, and screen-size work: Measure or specify a square tabletop, picture frame, TV, or monitor and read the diagonal in the same unit you used for the side.
  • Survey and plan reading: Convert a side measurement from a plan, deed, or sketch into the diagonal length for a true square corner, a bracing member, or a cross-measurement for accuracy.

The diagonal of a square is the longest straight line you can draw inside the shape, which makes it the natural cross-check for a square corner: a diagonal that matches the formula confirms the sides are equal and the corners are right.

When the workflow only needs the side squared or a perfect-square check, Square Calculator handles the same source number without the diagonal step.

How the Square Diagonal Calculator Works

The calculator multiplies the side length by the square root of two to get the diagonal, multiplies the side by four for the perimeter, and squares the side for the area. When an area is entered and the side is left at zero, the side is recovered as the square root of the area first.

diagonal = side * sqrt(2) = sqrt(2 * area)
  • side (s): Length of one side of the square, entered directly or recovered as sqrt(area) when the area is the source.
  • sqrt(2): The positive real number whose square is 2, approximately 1.4142135623730951, the constant that connects a square side to its diagonal.
  • diagonal (d): Length of the line from one corner of the square to the opposite corner, equal to s * sqrt(2) or sqrt(2 * area).
  • area (A): Optional secondary input, used to recover the side when the side field is left at zero.

According to Wolfram MathWorld, the principal square root of 2 is the positive real number whose square is 2, approximately 1.4142135623730951, and it is the constant that connects a square side to its diagonal in the formula d = s * sqrt(2). The same constant is what the right-triangle view uses: d is the hypotenuse of a right triangle with two sides equal to s, so the Pythagorean theorem gives d squared = 2s squared, which collapses to d = s * sqrt(2).

5 cm square

Side = 5, area = 0, decimals = 4

diagonal = 5 * sqrt(2) = 7.0711

Side = 5, perimeter = 20, diagonal = 7.0711, area = 25

A 5 cm square has a diagonal of about 7.07 cm, exactly s * sqrt(2).

100 square unit area

Side = 0, area = 100, decimals = 4

side = sqrt(100) = 10, diagonal = 10 * sqrt(2) = 14.1421

Side = 10, perimeter = 40, diagonal = 14.1421, area = 100

A 100 unit area square recovers a 10 unit side and a 14.14 unit diagonal, which is the cross-measurement to confirm the corner is square.

According to Wolfram MathWorld - Square Root, the principal square root of 2 is the positive real number whose square is 2, approximately 1.4142135623730951, and it is the constant that connects a square side to its diagonal in the formula d = s * sqrt(2).

When the diagonal needs to be broken into its two right-triangle legs, Right Triangle Calculator solves the same legs-and-hypotenuse problem with arbitrary side lengths.

Key Concepts Behind the Diagonal of a Square

Four concept cards cover the geometry that the square diagonal formula relies on: the shape of a square, the role of sqrt(2), the right-triangle view of the diagonal, and the difference between the diagonal of a square and the diagonal of a rectangle.

Square as a regular quadrilateral

A square is a regular quadrilateral with four equal sides and four right angles, so the diagonal that joins two opposite corners is the longest line you can draw inside the shape.

sqrt(2) as a constant

The square root of 2, written sqrt(2) and approximately 1.4142135623730951, is the unique positive real number whose square is 2. In a square the diagonal is s * sqrt(2) because d squared = 2s squared.

Pythagorean theorem view

The diagonal of a square is the hypotenuse of the right triangle formed by two adjacent sides. The Pythagorean theorem gives d squared = s squared + s squared, so d = s * sqrt(2), the same relationship in any square inscribed in a circle.

Diagonal of a square vs diagonal of a rectangle

A rectangle diagonal uses d = sqrt(length squared + width squared), so the diagonal of a square is the special case where length equals width, which collapses to d = s * sqrt(2).

The diagonal of a square is longer than the side by exactly the factor sqrt(2), which is why a square cut along its diagonal gives two right isosceles triangles with 45-45-90 angles and a 1:1:sqrt(2) side ratio, and the same ratio is what makes the diagonal the natural cross-check for a square corner.

When the diagonal step needs to be justified in terms of integer sides, Pythagorean Triples Calculator lists the exact triples that keep d, s, s whole and includes the 1, 1, sqrt(2) family.

How to Use the Square Diagonal Calculator

The workflow is one source value, one display unit, and one decimal precision. The result panel updates as you type.

  1. 1 Enter the side length: Type the length of one side of the square into the Side Length field. Use the same unit you will use for the diagonal.
  2. 2 Add the area if that is the source value: If the side is not known but the area is, leave the side at 0 and type the area into the Optional Area field. The calculator takes the square root of the area to recover the side.
  3. 3 Pick the unit: Choose cm, m, in, or ft. The side, perimeter, and diagonal render in the chosen unit; the area uses the matching square unit.
  4. 4 Set the decimal precision: Choose 0 to 10 decimal places. Use 0 or 2 for rough planning, 4 for homework, and 6 or more for engineering and CNC layout.
  5. 5 Read the result panel: The diagonal is the primary result; the side, perimeter, and area appear with it. A mismatch means the area was inconsistent with the side.

A 12 in square frame needs the diagonal to confirm it is square before a glass insert. Enter side = 12, unit = in, decimals = 2, and the panel reads diagonal = 16.97 in, perimeter = 48 in, area = 144.

When the workflow needs the same side to feed an area or perimeter check, Square Area Calculator handles that conversion alongside the diagonal in the same panel.

Benefits of Using the Square Diagonal Calculator

The calculator gives one consistent reading of the same square across side, area, perimeter, and diagonal. Each benefit below names a real workflow.

  • One panel for side, area, perimeter, and diagonal: The four values are computed from the same side, so a copy-paste keeps the numbers tied to one entry rather than mixing rounded values from separate calculations.
  • Side or area as the source of truth: If the side is known, type it; if the area is known, type that. The calculator recovers the side from sqrt(area) and the diagonal follows.
  • Unit selection that stays consistent: Choosing cm, m, in, or ft once keeps the side, perimeter, and diagonal in the same unit and the area in the matching square unit, so a mixed-unit read is impossible.
  • Cross-check for square corners: A measured diagonal that matches s * sqrt(2) confirms the four sides are equal and the corners are right, the standard way to verify a square frame, table, or wall opening.
  • Decimal precision that matches the task: Zero decimals for rough planning, two for framing, four for homework, and six or more for CNC and engineering layouts.

The same panel works for a geometry student who needs d = s * sqrt(2) and a builder who needs the same diagonal in inches.

When the same workflow is asked for a rectangle instead of a square, Length of a Rectangle covers the related length, width, and diagonal calculation for arbitrary sides.

Factors That Affect the Result

The diagonal formula is fixed, but the result depends on the source value, the unit chosen, and the precision of the input. The factor cards cover the most common sources of variation, and the limitations describe where the result needs careful interpretation.

Source precision

A side such as 5 cm may be rounded from a more detailed measurement. The diagonal should not be more precise than the source side.

Unit choice

Choosing cm, m, in, or ft changes the displayed number only. A 12 in side is the same square as a 30.48 cm side, and the diagonal changes by the same factor.

Side versus area input

When both fields are filled, the side wins. The area row then shows the recovered area from s squared so the user can spot a mismatch.

Display precision

The decimals setting only changes the rendered text. The internal calculation keeps the full double-precision value of side, perimeter, and diagonal.

  • The calculator does not measure a physical square, confirm that a shape is square, or correct a mismeasured side. It treats the result as a translation of the source value, not a measurement of the real object.
  • The diagonal of a square is the special case of the rectangle diagonal where the two sides are equal. The tool always uses the square formula, so a rectangle with unequal sides should use a rectangle diagonal or Pythagorean tool instead.

The constant sqrt(2) is irrational, so the diagonal of a square whose side is rational is itself irrational except in special cases such as 0, 1, or the integer multiples of 1/sqrt(2). For most work the rounded display at four or six decimals is enough.

According to Wolfram MathWorld - Square, a square is a regular quadrilateral whose four sides are equal, whose interior angles are right angles, and whose diagonal is s * sqrt(2) for side length s.

When the workflow starts from the area of a square shape and the side is not yet known, Area Calculator can supply the area-to-side step before this calculator runs the diagonal.

square diagonal calculator diagram showing a square with side s and diagonal d equal to s times the square root of two
square diagonal calculator diagram showing a square with side s and diagonal d equal to s times the square root of two

Frequently Asked Questions

Q: What is the diagonal of a square?

A: The diagonal of a square is the straight line that joins two opposite corners of the square. For a square with side length s the diagonal has length d = s * sqrt(2), or equivalently d = sqrt(2 * area) when the area is the source value.

Q: How do I calculate the diagonal of a square from a side?

A: Multiply the side length by the square root of two, which is approximately 1.4142135623730951. A 5 cm side gives a diagonal of 5 * 1.4142135623730951 = 7.0711 cm, and the calculator reports the same value at the chosen decimal precision.

Q: What is the formula for the diagonal of a square?

A: The formula is d = s * sqrt(2) for a side s, and d = sqrt(2 * A) for an area A. Both forms give the same diagonal, and the two-line derivation uses the Pythagorean theorem on the two perpendicular sides of the square.

Q: How do I find the diagonal of a square from its area?

A: Take the square root of the area to recover the side, then multiply by sqrt(2). For a 100 square unit area the side is 10 and the diagonal is 10 * sqrt(2) = 14.1421, which the calculator does in a single step.

Q: Is the diagonal of a square the same as the hypotenuse of two right triangles?

A: Yes. The diagonal is the hypotenuse of the right triangle whose legs are two adjacent sides of the square. The Pythagorean theorem gives d squared = s squared + s squared, so d = s * sqrt(2), which is the same constant used for 45-45-90 right isosceles triangles.

Q: What unit should I use for the diagonal of a square?

A: Use the same unit family as the source side. A side in centimeters pairs with a diagonal in centimeters, a side in feet pairs with a diagonal in feet, and the area uses the matching square unit (cm squared, m squared, in squared, ft squared).