Perimeter Calculator

Find the perimeter of a rectangle, square, triangle, circle, parallelogram, trapezoid, polygon or ellipse in any unit, with the formula and steps shown.

Perimeter Calculator

Calculate the perimeter of various geometric shapes including rectangles, squares, triangles, circles, and polygons. Enter the required dimensions and select your shape to get instant perimeter calculations.

Shape Selection

Display Options

Perimeter Calculator: Measure the Boundary, Not the Inside

Most people reaching for a perimeter calculator assume the hard part is the arithmetic, that getting the distance around a shape is a matter of adding a few numbers and trusting the result. The real difficulty is not the sum, it is choosing what to add in the first place. A perimeter calculator that asks for length and width will not help you with a triangle, and one built for circles will not handle a trapezoid. The tool covers eight shapes, each with its own inputs, and it returns the perimeter in the linear unit you select. That is the whole point: you pick the shape, enter the measurements, and the perimeter calculator does the rest, showing the formula and the substituted values so you can see exactly how the result was worked out. If you need the distance around a shape quickly and want to understand the method, this is where you start.

How to Use the Perimeter Calculator

First, select the shape you need from the list. The calculator offers eight options, each with its own input fields. Second, choose the unit of measurement from the list, which includes meters, centimeters, millimeters, kilometers, inches, feet, yards, and miles. The result appears with the unit label, and the calculation steps show the formula and the numbers plugged in, so you can verify the work by hand if you want to.

The calculator also catches errors before they reach your final answer. If you enter three side lengths for a triangle that cannot form a valid triangle, such as 1, 1, and 5, the tool returns an error message instead of a nonsense number. The same applies to a trapezoid where the legs cannot bridge the difference between the bases. This validation is not a gimmick, it saves you from trusting a result that geometry says is impossible. For a regular polygon, you enter the number of sides and the side length. That is a fact worth remembering before you measure an oval garden bed.

If you make a mistake or change your mind, the reset button clears the fields and returns the shape selection to a rectangle with a radius of 5 pre-filled for the circle. The smooth scroll takes you back to the result container so you never lose your place. The interface is deliberately plain because the job is to get you an answer, not to decorate the page.

What Is Perimeter and Why Units Are Linear

Perimeter is the total distance around a closed shape. It is a linear measurement, meaning it is expressed in single units like meters, feet, or inches, never in square units. That last point is where many people go wrong. A fence that runs 30 meters around a yard has a perimeter of 30 meters, not 30 square meters, even though the yard inside it might be 50 square meters. The distinction matters because mixing the two is the most common error in elementary geometry homework.

Perimeter applies only to closed figures. An open line segment has no perimeter because there is nothing enclosed. A circle, which has no straight sides, still has a perimeter, but it has a special name: circumference. This is not a different concept, it is the same boundary-tracing idea applied to a curved edge.

Units are linear because you are adding lengths. The calculator asks you to pick a unit up front and applies it to the result, so you never have to convert after the fact. Just make sure all the measurements you enter are in the same unit. Mixing meters and centimeters will give you a wrong answer, and the tool will not catch that because it cannot know what you meant.

Perimeter Formulas for the Eight Shapes in the Calculator

ShapeFormulaInputs Needed
SquareP = 4 × sideSide length
RectangleP = 2 × (length + width)Length and width
TriangleP = side1 + side2 + side3All three sides
CircleC = 2πr or C = πdRadius or diameter
ParallelogramP = 2 × (base + side)Base and side
TrapezoidP = side1 + side2 + side3 + side4All four sides
Regular PolygonP = n × side lengthNumber of sides and side length
EllipseApproximation (e.g., Ramanujan)Semi-major and semi-minor axes

Find the Perimeter of a Shape: Step-by-Step Examples

To find the perimeter of a shape, you add the lengths of all its boundary segments. For a triangle with sides of 3, 4, and 5 inches, add them to get 12 inches. These are the simple cases. The calculator handles them instantly, but knowing the method helps you check the result and apply it to shapes the tool does not cover, like an irregular pentagon where you must sum each side individually.

For a regular polygon, such as a hexagon with sides of 2 feet, multiply the number of sides by the side length: 6 times 2 equals 12 feet. For a parallelogram, opposite sides are equal, so the perimeter is 2 times the base plus 2 times the side. A trapezoid has one pair of parallel sides, and its perimeter is the sum of all four sides, no special multiplication required. The ellipse is the only shape in the list without an exact formula, so the calculator uses an approximation, typically Ramanujan's, which is accurate enough for most real-world purposes.

When you have a composite shape, like an L-shaped room, break it into rectangles, find the perimeter of the whole outline by adding the outer edges, and subtract any shared walls. That subtraction step is where most people make a mistake, they add the shared wall twice. The calculator does not handle composite shapes directly, but you can use it on each rectangle and then combine the results, being careful not to double-count.

How to Calculate Perimeter Manually

For a rectangle, measure the length and width, add them, and double the sum. For a square, measure one side and multiply by four. For a triangle, measure all three sides and add them. The key is to use the same unit for every measurement before you start. If you measure one side in feet and another in inches, convert first or the answer will be wrong.

For irregular shapes, walk the boundary and measure each segment, then add them all up. Mark off each side as you go so you do not miss one or count one twice. If you are working from a grid, count the unit edges along the boundary, not the squares inside. Once you have done it a few times, you will see why the tool exists and trust its output.

