Home/Geometry/Square Calculator

Square Calculator

Calculate the area, perimeter, diagonal and side length of any square, plus its inscribed and circumscribed circles, with formulas and step-by-step working.

📖 Reading time: 11–13 minutes  ·  Last updated: 1 August 2026  ·  Reviewed by Mohsin Iqbal

Quick Answer: How Do You Calculate a Square?

A square needs just one value to be fully solved, because all four sides are equal — enter the side, area, perimeter or diagonal and everything else follows. Area is A = s², perimeter is P = 4s, and the diagonal is d = s√2 — the Pythagorean theorem applied to two sides meeting at a right angle. Enter any one value below and the calculator finds the rest, with every step shown.

Formula Summary
Area: A = s²  |  Perimeter: P = 4s  |  Diagonal: d = s√2
Side from area: s = √A  |  from perimeter: s = P/4  |  from diagonal: s = d/√2
Inscribed circle radius: r = s/2  |  Circumscribed circle radius: R = d/2
Interior angle 90°  |  Diagonal angle 45°  |  Aspect ratio 1:1
Enter Any One Value

Leave the values you want solved for blank. Enter any one of side, area, perimeter or diagonal — the rest are calculated. Enter more than one and the extras are cross-checked for consistency.

Keyboard: Enter calculates, Esc clears.


Quick Examples

Select a measurement unit above to see perimeter conversions.

Results
Side Length
PropertyValue
Step-by-Step Working

Common uses: tap one to load a typical example.

Calculator Features

Solve from any one value
🧮Step-by-step working
🔵Inscribed & circumscribed circles
🔄Unit conversion
🖨Printable / PDF results
📊CSV export
📋Copy to clipboard
🎚Decimal precision control
📱Mobile friendly
🆓Free to use

🧭 Jump to a section

What Is a Square?

A square is a four-sided shape (a quadrilateral) with four equal sides and four right angles. It's the most symmetrical of all quadrilaterals — a square is simultaneously a rectangle (opposite sides equal, all angles 90°) and a rhombus (all sides equal), making it the shape that satisfies both definitions at once. Tiles, chess squares, computer pixels, paving slabs and picture frames are all commonly square.

💡 Did You Know? Every square is both a rectangle and a rhombus, but a square is the only shape that is both at once — which also makes it the only regular quadrilateral, meaning all its sides and all its angles are equal. No other four-sided shape can claim that.

Properties of a Square

Area Formula

A = s². Multiply the side by itself. A square with 6-unit sides has an area of 36 square units. Because area scales with the square of the side, doubling the side quadruples the area — a common source of estimating errors when scaling plans up or down.

Perimeter Formula

P = 4s. Multiply the side by four, since all four sides are identical. The same 6-unit square has a perimeter of 24 units. See the dedicated perimeter calculator for other shapes.

Diagonal Formula

d = s√2. A square's diagonal splits it into two congruent right isosceles triangles, with both legs equal to the side — so this is the Pythagorean theorem applied to a 45-45-90 triangle: d = √(s² + s²) = s√2. For s = 6, d = 6 × 1.41421 ≈ 8.485 units. See the Pythagorean theorem calculator for the underlying theorem.

Finding the Side Length

You knowFormulaExample
Areas = √AA = 36 → s = 6
Perimeters = P / 4P = 24 → s = 6
Diagonals = d / √2d ≈ 8.485 → s = 6

Because a square has only one independent dimension, any single measurement — side, area, perimeter or diagonal — is enough to determine every other property. That's what makes the calculator above able to solve from just one entry, unlike a rectangle, which needs two.

Inscribed Circle

The largest circle that fits entirely inside a square touches the midpoint of each side. Its radius is exactly half the side length: r = s/2. For s = 6, the inscribed circle has a radius of 3. This is the circle a square peg would need to be turned into to fit through the same opening with no gap on any side.

Circumscribed Circle

The smallest circle that passes through all four corners has its centre at the square's centre and a radius equal to half the diagonal: R = d/2 = s√2/2 = s/√2. For s = 6, R ≈ 4.243. The circumscribed circle is always larger than the inscribed one — their ratio is always exactly √2, regardless of the square's size.

Square vs Rectangle

