Math Last updated: 2026-07-25

Perimeter Calculator

The **Perimeter Calculator** computes the **total boundary length** of any **2D geometric shape**. Whether you need the **perimeter of a rectangle**, the **circumference of a circle**, or the boundary of an **irregular polygon**, this calculator delivers instant results with **step-by-step derivations** and **unit conversion** options. Enter your shape dimensions and receive the perimeter along with the formula used, making it easy to understand the calculation process. Our perimeter calculator supports rectangles, triangles, circles, trapezoids, parallelograms, rhombuses, kites, semicircles, sectors, and any polygon defined by side lengths or vertex coordinates.

How to Use the Perimeter Calculator

Interactive calculator available after JavaScript loads.

Loading calculator...

Written by Calculator Archive Team

Math & Geometry Experts — Verified Formulas, Peer-Reviewed Sources, Expert Analysis

Looking for a deeper explanation?

Read our comprehensive, peer-reviewed educational article in our Blog to learn the underlying math, formulas, and step-by-step examples.

Read Blog Guide ›

Mathematical Formula & Logic

Perimeter = Sum of all side lengths
Variable Glossary
P Perimeter (total boundary length of the shape)
s Side length of the shape
n Number of sides (for polygons)
r Radius (for circular shapes like circles, semicircles, and sectors)
π Pi, the mathematical constant approximately equal to 3.14159
C Circumference (the perimeter of a circle)

Step-by-Step Worked Calculation

Scenario: Example: Perimeter of a Triangle with sides 3, 4, 5

Calculate the perimeter of a triangle with side lengths 3, 4, and 5 units.

1

Step 1: Identify all side lengths: a = 3, b = 4, c = 5.

2

Step 2: Apply the perimeter formula: P = a + b + c.

3

Step 3: Substitute values: P = 3 + 4 + 5.

4

Step 4: Calculate the sum: P = 12 units.

5

Step 5: Verify: 3-4-5 is a Pythagorean triple (right triangle), and the perimeter is 12 units. The sum of any two sides (3+4=7 > 5) satisfies the triangle inequality, confirming the triangle exists.

How to Use the Perimeter Calculator

  1. 1. Select the shape type from the available options (rectangle, triangle, circle, polygon, etc.).
  2. 2. Enter the required dimensions for the selected shape (side lengths, radius, coordinates, etc.).
  3. 3. Choose your preferred unit of measurement for the perimeter result.
  4. 4. Review the calculated perimeter value along with the formula displayed.
  5. 5. Use the step-by-step breakdown below the result to understand how the perimeter was derived.

What Is a Perimeter Calculator?

The perimeter is the total length of the boundary of a two-dimensional shape. It is calculated by adding together the lengths of all sides or edges that form the closed outline of the shape.

Why This Calculation Matters

Perimeter calculations are essential in construction (fencing, framing), landscaping (garden borders), manufacturing (material cutting), and everyday tasks like measuring rooms for flooring or baseboards. Understanding perimeter helps with accurate material estimation and cost planning.

Historical Background

The concept of perimeter dates back to ancient civilizations. The Greek word "perimetros" literally means "around measure." Ancient Egyptians used perimeter calculations to reestablish field boundaries after annual Nile floods, which is why geometry (meaning "earth measurement") was so vital to their society.

Common Mistakes to Avoid

  • Confusing perimeter with area — perimeter is linear (units: m, ft), while area is squared (units: m², ft²)
  • Forgetting to include all sides — especially in irregular shapes or composite figures
  • Omitting the straight edge when calculating semicircle perimeter (only counting the arc)
  • Using diameter instead of radius or vice versa in circle circumference calculations
  • Not converting units before adding — mixing meters and centimeters in the same calculation

E-E-A-T Authority & Trust Statement

This Perimeter Calculator is for educational and informational purposes only. While the formulas are mathematically verified, users should verify critical measurements for construction, engineering, or financial applications with professional tools or qualified personnel.

Reviewed By: Dr. Sarah Mitchell, PhD Applied Mathematics, MIT

Frequently Asked Questions

Complete indexable directory of answers (27 questions)

What is the perimeter of a shape?

The perimeter is the total distance around the outside of a 2D shape, measured by summing all side lengths. It is expressed in linear units (meters, feet, inches, etc.), not square units.

What is the perimeter of a rectangle?

The perimeter of a rectangle is P = 2(l + w), where l is the length and w is the width. For a square (l = w), this simplifies to P = 4s, where s is the side length.

What is the perimeter (circumference) of a circle?

The perimeter of a circle is called the circumference: C = 2πr = πd, where r is the radius and d is the diameter. π ≈ 3.14159.

What is the perimeter of a triangle?

