Perimeter Calculator

The perimeter is the distance all the way around a flat shape: what you need for a fence, a frame, trim or edging. Pick the shape and type its sides to get the perimeter, the same length in other units, and the area where the sides are enough to work it out.

Perimeter
26 ft Exact

A rectangle 8 ft long and 5 ft wide has a perimeter of 26 ft.

Area 40 ft²
In inches 312 in
In meters 7.9248 m

What is perimeter?

The perimeter is the total length of the edges around a flat shape, in ordinary length units (feet, not square feet). It is how much fencing a yard needs or how much trim goes around a window. A circle’s perimeter has its own name: the circumference.

Source OpenStax · Contemporary Mathematics, 10.4 Polygons, Perimeter, and Circumference ↗

How to calculate perimeter

P = 2 × length + 2 × width

Here it is with your numbers:

  1. P = 2 × 8 + 2 × 5
  2. P = 16 + 10
  3. P = 26 ft

It means a string 26 ft long would go exactly once around the rectangle.

Three sides make a triangle only if the longest is shorter than the other two together; four sides only meet if the longest is shorter than the other three. The calculator tells you if yours can’t. A triangle’s area comes from its three sides by Heron’s formula; a parallelogram or a four-sided shape needs a height or an angle as well.

Source OpenStax · Algebra and Trigonometry 2e, 10.2 Non-right Triangles: Law of Cosines (Heron’s formula) ↗

Perimeter formulas

ShapePerimeter
Rectangle2 × length + 2 × width
Square4 × side
Trianglea + b + c
Circle2πr (the circumference)
Parallelogram2 × (a + b)
Any polygonadd up all the sides
Regular polygon (n equal sides)n × side

Other units use exact conversions: 1 foot is 12 inches, 1 yard is 3 feet and 1 inch is 2.54 centimeters.

Source NIST Handbook 44 (2026) · Appendix C, General Tables of Units of Measurement ↗

FAQs

How do you calculate perimeter?

Add up the lengths of all the sides. For a rectangle that is 2 × length + 2 × width; for a circle, the perimeter is the circumference, 2πr.

Source OpenStax · Contemporary Mathematics, 10.4 Polygons, Perimeter, and Circumference ↗

What is the perimeter of 8 and 5?

A rectangle 8 by 5 has a perimeter of 2 × 8 + 2 × 5, which is 26 (in whatever unit the sides are in). Its area is 8 × 5, which is 40.

How to calculate area and perimeter?

The perimeter adds the sides; the area multiplies for a rectangle (length × width, in square units). A rectangle 8 ft by 5 ft has a perimeter of 26 ft and an area of 40 ft².

How do I convert square feet to perimeter?

You can’t from the area alone: shapes with the same area can have different perimeters. 36 square feet is a 6 × 6 square (24 ft around) or a 12 × 3 rectangle (30 ft around). You need the side lengths.

Sources

Related calculators