PropertySquareRectangle
SidesAll four equalOpposite sides equal (l ≠ w generally)
AnglesFour right anglesFour right angles
AreaA = s²A = l × w
Diagonald = s√2d = √(l² + w²)
RelationshipEvery square is a rectangle (the special case l = w); not every rectangle is a square

See the full rectangle calculator for the general case with two independent dimensions.

Square vs Rhombus

PropertySquareRhombus
SidesAll four equalAll four equal
AnglesAlways 90°Opposite angles equal, not necessarily 90°
DiagonalsEqual in length, perpendicularPerpendicular, but not necessarily equal in length
AreaA = s²A = ½d₁d₂ or base × height
RelationshipA square is a rhombus with the extra condition that all angles are 90°

Square vs Circle

PropertySquareCircle
AreaA = s²A = πr²
Perimeter / circumferenceP = 4sC = 2πr
Longest internal lineDiagonal, d = s√2Diameter, d = 2r
CornersFour, at 90°None — continuously curved
EfficiencyTiles and stacks with no gapsLeast perimeter for a given area of any shape
Typical applicationsTiles, panels, grid layouts, footingsPipes, wheels, tanks, manholes

The two shapes trade off against each other: a square tiles a plane with no wasted space, which is why floors and grids use squares, while a circle encloses the most area for a given perimeter of any shape at all, which is why pipes, tanks and wheels are round. A circle inscribed inside a square touches all four sides and covers about 78.5% of the square's area (π/4); a circle circumscribed around a square passes through all four corners and is about 1.57 times the square's area (π/2). See the circle calculator for circle-specific working.

Step-by-Step Worked Examples

From the side — s = 6

A = 6² = 36
P = 4 × 6 = 24
d = 6√2 ≈ 8.485

From the area — A = 100

s = √100 = 10
P = 40, d = 10√2 ≈ 14.142

From the perimeter — P = 40

s = 40 / 4 = 10
A = 100, d ≈ 14.142

From the diagonal — d = 10

s = 10 / √2 ≈ 7.071
A ≈ 50, P ≈ 28.284

Construction — a square footing pad

A 1.2 m × 1.2 m footing pad: A = 1.44 m², P = 4.8 m
Concrete volume at 300 mm deep: 1.44 × 0.3 = 0.432 m³

Flooring — a square study

A 3.6 m × 3.6 m room: A = 12.96 m²
Add 8% waste → order about 14 m² of flooring

Construction tolerance — a footing specified as 1.2 m × 1.2 m ± 5 mm

Nominal area: 1.2² = 1.44 m²; nominal volume at 300 mm deep: 1.44 × 0.3 = 0.432 m³
At the smallest allowed side (1.195 m): A = 1.428025 m², volume = 0.428408 m³
At the largest allowed side (1.205 m): A = 1.452025 m², volume = 0.435608 m³
A ±5 mm tolerance on each side — under 0.5% of the nominal dimension — swings the concrete volume by about 0.0072 m³ (≈1.7%) for one footing. On a job with dozens of footings, or on a slab where the tolerance compounds across a much larger area, that percentage becomes real extra cubic metres of concrete — which is exactly why AS 3600 and similar Australian standards specify tolerances on structural dimensions rather than leaving accuracy to the pour.

Real-World Applications

FieldUse
ConstructionSquare footings, slab pads, structural grid setout
FlooringSquare tiles, parquet and panel sizing
LandscapingRaised garden beds, paving slabs, checkerboard patios
ManufacturingSquare stock, panels and sheet material
DesignGrid layouts, logo design, pixel-based graphics
EducationGeometry fundamentals, area-scaling demonstrations

Glossary

Side (s)
The length of one edge — identical on all four sides of a square.
Area (A)
The space enclosed by the square, in square units.
Perimeter (P)
The total distance around the boundary, in linear units.
Diagonal (d)
The line connecting two opposite corners, always longer than a side.
Inscribed circle
The largest circle that fits entirely inside the square, touching each side's midpoint.
Circumscribed circle
The smallest circle passing through all four corners.
Interior angle
The angle inside the square at each corner — always 90°.
Diagonal angle
The angle a diagonal makes with a side — always 45° in a square.
Aspect ratio
The ratio of length to width — always 1:1 for a square, since all sides match.

Common Mistakes

