About the Perimeter Calculator
What is the Perimeter Calculator?
The perimeter is the total length of the boundary of a flat shape — the distance you would walk going once around it. For a circle it is called the circumference. You need the perimeter to buy fencing, skirting boards, edging, lace or wire.
Choose a shape and enter its measurements. For a triangle, all three sides are required and are checked to make sure they can actually form a triangle. For a regular polygon (all sides equal), enter the side length and the number of sides. The area is shown alongside.
How to use the Perimeter Calculator
- Shape — each option lists which measurements it uses. (sample: Rectangle)
- Side a / Length / Radius (sample: 12)
- Side b / Width (sample: 8)
- Side c (triangle only) (sample: 10)
- Number of Sides (regular polygon) — used only for a regular polygon (3 or more). (sample: 6)
- Press Calculate Perimeter (results also refresh as you type). The result card shows the Perimeter, along with Area.
Formula used
Rectangle P = 2(l + w) | Circle C = 2πr
- Square = 4 × side
- Triangle = a + b + c
- Regular polygon = n × side
- Regular polygon area = n × side² ÷ (4 × tan(180° ÷ n))
The triangle's area uses Heron's formula, so no height is needed.
Worked example
These are the sample values already filled in the calculator above, and the result it returns for them:
| Input | Sample value |
|---|---|
| Shape | Rectangle |
| Side a / Length / Radius | 12 |
| Side b / Width | 8 |
| Side c (triangle only) | 10 |
| Number of Sides (regular polygon) | 6 |
| Result | Value |
|---|---|
| Perimeter | 40 units |
| Area | 96 sq units |
Tips for using the Perimeter Calculator
- Measure all sides in the same unit before adding them.
- For fencing, subtract the width of any gates and add a little extra for posts and overlaps.
- Of all shapes with the same perimeter, a circle encloses the most area.
