Square Calculator

Solve a square from any single measurement — side, area, perimeter or diagonal.

What does this calculator do?

A square has one degree of freedom, so any single measurement — side, area, perimeter or diagonal — pins down all the rest. The calculator recovers the side first, then derives the other three. Use any length unit — as long as every input uses the same one, the results come out in that unit (areas in that unit squared).

Formula

Everything follows from the side; the inverses recover it:

A = s²
P = 4s
d = s√2
s = √A = P ÷ 4 = d ÷ √2
Square diagramA square with side s and a dashed diagonal d.sd
Diagram not to scale.

How to use it

Pick which value you know, enter it, and read the other three. Remember the area is in squared units, while side, perimeter and diagonal are plain lengths.

Worked example

Side 5: area = 25, perimeter = 20, diagonal = 5√2 = 7.0711. Entering diagonal 7.0711 recovers s = 5.

Formula version1.0.0
FormulaA = s² P = 4s d = s√2 s = √A = P ÷ 4 = d ÷ √2
Precision4 decimals

Frequently asked questions

Why is the diagonal s√2?

The diagonal splits the square into two right triangles with equal legs s, so d = √(s² + s²) = s√2 — a direct application of the Pythagorean theorem.

I know the area — why is the side not just area ÷ 4?

That would be the perimeter relation. From the area you need the square root: a 25 m² square has 5 m sides, and its perimeter is 20 m.

How precise is √2?

Full double precision internally (≈15–16 significant digits); only the displayed result is rounded to 4 decimals.

Sources

Related calculators

Last updated: 2026-07-31 · v1.0.0 · Report an error