📏 Perimeter Calculator

Calculate the perimeter or circumference of a circle, triangle, rectangle, square, trapezoid, parallelogram or regular polygon — instantly, with the formula shown.

📏 Choose a Shape
Result
Perimeter
Formula Used
📏

Choose a shape, enter its dimensions, and calculate to see the perimeter

Guide

About the Perimeter Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This free perimeter calculator finds the perimeter or circumference of seven common shapes — circle, triangle, rectangle, square, trapezoid, parallelogram, and regular polygon — showing the exact formula behind every result. Perimeter measures the total distance around a shape's boundary, always expressed in linear units like meters, feet, or inches — never squared, unlike area. Whether you need a circumference calculator for a round tank, a perimeter of a rectangle calculator for a room, or a regular polygon perimeter calculator for a hex-shaped deck, this single tool covers every common case with the working shown.

What Perimeter Measures

Perimeter is a one-dimensional measurement of a shape's boundary — the total length you would walk if you traced every edge exactly once. Because it only sums linear distances, perimeter (and its circular special case, circumference) is always reported in the same unit you entered, unlike area, which multiplies two dimensions together and produces a squared unit. Two shapes can share an identical perimeter while enclosing very different amounts of area, which is why perimeter and area are always calculated separately.

Who Should Use This Calculator

This perimeter calculator is built for students checking geometry homework, homeowners planning fencing or edging for a yard, framers and crafters sizing trim or ribbon, contractors estimating baseboard or coping length, and athletics or landscaping professionals measuring the distance around a track or field. Anyone who needs a fast, verified perimeter or circumference calculation without manually rearranging a formula can use it.

Why Perimeter Calculations Matter

Perimeter translates directly into the amount of linear material a project needs — fencing, trim, edging, wire, or piping are all priced and purchased by length, not by area. Underestimating a perimeter means running short mid-project; overestimating wastes material and budget. Because perimeter scales linearly with a shape's size (unlike area, which scales with the square), it's also a simpler, more forgiving measurement to estimate by hand as a sanity check.

Real-World Applications

Landscapers use rectangle and polygon perimeter to size fencing and edging. Framers use rectangle perimeter for picture-frame trim and molding. Track-and-field coaches use circle circumference to measure lap distances. Contractors use trapezoid and parallelogram perimeter for baseboard on angled rooms. Students use the triangle inequality check built into this calculator to understand why not every set of three lengths forms a real triangle.

Tips for Accurate Results

  • Enter every side length or radius in the same unit — the result is reported in that same linear unit, not squared.
  • For a triangle, make sure the three sides satisfy the triangle inequality (any two sides must sum to more than the third) or no valid triangle exists.
  • Remember a trapezoid's perimeter needs all four sides, including the two slanted ones — unlike its area formula, which only needs the parallel sides and height.
  • The regular polygon formula (P = n × s) assumes every side is equal; for an irregular shape, add each side length individually.
  • Use the radius, not the diameter, when calculating a circle's circumference.
Formula

The Perimeter Formulas, Explained

How this perimeter calculator turns your dimensions into a linear-unit result, shape by shape

Circle (Circumference)
C = 2πr

Triangle
P = a + b + c

Rectangle
P = 2(l + w)

Square
P = 4s

Trapezoid
P = a + b + c + d (all four sides)

Parallelogram
P = 2(a + b)

Regular Polygon
P = n × s

Where:
r = radius of the circle; l, w = length and width of a rectangle; s = side length (square, polygon).
a, b, c(, d) = the individual side lengths of a triangle, trapezoid, or parallelogram.
n = number of sides of a regular polygon (all assumed equal in length).
📏

Always Linear Units

Every perimeter result stays in the unit you entered (m, ft, in) — no squaring, unlike area.

🔢

π in This Calculator

Circumference uses JavaScript's full-precision Math.PI (≈3.14159265358979), more accurate than 3.14 or 22/7 shortcuts.

📐

Circumference-to-Diameter Ratio

π itself is defined as a circle's circumference divided by its diameter — a constant ratio for every circle, regardless of size.

⚙️ Why These Formulas Work

Every perimeter formula here is fundamentally a sum of straight-line edge lengths. Rectangles and squares simplify the sum because opposite sides are equal, letting you multiply instead of add each one individually. Regular polygons simplify further since every side is identical. A circle has no straight edges, so its "perimeter" — circumference — instead uses the fixed ratio π between circumference and diameter to convert a radius directly into a boundary length.

