Square Diagonal Calculator
Find a square's diagonal from its side, or work backward from a known diagonal to the side length, with consistent unit conversion and an exportable calculation record.
Inputs
Choose which measurement you know, then enter one positive length.
Live result
Calculation details
| Quantity | Relationship | Current value |
|---|---|---|
| Side length | s | 11 in |
| Diagonal length | d = s × √2 | 15.556349 in |
How to use the square diagonal calculator
What this calculator does
This calculator solves the fixed geometric relationship between a square's side and either of its two equal diagonals. It can calculate the diagonal when the side is known, or rearrange the same identity to calculate the side from a known diagonal. The result is an exact geometric consequence of the supplied length, not a measurement of whether a real object is perfectly square. Construction tolerances, rounded corners, material thickness, and measurement uncertainty remain outside the model.
When to use it
Use it to size a diagonal brace across a square frame, check the corner-to-corner clearance of a square panel or opening, convert a drawing's diagonal specification into a side dimension, or verify a classroom exercise involving a 45-45-90 triangle. A square's diagonal forms the hypotenuse of a right triangle whose two legs are the square's equal sides, so the calculation follows the Pythagorean theorem as explained by OpenStax.
How to calculate
- The calculator opens with a complete demonstration: Side length is selected, Known length is 11, and Length unit is inches. The first result and its Excel workbook are immediately available.
- Under Solve from, choose Side length when you know one edge of the square, or Diagonal length when you know the corner-to-corner distance. Switching modes preserves the same square by converting the current known measurement.
- Replace Known length with a positive decimal. You may use ordinary digits, a decimal point, and correctly placed U.S. thousands separators. Values such as 12, 12.5, and 1,250.5 are valid. A decimal comma such as 1,5 and scientific notation such as 1e3 are rejected to prevent ambiguous interpretation.
- Select a Length unit. The available units are millimeters, centimeters, meters, kilometers, inches, feet, and yards. When you change units, the input and outputs are converted using the same physical length. NIST's unit-conversion guidance explains why conversion requires a numerical factor and appropriate rounding.
- Read the highlighted Calculated measurement, then confirm both Side length and Diagonal length in the result cards and the calculation table. Select Download Excel to create a current-state workbook with the inputs, outputs, formulas, units, and notes.
- Select Reset to clear the demonstration and all calculated content. Reset does not restore 11 inches. It leaves a neutral side/inches setup with an empty required length, so Download Excel is disabled until a complete valid length is entered again.
Input guide
Solve from is a required two-option control. Choose Side length for a known edge, or Diagonal length for a known corner-to-corner measurement. The selection changes which quantity is treated as the input and which is highlighted as the answer. A common mistake is to enter a diagonal while Side length remains selected; that would multiply the number by √2 instead of dividing by √2.
Known length is required and must be a finite number greater than zero and no larger than 10150. It uses the currently selected length unit. For example, 11 with inches selected means 11 in. Increasing the known side increases the diagonal in direct proportion. Increasing a known diagonal increases the recovered side in direct proportion. Zero and negative lengths are outside ordinary Euclidean length geometry and are rejected.
Length unit is required and controls the input, result labels, table, and workbook. The conversion is physical: 1 inch is exactly 2.54 centimeters, and the internal model first converts the known length to meters before calculating. NIST publishes the official conversion-factor background for SI and U.S. customary units. Do not manually convert the number and then also change the unit, because that would convert it twice.
Output guide
Calculated measurement is the unknown quantity implied by the selected mode. It is a length in the active unit and is an exact identity apart from decimal display rounding. Side length reports one of the four equal edges. Diagonal length reports either corner-to-corner segment; both diagonals of a square have the same length. Formula used shows the active substitution: d = s × √2 when solving from a side, or s = d ÷ √2 when solving from a diagonal. The Calculation details table repeats the two canonical measurements and their relationship so the result can be audited or copied. A very small positive result represents a very small square; a large result represents a proportionally larger square. Valid outputs cannot be negative.
Worked example
The startup example uses a side of 11 in. A diagonal divides the square into a right triangle with legs 11 in and 11 in. By the Pythagorean theorem, d² = 11² + 11² = 242, so d = √242 = 11√2. Numerically, 11 × 1.41421356237... = 15.5563491861... in, displayed as 15.556349 in. If you switch Solve from to Diagonal length, the known value becomes 15.556349 in and the inverse formula returns a side of 11 in, subject only to display precision.
Why the formula works
d = s√2 and s = d/√2A diagonal connects opposite vertices and splits the square into two congruent isosceles right triangles. For either triangle, the legs are s and s and the hypotenuse is d. Substituting into a² + b² = c² gives s² + s² = d², or 2s² = d². Because a length is nonnegative, taking the principal square root gives d = s√2. Rearranging gives s = d/√2.
Precision and practical measurement
√2 is irrational, so most decimal diagonal values continue indefinitely. The calculator retains JavaScript's finite numerical precision and displays up to six decimal places. In physical work, do not report more precision than the original measurement supports. A side measured only to the nearest millimeter does not justify a diagonal specified to a millionth of a millimeter. The workbook stores typed numeric values rather than the rounded screen strings, allowing spreadsheet formatting to be adjusted without changing the underlying model.
Common mistakes
- Using 2s instead of s√2. Twice the side is longer than the diagonal and is not the Pythagorean result.
- Dividing by 2 when solving backward. The correct inverse is d/√2.
- Mixing units between the known measurement and the intended output. Use the Length unit selector so one consistent unit drives the entire calculation.
- Treating a diagonal check as proof that a four-sided object is a perfect square. Equal diagonals help with layout, but equal sides and right angles must also be verified in real construction.