Home › Calculators › Perimeter Calculator

Perimeter Calculator

Pick a shape, enter its measurements and get the perimeter (the total distance around it) with the formula worked out, a labeled diagram and the area as a bonus. Results are converted to metric and imperial units.

Last updated:

Half of the longest width

Half of the shortest width

Polygon type

All sides in order, separated by commas or spaces

°
Enter your values to see the result.
Advertisement
Advertisement

How to use the Perimeter Calculator

  1. Choose the shape from the list.
  2. Choose the unit your measurements are in.
  3. Enter the measurements asked for. The fields change with the shape.
  4. Press Calculate to see the perimeter, the formula steps and the diagram.
  5. Check the unit table to read the perimeter and area in other units, or copy the results.

Perimeter formulas

ShapePerimeter formulaExample
SquareP = 4ss = 5 → P = 20
RectangleP = 2(l + w)12 × 7 → P = 38
TriangleP = a + b + c7, 8, 10 → P = 25
Right triangleP = a + b + √(a² + b²)legs 3, 4 → P = 12
CircleC = 2πr = πdr = 5 → C ≈ 31.416
SemicircleP = πr + 2rr = 5 → P ≈ 25.708
EllipseP ≈ π(a + b)(1 + 3h ÷ (10 + √(4 − 3h)))a = 8, b = 5 → P ≈ 41.38
TrapezoidP = a + b + c + d14, 8, 5, 5 → P = 32
ParallelogramP = 2(a + b)10, 6 → P = 32
Regular polygonP = n × shexagon, s = 4 → P = 24
Circle sectorP = 2r + rθ (θ in radians)r = 6, 60° → P ≈ 18.283

Practical tips

  • Fencing and edging: measure the perimeter, then subtract the width of any gates or doorways and add 5–10% for waste and overlaps.
  • Baseboards and trim: use the room's perimeter minus door openings. Irregular rooms are easiest as a polygon: list every wall length in order.
  • Keep units consistent: convert all sides to the same unit before entering them. 1 ft = 12 in = 30.48 cm, and 1 m ≈ 3.281 ft.
  • Same perimeter, different area: a 10 × 10 square and a 19 × 1 rectangle both have a perimeter of 40, but areas of 100 and 19. For a fixed perimeter, a circle encloses the most area.
  • Sides must fit: a triangle only exists if each side is shorter than the other two combined, and a polygon only closes if its longest side is shorter than the sum of the rest.

Frequently asked questions

What is perimeter?

Perimeter is the total length of the boundary of a flat shape: the distance you would walk going once all the way around it. It is measured in length units such as cm, m, inches or feet. For a circle the perimeter is called the circumference.

How do I find the perimeter of a rectangle?

Add the length and the width and double the result: P = 2(l + w). A 12 ft by 15 ft room has a perimeter of 2 × (12 + 15) = 54 ft.

How do I find the perimeter of a triangle?

Add the three sides: P = a + b + c. For a right triangle where you only know the two legs, first find the hypotenuse with c = √(a² + b²). A 3-4-5 triangle has a perimeter of 12.

What is the formula for the circumference of a circle?

C = 2πr or C = πd, where r is the radius and d the diameter, and π ≈ 3.14159. A circle with a 3 m diameter has a circumference of about 9.42 m.

What is the perimeter of a semicircle or a sector?

A semicircle's perimeter is the curved half plus the straight diameter: P = πr + 2r. A sector (pie slice) has two radii plus the arc: P = 2r + rθ, with θ in radians (degrees × π ÷ 180).

Is there an exact formula for the perimeter of an ellipse?

No simple exact formula exists; it requires an elliptic integral. This calculator uses Ramanujan's second approximation, P ≈ π(a + b)(1 + 3h ÷ (10 + √(4 − 3h))) with h = (a − b)² ÷ (a + b)², which is accurate to a tiny fraction of a percent for almost any ellipse.

What is the difference between perimeter and area?