MistakeFix
Confusing area and perimeter unitsArea is squared (m²); perimeter is linear (m)
Forgetting to multiply the diagonal formula by √2d = s√2, not just s
Assuming doubling the side doubles the areaArea scales with the square of the side — it quadruples
Mixing up inscribed and circumscribed radiusInscribed r = s/2; circumscribed R = s/√2, always larger
Treating every rhombus as a squareA square needs 90° angles too, not just equal sides

Formula Cheat Sheet

Quick Reference

Area: A = s²  |  Perimeter: P = 4s  |  Diagonal: d = s√2
Side from area: s = √A  |  from perimeter: s = P/4  |  from diagonal: s = d/√2
Inscribed radius: r = s/2  |  Circumscribed radius: R = s/√2 = d/2
Interior angle: 90°  |  Diagonal angle: 45°  |  Aspect ratio: 1:1
Scaling: ×k on side → ×k² on area

Practice Questions

Beginner (with answers)

  1. Find the area of a square with 7 cm sides.
  2. Find the perimeter of a square with 9 m sides.
  3. A square has an area of 64. Find its side.
  4. A square has a perimeter of 32. Find its side.
  5. Find the diagonal of a square with 5 cm sides (2 dp).
Show answers

1) 7²=49 cm²   2) 4×9=36 m   3) √64=8   4) 32/4=8   5) 5√2≈7.07 cm

Advanced (with answers)

  1. A square has a diagonal of 20. Find its side, area and perimeter.
  2. Find the inscribed and circumscribed circle radii for a square with 12 cm sides.
  3. A square footing pad is 1.5 m × 1.5 m, poured 250 mm deep. Find the concrete volume.
  4. A square room needs new carpet. If the room is 5 m × 5 m, how many m² should be ordered with 8% waste?
  5. Two squares have sides in ratio 1:2. What is the ratio of their areas?
Show answers

1) s=20/√2≈14.142, A≈200, P≈56.569   2) r=6 cm, R=12/√2≈8.485 cm   3) 1.5×1.5×0.25=0.5625 m³   4) 25 m² × 1.08 = 27 m²   5) 1:4, since area scales with the square of the side

🔑 Key Takeaways

Frequently Asked Questions

What is a square?

A square is a four-sided shape with all sides equal and all angles 90°. It's both a special rectangle and a special rhombus — the only shape that satisfies both definitions.

How do you calculate the area of a square?

A = s² — multiply the side by itself. A square with 6-unit sides has an area of 36 square units.

How do you calculate the perimeter of a square?

P = 4s — multiply the side by four. A 6-unit square has a perimeter of 24 units.

How do you find the diagonal of a square?

d = s√2 — the Pythagorean theorem applied to a 45-45-90 triangle formed by two sides and the diagonal. A 6-unit square has a diagonal of about 8.485 units.

What is the square formula?

There are three core formulas: area A = s², perimeter P = 4s, and diagonal d = s√2. Any one of side, area, perimeter or diagonal is enough to find the rest.

How do you find the side length of a square?

From area: s = √A. From perimeter: s = P/4. From diagonal: s = d/√2. Only one of these four values is ever needed, since a square has just one independent dimension.

What is the difference between a square and a rectangle?

A square has all four sides equal; a rectangle only requires opposite sides to be equal. Every square is a rectangle (the special case where length equals width), but a rectangle is only a square when all sides match.

Can a rectangle be a square?

Yes — when a rectangle's length and width are equal, it is by definition also a square.

What is the difference between a square and a rhombus?

Both have four equal sides, but a rhombus's angles don't have to be 90°. A square is a rhombus with the extra condition that every angle is a right angle, which is also why a square's diagonals are equal in length while a general rhombus's usually aren't.

Is every square a rhombus?

Yes — since all four sides are equal, a square automatically satisfies the definition of a rhombus, with the added constraint of right angles.

What is the inscribed circle of a square?

The largest circle that fits entirely inside the square, touching the midpoint of each side. Its radius is exactly half the side length: r = s/2.

What is the circumscribed circle of a square?

The smallest circle passing through all four corners, centred on the square. Its radius equals half the diagonal: R = d/2 = s/√2, always √2 times larger than the inscribed circle's radius.

What is the interior angle of a square?

