Geometry
How To Calculate The Perimeter Of A Square
The perimeter of a square is the total distance around its four edges, and because all four edges are equal it is simply four times the side length. This one measurement also unlocks the area, the corner-to-corner diagonal and the distance halfway around the shape. It is the calculation behind fencing a plot, framing a panel or estimating the skirting board for a square room.
Last updated
Quick Answer
P = 4s
- s
- Length of one side of the square
- P
- Perimeter, the total distance around all four sides
- A
- Area enclosed by the square, in square units
- d
- Diagonal, the straight line between opposite corners
Multiply the side length by four to get the perimeter. The same side gives the area as the side squared, the diagonal as the side times the square root of two, and half the perimeter as two times the side. For a side of 9 the perimeter is 36.0, the area 81.0, the diagonal 12.727922061357857 and half the perimeter 18.0.
What Is The Perimeter Of A Square?
The perimeter of a shape is the length of its boundary, the distance you would travel if you walked all the way around it. A square has four edges of identical length, so adding them up is just four times one of them: P = 4s. A square of side 9 therefore has a perimeter of 36.0. The operation is addition, not squaring, and the answer is an ordinary length rather than an area.
Thinking of the perimeter as a walk around the shape makes the formula obvious. Set off from one corner, travel one side of length s, turn through a right angle, and repeat four times before arriving back where you started. You have covered s + s + s + s = 4s. This also explains why the perimeter is sometimes called the outline or the boundary length, and why it is measured in metres, centimetres or feet rather than in square units.
Perimeter and area respond differently to a change in the side. Doubling the side doubles the perimeter, because every edge simply becomes twice as long; the area, however, grows by a factor of four. A square of side 9 has a perimeter of 36.0, while a square of side 18 has a perimeter of 72.0 but an area four times as large. Keeping this distinction in mind prevents the most common mix-up in elementary geometry.
Because the side is the only input, any one of these quantities determines the rest. Divide a known perimeter by four to recover the side, then square it to get the area or multiply it by the square root of two to get the diagonal. A perimeter of 36.0 gives back a side of 9, an area of 81.0 and a diagonal of 12.727922061357857. This reversibility is useful when a problem states the boundary length rather than the edge.
The diagonal follows from Pythagoras rather than from the perimeter directly. One diagonal divides the square into two right-angled triangles whose shorter sides are both s, so d² = s² + s² = 2s² and d = s√2, roughly 1.414 times the side. With s = 9 that is 12.727922061357857. The ratio of diagonal to perimeter is the same constant for every square, since d = (√2/4)P, which is another way to move between the two measurements.
Half the perimeter is simply two sides, 2s, the distance from one corner to the opposite corner when you follow the boundary rather than cutting across. For a side of 9 it is 18.0. This quantity appears whenever only part of a boundary is needed: a pair of adjacent edges of a fenced enclosure, one lap of a two-sided route, or the length of material required to line just half of a square frame. It is not the same as half the area, even when the numbers happen to resemble each other.
The four quantities form a closed little system. From the diagonal you can recover the area as A = d²/2, because d² = 2s²; squaring 12.727922061357857 gives 162, and half of that is 81.0. From the perimeter you can reach the diagonal through the side, and from the area you can reach the perimeter by taking the positive square root and multiplying by four. Knowing any single one of them is enough to rebuild the whole square.
The perimeter formula assumes four truly equal edges. A rectangle needs 2 × (length + width) and gives a different result even when its side lengths are close. A rhombus, on the other hand, does have four equal sides, so its perimeter is still 4s even though its area is smaller than s² because the corners are not right angles. For real plots or rooms, edges are seldom perfectly equal, so surveyors take several measurements and average them before multiplying by four.
In practice the side is measured in a convenient unit and the perimeter comes out in that same unit: a square room of side 4 metres needs 16.0 metres of skirting board, while a square tile of side 4 centimetres has a perimeter of 16.0 centimetres. Interestingly, a square of side 4 also has an area of 16.0, but that is 16 square units, a completely different physical quantity. Always state the unit explicitly, and remember that the diagonal must be longer than the side but shorter than half the perimeter.
Formula
P = 4s
Formula page →Add the four equal edges together. This is a linear measure, so the answer carries the same unit as the side.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| s | Side length | length | The common length of all four equal sides. |
| P | Perimeter | length | The total distance around the square, four times the side. |
A = s² and d = s × √2
Formula page →The interior area is the side squared, while the corner-to-corner diagonal follows from Pythagoras on half the square.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| s | Side length | length | The same side length used for the perimeter. |
| A | Area | length² | The flat space enclosed, measured in square units. |
| d | Diagonal | length | The corner-to-corner distance, about 1.414 times the side. |
P/2 = 2s
Formula page →Halfway around the boundary covers two of the four equal sides.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| P | Perimeter | length | The full distance around the square. |
| s | Side length | length | Half the perimeter is twice this value. |
How To Calculate The Perimeter Of A Square
- 1
Confirm the four sides are equal
The formula P = 4s only holds when every edge has the same length. A rectangle of length 6 and width 4 has a perimeter of 20, not the 24 you would get by treating it as a square of side 6. Check the shape first, because multiplying one side by four when the opposite sides differ gives a confidently wrong result.
- 2
Measure one side and record its unit
Since all four sides match, one measurement is enough. Note the unit carefully, whether it is metres for a room, centimetres for a drawing or feet for a garden bed. Convert mixed measurements to a single unit before calculating, so that a side given in centimetres is not accidentally combined with a boundary quoted in metres.
- 3
Multiply the side by four
Compute P = 4 × s. With s = 9 this is 4 × 9 = 36.0, the total length of the boundary. This is repeated addition, not squaring: four times 9 is 36, whereas 9 squared is 81. The calculator reports this perimeter as the primary result and keeps the answer in the same length unit as the side.
- 4
Derive the area, diagonal and half-perimeter from the same side
Reuse the side for the related quantities. The area is the side squared, so s = 9 gives 81.0 square units. The diagonal is the side times the square root of two, giving 12.727922061357857. Half the perimeter is two times the side, giving 18.0. Each depends only on s, so changing the side updates all four answers together.
- 5
State the result in length units and sanity-check
Write the perimeter with an ordinary length unit, such as 36.0 metres, and keep the area in square units. Then check the ordering: the diagonal must be longer than the side but shorter than half the perimeter, so with s = 9 you expect a value between 9 and 18, which 12.727922061357857 satisfies. An answer that violates this ordering signals a slip in the arithmetic.
Examples
Example 1: Default case — a square of side 9
- side
- 9
| Step | Calculation | Result |
|---|---|---|
| Side length | s | 9 |
| Area (s × s) | 9 × 9 | 81.0 |
| Diagonal (side × √2) | √2 × 9 | 12.727922061357857 |
| Half the perimeter (2 × side) | 2 × 9 | 18.0 |
| Perimeter (4 × side) | 4 × 9 | 36.0 |
Result: For a side of 9 the perimeter is 36.0, the area is 81.0, the diagonal is 12.727922061357857 and half the perimeter is 18.0.
Example 2: A square room of side 4 metres
- side
- 4
| Step | Calculation | Result |
|---|---|---|
| Side length in metres | s | 4 |
| Area (4 × 4) | 4 × 4 | 16.0 |
| Diagonal (4 × √2) | √2 × 4 | 5.656854249492381 |
| Half the perimeter (2 × 4) | 2 × 4 | 8.0 |
| Perimeter (4 × 4) | 4 × 4 | 16.0 |
Result: A square room of side 4 metres has a perimeter of 16.0 metres for the skirting board, an area of 16.0 square metres, a diagonal of 5.656854249492381 metres and a half-perimeter of 8.0 metres.
Example 3: A square garden bed of side 7 metres
- side
- 7
| Step | Calculation | Result |
|---|---|---|
| Side length in metres | s | 7 |
| Area (7 × 7) | 7 × 7 | 49.0 |
| Diagonal (7 × √2) | √2 × 7 | 9.899494936611665 |
| Half the perimeter (2 × 7) | 2 × 7 | 14.0 |
| Perimeter (4 × 7) | 4 × 7 | 28.0 |
Result: A square garden bed of side 7 metres needs 28.0 metres of edging, covers 49.0 square metres, has a diagonal of 9.899494936611665 metres and a half-perimeter of 14.0 metres.
Calculator
Perimeter
36
- Area
- 81
- Diagonal
- 12.727922061357857
- Half the perimeter
- 18
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the The Perimeter Of A Square calculator page.
Common Mistakes
Squaring the side instead of multiplying by four
For a side of 9, squaring gives 81.0 while the perimeter is 36.0. The area counts unit squares inside the shape; the perimeter adds the four edges. Confusing the two produces an answer that is both numerically wrong and attached to the wrong kind of unit.
Using two sides instead of four
Two times the side gives only half the perimeter, 18.0 when s = 9. This mistake often happens when someone pictures just a pair of opposite edges. Count all four sides before multiplying, or remember that the full boundary is twice the halfway distance.
Confusing length units with square units
A perimeter of 36.0 metres is a length, whereas an area of 81.0 square metres measures surface. Writing square metres for the perimeter is a clear sign the quantity has been muddled. Keep the unit attached to every number, especially when area and perimeter happen to share a digit such as 16 for a side of 4.
Applying the square formula to a rectangle
A rectangle with unequal sides uses P = 2 × (length + width), not four times one side. Treating a 6 by 4 rectangle as a square of side 6 gives 24 instead of the correct 20. Confirm the shape before choosing the formula, since a near-square drawing can be deceptive.
Rounding the diagonal too early
Approximating the square root of two as 1.41 is acceptable for a rough estimate but breaks accuracy in later steps, especially if the diagonal is squared to recover the area. Keep the full value 12.727922061357857 while working and round only the final answer to the precision the situation requires.
Mixing up half-perimeter and half-area
Half the perimeter is 2s, which is 18.0 for a side of 9. Half the area is s²/2, which is 40.5 for the same side. Because one is linear and the other quadratic, they grow at different rates and are only coincidentally close for a few small side lengths. Name the quantity you actually need before halving anything.
FAQ
What is the perimeter of a square?
It is the total distance around the four equal edges, given by P = 4s. A square of side 9 has a perimeter of 36.0. Because it is a length rather than an area, the answer is expressed in metres, centimetres, feet or whatever unit the side was measured in.
Why do you multiply the side by four?
A square has four edges of the same length, so walking all the way around covers the side four times: s + s + s + s = 4s. This is different from the area, which counts the unit squares filling the interior and multiplies the side by itself.
How does the perimeter differ from the area?
The perimeter measures the boundary in length units and equals 4s; the area measures the interior in square units and equals s². Doubling the side doubles the perimeter but quadruples the area. For a side of 9 the perimeter is 36.0 while the area is 81.0.
How do I find the side if I only know the perimeter?
Divide the perimeter by four. A perimeter of 36.0 gives a side of 9, from which the area is 81.0 and the diagonal is 12.727922061357857. This works because the four edges are identical, so each is exactly one quarter of the boundary length.
How is the diagonal related to the perimeter?
The diagonal is the side times the square root of two, so d = (√2/4)P. For a side of 9 it is 12.727922061357857, comfortably longer than the side yet shorter than half the perimeter of 18.0. The same relation can be reversed to estimate the boundary from a measured diagonal.
Does this formula work for other four-sided shapes?
It works for any rhombus, because those also have four equal sides, but not for a rectangle with unequal sides, which needs 2 × (length + width). A general quadrilateral needs all four sides added individually. The shortcut P = 4s assumes equal sides, whatever the corner angles happen to be.
References
- [1]Wikipedia, Perimeter — https://en.wikipedia.org/wiki/Perimeter
- [2]Wikipedia, Square (geometry) — https://en.wikipedia.org/wiki/Square_(geometry)
- [3]Wikipedia, Pythagorean theorem — https://en.wikipedia.org/wiki/Pythagorean_theorem
