30
units
—
30
units
—
The Perimeter Calculator computes the total boundary length of common geometric shapes including circles, rectangles, triangles, squares, ellipses, parallelograms, trapezoids, and circular sectors. Perimeter is a fundamental measurement that represents the distance around a two-dimensional shape, expressed in linear units.
Perimeter calculations are ubiquitous in daily life and professional practice. Construction workers measure perimeters to determine fencing requirements, baseboard lengths, and trim materials. Landscapers calculate garden border lengths, runners measure track distances, and engineers determine the circumference of wheels and gears. In manufacturing, perimeter affects material cutting, welding seam lengths, and gasket dimensions.
The simplest perimeters are sums of side lengths. A rectangle has perimeter $$P = 2(l + w)$$, a triangle has $$P = a + b + c$$, and a square has $$P = 4s$$. The circle's perimeter, called circumference, is $$C = 2\pi r$$, one of the earliest discovered relationships between a circle's radius and its boundary length. The ratio of circumference to diameter, $$\pi \approx 3.14159$$, has fascinated mathematicians for millennia.
The ellipse is unique among common shapes because its perimeter has no closed-form expression in terms of elementary functions. It requires an elliptic integral for exact computation. However, Ramanujan's approximation $$P \approx \pi[3(a+b) - \sqrt{(3a+b)(a+3b)}]$$ provides remarkable accuracy for most practical purposes, and this is the formula used by this calculator. The approximation is within 0.05% of the true value for eccentricities below 0.95.
A circular sector's perimeter includes the arc length plus two radii: $$P = 2r + r\theta$$, where $$\theta$$ is the central angle in radians. This is important for calculating the boundary of pie-shaped regions, fan blades, and sector-shaped land parcels. For a trapezoid, the perimeter is simply the sum of all four sides, requiring knowledge of all side lengths including the non-parallel sides.
The relationship between perimeter and area is a rich topic in mathematics. The isoperimetric inequality states that among all shapes with a given perimeter, the circle encloses the maximum area. This principle appears in soap bubbles (which minimize surface area for a given volume), cell biology, and optimization problems in engineering. Understanding perimeter is also essential for studying fractal geometry, where shapes like the Koch snowflake have infinite perimeter but finite area.
Each shape has a specific perimeter formula:
Circle (Circumference): $$P = 2\pi r$$
Rectangle: $$P = 2(l + w)$$
Triangle: $$P = a + b + c$$
Square: $$P = 4s$$
Ellipse (Ramanujan approximation): $$P \approx \pi\left[3(a+b) - \sqrt{(3a+b)(a+3b)}\right]$$
Parallelogram: $$P = 2(a + b)$$
Trapezoid: $$P = a + b + c + d$$ (sum of all four sides)
Circular Sector: $$P = 2r + r\theta$$ where $$\theta$$ is in radians (converted from degrees input)
The result is the total boundary length in the same units as the input dimensions. If dimensions are in meters, the perimeter is in meters. The formula display shows which formula was applied and how your values were substituted. For the ellipse, the result is an approximation (Ramanujan's formula) since no exact closed-form exists. For all other shapes, the result is exact. The perimeter of a sector includes both the curved arc and the two straight radii forming its boundary.
Inputs
Results
C = 2π × 10 = 20π ≈ 62.83 units. Only dim1 (radius) is used for circles.
Inputs
Results
P = 3 + 4 + 5 = 12 units. This is a right triangle (3-4-5 Pythagorean triple).
Perimeter is the general term for the total boundary length of any two-dimensional shape. Circumference specifically refers to the perimeter of a circle: $$C = 2\pi r = \pi d$$. The word circumference comes from Latin (circum = around, ferre = to carry). All circumferences are perimeters, but not all perimeters are circumferences.
The exact perimeter of an ellipse requires evaluating a complete elliptic integral of the second kind: $$P = 4a E(e)$$, where $$e = \sqrt{1-b^2/a^2}$$ is the eccentricity. This integral has no closed-form solution in terms of elementary functions (polynomials, exponentials, trigonometric functions). Ramanujan's approximation $$\pi[3(a+b)-\sqrt{(3a+b)(a+3b)}]$$ is highly accurate for most practical cases.
You need additional information about the shape. For a circle with area $$A$$, the radius is $$r = \sqrt{A/\pi}$$ and perimeter is $$2\pi r$$. For a square with area $$A$$, the side is $$\sqrt{A}$$ and perimeter is $$4\sqrt{A}$$. For rectangles and other shapes, knowing only the area is insufficient — infinitely many different shapes can have the same area but different perimeters.
The circle has the smallest perimeter for any given area, by the isoperimetric inequality. For area $$A$$, the minimum perimeter is $$P = 2\sqrt{\pi A}$$, achieved only by a circle. Among rectangles, the square minimizes perimeter for a given area. Among triangles, the equilateral triangle is optimal. This principle explains why soap bubbles are spherical — they minimize surface area for a given volume.
A circular sector's perimeter consists of the curved arc plus two straight radii: $$P = r\theta + 2r = r(\theta + 2)$$, where $$\theta$$ is the central angle in radians. For example, a quarter-circle (90° = π/2 radians) with radius 10 has perimeter $$10(\pi/2 + 2) = 5\pi + 20 \approx 35.71$$. The calculator converts degree input to radians automatically.
Use any consistent unit system. All dimensions for a single calculation must be in the same unit (all in cm, all in meters, all in inches, etc.). The perimeter will be in the same unit. Unlike area (which uses square units) or volume (cubic units), perimeter is a linear measurement in the same dimension as the inputs.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!