From a side of 5 cm
- Perimeter: P = 4s = 4(5) = 20 cm.
- Area: A = s² = 5² = 25 cm².
- Diagonal: d = s√2 = 5√2 ≈ 7.071 cm.
- Radii: r = 5/2 = 2.5 cm; R = 5√2/2 ≈ 3.536 cm.
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.
The illustration is separate from the input controls, so labels remain readable at every screen size.
Enter one known measurement to calculate the square.
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 value | Find the side | Useful direct formulas |
|---|---|---|
| Side s | s = s | P = 4s; A = s²; d = s√2; r = s/2; R = s/√2 |
| Area A | s = √A | d = √(2A) |
| Perimeter P | s = P/4 | A = P²/16; d = P√2/4 |
| Diagonal d | s = d/√2 | A = d²/2; R = d/2 |
| Inradius r | s = 2r | A = 4r²; d = 2r√2 |
| Circumradius R | s = R√2 | d = 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.
Use A = d²/2. For a diagonal of 10 cm, A = 10²/2 = 50 cm².
Take the positive square root: s = √A. If A = 81 cm², then s = √81 = 9 cm.
Divide the perimeter by four: s = P/4. A perimeter of 24 m gives s = 24/4 = 6 m.
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.
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.
Area multiplies one length by another: A = s × s. Thus 5 cm × 5 cm = 25 cm², not 25 cm.
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.
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.