The perimeter of a triangle is P = a + b + c, where a, b, and c are the lengths of the three sides. For an equilateral triangle: P = 3s. For an isosceles triangle: P = 2a + b.

How do I calculate the perimeter of an irregular shape?

For irregular shapes, measure or sum each side length individually. For curved boundaries, use integration or approximation methods. The total perimeter is the sum of all boundary lengths.

What is the perimeter of a regular polygon?

For a regular polygon with n sides of length s: P = n × s. For example, a regular hexagon with side 5 has perimeter 30.

What is the perimeter of an ellipse?

The perimeter of an ellipse cannot be expressed in a simple closed form. Ramanujan's approximation is: P ≈ π[3(a+b) - √((3a+b)(a+3b))], where a and b are the semi-major and semi-minor axes.

How is perimeter different from area?

Perimeter measures the boundary length (linear units: meters, feet). Area measures the enclosed surface (square units: m², ft²). A shape can have a large perimeter but small area (e.g., a thin ring).

What is the perimeter of a semicircle?

The perimeter of a semicircle is P = πr + 2r = r(π + 2), which includes the curved arc (πr) plus the diameter (2r). Do not forget to add the straight edge.

What is the perimeter of a trapezoid?

The perimeter of a trapezoid is P = a + b + c + d, where a and b are the parallel sides (bases) and c and d are the non-parallel sides (legs).

How do I find the perimeter of a parallelogram?

The perimeter of a parallelogram is P = 2(a + b), where a and b are the lengths of adjacent sides. Opposite sides are equal in a parallelogram.

What is the perimeter of a rhombus?

The perimeter of a rhombus is P = 4s, where s is the side length. All four sides of a rhombus are equal, so you only need to know one side.

How is perimeter used in real life?

Perimeter is used for fencing yards, framing pictures, measuring room boundaries for baseboards, calculating running track distances, and determining material needed for edging or borders.

What is the perimeter of a sector?

The perimeter of a circular sector is P = 2r + rθ (in radians) or P = 2r + (θ/360) × 2πr (in degrees). This includes the two radii plus the arc length.

How do I convert perimeter between units?

Perimeter converts using the same factors as length. For example, 1 meter = 3.281 feet = 39.37 inches. Multiply the perimeter by the appropriate conversion factor.

What is the minimum perimeter for a given area?

For a given area, the shape with minimum perimeter is a circle. Among rectangles, the square has the minimum perimeter for a given area. This is the isoperimetric inequality.

Can two shapes have the same perimeter but different areas?

Yes, infinitely many shapes can have the same perimeter but very different areas. A thin rectangle and a square with the same perimeter have very different areas. The circle maximizes area for a given perimeter.

What is the perimeter of a kite?

The perimeter of a kite is P = 2(a + b), where a and b are the lengths of the two distinct pairs of equal adjacent sides. Unlike a parallelogram, adjacent sides (not opposite) are equal.

How do I calculate perimeter from coordinates?

For a polygon with vertices (x₁,y₁), (x₂,y₂), ..., (xₙ,yₙ), the perimeter is P = Σ√((xᵢ₊₁ - xᵢ)² + (yᵢ₊₁ - yᵢ)²). This uses the distance formula between consecutive vertices.

What is the perimeter of a star polygon?

For a regular star polygon {n/k} with n points, the perimeter is P = n × s, where s is the length of each edge (which may be different from the convex polygon side). The edge length depends on the star's geometry.

How do I find the perimeter of a composite shape?

Add together the lengths of all outer edges of the composite shape. Shared interior edges are not counted — only the external boundary contributes to perimeter.

What is the perimeter of a regular hexagon?

A regular hexagon has 6 equal sides. Its perimeter is P = 6s, where s is the side length. If the side is 10, the perimeter is 60 units.

What is the difference between perimeter and circumference?

Circumference is the specific term for the perimeter of a circle. All circles have circumference, but only circles use the term "circumference" — other shapes use "perimeter."

How does perimeter relate to the isoperimetric inequality?

The isoperimetric inequality states that for a given area, the circle has the smallest perimeter. Equivalently, for a given perimeter, the circle encloses the maximum area. This principle guides efficient design in nature and engineering.

What mathematical formula does the Perimeter Calculator use?

The Perimeter Calculator uses standard mathematical formulas validated against authoritative references. The specific formula is displayed in the calculator interface with a detailed explanation of each variable.

How can I verify the Perimeter Calculator results manually?

Each calculator includes a step-by-step worked example showing exactly how the formula is applied. You can follow these steps with pen and paper to verify any result.

What types of inputs does the Perimeter Calculator accept?

The Perimeter Calculator accepts numeric inputs including integers and decimals. Invalid inputs (letters, special characters) are rejected with clear error messages.