# Perimeter Calculator

URL: https://speedycalculator.com/calculators/math/perimeter/
Last updated: 2026-11-08

> The perimeter calculator finds the distance around 13 shapes (square, rectangle, triangle, circle, semicircle, sector, ellipse, trapezoid, parallelogram, rhombus, kite, annulus and regular polygon).

## Inputs

- Shape
- Side length a (cm, m, mm, in, ft, yd, km, mi)
- Length a (cm, m, mm, in, ft, yd, km, mi)
- Width b (cm, m, mm, in, ft, yd, km, mi)
- Side a (cm, m, mm, in, ft, yd, km, mi)
- Side b (cm, m, mm, in, ft, yd, km, mi)
- Side c (cm, m, mm, in, ft, yd, km, mi)
- Side d (cm, m, mm, in, ft, yd, km, mi)
- Radius r (cm, m, mm, in, ft, yd, km, mi)
- Central angle α (°, rad, π rad, grad, turn)
- Semi-axis a (cm, m, mm, in, ft, yd, km, mi)
- Semi-axis b (cm, m, mm, in, ft, yd, km, mi)
- Outer radius R (cm, m, mm, in, ft, yd, km, mi)
- Inner radius r (cm, m, mm, in, ft, yd, km, mi)
- Number of sides n

## Results

- Perimeter

## Formula

```
Square 4a · Rectangle 2(a + b) · Triangle a + b + c · Circle 2πr · Semicircle πr + 2r
Sector 2r + rα · Ellipse ≈ π(a + b)(1 + 3h/(10 + √(4 − 3h))), h = ((a − b)/(a + b))²
```

## Explanation

The perimeter is the length of the boundary of a shape: how much fence a garden needs, how much trim goes round a room or how far a runner goes round a track. For circles it is called the circumference.

### How to use the Perimeter Calculator

- **Shape**
- **Side length a**
- **Length a**
- **Width b**
- **Side a**
- **Side b**
- **Side c**
- **Side d**
- **Radius r**
- **Central angle α**
- **Semi-axis a**
- **Semi-axis b**
- **Outer radius R**
- **Inner radius r**
- **Number of sides n**

Results update as you type, and everything is calculated in your browser.

### How it works

Choose the shape and enter its dimensions. Straight-sided shapes simply add their sides. Ellipses have no exact elementary formula, so Ramanujan's second approximation is used, which is accurate to a few parts per billion for most ellipses.

### Inputs explained

FieldWhat to enterShapeChoose one: Square, Rectangle, Triangle (three sides), Circle …Side length aUnits: cm, m, mm, in, ft, yd …Length aUnits: cm, m, mm, in, ft, yd …Width bUnits: cm, m, mm, in, ft, yd …Side aUnits: cm, m, mm, in, ft, yd …Side bUnits: cm, m, mm, in, ft, yd …Side cUnits: cm, m, mm, in, ft, yd …Side dUnits: cm, m, mm, in, ft, yd …Radius rUnits: cm, m, mm, in, ft, yd …Central angle αUnits: °, rad, π rad, grad, turnSemi-axis aUnits: cm, m, mm, in, ft, yd …Semi-axis bUnits: cm, m, mm, in, ft, yd …Outer radius RUnits: cm, m, mm, in, ft, yd …Inner radius rUnits: cm, m, mm, in, ft, yd …Number of sides nA number

### Example values

How the main result changes when **Side length a** changes and everything else stays at the example values above:

Side length a (cm)Perimeter (cm)2.5263.75265266.25267.5261026

## Worked example

Inputs: Shape: Rectangle; Length a: 8 cm; Width b: 5 cm.

Results: **Perimeter = 26 cm**.

## Key terms

- **Perimeter**: The total length of a shape's boundary.

## FAQ

**What is the difference between perimeter and area?**
Perimeter is the length around a shape; area is the surface inside it.

**Is circumference the same as perimeter?**
Yes. Circumference is the perimeter of a circle.

**Why is the ellipse perimeter approximate?**
It needs an elliptic integral; Ramanujan's formula is extremely close.

**How much fencing does a 10 m × 6 m garden need?**
2 × (10 + 6) = 32 m.


## Sources

- [OpenStax: Prealgebra 2e](https://openstax.org/details/books/prealgebra-2e)
- [OpenStax: Algebra and Trigonometry 2e](https://openstax.org/details/books/algebra-and-trigonometry-2e)
- [Wolfram MathWorld: Perimeter](https://mathworld.wolfram.com/Perimeter.html)