Perimeter measures the length around a shape (units like ft), while area measures the surface inside it (square units like ft²). Use perimeter for fencing, trim, edging or baseboards, and area for flooring, paint or turf.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Area CalculatorFind the area of squares, rectangles, triangles, circles, trapezoids, ellipses and sectors.Circle CalculatorEnter a circle's radius, diameter, circumference or area and get all the others.Triangle CalculatorSolve any triangle from SSS, SAS, ASA, AAS or right-triangle values: sides, angles, area, type.Linear Feet CalculatorAdd up lengths or convert square feet to linear feet by board width, with boards and cost.Coordinate Plane PlotterPlot points, segments and polygons on an interactive coordinate grid, or print blank planes.Quilt Binding CalculatorTotal binding length, number of strips to cut and fabric yardage for any quilt size.Roofing Calculator (Roof Squares)Estimate roof area, squares, shingle bundles and cost from pitch.Square Root CalculatorFind square, cube and nth roots with simplified radical form and steps.Body Surface Area CalculatorCalculate body surface area in m² with the Du Bois, Mosteller, Haycock and other formulas.Pythagorean Theorem CalculatorSolve for the hypotenuse or a missing leg of a right triangle, with a diagram and steps.Volume CalculatorVolume of a cube, box, cylinder, sphere, cone, pyramid or capsule, in liters and gallons too.Surface Area CalculatorSurface area of a cube, box, cylinder, sphere, cone or pyramid, with lateral and base areas.Slope CalculatorSlope, angle, line equation y = mx + b and distance from two points, with a graph.Midpoint CalculatorFind the midpoint of two points in 2D or 3D, or the missing endpoint from a midpoint.Distance Formula CalculatorDistance between two points in 2D or 3D with step-by-step work and an exact radical answer.Vector Calculator2D and 3D vectors: add, subtract, dot and cross product, magnitude, angle, unit vector, projection.Pascal's Triangle GeneratorGenerate Pascal's triangle up to row 30, highlight a row and expand (ax + by)ⁿ.Trigonometry CalculatorSin, cos, tan, csc, sec, cot and inverses in degrees or radians, with exact values.Arc Length CalculatorArc length, sector area and chord from radius and angle, or solve for the radius or angle.Cylinder Volume CalculatorCylinder volume in liters, gallons and cubic units from radius or diameter, plus surface area.Regular Polygon CalculatorArea, perimeter, apothem, radius and angles of a regular polygon from any one measurement.Aquarium Volume CalculatorFish tank gallons, liters and water weight: rectangle, cylinder, bow-front and hexagon tanks.Tank Volume CalculatorTotal and filled volume of cylinder, rectangular and capsule tanks in gallons and liters.Circle Skirt CalculatorWaist radius, fabric yardage and cutting layout for full, half or quarter circle skirts.Ellipse CalculatorArea, perimeter (Ramanujan), eccentricity, foci and equation of an ellipse from its axes.Camera Field of View CalculatorAngle of view and frame size from focal length, sensor size and subject distance.Law of Sines and Cosines CalculatorSolve SSS, SAS, ASA, AAS and SSA triangles with the laws of sines and cosines, steps shown.Miter Angle CalculatorMiter saw angle for any polygon or corner, plus crown molding miter and bevel settings.Simplify Square Root CalculatorSimplify square, cube and nth roots to simplest radical form a√b, with steps.Interactive Unit CircleDrag an angle on the unit circle to see degrees, radians and exact sin, cos and tan. Printable chart.Cone Volume CalculatorVolume, slant height and surface area of a right cone from its radius and height.Point Slope Form CalculatorLine equation in point-slope form from a point and slope or two points, plus y = mx + b.Polar to Cartesian ConverterConvert polar coordinates (r, θ) to rectangular (x, y) with steps, a plot and bulk lists.Right Triangle CalculatorSolve a right triangle from any two values: sides, angles, area, perimeter and altitude.Slope Intercept Form CalculatorGet y = mx + b from two points, a point and slope, or standard form, with steps and a graph.Sphere Volume CalculatorVolume and surface area of a sphere from radius, diameter or circumference, or the reverse.Trapezoid Area CalculatorArea, perimeter, median and missing base or height of a trapezoid, with a diagram.30-60-90 Triangle CalculatorEnter one side of a 30-60-90 triangle to get the other sides, area and perimeter in exact radical form.Polygon Area from CoordinatesArea, perimeter and centroid of any polygon from its vertex coordinates (shoelace formula).Reference Angle CalculatorFind the reference angle and quadrant of any angle in degrees or radians, with a unit circle sketch.Tangent Line CalculatorFind the tangent and normal line to f(x) at a point, with the derivative, slope and a graph.45-45-90 Triangle CalculatorSolve an isosceles right triangle from a leg or hypotenuse, with sides in exact √2 form.Complementary and Supplementary Angle CalculatorComplement, supplement and explement of any angle in degrees or radians, with diagrams.Coterminal Angle CalculatorList positive and negative coterminal angles and the principal angle, in degrees and radians.Heron's Formula CalculatorFind a triangle's area from its three sides with Heron's formula, semi-perimeter and steps.Implicit Differentiation CalculatorFind dy/dx for any equation in x and y with steps, plus the slope and tangent at a point.Inverse Trig Calculatorarcsin, arccos, arctan, arcsec, arccsc and arccot in degrees and radians, with exact values.
See all 46 Geometry & Trigonometry Calculators →