Square Calculator: Area, Perimeter, Diagonal & Side

Enter any known measurement of a square to calculate its side, area, perimeter, diagonal, inradius, and circumradius. You’ll get exact values where practical, rounded answers, and steps matched to your starting measurement.

Choose what you know, enter one positive value, and the results update immediately.

Privacy note: calculations run entirely in your browser; the values you enter are not uploaded.

Known square measurement

Accepted: decimals, 10/3, √2, 3√2, 3*√2, or 1.2e3. Value must be finite and greater than zero.

This labels measurements; it does not convert numbers. Changing it updates labels only.

Choose 0–12. Exact values are not rounded.

Try an example

Square measurements

The illustration is separate from the input controls, so labels remain readable at every screen size.

Square measurement diagram A square with side s, dashed diagonal d, center point, inradius r from the center to an edge, and circumradius R from the center to a corner. side s diagonal d r = s/2 R = d/2

Advertisement

Results

Enter one known measurement to calculate the square.

Square formulas and inverse formulas

Every result can be found by first recovering the side s. These direct forms are useful when your known measurement is not the side.

Known valueFind the sideUseful direct formulas
Side ss = sP = 4s; A = s²; d = s√2; r = s/2; R = s/√2
Area As = √Ad = √(2A)
Perimeter Ps = P/4A = P²/16; d = P√2/4
Diagonal ds = d/√2A = d²/2; R = d/2
Inradius rs = 2rA = 4r²; d = 2r√2
Circumradius Rs = R√2d = 2R; A = 2R²

The diagonal formula follows from the Pythagorean theorem: d² = s² + s² = 2s². The inradius reaches a side midpoint, while the circumradius reaches a corner; therefore 2r = s and d = 2r√2.

Worked square examples

From a side of 5 cm

  1. Perimeter: P = 4s = 4(5) = 20 cm.
  2. Area: A = s² = 5² = 25 cm².
  3. Diagonal: d = s√2 = 5√2 ≈ 7.071 cm.
  4. Radii: r = 5/2 = 2.5 cm; R = 5√2/2 ≈ 3.536 cm.

From a diagonal of 12 cm

  1. Side: s = d/√2 = 12/√2 = 6√2 ≈ 8.485 cm.
  2. Area: A = d²/2 = 12²/2 = 72 cm².
  3. Perimeter: P = 4s = 24√2 ≈ 33.941 cm.
  4. Radii: r = 3√2 ≈ 4.243 cm; R = d/2 = 6 cm.

From an area of 100 m²

  1. Side: s = √A = √100 = 10 m.
  2. Perimeter: P = 4s = 4(10) = 40 m.
  3. Diagonal: d = √(2A) = √200 = 10√2 ≈ 14.142 m.
  4. Radii: r = 5 m; R = 5√2 ≈ 7.071 m.

Square calculator FAQs

How do I find the area of a square from its diagonal?

Use A = d²/2. For a diagonal of 10 cm, A = 10²/2 = 50 cm².

How do I find the side of a square from its area?

Take the positive square root: s = √A. If A = 81 cm², then s = √81 = 9 cm.

How do I find the side of a square from its perimeter?

Divide the perimeter by four: s = P/4. A perimeter of 24 m gives s = 24/4 = 6 m.

How do I find a square's diagonal from its area or perimeter?

From area, use d = √(2A); A = 50 cm² gives d = 10 cm. From perimeter, use d = P√2/4; P = 20 cm gives d = 5√2 ≈ 7.071 cm.

What is the difference between inradius and circumradius?

The inradius r runs from the center to a side, so r = s/2. The circumradius R runs from the center to a corner, so R = d/2 = s/√2.

Why does square area use squared units?

Area multiplies one length by another: A = s × s. Thus 5 cm × 5 cm = 25 cm², not 25 cm.

Can a square have different length and width?

No. A square has four equal sides, so its length and width are equal. A four-right-angle shape with unequal length and width is a rectangle, not a square.

How does the calculator round answers?

Calculations retain full JavaScript numeric precision. Results show an exact fraction or radical when practical, plus a decimal rounded to the selected 0–12 places.

Explore more tools