🎯 When to Use Each Shape

  • Circle: round tanks, tracks, wheels, pipe circumference
  • Triangle: triangular lots, roof trusses, gussets
  • Rectangle/Square: rooms, fences, picture frames
  • Trapezoid/Parallelogram: angled yards, ramps, non-rectangular rooms
  • Regular polygon: hex decks, gazebos, octagonal tables

📋 Assumptions

  • All entered side lengths and the radius are positive real numbers in one consistent unit
  • The three sides entered for a triangle satisfy the triangle inequality
  • The regular polygon has equal side lengths on every edge
  • Trapezoid and parallelogram inputs represent straight, non-curved sides

⚠️ Limitations of the Formulas

  • Cannot sum an irregular polygon's sides automatically — each side must be entered and added manually
  • Zero, negative, or non-numeric dimensions are rejected as physically meaningless
  • Does not convert between unit systems — inputs and outputs share whatever unit you enter
  • A triangle that fails the triangle inequality returns a warning instead of a number
Walkthrough

Step-by-Step: How to Use the Perimeter Calculator

From picking a shape to reading a verified result

Choose a shape

Open the Shape dropdown and select circle (circumference), triangle, rectangle, square, trapezoid, parallelogram, or regular polygon.

Enter the required side lengths or radius

The input fields update automatically for your chosen shape, all measured in the same unit.

Click "Calculate"

The calculator applies that shape's perimeter formula — for a triangle, it first checks the triangle inequality before adding the sides.

Read the perimeter and the formula used

The result panel shows the numeric perimeter (or circumference) in linear units alongside the exact formula and substitution used.

Switch shapes anytime

Pick a different shape from the dropdown to reset the input fields and calculate another perimeter without reloading the page.

Verify the result (optional)

Add the side lengths by hand, or estimate circumference as roughly 6.28 times the radius, to sanity-check the answer.

Example

Worked Example

Finding the circumference of a circle with radius 5 — the calculator's default shape

Scenario

A circular garden bed has a radius of 5 units. How much edging is needed to go around it?

ShapeCircle
Radius (r)5
FormulaC = 2πr
Step 1 — Identify the formula: for a circle's circumference, C = 2πr.
Step 2 — Substitute r = 5: C = 2 × π × 5.
Step 3 — Multiply 2 × 5: 2 × 5 = 10.
Step 4 — Multiply by π: 10 × π ≈ 10 × 3.14159265 = 31.4159.
Step 5 — Round to 4 decimals: C ≈ 31.4159 units, matching this calculator's displayed precision.
Circumference
31.4159
Formula Used
C = 2πr
Shape
Circle

Explanation: The result stays in linear units because perimeter and circumference only sum or scale straight-line distances — no squaring involved. If the radius were measured in feet, 31.4159 would be reported in feet of edging needed. Doubling the radius to 10 exactly doubles the circumference to ≈62.8319, unlike area, which would quadruple.

Interpretation

Understanding Your Perimeter Result

Unit conventions and sanity checks for each shape

ShapeUnit ConventionSanity Check
Circle (circumference)Same linear unit as the radius enteredShould be roughly 6.28 × r — always more than 6 times the radius
TriangleSame linear unit as the three sidesMust be greater than twice the longest side (triangle inequality)
RectangleSame linear unit as length/widthShould equal 2 × (length + width), always an even multiple of that sum
SquareSame linear unit as the side lengthAlways exactly 4 × side — a quick multiplication check
TrapezoidSame linear unit as all four sidesMust be greater than the sum of just the two parallel sides
ParallelogramSame linear unit as the two adjacent sidesEqual to 2 × (side a + side b), same form as a rectangle
Regular polygonSame linear unit as the side lengthAlways exactly n × s — approaches a circle's circumference as n grows

Reading the result: the number shown is always in whatever linear unit you entered — meters stay meters, feet stay feet, with no squaring involved.

Typical ranges: perimeter should always be a positive number strictly greater than any single side (or, for a triangle, greater than twice the longest side); an error message signals an invalid or impossible input.

Manual verification: for polygons, simply add the side lengths on a calculator or by hand; for a circle, multiply the radius by roughly 6.28 (2π) as a fast mental check.

