Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Perimeter calculator

Pick a shape and enter its measurements to get the perimeter, the distance all the way around, with the formula and working.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Need the space inside? Use the area calculator. Just a circle? The circle calculator gives every measurement.

Perimeter formulas

The perimeter is the length of a shape's boundary: the distance all the way around it. For a circle it's called the circumference.

ShapePerimeter
Square, side a4a
Rectangle, sides a and b2(a + b)
Triangle, sides a, b, ca + b + c
Circle, radius r (diameter d)2πr = πd
Any polygonthe sum of its sides
Regular polygon, n sides of length sn × s
…from circumradius Rn × 2R sin(π ÷ n)
…from inradius rn × 2r tan(π ÷ n)

Worked examples

  • Rectangle 8 by 3: 2 × (8 + 3) = 22.
  • Circle with radius 5: 2 × π × 5 = 10π ≈ 31.4159.
  • Regular hexagon with circumradius 4: each side is 2 × 4 × sin(π ÷ 6) = 2 × 4 × 0.5 = 4, so the perimeter is 6 × 4 = 24. (A regular hexagon's side always equals its circumradius.)
  • Square from its circumradius 1: side = 2 × sin(45°) = √2 ≈ 1.41421, perimeter ≈ 5.65685.

Checking a triangle

Three lengths only make a triangle if each one is shorter than the other two added together (the triangle inequality). Sides 1, 2 and 3 fail, because 1 + 2 is not more than 3: they would lie flat in a line.

Tips

  • Use one unit. Convert feet and inches to one unit before adding, or every side will be off.
  • Perimeter isn't area. Fencing, trim and baseboards are measured by perimeter; flooring and paint by area.
  • Curved shapes: for an ellipse or irregular curve there's no simple exact formula; measure along the edge or split it into short straight pieces.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • Rectangle 8 × 3: 2 × (8 + 3) = 22 ✓
  • Triangle 3, 4, 5: 12 ✓
  • Circle of radius 5: 2π × 5 = 31.4159 ✓
  • Polygon with sides 3, 4, 5, 6: 18 ✓
  • Regular hexagon with circumradius 4: side 4, perimeter 24 ✓
  • Square with circumradius 1: side √2, perimeter 5.65685 ✓
  • Edge: sides 1, 2, 3 can't make a triangle ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How do you find the perimeter of a rectangle?

Add the length and width and double it: P = 2(l + w). A 12 × 10 ft room has a perimeter of 44 ft.

What is the perimeter of a circle called?

The circumference. It's 2πr, or π times the diameter. A circle 10 inches across has a circumference of about 31.42 inches.

How do you find the perimeter of a triangle?

Add the three sides. A triangle with sides 3, 4 and 5 has a perimeter of 12.

What is the perimeter of a regular hexagon?

Six times the side length. Because a regular hexagon's side equals its circumradius, a hexagon with corners 4 units from the center has a perimeter of 24.

Is perimeter the same as area?

No. Perimeter is the distance around a shape, in units like feet. Area is the space inside, in square units like square feet.

Related calculators