Square Calculator

Square Calculator

Popular AI Skill PRO

Enter Calculation

Formula

a=Perimeter P4q=a2,A=a2\begin{gathered} a = \dfrac{{{\text{Perimeter } P}}}{4} \\[1.5em] q = a\sqrt{2}, \quad A = a^{2} \end{gathered}
Usage stats

Advertisement

Results

Side length a
5
Side length a 5
Diagonal q 7.07107
Perimeter P 20
Area A 25

Report an error on this page

What this square calculator does

A square is a quadrilateral with four equal sides and four right angles. Because every measurement of a square is tied to a single value, the side length, you only need one known property to determine all the others. This tool lets you enter any one of the side length, diagonal, perimeter, or area and instantly returns the complete set: side, diagonal, perimeter, and area.

Square with side, diagonal, perimeter and area labeled
A square showing its side, diagonal, perimeter, and area.

How to use it

Choose which property you already know from the "Known property" dropdown, type its value, then pick a display unit and how many significant figures you want. The calculator first recovers the side length and then derives the remaining three quantities. Units are cosmetic labels only, no unit conversion is applied, so the numbers are independent of which unit you select. Linear results (side, diagonal, perimeter) show the unit; area shows the unit squared.

The formulas explained

The defining relationships for a square with side \(a\) are: diagonal \(q = a\sqrt{2}\) (from the Pythagorean theorem on two equal legs), perimeter \(P = 4a\) (four equal sides), and area \(A = a^2\).

$$q = a\sqrt{2}, \quad P = 4a, \quad A = a^2$$

To work backward, the side is recovered with \(a = q/\sqrt{2}\) when the diagonal is known, \(a = P/4\) from the perimeter, and \(a = \sqrt{A}\) from the area.

$$a = \frac{q}{\sqrt{2}} = \frac{P}{4} = \sqrt{A}$$

Once \(a\) is known, the other three follow directly from the core relations.

Advertisement
Square split into two right triangles by its diagonal
The diagonal splits the square into two right triangles, giving \(d = a\sqrt{2}\).

Worked example

Suppose the diagonal \(q = 10\). First find the side:

$$a = \frac{10}{\sqrt{2}} = 7.07107$$

Then perimeter and area:

$$P = 4 \times 7.07107 = 28.2843$$

$$A = 7.07107^2 = 50$$

So a square with a diagonal of 10 has a side of about 7.07107, a perimeter of about 28.2843, and an area of exactly 50.

More Worked Examples

These two examples start from a different known quantity and use the inverse formulas: \(a = \sqrt{A}\), \(a = P/4\), and \(a = d/\sqrt{2}\).

Example 1: Known area A = 64

  1. Side from area: \(a = \sqrt{A} = \sqrt{64} = 8\).
  2. Perimeter: \(P = 4a = 4 \times 8 = \)32.
  3. Diagonal: \(q = a\sqrt{2} = 8\sqrt{2} \approx 8 \times 1.41421356 = 11.3137\).

Example 2: Known perimeter P = 20

  1. Side from perimeter: \(a = P/4 = 20/4 = 5\).
  2. Area: \(A = a^{2} = 5^{2} = \)25.
  3. Diagonal: \(q = a\sqrt{2} = 5\sqrt{2} \approx 5 \times 1.41421356 = 7.0711\).

Check: in both cases \(q^{2} = 2A\). For Example 1, \(11.3137^{2} \approx 128 = 2 \times 64\). For Example 2, \(7.0711^{2} \approx 50 = 2 \times 25\).

Square Measurements Compared Across Sizes

Side a Diagonal (a√2) Perimeter (4a) Area (a²)
1 1.4142 4 1
2 2.8284 8 4
5 7.0711 20 25
10 14.1421 40 100
20 28.2843 80 400

Doubling the side doubles the diagonal and the perimeter, because both are proportional to \(a\). The area is proportional to \(a^{2}\), so it quadruples. Compare side 5 with side 10: the diagonal goes from 7.0711 to 14.1421 and the perimeter from 20 to 40, but the area goes from 25 to 100. Diagonal and perimeter are in the same length unit as the side, and area is in square units.

Advertisement

Key Constants and Ratios for a Square

Relationship Value / Formula
Square root of 2 \(\sqrt{2} \approx 1.41421356\) (diagonal = side × √2)
Reciprocal \(1/\sqrt{2} \approx 0.70710678\) (side ≈ 0.7071 × diagonal)
Perimeter \(P = 4a\), so \(a = P/4\)
Area \(A = a^{2}\), so \(a = \sqrt{A}\)
Diagonal squared \(q^{2} = 2A\)
Area from diagonal \(A = q^{2}/2\)
Area from perimeter \(A = P^{2}/16\)

The diagonal relation comes from the Pythagorean theorem: \(q^{2} = a^{2} + a^{2} = 2a^{2}\). Substituting \(a = P/4\) into \(A = a^{2}\) gives \(A = P^{2}/16\).

FAQ

Why is the diagonal always longer than the side? Because the diagonal spans corner to corner across two perpendicular sides, it equals the side multiplied by \(\sqrt{2} \approx 1.41421\), so it is always about 41% longer than a side.

Does the unit setting change the math? No. The unit is only a printed label; no conversion is performed. Enter the value in whatever unit you like and read the answers in that same unit.

What does "auto" significant figures mean? It shows the full computed value without rounding, which is handy when you need maximum precision.

Last updated:

Most popular in Geometry

View all Geometry calculators