Use Cases

Practical Use Cases for the Perimeter Calculator

Where a fast, accurate perimeter calculation genuinely helps

🎓

School & college geometry

Check perimeter and circumference homework, including triangle-inequality problems.

🚧

Fencing & yard edging

Calculate the linear footage of fencing or edging needed to enclose a rectangular or polygonal yard.

🖼️

Picture framing & crafts

Determine trim, ribbon, or molding length for a rectangular or square frame border.

🏗️

Construction & baseboard

Estimate baseboard, coping, or trim length for a room, including trapezoidal or angled walls.

🏟️

Sports & track distances

Calculate the circumference of a circular or oval track for lap-distance planning.

🌾

Agriculture & field boundaries

Measure the perimeter of a rectangular or polygonal field for boundary fencing or irrigation piping.

📦

Packaging & manufacturing

Calculate edge banding or trim length for rectangular or polygonal panels and boxes.

🏞️

Land surveying

Estimate boundary length for a rectangular, trapezoidal, or triangular land parcel.

🛋️

Interior design

Plan rug binding, curtain trim, or wall molding length relative to a room's perimeter.

🌱

Landscaping & gardening

Size edging or border material for a circular, rectangular, or polygonal garden bed.

🖨️

3D printing & CAD

Estimate the outline length of a printed part's cross-section for toolpath or material planning.

🧵

Sewing & fabric crafts

Calculate binding or piping length for a rectangular or polygonal fabric panel.

🔧

Everyday DIY projects

Quickly size trim, wire, or edging for any home project shaped like a common polygon.

Pros & Cons

Advantages and Limitations

What this perimeter calculator does well, and where manual judgment is still needed

✅ Advantages

  • Free, instant, and requires no signup or account
  • Covers seven shapes and modes in a single tool, including circle circumference
  • Shows the exact formula and substitution behind every result
  • Validates triangle inputs against the triangle inequality automatically
  • Uses full-precision π rather than a rounded classroom approximation
  • Removes manual arithmetic errors from multi-side perimeter sums
  • Useful across school, landscaping, construction, and design contexts alike
  • Accepts decimal inputs for precise, real-world measurements
  • Runs entirely in your browser — no data ever leaves your device
  • Fast-loading and fully mobile-friendly
  • Consistent results every time, unlike manual formula recall
  • Free to use as many times as needed, with no calculation limit

⚠️ Limitations

  • Cannot sum an irregular polygon's sides automatically — regular polygon mode assumes equal sides
  • Does not convert between unit systems automatically
  • Displays results rounded to 4 decimal places, which can hide tiny precision differences
  • Assumes the user has correctly identified radius vs. diameter, or which sides are parallel in a trapezoid
  • Cannot detect a mismatched unit entry (e.g. one side in feet, another in meters)
  • Trapezoid mode requires all four sides, which some users may not have measured
  • Does not compute perimeter for curved or compound shapes beyond a full circle
Reference

Comparing the Shapes This Calculator Supports

Formula and typical use, side by side

ShapeFormulaTypical Use
Circle (circumference)C = 2πrRound tanks, tracks, wheels, pipe wrap
TriangleP = a + b + cTriangular lots, roof trusses, gussets
RectangleP = 2(l + w)Rooms, yards, picture frames
SquareP = 4sSquare plots, tiles, patios
TrapezoidP = a + b + c + dAngled walls, ramps, non-rectangular rooms
ParallelogramP = 2(a + b)Slanted panels, some land shapes
Regular polygonP = n × sHex decks, gazebos, octagonal tables

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Entering the diameter instead of the radius for a circle's circumference
  • Forgetting the two slanted sides of a trapezoid, entering only the parallel sides
  • Mixing units — entering one side in feet and another in inches
  • Trying to force an irregular polygon into the regular polygon formula
  • Ignoring the triangle inequality and expecting a valid result from an impossible set of three sides
  • Confusing perimeter (linear units) with area (square units) when ordering material

💡 Expert Tips & Best Practices

  • Always double-check radius vs. diameter before entering circle dimensions
  • Convert every side length to one unit system before calculating, and convert the final result if needed
  • Use the Area Calculator alongside this tool when a project needs both edge length (fencing, trim) and surface coverage (paint, sod)
  • For 3D projects, pair this with the Volume Calculator to move from an outline to a full solid
  • For an irregular real-world boundary, break it into straight segments and add each length individually
