Square Calculator: Area, Perimeter, Diagonal

Find a square's area, perimeter, and diagonal from any one known measure — side, diagonal, perimeter, or area — with exact step-by-step results.

Loading calculator…

The four square formulas

A square has four equal sides and four right angles. Given the side length aa, every other measure follows directly:

A=a2P=4aq=a2A = a^2 \qquad P = 4a \qquad q = a\sqrt{2}

The diagonal formula comes straight from the Pythagorean theorem: the diagonal is the hypotenuse of a right triangle whose two legs are both sides of length aa, so q=a2+a2=2a2=a2q = \sqrt{a^2 + a^2} = \sqrt{2a^2} = a\sqrt{2}.

Tip: The diagonal is never simply "twice the side." a21.4142×aa\sqrt{2} \approx 1.4142 \times a — noticeably less than 2a2a.

Solving in the other direction

This calculator also works backward: give it any one of the four measures and it solves for the side first, then derives the rest.

KnownSolve for sideThen
Side aa— (already known)A=a2A = a^2, P=4aP = 4a, q=a2q = a\sqrt{2}
Diagonal qqa=q/2a = q/\sqrt{2}A=a2A = a^2, P=4aP = 4a
Perimeter PPa=P/4a = P/4A=a2A = a^2, q=a2q = a\sqrt{2}
Area AAa=Aa = \sqrt{A}P=4aP = 4a, q=a2q = a\sqrt{2}

Worked example: side a = 5

A=52=25P=4×5=20q=527.0711A = 5^2 = 25 \qquad P = 4 \times 5 = 20 \qquad q = 5\sqrt{2} \approx 7.0711

Worked example: area A = 36

Since 36 is a perfect square, the side comes out whole: a=36=6a = \sqrt{36} = 6. Then P=24P = 24 and q=628.4853q = 6\sqrt{2} \approx 8.4853.

Worked example: diagonal q ≈ 7.0711

Dividing by 2\sqrt{2} gives a=7.0711/25.00002a = 7.0711/\sqrt{2} \approx 5.00002 — extremely close to 5, but not exactly it, because the diagonal was only entered to four decimal places. The area comes out as A25.0002A \approx 25.0002, not a clean 25 — a reminder that reversing an irrational relationship rarely lands on an exact whole number unless the input carries enough precision.

Tip: The most common mistake is mixing up A = a² with P = 4a — remember area grows with the SQUARE of the side, while perimeter grows linearly.

Common mistakes

  • Writing A=4aA = 4a. That's the perimeter formula. Area is a2a^2, not 4a4a.
  • Forgetting the 2\sqrt{2} in the diagonal. The diagonal is longer than the side but shorter than twice the side.
  • Mixing units. Side, perimeter, and diagonal share one unit; area is that unit squared.

Where this shows up

  • Flooring and tiling: a square tile's area determines how many are needed to cover a floor.
  • Construction: the diagonal is used to verify a corner is truly square — if the measured diagonal matches a2a\sqrt{2}, the corner is a true right angle.
  • Design and layout: square grids and panels are defined by a single side length, making every other measure a quick derived fact.

A square is the most symmetric quadrilateral — a special case of both the rectangle (equal sides) and the rhombus (right angles), which is why just one measure is enough to determine all the others.

Frequently asked questions

What are the formulas for a square?
With side aa: area A=a2A = a^2, perimeter P=4aP = 4a, and diagonal q=a2q = a\sqrt{2}. Every other measure of a square can be derived from just one of these four.
Why is the diagonal a√2 and not just 2a?
The diagonal is the hypotenuse of a right triangle formed by two adjacent sides, both length a. By the Pythagorean theorem, q = √(a² + a²) = √(2a²) = a√2 — not simply double the side.
How do I find the side if I only know the area?
Invert the area formula: a=Aa = \sqrt{A}. For example, an area of 36 gives a side of 36=6\sqrt{36} = 6, since a square's area is always a perfect square of its side.
How do I find the side if I only know the perimeter?
Divide by 4: a=P/4a = P/4, since all four sides are equal. A perimeter of 20 gives a side of 20/4=520/4 = 5.
How do I find the side if I only know the diagonal?
Divide by √2: a=q/2a = q/\sqrt{2}. Unlike the area and perimeter cases, this almost never lands back on a clean whole number, since √2 is irrational — the side comes out as a decimal approximation even when the diagonal itself looks like a tidy number.
What is the most common mistake with square formulas?
Confusing area and perimeter — writing A = 4a instead of P = 4a, or forgetting the square in A = a². The other common slip is dropping the √2 in the diagonal formula and just doubling the side instead.
Do area, perimeter, and side have different units?
Yes. Side and diagonal share the same linear unit (e.g. cm), perimeter is also linear (it's a sum of sides), but area is that unit squared (e.g. cm²) — a square with side 5 cm has a perimeter of 20 cm but an area of 25 cm², not 25 cm.
How is the square related to the rectangle and rhombus?
A square is the special case of a rectangle where all sides are equal, and equally the special case of a rhombus where all angles are right angles — it inherits formulas from both, simplified because a single side length now determines everything.

Related calculators