Skip to content
CalculatPage

Perimeter Calculator

Add up the distance around a shape. Includes triangle side checking and circle circumference.

Updated November 2026 · How we build calculators

Optional. For example the width of a doorway or wall that touches another wall.

Result

Your result will appear here

Enter your numbers, then press Calculate.

How the Perimeter Calculator works

Perimeter is the sum of all side lengths. A circle's circumference is 2πr. The triangle option verifies that the sides satisfy the triangle inequality.

Formula used

Rectangle = 2(l + w)

Circle = 2πr

Triangle = a + b + c

Regular polygon = n × side

Step-by-step example

Using the default values in the calculator above:

  1. Shape: Rectangle
  2. Length / radius / side a: 12
  3. Width / side b: 8
  4. Unit: feet
  5. Subtract sides that need no border (optional): 0

The calculator then applies the formula above and returns:

  • Perimeter: 40 ft
  • In feet (if unit is ft): 40

Notes on the inputs

Subtract sides that need no border (optional)
Optional. For example the width of a doorway or wall that touches another wall.

What-if scenarios

Each table changes one input and keeps everything else at the calculator's default values.

If you change “Length / radius / side a”
Length / radius / side aPerimeter
628 ft
934 ft
12 (default)40 ft
1852 ft
2464 ft
If you change “Width / side b”
Width / side bPerimeter
432 ft
636 ft
8 (default)40 ft
1248 ft
1656 ft

Tips and background

Perimeter is used for fencing, baseboards, trim and borders. Add 5% to 10% for cuts and waste.

Perimeter formulas

Rectangle: 2 × (length + width). Square: 4 × side. Circle circumference: 2 × π × r. Triangle: add the three sides, which must satisfy the triangle inequality (each shorter than the other two combined). A 12 by 8 ft rectangle has a 40 ft perimeter.

Using perimeter for real projects

Perimeter tells you how much fencing, baseboard, trim or edging to buy. Subtract doorways with the optional field and add 5% to 10% for cuts. Work out costs with the fence calculator and areas with the area calculator.

What are worked perimeters for common shapes?

Shape and sizePerimeter
Rectangle 12 × 8 ft40 ft
Triangle with sides 3, 4 and 5 ft12 ft
Six sides of 5 ft each30 ft
Circle with radius 5 ftabout 31.42 ft

Sides of 1, 2 and 8 cannot form a triangle, and the calculator says so.

How do you use perimeter for buying materials?

Subtract openings where the material will not go, such as a doorway for baseboard. In the 12 × 8 ft example, subtracting 3 ft leaves 37 ft. Then think about the lengths sold in the store. You may need more pieces than the total suggests, because offcuts cannot always be reused. Corners and joints add waste too. For fences, the fence calculator also counts posts and boards.

Common mistakes to avoid with the Perimeter Calculator

  • Confusing perimeter (length) with area (surface).
  • Forgetting to subtract openings.
  • Entering triangle sides that cannot form a triangle.

Frequently asked questions

What is the perimeter of a square?

Four times a side length.

Why do my triangle sides not work?

Each side must be shorter than the sum of the other two.

How much fence do I need?

The perimeter of the area to be fenced, minus gate openings.

What is the perimeter of a 10 by 5 rectangle?

30 units.

How do I find circumference from diameter?

Multiply the diameter by π.

How do I find the perimeter of a regular hexagon?

Multiply one side length by 6.