📝

Summary: This perimeter calculator gives you an instant, free way to find the perimeter or circumference of a circle, triangle, rectangle, square, trapezoid, parallelogram, or regular polygon — with the formula and substitution shown for every result. Pair it with the Area Calculator and Volume Calculator for a complete picture of a shape's edges, surface, and solid capacity.

FAQ

Frequently Asked Questions

Common questions about perimeter formulas and this perimeter calculator

What is the formula for the circumference of a circle?
C = 2πr, where r is the radius. For example, a circle with radius 5 has a circumference of 2 × π × 5 ≈ 31.42 units.
How do you find the perimeter of a triangle?
Add the lengths of all three sides: P = a + b + c. The three sides must satisfy the triangle inequality — any two sides added together must exceed the third — or no valid triangle exists.
What is the perimeter formula for a rectangle?
P = 2(l + w), where l is the length and w is the width. For a square, this simplifies to P = 4s, where s is the side length.
How do you calculate the perimeter of a regular polygon?
P = n × s, where n is the number of sides and s is the length of each side, since all sides of a regular polygon are equal.
What is the perimeter formula for a trapezoid?
P = a + b + c + d — simply add all four side lengths. Unlike a trapezoid's area formula, which only needs the two parallel sides and the height, the perimeter needs every side, including both slanted ones.
What is the perimeter formula for a parallelogram?
P = 2(a + b), where a and b are the lengths of two adjacent sides. Since opposite sides of a parallelogram are always equal, doubling the sum of one pair of adjacent sides gives the full perimeter.
What's the difference between perimeter and circumference?
Circumference is simply the name given to the perimeter of a circle. Both measure the total distance around a shape's boundary in linear units — circumference is calculated with C = 2πr instead of a polygon's side-summing formulas.
What's the difference between area and perimeter?
Perimeter measures the total distance around a shape's edges, in linear units (like meters or feet). Area measures the two-dimensional space enclosed by those edges, in square units. Two shapes can share the same perimeter but have very different areas, or vice versa.
Why does a trapezoid's perimeter need all four sides while its area only needs two?
Perimeter is the total boundary length, so every side — including both slanted, non-parallel sides — must be added. Area only depends on the two parallel sides and the perpendicular height between them, because the slanted sides don't affect how much flat space the shape encloses.
What is the triangle inequality, and why does it matter for perimeter calculations?
The triangle inequality states that the sum of any two sides must be greater than the third side. If it doesn't hold, the three lengths can't form a real triangle at all, so this calculator checks for that and shows a warning instead of computing an invalid perimeter.
Can this calculator find the perimeter of an irregular polygon?
The built-in regular polygon mode (P = n × s) only works when every side is equal. For an irregular polygon, simply add up each individual side length by hand — the sum is the perimeter regardless of whether the shape is regular.
Why does the unit of measurement matter when calculating perimeter?
Perimeter is a linear measurement, so the result is reported in the same unit you entered — feet, meters, or inches — never squared. Every side length or radius must be entered in that same consistent unit before adding them together.
How much fencing do I need for a yard shaped like a rectangle or polygon?
Measure the yard's boundary as a rectangle, regular polygon, or set of straight sides, calculate the perimeter, and that figure is the minimum linear footage of fencing required — add extra for gates, overlap, or waste as needed.
What is the relationship between a circle's circumference and its diameter?
A circle's circumference is always π times its diameter (C = πd), which is the same as 2πr since diameter equals twice the radius. This constant ratio, approximately 3.14159, is the definition of π itself.
How do you find a shape's perimeter if you only know its area?
You generally can't — area alone doesn't determine perimeter, since many different shapes can share the same area but have very different perimeters (a long thin rectangle vs. a square of equal area, for example). You need the actual side lengths or radius to compute perimeter directly.
Does doubling a shape's dimensions double its perimeter?
Yes. Unlike area, which scales with the square of a shape's linear dimensions, perimeter scales linearly — doubling every side length or the radius of a circle exactly doubles the perimeter or circumference.
Learn More

Authoritative Resources on Perimeter

Trusted educational references to go deeper on the math behind perimeter and circumference

Related Calculators

Explore other geometry tools