Perimeter Calculator

Instantly find the perimeter of 14 shapes with step-by-step working.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

The perimeter of a flat shape is the total distance around its outer boundary — measured in the same length unit as the sides. This calculator covers 14 common shapes, applies the correct formula for each, and shows you the full substituted working so you can check or reproduce the result by hand.

Shapes covered

ShapeFormula
RectangleP = 2(w + h)
SquareP = 4s
Equilateral triangleP = 3s
Isosceles triangleP = 2a + b
Scalene triangleP = a + b + c
CircleC = 2πr
SemicircleP = r(π + 2)
EllipseP ≈ π(a+b)[1 + 3h/(10 + √(4−3h))]
TrapezoidP = a + b + c + d
ParallelogramP = 2(a + b)
RhombusP = 4s
Regular n-gonP = n · s
Circular sectorP = rθ + 2r
AnnulusP = 2π(R + r)

How it works

Each formula is derived from first principles. For straight-sided shapes, you add up every side. For shapes involving curves, arc length comes from the relationship arc = radius × angle in radians, which is the definition of the radian itself (one radian is the angle subtended by an arc equal in length to the radius).

The ellipse is the one shape that has no exact closed-form expression — only an infinite series. Ramanujan’s approximation (1914) is used here because it is accurate to better than 0.00001% for all practical ellipses:

h = (a−b)² / (a+b)²

P ≈ π(a+b) × [1 + 3h / (10 + √(4−3h))]

When a = b the ellipse becomes a circle: h = 0 and the formula collapses to 2πa, exactly matching C = 2πr. Every other formula is exact (within floating-point precision).

Worked examples

Rectangle 10 cm × 5 cm

P = 2(10 + 5) = 2 × 15 = 30 cm

Circle, radius 7 m

C = 2π × 7 = 43.982 m (4 d.p.)

Regular hexagon, side 5 cm

P = 6 × 5 = 30 cm

Circular sector, radius 5 cm, angle 60°

Convert: 60° × π/180 = 1.0472 rad. Arc = 5 × 1.0472 = 5.236 cm. P = 5.236 + 2 × 5 = 15.236 cm

Annulus, outer radius 8 cm, inner radius 5 cm

P = 2π(8 + 5) = 2π × 13 = 81.681 cm

A note on units

The calculator returns the perimeter in the unit you entered — it does not convert between unit systems. If your dimensions are in centimetres, your answer is in centimetres. To convert: 1 m = 100 cm, 1 in = 2.54 cm, 1 ft = 30.48 cm. Make sure all inputs use the same unit before calculating.

Ad placeholder (rectangle)