What perimeter means
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 the same length is called the circumference. It is a length, in feet, inches or meters, not an area in square units.
Around the home, the perimeter tells you how much fence a yard needs, how much edging goes around a garden bed, how much baseboard or crown molding a room takes, and how much trim or lights frame a window or a roof line.
Perimeter formulas
For a shape with straight sides, the perimeter is simply the sum of the sides. Shapes with equal sides have shortcuts, and a circle uses π.
| Shape | Formula | Example | Perimeter |
|---|---|---|---|
| Rectangle | 2 × (length + width) | 12 × 10 ft | 44 ft |
| Square | 4 × side | 9 ft sides | 36 ft |
| Circle | π × diameter | 10 ft across | 31.416 ft |
| Triangle | a + b + c | 5, 6 and 7 ft | 18 ft |
| Right triangle | a + b + √(a² + b²) | legs of 3 and 4 ft | 12 ft |
| Regular hexagon | 6 × side | 4 ft sides | 24 ft |
Rectangle: P = 2 × (L + W)
Square: P = 4 × s
Circle: C = π × d = 2 × π × r
Triangle: P = a + b + c
Right triangle: P = a + b + √(a² + b²)
Regular polygon: P = n × s
For a right triangle you only need the two legs: the third side, the hypotenuse, comes from the Pythagorean theorem. Legs of 3 and 4 give a hypotenuse of 5, so the perimeter is 12.
Worked examples
- A 12 by 10 ft room: 2 × (12 + 10) = 44 ft of wall, with an area of 120 square feet.
- A round patio 10 ft across: π × 10 = 31.416 ft of edging.
- A triangular bed with sides of 5, 6 and 7 ft: 18 ft around, and 14.697 square feet by Heron's formula.
- A hexagonal gazebo with 4 ft sides: 6 × 4 = 24 ft.
- An irregular lot with sides of 120, 85, 110, 60 and 45 ft: 420 ft of boundary.
The calculator checks that three triangle sides can actually close: each side must be shorter than the other two together. If not, it says so instead of returning a number.
Measuring an irregular shape
For a yard, a lot or a room with many corners, choose any shape and enter each side in turn, up to eight. Measure each straight run from corner to corner. For a curved edge, lay a hose or a string along it, mark the ends, then straighten it and measure. Keep all the sides in the same unit; the result comes out in that unit.
Survey plats list the length of each boundary line, which you can type in directly. Remember that the perimeter does not give the area of an irregular shape: two shapes with the same perimeter can enclose very different areas. For that, the square footage calculator splits a shape into rectangles and triangles, and the acreage calculator converts land areas.
From perimeter to materials
Once you have the perimeter, add what the job needs. Fences need posts and gates, so use the fence calculator, which starts from the length of the line. Baseboard leaves out doorways and adds a margin for cuts, as the baseboard calculator does. For lengths of trim of any kind, the linear feet calculator adds pieces together.
Perimeter Calculator FAQ
How do you find the perimeter of a rectangle?
Add the length and the width and double it: P = 2 × (L + W). A 12 by 10 ft rectangle has a perimeter of 44 ft.
How do I calculate the circumference of a circle?
Multiply the diameter by π (about 3.14159). A circle 10 ft across has a circumference of 31.416 ft.
What is the perimeter of a right triangle with legs 3 and 4?
The hypotenuse is √(3² + 4²) = 5, so the perimeter is 3 + 4 + 5 = 12.
Is perimeter the same as area?
No. Perimeter is the length around a shape, in feet or meters. Area is the surface inside it, in square feet or square meters.
How do I find the perimeter of an irregular shape?
Measure each straight side from corner to corner and add them. The calculator adds up to eight sides in one go.