Free Perimeter Calculator

Select a shape and enter dimensions

Understanding Perimeter and Its Use

The perimeter of any closed geometric figure is the total length of its outer boundary, measured in linear units such as meters, feet, or inches. It is a fundamental measurement that appears in countless real‑world tasks – from fencing a property to cutting a frame for a picture. Whether you need to calculate perimeter online for a quick homework check or a detailed construction plan, this geometric perimeter calculator provides immediate results for 12 common shape families, simplifying the process and minimizing errors.

Rather than memorizing formulas for every shape, you can use this shape perimeter calculator to handle the calculations. Below we present the essential perimeter formulas for each supported shape, along with helpful variations and guidance for cases when not all side lengths are known.

Perimeter Formulas at a Glance

ShapeBasic Perimeter Formula
SquareP=4aP = 4a
RectangleP=2(a+b)P = 2(a + b)
TriangleP=a+b+cP = a + b + c (base formula)
Circle (circumference)P=2πrP = 2\pi r
Circle sectorP=r(α+2)P = r(\alpha + 2) (with α\alpha in radians)
Ellipse (approximation)P≈π[3(a+b)−(3a+b)(a+3b)]P \approx \pi\left[3(a+b) - \sqrt{(3a+b)(a+3b)}\right]
Trapezoid / QuadrilateralP=a+b+c+dP = a + b + c + d
ParallelogramP=2(a+b)P = 2(a + b)
RhombusP=4aP = 4a
KiteP=2(a+b)P = 2(a + b)
AnnulusP=2π(R+r)P = 2\pi(R + r)
Regular polygonP=n×aP = n \times a

For any polygon – regular or irregular – the perimeter is simply the sum of its side lengths: P=∑i=1naiP = \sum_{i=1}^{n} a_i. If vertex coordinates are known, the distance formula can be applied: P=∑i=1n(xi+1−xi)2+(yi+1−yi)2P = \sum_{i=1}^{n} \sqrt{(x_{i+1} - x_i)^2 + (y_{i+1} - y_i)^2}, with the indices wrapping around.

Detailed Notes on Selected Shapes

Triangle

The simplest formula requires all three sides: P=a+b+cP = a + b + c. When only two sides and the included angle γ\gamma are known, use the law of cosines to find the missing side: c=a2+b2−2abcos⁡γc = \sqrt{a^2 + b^2 - 2ab\cos\gamma}, and then add the three sides. Alternatively, if one side aa and the two adjacent angles β\beta and γ\gamma are known, the law of sines gives:

asin⁡(α)=bsin⁡(β)=csin⁡(γ)\frac{a}{\sin(\alpha)} = \frac{b}{\sin(\beta)} = \frac{c}{\sin(\gamma)}

which leads to P=a+asin⁡β+sin⁡γsin⁡(β+γ)P = a + a\frac{\sin\beta + \sin\gamma}{\sin(\beta + \gamma)} (since α=180∘−β−γ\alpha = 180^\circ - \beta - \gamma).

Circle & Sector

The circumference is simply 2πr2\pi r. For a sector of angle α\alpha (radians), the perimeter includes the two radii plus the arc: P=rα+2r=r(α+2)P = r\alpha + 2r = r(\alpha + 2).

Ellipse

No exact closed‑form exists; the tool uses the well‑known Ramanujan approximation:

P≈π[3(a+b)−(3a+b)(a+3b)]P \approx \pi\left[3(a+b) - \sqrt{(3a+b)(a+3b)}\right]

where aa is the semi‑minor axis and bb the semi‑major axis. A more accurate approximation is P≈π(a+b)(1+3h10+4−3h)P \approx \pi(a+b)\left(1 + \frac{3h}{10+\sqrt{4-3h}}\right) with h=(a−b)2(a+b)2h = \frac{(a-b)^2}{(a+b)^2}.

Parallelogram

The standard formula is P=2(a+b)P = 2(a+b). If the diagonals e,fe,f and one side are given, the perimeter can be expressed as P=2a+2e2+2f2−4a2P = 2a + \sqrt{2e^2 + 2f^2 - 4a^2}. Alternatively, using base bb, height hh, and the angle α\alpha between sides: P=2(b+hsin⁡α)P = 2\left(b + \frac{h}{\sin\alpha}\right).

Rhombus

A rhombus has four equal sides, so P=4aP = 4a. When the diagonals e,fe,f are known, the side length can be derived via Pythagoras (the diagonals bisect each other at right angles): a=e2+f22a = \frac{\sqrt{e^2+f^2}}{2}, thus P=2e2+f2P = 2\sqrt{e^2+f^2}.

Regular Polygon

For an nn-sided regular polygon with side length aa, P=n×aP = n \times a. The calculator automatically recognizes polygon names up to 12 sides (e.g., pentagon, hexagon, octagon).

Annulus

The perimeter (often called the circumference) of an annulus is the sum of the inner and outer circle circumferences: P=2πrinner+2πrouter=2π(R+r)P = 2\pi r_{\text{inner}} + 2\pi r_{\text{outer}} = 2\pi(R+r).

Additional Considerations

  • Units: Because perimeter is a linear measure, the result will be in the same unit as the inputs (e.g., cm, m, ft).
  • Irregular Shapes: For any irregular polygon, simply enter the length of each side into the tool, and it will sum them.
  • Complex Curves: Shapes containing circular arcs require the arc length (radius × central angle in radians) plus the straight‑edge lengths.

For example, a triangle with sides of 5 cm, 6 cm, and 7 cm yields a perimeter of 18 cm. Selecting “Triangle” in the calculator and entering these three lengths returns the total immediately. Similarly, a rectangular plot measuring 8 m by 5 m gives a perimeter of 26 m (P=2(8+5)P = 2(8+5)).

This free geometric perimeter calculator eliminates manual arithmetic and error‑prone conversions. By selecting the shape that matches your problem and providing the required dimensions, you instantly obtain the perimeter. Whether you're studying geometry, planning a garden fence, or checking material needs, the shape perimeter calculator makes it easy to find perimeter of shapes online.

FAQ

1. How do I calculate the perimeter of a triangle if I only know two sides and the included angle?

Use the law of cosines to find the third side: c = sqrt(a^2 + b^2 - 2ab cos(gamma)). Then add the three sides together.

2. What formula does the perimeter calculator use for an ellipse?

It uses the Ramanujan approximation: P ≈ π[3(a+b) - sqrt((3a+b)(a+3b))], where a is the semi-minor axis and b is the semi-major axis.

3. Can the tool calculate the perimeter of irregular polygons?

Yes. For any irregular polygon, you can enter each side length and the calculator adds them. For curved boundaries, provide the arc length separately.

4. How do I compute the perimeter of a circle sector?

The perimeter includes the two radii plus the arc length: P = r(alpha + 2), with alpha in radians.

5. What is the formula for the perimeter of a regular polygon?

For a regular polygon with n sides of length a, the perimeter is P = n × a. The tool also shows the polygon name (e.g., pentagon, hexagon) when applicable.

How to Use

  1. Select a geometric shape from the dropdown menu to calculate its perimeter.
  2. Enter the required dimensions for your chosen shape and select the desired length unit.
  3. View the calculated perimeter instantly. Switch between different length units to see the result in your preferred format.