Perimeter formulas for common shapes
- Rectangle: P = 2(l + w).
- Square: P = 4s.
- Triangle: P = a + b + c (sum of all three sides). For right triangles, the hypotenuse c = √(a² + b²) via the Pythagorean theorem.
- Circle (circumference): C = 2πr = πd.
- Regular polygon with n sides of length s: P = ns — a regular hexagon with 5-inch sides has P = 30 inches.
- Ellipse (approximate): P ≈ π[3(a+b) - √((3a+b)(a+3b))] using Ramanujan's formula, where a and b are semi-major and semi-minor axes.
- Parallelogram: P = 2(a + b) where a and b are adjacent sides.
- Trapezoid: P = a + b + c + d (sum of all four sides).
For irregular shapes, measure each side segment individually and sum.