... LIVE

Formula: P = 2(length + width)

Any unit (cm, m, ft, in)Enter a valid length.
Same unit as lengthEnter a valid width.
Perimeter
--
⚠️ Note: Result is in the same unit as your input dimensions.

Formula: P = 4s (all four sides equal)

Length of one sideEnter a valid side length.
All 4 sides are equal
Perimeter
--
⚠️ Note: Result is in the same unit as your input dimension.

Formula: P = a + b + c (sum of all three sides). For right triangles, leave side C blank to calculate hypotenuse automatically.

First sideEnter side A.
Second sideEnter side B.
Leave blank for right triangle
Perimeter
--
⚠️ Note: If side C is blank, hypotenuse is calculated via Pythagorean theorem (assumes right triangle).

Formula: C = 2πr = πd. Enter radius OR diameter.

Distance from center to edge
Full width across center (= 2r)Enter radius or diameter.
Circumference
--
⚠️ Note: Uses pi = 3.14159265. Result in the same unit as your input.

Formula: P = n × s (number of sides × side length). For regular polygons only (all sides equal).

e.g. 5 = pentagon, 6 = hexagonEnter number of sides (min 3).
Length of one sideEnter a valid side length.
Perimeter
--
⚠️ Note: Applies to regular polygons (all sides and angles equal). For irregular polygons, add all sides individually.

📚 Sources & Methodology

All formulas follow established Euclidean geometry:

Perimeter Calculator — All Shapes with Formulas

What is Perimeter?

Perimeter is the total distance around the outside boundary of a two-dimensional shape. It is measured in linear units (centimeters, meters, feet, inches) — the same units as the side lengths. Perimeter is used whenever you need to measure an outline: fencing a yard, framing a picture, laying a garden border, or trimming a carpet.

The key distinction: perimeter measures the outside edge (linear units), while area measures the inside space (square units). A 4 ft × 6 ft rectangle has a perimeter of 20 ft but an area of 24 sq ft. They answer different questions.

Perimeter of a Rectangle — Formula and Examples

The perimeter of a rectangle equals twice the sum of its length and width: P = 2(l + w). This works because a rectangle has two pairs of equal sides — two lengths and two widths.

Rectangle Perimeter Formula
P = 2(length + width) = 2l + 2w Example 1: 8 cm × 5 cm → P = 2(8+5) = 26 cm Example 2: 12 ft × 9 ft → P = 2(12+9) = 42 ft Example 3: 1.5 m × 0.8 m → P = 2(1.5+0.8) = 4.6 m

Perimeter of a Square

A square has four equal sides, so its perimeter is simply four times the side length: P = 4s. If you know the area of a square, find the side first: s = √area, then P = 4s.

Square Perimeter Formula
P = 4s (four equal sides) Example 1: side = 7 m → P = 4 × 7 = 28 m Example 2: area = 25 cm² → side = √25 = 5 cm → P = 20 cm

Perimeter of a Triangle

The perimeter of any triangle is the sum of all three sides: P = a + b + c. For a right triangle where only two legs are known, the hypotenuse is calculated using the Pythagorean theorem: c = √(a² + b²).

Triangle TypeFormulaExample
Scalene (all sides different)P = a + b + c3+5+7 = 15
Isosceles (2 equal sides)P = 2a + b2(6)+4 = 16
Equilateral (all equal)P = 3s3×8 = 24
Right (legs known)P = a+b+√(a²+b²)3+4+5 = 12

Circumference of a Circle

The circumference is the perimeter of a circle — the distance around its edge. Formula: C = 2πr = πd, where r is the radius and d is the diameter. Pi (π) = 3.14159265...

Circle Circumference Formula
C = 2 × π × r (using radius) C = π × d (using diameter) Example 1: r = 5 cm → C = 2 × 3.14159 × 5 = 31.42 cm Example 2: d = 14 m → C = 3.14159 × 14 = 43.98 m Reverse: r = C / (2π) | d = C / π

Perimeter of a Regular Polygon

A regular polygon has all sides equal and all angles equal. Its perimeter is simply: P = n × s, where n is the number of sides and s is the side length. This applies to pentagons (5), hexagons (6), octagons (8), and any regular shape.

ShapeSidesFormulaExample (side=4)
Triangle33s12
Square44s16
Pentagon55s20
Hexagon66s24
Heptagon77s28
Octagon88s32

❓ Frequently Asked Questions

Perimeter of a rectangle = 2(length + width). For an 8 cm × 5 cm rectangle: P = 2(8+5) = 26 cm. This accounts for all four sides — two lengths and two widths. The rectangle perimeter tab above calculates this instantly.
Perimeter of a square = 4 × side length. For a square with side 7 m: P = 4 × 7 = 28 m. To find the side from area: s = square root of area. From perimeter: s = P / 4.
Perimeter of a triangle = a + b + c (sum of all three sides). For a right triangle with legs 3 and 4: hypotenuse = sqrt(9+16) = 5, so P = 3+4+5 = 12. The triangle tab calculates hypotenuse automatically if you leave side C blank.
Circumference is the perimeter of a circle. Perimeter is used for polygons (straight sides), circumference for circles. Formula: C = 2πr = πd. For radius 5: C = 2 × 3.14159 × 5 = 31.42 units.
Perimeter = distance around the outside (linear units: cm, m, ft). Area = space inside (square units: cm², m², ft²). A 4×6 rectangle: perimeter = 20 ft, area = 24 ft². They measure completely different properties.
You cannot find perimeter from area alone without knowing at least one dimension. Different shapes can have the same area but different perimeters. For a rectangle: if you know area and one side, find the other side (w = area / l), then P = 2(l+w). For a square: side = sqrt(area), then P = 4 × side.
Perimeter of a regular polygon = n × s (sides × side length). Hexagon with side 4 cm: P = 6 × 4 = 24 cm. Pentagon with side 10 m: P = 5 × 10 = 50 m. For irregular polygons, add all side lengths individually.
Perimeter is always in linear units — the same units as the side lengths. If sides are in centimeters, perimeter is in centimeters. Never in square units. Common conversions: 1 ft = 12 in = 30.48 cm. 1 m = 100 cm = 3.281 ft.
Radius = circumference / (2π). If C = 31.42 cm: r = 31.42 / 6.2832 = 5 cm. Diameter = C / π. This is useful when measuring a cylindrical object with a tape measure to find its radius.
Perimeter of a semicircle = πr + 2r = r(π + 2). This includes the curved arc (half of full circumference = πr) plus the flat diameter (2r). For r = 7 cm: P = 7(3.14159 + 2) = 7 × 5.14159 = 35.99 cm.
Perimeter is used whenever you need to measure an outline: fencing a yard, framing a picture, installing baseboard trim, laying a garden border, sewing fabric edges, or calculating material for any border. Area is used for flooring, paint, and space. Edge or border = perimeter. Surface = area.
Hypotenuse = sqrt(5²+12²) = sqrt(25+144) = sqrt(169) = 13. Perimeter = 5+12+13 = 30 units. This is a classic Pythagorean triple (5-12-13). Enter 5 and 12 into the Triangle tab above and leave side C blank to verify.

🔗 Related Math Calculators

🔥 Popular Calculators

🧮

Missing a Math Calculator?

We are building hundreds of math calculators. Request anything you need.