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.
The four square formulas
A square has four equal sides and four right angles. Given the side length , every other measure follows directly:
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 , so .
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.
| Known | Solve for side | Then |
|---|---|---|
| Side | — (already known) | , , |
| Diagonal | , | |
| Perimeter | , | |
| Area | , |
Worked example: side a = 5
Worked example: area A = 36
Since 36 is a perfect square, the side comes out whole: . Then and .
Worked example: diagonal q ≈ 7.0711
Dividing by gives — extremely close to 5, but not exactly it, because the diagonal was only entered to four decimal places. The area comes out as , not a clean 25 — a reminder that reversing an irrational relationship rarely lands on an exact whole number unless the input carries enough precision.
Common mistakes
- Writing . That's the perimeter formula. Area is , not .
- Forgetting the 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 , 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 : area , perimeter , and diagonal . 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: . For example, an area of 36 gives a side of , 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: , since all four sides are equal. A perimeter of 20 gives a side of .
- How do I find the side if I only know the diagonal?
- Divide by √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.