Perimeter Formulas Examples for Quick Reference

Perimeter formulas examples are the fastest way to check your work. These are the numbers you can expect to see when you enter the same values into the calculator, and they serve as a sanity check for the tool's output.

For a parallelogram with a base of 9 and a side of 5, the perimeter is 2 times (9 plus 5) which equals 28. The ellipse is trickier because there is no single formula, but a common approximation for a semi-major axis of 5 and a semi-minor axis of 3 gives a perimeter of about 25.53 using Ramanujan's first approximation. The exact value is not expressible with elementary functions, so any calculator you use is giving you an approximation. Perimeter measures the distance around the outside of a shape, a one-dimensional quantity. There is no fixed ratio between them, shapes with the same area can have wildly different perimeters. The boundary of a shape is not the same as its interior, and the numbers reflect that.

Perimeter of a Triangle: More Than Just Adding Sides

The perimeter of a triangle is the sum of its three side lengths, but not every set of three numbers forms a triangle. The triangle inequality says the sum of any two sides must be greater than the third. If you enter 2, 3, and 10, the calculator rejects it because 2 plus 3 is less than 10. This is not a limitation of the tool, it is a geometric fact. The calculator enforces it so you do not get a result that is physically impossible.

For a right triangle, the hypotenuse is the longest side, opposite the right angle, and you can find it using the Pythagorean theorem if you only have two sides. But if you have all three side lengths, just add them. For an equilateral triangle, all sides are equal, so the perimeter is three times one side. For an isosceles triangle, two sides are equal, so you can use 2 times the equal side plus the base. The calculator asks for all three sides, which is the most general case, and it works for any triangle you can draw.

Circumference of a Circle: The Perimeter's Curved Cousin

The circumference of a circle is the perimeter of that circle, just with a different name. The formula is C = 2πr, where r is the radius, or C = πd, where d is the diameter. If you enter a radius of 5 meters, the circumference is about 31.42 meters.

For an ellipse, the circumference is not so simple. There is no exact formula, so the calculator uses an approximation, typically Ramanujan's first or second formula, which is accurate to a fraction of a percent for most shapes. The more eccentric the ellipse, the less accurate the simple approximations become, so for a very elongated shape, you might want to check against a more precise method, like numerical integration.

What the Calculator Does and Does Not Do

Eight shapes are covered, which is enough for the vast majority of school problems and practical tasks. It accepts units from millimeters to miles, so you can measure a coin or a field with the same tool. It shows the calculation steps, so you can see the formula and the numbers plugged in, which is useful for checking your own work or explaining it to someone else. It validates the inputs, catching impossible triangles and trapezoids before they become wrong answers.

What it does not do is handle composite shapes directly. If you have an L-shaped room, you have to break it into rectangles, calculate each part, and add the outer edges yourself. For an irregular shape with curved sides, like a wavy fence line, the calculator cannot help either, you would need to measure along the actual boundary, which is longer than the straight-line distance between endpoints. That is a real-world fact: a fence following a slope or a setback is longer than the deed dimensions suggest.

Frequently Asked Questions About Perimeter

What is the difference between perimeter and area?

Perimeter is one-dimensional and uses linear units, while area is two-dimensional and uses square units. You use perimeter for fencing and area for flooring or sod.

Can I use the calculator for irregular shapes?

The calculator handles the eight listed shapes directly. For an irregular shape, break it into smaller standard shapes, calculate each part, and add the outer edges. Be careful not to double-count shared boundaries. For a shape with curved sides, measure along the actual curve, which may be longer than a straight line.

What is the best ellipse perimeter formula?

There is no exact formula for the perimeter of an ellipse. For a very elongated ellipse, you may need a more precise method, but for a DIY oval garden bed, Ramanujan's first formula is usually good enough.

Why does the calculator reject some triangle side lengths?

The calculator checks the triangle inequality, which states that the sum of any two sides must be greater than the third. If you enter side lengths that violate this, no triangle can exist, so the tool returns an error instead of a meaningless number. This is a geometric rule, not a software bug.

Meta: The One Sentence That Cannot Appear Elsewhere

The most important caveat is that a fence following a slope or a setback is longer than the deed dimensions suggest, which means the perimeter calculator gives you the straight-line distance, not the real-world boundary length, and that difference can be significant enough to affect material orders. Plan for the extra length when buying fencing.

Frequently Asked Questions About Perimeter

How many shapes does the calculator cover?

The calculator covers eight shapes: square, rectangle, triangle, circle, parallelogram, trapezoid, regular polygon, and ellipse.

What unit options does the calculator provide?

The unit list includes meters, centimeters, millimeters, kilometers, inches, feet, yards, and miles.

Why does the calculator reject some triangle side lengths?

The calculator checks the triangle inequality, which states the sum of any two sides must be greater than the third. Entering 1, 1, and 5 returns an error because 1 plus 1 is less than 5.

Does the calculator handle composite shapes like an L-shaped room?

No, the calculator does not handle composite shapes directly. You must break an L-shaped room into rectangles, calculate each part, and add the outer edges yourself.

What formula does the calculator use for an ellipse?

The calculator uses an approximation, typically Ramanujan's first formula.56.

What happens when you enter a radius of 5 meters into the circle calculator?

The circumference is about 31.42 meters, calculated using the formula C = 2πr.

Guides on this site