Square Calculator
Find area, perimeter and diagonal instantly. Enter any known value — side, area, perimeter or diagonal — and get all results with a live diagram.
What Is a Square Calculator?
A square calculator finds every geometric property of a square — area, perimeter, diagonal, inscribed circle radius, and circumscribed circle radius — from a single known measurement. Because all four sides of a square are equal, knowing any one value (side length, total area, perimeter, or diagonal) is enough to calculate everything else.
This calculator accepts four different starting points. Enter a side length and get area, perimeter, and diagonal. Enter the area and it works backward to find the side, then computes everything else. The same logic applies from perimeter or diagonal. A labeled SVG diagram updates with each calculation to show all key measurements visually.
How to Use This Calculator
- Choose your input: "From Side", "From Area", "From Perimeter", or "From Diagonal" — the label and placeholder update to match
- Enter the value you know — a positive number in any consistent unit
- Select a unit (cm, m, ft, in, etc.) — area output shows the squared unit automatically
- Choose decimal places (2, 4, or 6) for result precision
- Click "Calculate Square" — all properties appear with a labeled diagram
Square Formulas Explained
Three core formulas cover every square property. The diagonal formula comes directly from the Pythagorean theorem applied to the two equal legs of the right triangle formed by cutting the square in half:
Square Reference Table
Every row is independently calculated — no approximation or interpolation. All diagonal values use √2 = 1.41421356…:
| Side | Area (s²) | Perimeter (4s) | Diagonal (s√2) |
|---|---|---|---|
| 1 | 1.0000 | 4.0000 | 1.4142 |
| 2 | 4.0000 | 8.0000 | 2.8284 |
| 3 | 9.0000 | 12.0000 | 4.2426 |
| 4 | 16.0000 | 16.0000 | 5.6569 |
| 5 | 25.0000 | 20.0000 | 7.0711 |
| 6 | 36.0000 | 24.0000 | 8.4853 |
| 7 | 49.0000 | 28.0000 | 9.8995 |
| 8 | 64.0000 | 32.0000 | 11.3137 |
| 9 | 81.0000 | 36.0000 | 12.7279 |
| 10 | 100.0000 | 40.0000 | 14.1421 |
| 12 | 144.0000 | 48.0000 | 16.9706 |
| 15 | 225.0000 | 60.0000 | 21.2132 |
| 20 | 400.0000 | 80.0000 | 28.2843 |
| 25 | 625.0000 | 100.0000 | 35.3553 |
Notice side = 4: area (16) equals perimeter (16). This is the only positive integer side length where that happens — at side = 4, s² = 4s, which simplifies to s = 4. For any side below 4, perimeter exceeds area numerically; above 4, area exceeds perimeter. The crossover point is always s = 4, regardless of units.
The Diagonal and √2
The diagonal of a square is always exactly √2 times the side length — no exceptions. √2 ≈ 1.41421356, meaning the diagonal is always 41.4214% longer than the side. This comes directly from the Pythagorean theorem: a square's diagonal splits it into two right triangles where both legs equal s, so the hypotenuse = √(s² + s²) = s√2.
| Side (s) | Diagonal (s√2) | Diagonal ÷ Side | Verification (√(s²+s²)) |
|---|---|---|---|
| 5 | 7.0711 | 1.4142 | √50 = 7.0711 ✓ |
| 8 | 11.3137 | 1.4142 | √128 = 11.3137 ✓ |
| 10 | 14.1421 | 1.4142 | √200 = 14.1421 ✓ |
| 12 | 16.9706 | 1.4142 | √288 = 16.9706 ✓ |
√2 is an irrational number — its decimal representation never ends or repeats. The ancient Greeks discovered this while studying square diagonals, proving it cannot be expressed as a simple fraction. For practical use, 1.4142 (4 decimal places) gives accuracy within 0.002%. Reference: Khan Academy — Irrational Numbers
Inscribed and Circumscribed Circles
Every square has two special circles. The inscribed circle (incircle) fits perfectly inside, touching all four sides — its radius equals half the side length. The circumscribed circle (circumcircle) passes through all four corners — its radius equals half the diagonal. Here's how they compare at four common side lengths:
| Side | Incircle r (s÷2) | Incircle Area | Circumcircle r (s√2÷2) | Circumcircle Area |
|---|---|---|---|---|
| 4 | 2.0000 | 12.5664 | 2.8284 | 25.1327 |
| 6 | 3.0000 | 28.2743 | 4.2426 | 56.5487 |
| 8 | 4.0000 | 50.2655 | 5.6569 | 100.5310 |
| 10 | 5.0000 | 78.5398 | 7.0711 | 157.0796 |
The ratio of circumcircle area to incircle area is always exactly 2 — because their radii differ by a factor of √2, and area scales with radius squared: (√2)² = 2. For side = 8: circumcircle area 100.5310 ÷ incircle area 50.2655 = 2.000 exactly. Reference: NIST — Measurement and Geometry Standards
Real-World Square Calculations
Squares appear constantly in construction, sports, and city planning. Three worked examples using the verified formulas:
- 12 ft × 12 ft square room: Area = 144 sq ft (144 tiles if using 12"×12" tiles — add ~10% for cuts and waste = 158 tiles). Perimeter = 48 ft of baseboard needed. The diagonal — the longest straight path across the room — is 16.9706 ft, useful for placing large furniture or running cable.
- Baseball diamond (90 ft sides): The infield is a square with 90 ft sides. Area = 8,100 sq ft. The throw from home plate to second base travels along the diagonal: 90 × √2 = 127.2792 ft ≈ 127.28 ft. This is why a catcher's throw to second covers about 127 feet, not 180 (which would be the perimeter path across two sides).
- Standard US city block (264 ft sides): Area = 69,696 sq ft = 1.6000 acres. Perimeter = 1,056 ft = 0.2000 miles — so walking around exactly 5 square blocks equals 1 mile. The diagonal = 264 × √2 = 373.3487 ft.
Reference: US Census Bureau — Geographic Reference
5 Tips for Square Calculations
- The diagonal shortcut: multiply side by 1.414. For fast mental math, 1.414 × side gives the diagonal to 0.003% accuracy. A 10 ft square has diagonal ≈ 14.14 ft. A 20 ft square ≈ 28.28 ft. The exact value is s√2 = 14.1421 and 28.2843 respectively — the approximation is close enough for most practical purposes.
- To find side from area, take the square root. A 200 sq ft square plot has side = √200 = 14.1421 ft. Verify: 14.1421² = 200.0000. This is the "From Area" mode in this calculator — enter 200 and it does √A automatically. The same logic applies to any square footage you know: floor area, wall area, garden plot.
- Perimeter tells you fencing or framing length directly. A square garden with 15 ft sides needs 4 × 15 = 60 ft of fencing. Add 10–15% for gates and overlaps. If the total fencing budget determines the perimeter, divide by 4 to get the side: 60 ft ÷ 4 = 15 ft per side, area = 225 sq ft.
- At side = 4 (in any unit), area and perimeter are numerically equal. s² = 4s only when s = 4. Below 4, perimeter exceeds area; above 4, area exceeds perimeter. This isn't a coincidence — it's algebra. For a 4 cm square: area = 16 cm², perimeter = 16 cm. For a 3 cm square: area = 9 cm², perimeter = 12 cm (perimeter wins). For a 5 cm square: area = 25 cm², perimeter = 20 cm (area wins).
- Circumscribed circle area is always exactly 2× inscribed circle area. The circumcircle radius = s√2/2, incircle radius = s/2. Ratio = √2. Area ratio = (√2)² = 2. So for any square, the circle through the corners always has twice the area of the circle inside the square — no calculation needed. For side = 8: incircle area = 50.2655, circumcircle area = 100.5310, ratio = 2.0000 exactly.