Always exactly 90°, at every corner, totalling 360° across the four corners.

What is the exterior angle of a square?

Also 90° — the exterior and interior angles of a square are supplementary and, since the interior is 90°, the exterior is 90° too. The four exterior angles always sum to 360° for any convex polygon.

What angle does the diagonal make with a side?

Exactly 45°, since a square's diagonal bisects each 90° corner angle into two equal 45° angles.

What is the aspect ratio of a square?

Always 1:1, because all four sides are the same length.

How is a square used in construction?

Square footings, slab pads and structural grids are common, and checking that a layout is square (using the 3-4-5 method or equal diagonals) is a routine step in setting out any rectangular structure too.

How do you calculate flooring for a square room?

Multiply the side by itself for area (A = s²), then add 8–10% for cuts, waste and pattern matching before ordering.

How do you calculate paving for a square patio?

Find the patio's area with A = s², then divide by the area of one paver to estimate how many are needed, rounding up and allowing extra for cuts around the edges.

What units are used for squares?

Any linear unit for the side, perimeter and diagonal (mm, cm, m, ft); area uses the squared version of the same unit (m², ft²).

Can I calculate square dimensions online?

Yes — enter any one of side, area, perimeter or diagonal above and the calculator solves the rest instantly, with the working shown.

How accurate is a square calculator?

This calculator uses standard double-precision arithmetic, but displayed results are rounded and cannot be more accurate than the measurements entered.

Can students use this calculator?

Yes — enter any one known value and the calculator shows the formula and full working, useful for checking homework as well as producing an answer.

What are common square mistakes?

Confusing area (squared units) with perimeter (linear units); forgetting the √2 in the diagonal formula; assuming doubling the side doubles the area, when it actually quadruples it; and mixing up the inscribed and circumscribed circle radii.

Why is square calculation important?

Because squares are common in construction, flooring, paving and manufacturing — getting the area and perimeter right directly affects material orders and cost.

Can this calculator find dimensions from just one value?

Yes — a square has only one independent dimension, so entering any single value (side, area, perimeter or diagonal) is enough to determine every other property automatically.

What happens if I enter more than one value?

The calculator solves from the first value by priority (side, then area, then perimeter, then diagonal) and cross-checks any extra values you entered against the result, flagging a warning if they don't match.

What's the ratio between the inscribed and circumscribed circle?

Always exactly √2 (about 1.414), regardless of the square's size — the circumscribed radius is always √2 times the inscribed radius.

Does doubling the side double the area?

No — it quadruples it, because area scales with the square of the side. A side of 4 gives an area of 16; doubling the side to 8 gives an area of 64, four times as much.

What's the difference between metric and imperial for squares?

The formulas are identical — only the units change. Metric uses mm, cm and m (with m² for area); imperial uses inches, feet and yards (with ft² for area). This calculator supports both.

Can I export the results?

Yes — use Copy Results to copy everything to the clipboard, Export CSV to download a spreadsheet-ready file, or Print / Save as PDF for a printable worksheet with space to sign off.

Does this calculator show step-by-step working?

Yes — every solve shows the formula used, the substituted values, and the derived area, perimeter, diagonal and both circle radii.

About This Calculator

✅ Reviewed by Mohsin Iqbal

This calculator has been reviewed for mathematical accuracy against standard Euclidean geometry. It solves a square from any single known value — side, area, perimeter or diagonal — and cross-checks any additional values entered against the calculated result rather than ignoring or blindly trusting them.

Last updated: 1 August 2026  ·  Last reviewed: 1 August 2026  ·  Educational information only.

Printable Formula Sheet

A one-page reference with every square formula on this page.

Square Formula Sheet

MegaCalcOnline.com  ·  Area, perimeter, diagonal and circle formulas

QR code linking to the online Square Calculator at megacalconline.com

Scan for the live calculator

FindFormula
AreaA = s²
PerimeterP = 4s
Diagonald = s√2
Side from areas = √A
Side from perimeters = P / 4
Side from diagonals = d / √2
Inscribed circle radiusr = s / 2
Circumscribed circle radiusR = s / √2 = d / 2
Interior angle90°
Diagonal angle45°

References

Every formula and worked example on this page was independently verified — see “About This Calculator” above for the full review notes.