Perimeter
calculator.
Perimeter is the distance around a shape, in the length you buy fence or trim by.
- Area (ft²)
- 384
- In m
- 24.38
- In yd
- 26.67
Fence, edging and trim are bought by this length. Double every side and it doubles too, to 160 ft, but the area inside goes to four times as much, 1,536 ft².
The shape to scale
Drag the point to scale every lengthRectangle drawn to scale, perimeter 80 ft, area 384 ft². l = 24, w = 16.
Working
- 1Add twice the length and twice the widthP = 2 × (24 + 16) = 80
- 2Area inside the same shapeA = 384 ft²
- 3Check: add the straight edges of the drawn outline80 ft
Work back from a length
- Width that gives this length
- 26 ft
- Area it encloses (ft²)
- 624
What 100 ft can enclose
| Shape | Size (ft) | Area (ft²) |
|---|---|---|
| Equilateral triangleSide 33.33 ft | Side 33.33 | 481.13 |
| Rectangle, 2 by 1Width 16.67 ft | Width 16.67 | 555.56 |
| SquareSide 25 ft | Side 25 | 625 |
| Regular hexagonSide 16.67 ft | Side 16.67 | 721.69 |
| CircleRadius 15.92 ft | Radius 15.92 | 795.77 |
How it's worked out
For any shape with straight sides, the perimeter is the sum of those sides. The formulas are shortcuts for that sum. OpenStax lists the common ones: twice the length plus twice the width for a rectangle, four sides for a square, and all three or four sides for a triangle or a trapezoid.
| Shape | Perimeter |
|---|---|
| Rectangle | |
| Square | |
| Triangle | |
| Right triangle, two legs | |
| Regular polygon | |
| Rhombus, from diagonals | |
| Parallelogram | |
| Trapezoid |
A circle has no sides to add. Its perimeter has its own name, the circumference, and it equals π times the diameter.
A semicircle and a sector mix both ideas: a curved edge plus straight edges. The curved edge of a sector is its share of the full circle, given by the angle θ in degrees.
An ellipse is the hard case. Its exact perimeter is an elliptic integral, which has no formula in ordinary functions, so this tool uses Ramanujan's second approximation. With semi-axes a and b, and h = (a − b) over (a + b), it reads as below. For semi-axes of 10 and 5 it gives 48.442241, and the integral worked out numerically gives 48.442241.
Worked examples
Grace prices a fence for a back yard
A 24 by 16 foot yard has a perimeter of 80 feet. At $18 a foot, that is $1,440 before posts, gates and hardware.
Grace wants more room, so she tries doubling both sides to 48 by 32 feet. The fence doubles to 160 feet, while the yard goes from 384 to 1,536 square feet, which is four times the space for twice the fence.
Hugo trims an arched window
The top of Hugo's window is a half circle with an 18 inch radius, and he wants trim all the way around that shape. The curved edge is half a circumference, 56.55 inches. The straight edge is the diameter, 36 inches, so the trim comes to 92.55 inches.
Taking half of a full circle's 113.1 inches and stopping there would leave him short by the whole straight edge. If that bottom edge sits on the window frame and needs no trim, the curved figure is the one he wants.
Amara walks the boundary of a trapezoid lot
Amara's lot has parallel sides of 30 m and 18 m, and two 10 m sides. Adding the four gives 68 m of boundary.
Those four sides also fix the shape, because the legs and the difference of the bases form a triangle. That gives a height of 8 m and an area of 192 square meters. She could not get those from the perimeter alone.
Reading your result
The same length can hold very different areas. With 40 units of fence, a 2 by 1 rectangle encloses 88.89 square units, a square 100, and a circle 127.32. The isoperimetric inequality says no shape does better than the circle: 4π times the area, over the perimeter squared, is at most 1, and it equals 1 only for a circle.
Working backward helps you plan. If you own 100 feet of edging and one side must be 30 feet, the other side is 20 feet. The backward solve keeps your other sizes and finds the one that uses up your length.
The figure is the line itself, not what it takes to build. Allow more for joints, overlaps and cuts. Gates usually come off the fence length and are priced apart. Round up to the next whole roll for edging sold in fixed lengths.
Regular shapes are quick. A hexagon with 5 foot sides is 30 feet around, and the tool also shows the distance from its center to the middle of a side, called the apothem, 4.33 feet. That figure gives the area.
Common mistakes
- Mixing up perimeter and area. Perimeter is a length, in feet or meters. Area is the surface inside, in square units. You buy fence by one, and sod by the other.
- Leaving out the straight edge of a semicircle. Half of the circumference is only the curve. Walking all the way around also takes you back across the diameter.
- Mixing units. A side in feet and a side in inches cannot be added as they stand. Change them first, or use the unit picker to convert all the sizes at once.
- Entering a radius as a diameter. A round bed 8 feet across has a 4 foot radius. Getting this wrong doubles the answer.
- Using sides that cannot close up. Sides of 2, 3 and 9 do not make a triangle, since the two short ones must add up to more than the long one. The tool tells you when this happens.