Square Perimeter Calculator
Compute the perimeter of a square from its side length.
Useful for fencing, framing, and edge trim.
Multiple units supported.
P = 4 × s
Four equal sides, so the perimeter is four times any one side. A 5 cm square has a 20 cm perimeter. A 10 ft square has 40 ft of perimeter.
Where this matters in practice:
- Fencing a square garden. A 20 ft × 20 ft vegetable bed needs 80 ft of fence panels, plus four corner posts and a gate. Adding 5% for waste and cut errors: order at least 84 ft.
- Trim around a square room or rug. A 9 ft × 9 ft area rug needs 36 ft of trim or rope edging. Border tape sold in 50 ft rolls covers one rug with room to spare.
- Picture-frame molding around a square painting. A 24-inch-square canvas needs 96 in (8 ft) of molding plus mitre cuts. Buy 10 ft to allow for the cut waste at each 45° corner.
- Concrete curbing around a square patio. A 12 ft × 12 ft patio needs 48 linear ft of curb stones.
Quick relations from the side s:
- Perimeter: P = 4s
- Diagonal: d = s√2 ≈ 1.414 × s
- Area: A = s²
A square with perimeter P has side s = P/4 and area (P/4)² = P²/16. That’s the largest area you can enclose with that perimeter using a four-sided shape.
Worked example — backyard fence:
You want a square dog run that’s 144 sq ft. Square root of 144 is 12, so the run is 12 ft × 12 ft. Perimeter = 48 ft. With six-foot fence panels you need 48/6 = 8 panels exactly (perfect — no cuts) plus 4 corner posts and 1 gate post. Total fence material: 8 panels, 5 posts, 1 gate, hardware.
Worked example — pool tile border:
A 10 ft × 10 ft square pool gets a tile border. Perimeter is 40 ft = 480 in. Border tile is sold in 6-inch lengths: 480 / 6 = 80 tiles. Order 88 (10% spare) — pool corners need careful mitre cuts and some breakage is inevitable.
Why perimeter isn’t the same as the diagonal. A square’s diagonal is one straight line across, length s√2. Perimeter is the path around all four sides, length 4s. For a 1 m square: diagonal 1.414 m, perimeter 4 m. They’re related but very different measurements.
How we build and check this calculator
This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.
SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.