Perimeter Calculator
Calculate perimeter and circumference of shapes
What Is the Perimeter Calculator?
This calculator finds the perimeter (or circumference for a circle) of common shapes — rectangle, square, circle, and triangle — using the standard formula for each. Perimeter is one of the oldest practical measurements in geometry: it's simply the total distance you'd walk if you traced the entire boundary of a shape once around, which made it essential for surveying land, planning fences, and laying foundations long before formal geometry was written down.
Perimeter is easy to confuse with area, but they measure fundamentally different things — perimeter is a one-dimensional length (measured in units like meters or feet), while area is a two-dimensional measurement of the surface enclosed (measured in squared units). Two shapes can share the exact same perimeter and still enclose very different areas, which is why builders and designers usually need both figures, not just one.
For the enclosed surface of these same shapes, see the Area Calculator. If you're specifically working with a right triangle and need to find a missing side before computing its perimeter, the Pythagorean Theorem Calculator handles that step.
Perimeter Calculator Formula
- Rectangle: Perimeter = 2 × (Length + Width)
- Square: Perimeter = 4 × Side
- Circle: Circumference = 2 × π × Radius
- Triangle: Perimeter = Side A + Side B + Side C
How Is the Perimeter Calculator Calculated?
Perimeter is simply the total distance around the outside edge of a shape — for straight-sided shapes, that means adding up every side's length; for a circle, the circumference formula (2πr) captures the same idea for a curved boundary, since π (approximately 3.14159) is defined as the ratio of a circle's circumference to its diameter.
The rectangle and square formulas are really shortcuts for the same "add every side" logic: a rectangle has two pairs of equal sides, so 2 × (length + width) avoids writing length + width + length + width, and a square (where all four sides are equal) simplifies further to 4 × side. A triangle has no such shortcut in general, since its three sides can all differ, so its perimeter is just the direct sum a + b + c.
Perimeter Calculator Example
A rectangle with length 8 and width 5 has a perimeter of 2 × (8 + 5) = 26 units.
A circle with radius 4 has a circumference of 2 × π × 4 ≈ 25.13 units.
A triangle with sides 3, 4, and 5 has a perimeter of 3 + 4 + 5 = 12 units — this particular triangle is also a right triangle, since 3² + 4² = 5².
How to Use the Perimeter Calculator
Step 1
Select the shape you want to calculate.
Step 2
Enter the required measurements for that shape.
Step 3
Click Calculate to see the perimeter and formula used.
Step 4
Double-check that all measurements are in the same unit before entering them.
Step 5
For a circle, confirm you're entering the radius rather than the diameter.
Step 6
For a triangle, verify your three side lengths could actually form a real triangle before relying on the result.
Benefits
- Covers four common shapes in a single calculator.
- Automatically labels the result "Circumference" for circles.
- Shows the formula used alongside the result.
- Saves you from manually adding up sides or recalling the circle constant.
- Switches input fields automatically based on the shape you select.
- Produces a clean, shareable summary of your measurement for quotes or project notes.
Common Perimeter Calculator Scenarios
Scenario 1
Estimating fencing, trim, or border material needed for a space.
Scenario 2
Homework and coursework involving basic geometry.
Scenario 3
Calculating the boundary length of a garden, room, or plot of land.
Scenario 4
Figuring out how much edging or ribbon is needed to wrap around an object.
Scenario 5
Comparing the boundary length of different layout options for a fixed area.
Scenario 6
Double-checking a contractor's or supplier's measurement before ordering materials.
Understanding Your Result
The result is the total length around the outside of the shape, expressed in the same unit as your input measurements (e.g. meters if you entered meters).
Because perimeter is a one-dimensional measurement, doubling every side of a shape doubles its perimeter exactly — but it quadruples the area, since area scales with the square of the linear dimensions. Keeping that distinction in mind is useful whenever you're translating a perimeter result into a material or cost estimate that actually depends on area instead.
Tips
- Keep all measurements in the same unit before calculating.
- For a circle, make sure you enter the radius, not the diameter.
- For a triangle, check that your three sides can actually form a valid triangle.
- Remember that perimeter and area answer different questions — don't use a perimeter figure where a material or paint estimate actually needs area.
- For an irregular shape not covered here, break it into simpler rectangles or triangles and sum their outer edges manually.
Common Mistakes
- Mixing different units (like meters and centimeters) within the same calculation.
- Entering the diameter instead of the radius for a circle.
- Entering triangle sides that don't satisfy the triangle inequality (an impossible triangle).
- Confusing perimeter (a length) with area (a squared measurement) when estimating materials.
- Forgetting that a square's formula (4 × side) only applies when all four sides are truly equal.
Frequently Asked Questions
What is the difference between perimeter and circumference?
They're the same concept — the total distance around a shape's boundary. "Circumference" is simply the term used specifically for circles.
Do the triangle sides need to form a valid triangle?
Yes, for the sides to form a real triangle, the sum of any two sides must be greater than the third side (the triangle inequality).
Do I use radius or diameter for a circle's circumference?
This calculator expects the radius — if you only know the diameter, divide it by 2 first, or double your result if you accidentally entered the diameter.
Why is a square's perimeter just 4 × side?
Because all four sides of a square are equal in length, adding them together is the same as multiplying one side by 4.
Can perimeter and area use the same measurements?
Yes, the same length and width (or radius, or sides) you use for area also apply to perimeter — they simply measure different properties of the shape.
Does this calculator handle irregular polygons?
No — it covers rectangle, square, circle, and triangle only; for an irregular polygon, sum the lengths of all its sides manually.
How is perimeter used in real life?
Common uses include estimating fencing needed for a yard, trim or molding for a room, or border material for a garden bed.
Do units matter for perimeter calculations?
Yes — perimeter is a linear measurement (like meters or feet), unlike area which is measured in square units; keep all inputs in the same unit for an accurate result.
Can two shapes with the same perimeter have different areas?
Yes — shape matters, not just perimeter; among rectangles with the same perimeter, a square encloses the most area, while a very thin, elongated rectangle encloses much less.
Can I share my perimeter result as an image?
Yes — tap Share and, on supported devices, your result is shared as a branded image card, not just a text link.
Why is a circle's perimeter called circumference instead?
Circumference is simply the traditional name for the perimeter of a circle specifically — mathematically it's the identical concept (total boundary length), just with a name reserved for curved, not straight-sided, shapes.
Does doubling every side double the perimeter?
Yes — perimeter scales linearly with the shape's dimensions, so doubling every side exactly doubles the perimeter, unlike area, which would quadruple under the same change.
How do I find the perimeter of a shape not listed here, like a pentagon or trapezoid?
For any polygon, add up the lengths of all its sides — the four shapes covered here just have shortcut formulas because of their symmetry; an irregular polygon has no shortcut beyond summing every side.
Can I use this calculator's result to estimate how much paint or material I need?
Only if the material is genuinely measured along a length, like fencing, trim, or edging — for anything covering a surface (like paint or flooring), you need area instead of perimeter.
References
Important Information
Results are in the same unit as your input measurements.
Last updated: July 25, 2026