Perimeter Calculator
Calculate perimeter instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods. Free to use with no signup required.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Perimeter Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Rectangle: P = 2(l+w) | Circle: C = 2*pi*r | Triangle: P = a+b+c | Regular Polygon: P = ns
Worked example โ Perimeter: 86 meters of fencing needed
Formula
Rectangle: P = 2(l+w) | Circle: C = 2*pi*r | Triangle: P = a+b+c | Regular Polygon: P = ns
Each shape has its own perimeter formula. For polygons, add all side lengths. For circles, use the circumference formula with pi. For ellipses, use Ramanujan approximation.
Worked Examples
Example 1: Fencing a Rectangular Yard
Problem:A homeowner needs fencing for a rectangular yard measuring 25 meters by 18 meters. How much fencing is needed?
Solution:Shape: Rectangle Length (a) = 25 m, Width (b) = 18 m P = 2(l + w) = 2(25 + 18) = 2 x 43 = 86 m Area = 25 x 18 = 450 sq m
Result:Perimeter: 86 meters of fencing needed
Example 2: Running Track Circumference
Problem:A circular running track has a radius of 50 meters. What is the distance of one complete lap?
Solution:Shape: Circle Radius = 50 m C = 2 x pi x r = 2 x 3.14159 x 50 C = 314.159 m Area = pi x r^2 = 7,853.98 sq m
Result:Circumference: 314.16 meters per lap
Frequently Asked Questions
What is a perimeter and how is it calculated?
The perimeter is the total distance around the outside boundary of a two-dimensional shape. It is calculated by adding up the lengths of all sides of a polygon, or using specific formulas for curved shapes. For a rectangle, the perimeter equals two times the sum of length and width: P = 2(l + w). For a square, it simplifies to P = 4s since all sides are equal. For a triangle, you simply add all three sides: P = a + b + c. For a circle, the perimeter is called the circumference and is calculated as C = 2 times pi times the radius. Understanding perimeter is fundamental in mathematics and has practical applications in fencing, framing, border installation, running track measurements, and many construction and landscaping projects.
What is the difference between perimeter and area?
Perimeter and area are both measurements of two-dimensional shapes but they measure fundamentally different properties. Perimeter measures the total length of the boundary or outline of a shape and is expressed in linear units like meters, feet, or centimeters. Area measures the total space enclosed within the boundary of a shape and is expressed in square units like square meters, square feet, or square centimeters. Two shapes can have the same perimeter but very different areas, and vice versa. For example, a 10x1 rectangle and a 4x7 rectangle both have a perimeter of 22 units, but their areas are 10 and 28 square units respectively. This distinction is important in real-world applications: you need perimeter to calculate fencing material but area to calculate flooring material.
How do you calculate the perimeter of irregular shapes?
Calculating the perimeter of irregular shapes requires measuring each side individually and summing all the lengths. For polygonal irregular shapes with straight sides, simply measure each side with a ruler, tape measure, or coordinate geometry and add them together. For shapes with curved boundaries, you can approximate the perimeter by dividing the curve into small straight segments and summing their lengths, a method related to calculus concepts. In coordinate geometry, if you know the vertices of an irregular polygon, use the distance formula between consecutive points: d = sqrt((x2-x1)squared + (y2-y1)squared). For practical applications like measuring an irregular garden plot, you can use a flexible measuring tape along the boundary, a measuring wheel, or GPS-based measurement tools that track the path around the perimeter.
What is the perimeter formula for a regular polygon?
A regular polygon has all sides of equal length and all interior angles equal. The perimeter formula is simply P = n times s, where n is the number of sides and s is the length of each side. This works because every side is identical. For common regular polygons: an equilateral triangle (n=3) has P = 3s, a square (n=4) has P = 4s, a regular pentagon (n=5) has P = 5s, a regular hexagon (n=6) has P = 6s, and so on. If you know the apothem (distance from center to midpoint of a side) instead of the side length, you can calculate the side length using s = 2 x apothem x tan(pi/n). As the number of sides increases, a regular polygon approaches a circle, and its perimeter approaches the circumference formula 2 times pi times r.
How is the perimeter of an ellipse calculated?
Unlike the circle which has the simple circumference formula C = 2 times pi times r, there is no exact closed-form formula for the perimeter of an ellipse using elementary functions. The exact perimeter requires evaluating an elliptic integral, which involves advanced calculus. However, several excellent approximations exist for practical use. The most commonly used is Ramanujan's approximation: P is approximately equal to pi times (3(a+b) minus the square root of (3a+b)(a+3b)), where a and b are the semi-major and semi-minor axes. This formula is accurate to within 0.04% for most ellipses encountered in practical applications. Another simpler but less accurate approximation is P approximately equals pi times the square root of 2(a squared + b squared). For highly eccentric ellipses, more precise infinite series expansions are available.
What are some real-world applications of perimeter calculations?
Perimeter calculations are essential in many practical situations. In construction, you need the perimeter to determine how much fencing, baseboard, crown molding, or weatherstripping to purchase. Landscapers use perimeter to calculate the amount of edging material for garden beds and walkways. Architects calculate building perimeters for exterior cladding and gutter estimates. In sports, track perimeters determine race distances. Farmers use field perimeters for fence planning and irrigation border design. Even in everyday tasks like framing a picture or sewing a hem, perimeter is the key measurement needed.
How do you find the perimeter when you only know the area?
You cannot determine the perimeter from the area alone for most shapes, because many different shapes can share the same area but have very different perimeters. However, if you know both the area and the type of shape, you can sometimes work backward. For a square with area A, the side length is the square root of A, so the perimeter is 4 times the square root of A. For a circle with area A, the radius is the square root of A divided by pi, so the circumference is 2 times pi times that radius. For rectangles, you need additional information such as the length-to-width ratio to determine the perimeter from the area.
What is the isoperimetric inequality and why does it matter?
The isoperimetric inequality is a fundamental mathematical principle stating that among all closed curves with the same perimeter, the circle encloses the greatest area. Conversely, among all shapes with the same area, the circle has the smallest perimeter. This principle has important practical implications. For example, if you have a fixed length of fencing and want to enclose the maximum possible area, you should build a circular enclosure. This is why bubbles are spherical and why many storage tanks are cylindrical. The principle extends to three dimensions, where the sphere has the smallest surface area for a given volume.
How do units affect perimeter calculations?
Perimeter is always measured in linear units such as meters, feet, inches, or centimeters, unlike area which uses square units. When performing calculations, all side measurements must be in the same unit before adding them together. To convert a perimeter from one unit to another, simply multiply by the appropriate conversion factor, such as 2.54 centimeters per inch or 3.281 feet per meter. It is a common mistake to confuse perimeter units with area units, so always double-check that your answer is in linear units and not accidentally squared.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎCircle Sector Perimeter Calculator
Calculate circle sector perimeter with inputs, formulas, and instant results.
๐งฎPerimeter of a Triangle Calculator
Calculate perimeter of atriangle with inputs, formulas, and instant results.
๐งฎArea of a Rectangle Calculator
Calculate the area, perimeter, and diagonal of a rectangle. Find missing sides from known area. Convert between metric and imperial area units.
๐งฎ30-60-90 Triangle Calculator
Solve a 30-60-90 triangle from any one side. Get the short leg, long leg, hypotenuse, area, and perimeter instantly.
๐งฎ45-45-90 Triangle Calculator
Solve a 45-45-90 triangle from a leg or the hypotenuse. Get both equal legs, the hypotenuse, area, and perimeter with instant results.
๐งฎTrapezoid Area Calculator
Calculate the area, perimeter, and height of a trapezoid from base and side lengths.
๐งฎRhombus Calculator
Calculate area, perimeter, and diagonals of a rhombus from side and angle.
๐งฎRegular Polygon Calculator
Calculate area, perimeter, interior angles, and apothem of any regular polygon.