Perimeter Calculator (2024)

With this perimeter calculator, you don't need to worry about perimeter calculations anymore. Below you'll find the perimeter formulas for twelve different shapes, as well as a quick reminder about what a perimeter is and a perimeter definition. Read on, give it a try, or check this calculator's twin brother – our comprehensive area calculator.

What is perimeter?

Perimeter is the boundary of a closed geometric figure. It may also be defined as the outer edge of an area, simply the longest continuous line that surrounds a shape. The name itself comes from Greek perimetros: peri meaning "around" + metron, understood as "measure". As it's the length of the shape's outline, it's expressed in distance units – e.g., meters, feet, inches, or miles.

Perimeter Calculator (1)

How to find perimeter – perimeter formulas

Usually, the most simple and straightforward approach is to find the sum of all of the sides of a shape. However, there are cases where there are no sides (such as an ellipse, circle, etc.), or one or more sides are unknown. In this paragraph, we'll list all of the equations used in this perimeter calculator.

Scroll down to the next sections if you're curious about a specific shape, and wish to see an explanation, derivation, and image for each of the twelve shapes present in this calculator. We also have tools dedicated to each shape – just type the name of the shape in the search bar at the top of this webpage.

Here are the perimeter formulas for the twelve geometric shapes in this calculator:

  • Square perimeter formula: P=4aP = 4aP=4a.

  • Rectangle perimeter formula: P=2(a+b)P = 2(a + b)P=2(a+b).

  • Triangle perimeter formulas:

    • P=a+b+cP = a + b + cP=a+b+c; or
    • P=a+b+a2+b22ab×cos(γ)P = a + b + \sqrt{a^2 + b^2 - 2ab \times \cos(\gamma)}P=a+b+a2+b22ab×cos(γ); or
    • P=a+asin(β+γ)×(sin(β)+sin(γ))P = a + \frac{a}{\sin(\beta + \gamma)} \times (\sin(\beta) + \sin(\gamma))P=a+sin(β+γ)a×(sin(β)+sin(γ)).
  • Circle perimeter formula: P=2πrP = 2\pi rP=2πr.

  • Circle sector perimeter formula: P=r(α+2)P = r(\alpha + 2)P=r(α+2) (α\alphaα is in radians);

  • Ellipse perimeter formula: P=π[3(a+b)(3a+b)×(a+3b)]P = \pi\bigl[3(a + b) - \sqrt{(3a + b) \times (a + 3b)}\bigl]P=π[3(a+b)(3a+b)×(a+3b)];

  • Quadrilateral / Trapezoid perimeter formula: P=a+b+c+dP = a + b + c + dP=a+b+c+d.

  • Parallelogram perimeter formulas:

    • P=2(a+b)P = 2(a + b)P=2(a+b);
    • P=2a+2e2+2f24a2P = 2a + \sqrt{2e^2 + 2f^2 - 4a^2}P=2a+2e2+2f24a2; or
    • P=2(b+h/sin(α))P = 2(b + h/\sin(\alpha))P=2(b+h/sin(α)).
  • Rhombus perimeter formulas:

    • P=4aP = 4aP=4a; or
    • P=2e2+f2P = 2\sqrt{e^2 + f^2}P=2e2+f2.
  • Kite perimeter formula: P=2(a+b)P = 2(a + b)P=2(a+b).

  • Annulus perimeter formula: P=2π(R+r)P = 2\pi(R + r)P=2π(R+r).

  • Regular polygon perimeter formula: P=n×aP = n \times aP=n×a.

Perimeter of a square formula

Perimeter Calculator (2)

A square has four sides of equal length. To calculate its perimeter, all you need to do is to multiply the side length by 444:

Psquare=a+a+a+a=4a\begin{split}P_\mathrm{{square}} &= a+a+a+a\\&=4a\end{split}Psquare=a+a+a+a=4a

Believe it or not, but we have a perimeter of a square calculator, too!

Formula for the perimeter of a rectangle

Perimeter Calculator (3)

The formula for the perimeter of a rectangle is almost as easy as the equation for the perimeter of a square. The only difference is that we have two pairs of equal-length sides:

Prectangle=a+b+a+b=2a+2b=2(a+b)\begin{split}P_\mathrm{{rectangle}}& = a+b+a+b\\&=2a+2b=2(a+b)\end{split}Prectangle=a+b+a+b=2a+2b=2(a+b)

Perimeter of a triangle formula

Perimeter Calculator (4)

The easiest formula to calculate the perimeter of a triangle is – as usual – by summing all sides:

Ptriangle=a+b+cP_{\mathrm{triangle}} = a+b+cPtriangle=a+b+c

Perimeter Calculator (5)

However, you aren't always given three sides. What can you do then? Well, instead of fretting, you can use the law of cosines calculator to find the missing side:

c=a2+b22ab×cos(γ)c=\sqrt{a^2+b^2-2ab\times\cos(\gamma)}c=a2+b22ab×cos(γ)

This can be incorporated into the perimeter formula:

Ptriangle=a+b+a2+b22ab×cos(γ)\begin{split}&P_{\mathrm{triangle}} = a+b\\&+\sqrt{a^2+b^2-2ab\times\cos(\gamma)}\end{split}Ptriangle=a+b+a2+b22ab×cos(γ)

Perimeter Calculator (6)

The other option is to use the law of sines if you have one side and the two angles that are adjacent to that side:

b=sin(β)×asin(β+γ)b = \sin(\beta)\times\frac{a}{\sin(\beta+\gamma)}b=sin(β)×sin(β+γ)a

And:

c=sin(γ)×asin(β+γ)c = \sin(\gamma)\times\frac{a}{\sin(\beta+\gamma)}c=sin(γ)×sin(β+γ)a

so the triangle perimeter may be expressed as:

Ptriangle=a+asin(β+γ)×(sin(β)+sin(γ))\begin{split}P_{\mathrm{triangle}} &= a+\frac{a}{\sin(\beta+\gamma)}\\&\times(\sin(\beta)+\sin(\gamma))\end{split}Ptriangle=a+sin(β+γ)a×(sin(β)+sin(γ))

Perimeter of a circle formula (circumference formula)

Perimeter Calculator (7)

A perimeter of a circle has a special name – it's also known as the circumference. The most well-known perimeter of a circle formula uses only one variable – circle radius:

C=2π×r\mathrm{C} = 2\pi\times rC=2π×r

Have you ever wondered how many times your bike wheel will rotate on a ten-mile trip? Well, that's one of the cases where you'll need to use the circumference formula. Input the radius of your wheel (half of the wheel's diameter), and divide 10 miles by the obtained circumference (but don't forget about the conversion of the units of length!). If you want to be even more accurate, you can include the size of the bike tire.

Perimeter of a circle sector formula

Perimeter Calculator (8)

Calculating the perimeter of a circle sector may sound tricky – is it only the arc length, or is it the arc length plus two radii? Just keep in mind the perimeter definition! The sector perimeter is the sum of the lengths of all its boundaries, so it's the latter:

Pcirclesector=r×(α+2)P_{\mathrm{circle\ sector}} = r\times(\alpha+2)Pcirclesector=r×(α+2)

where α\alphaα is in radians.

Perimeter of an ellipse formula (ellipse circumference formula)

Perimeter Calculator (9)

Although the formula for the area of an ellipsis really simple and easy to remember, the perimeter of an ellipse formula is the most troublesome of all the equations listed here. We've chosen to implement one of the Ramanujan approximations in this perimeter calculator:

Pellipse=π×(3(a+b)(3a+b)×(a+3b))\begin{split}&P_\mathrm{ellipse} = \pi\times\bigl(3(a+b)\\&-\sqrt{(3a+b)\times(a+3b)}\bigr)\end{split}Pellipse=π×(3(a+b)(3a+b)×(a+3b))

Where aaa is the shortest possible radius and bbb in the longest possible radius of an ellipse. The other, more accurate Ramanujan approximation is:

Pellipse=π×(a+b)×1+3(ab)2(a+b)210+43(ab)2(a+b)2\begin{split}P_\mathrm{ellipse} =\ &\pi\times(a+b)\\&\times\frac{1+3\frac{(a-b)^2}{(a+b)^2}}{10+\sqrt{4-3\frac{(a-b)^2}{(a+b)^2}}}\end{split}Pellipse=π×(a+b)×10+43(a+b)2(ab)21+3(a+b)2(ab)2

There is also a simpler form, using an additional variable hhh:

h=(ab)2(a+b)2h = \frac{(a-b)^2}{(a+b)^2}h=(a+b)2(ab)2

That is:

Pellipse=π×(a+b)×1+3h10+43h\begin{split}P_\mathrm{ellipse} =\ &\pi\times(a+b)\\&\times\frac{1+3h}{10+\sqrt{4-3h}}\end{split}Pellipse=π×(a+b)×10+43h1+3h

Or you could just use our calculator!

Perimeter of a trapezoid formula

Perimeter Calculator (10)

If you want to calculate the perimeter of an irregular trapezoid, there's no special formula – just add all four sides:

Ptrapezoid=a+b+c+dP_{\mathrm{trapezoid}} = a+b+c+dPtrapezoid=a+b+c+d

Maybe you've noticed, but it's the formula for any quadrilateral perimeter.

There's also an option that presents itself with certain special trapezoids – like an isosceles trapezoid, where you need aaa, bbb, and ccc sides. Another example is a right trapezoid, where the length of the bases and one leg are enough to find the shape's perimeter (to find the last leg, we calculate Pythagoras' Theorem).

Perimeter of a parallelogram formula

Perimeter Calculator (11)

In this perimeter calculator, you'll find three formulas to calculate the perimeter of a parallelogram:

  1. The most straightforward one, adding all sides together:

Pparallelogram=a+b+a+b=2(a+b)\quad\ \ \begin{split}P_{\mathrm{parallelogram}} &= a+b+a+b\\&=2(a+b)\end{split}Pparallelogram=a+b+a+b=2(a+b)

Perimeter Calculator (12)
  1. The perimeter of a parallelogram formula that requires one side and diagonals

Pparallelogram=2a+2e2+2f24a2\quad\ \ \begin{split}&P_{\mathrm{parallelogram}} = 2a\\&\qquad \ \ \ +\sqrt{2e^2+2f^2-4a^2}\end{split}Pparallelogram=2a+2e2+2f24a2

Perimeter Calculator (13)
  1. The perimeter is given in terms of base, height, and any parallelogram angle.

Pparallelogram=2(b+hsin(α))\ \ \ P_{\mathrm{parallelogram}} = 2\left(b+\frac{h}{\sin(\alpha)}\right)Pparallelogram=2(b+sin(α)h)

Perimeter of a rhombus formula

Perimeter Calculator (14)

The perimeter of a rhombus formula is not rocket science, so let's make it concise – it's the same as the perimeter of a square formula!

Prhombus=4aP_{\mathrm{rhombus}} = 4aPrhombus=4a

Perimeter Calculator (15)

Another solution to finding the rhombus perimeter requires the diagonal lengths:

Prhombus=2×e2+f2P_{\mathrm{rhombus}} = 2\times\sqrt{e^2+f^2}Prhombus=2×e2+f2

Try deriving the formula yourself. You know that the two diagonals of a rhombus are perpendicular to and bisect each other so that you can divide the shape into four congruent right triangles. Each triangle has legs that are e/2 and f/2 long – all you need to do is find the triangle's hypotenuse, which is, at the same time, the rhombus side. Then multiply the result by four to find the final perimeter of a rhombus formula.

Perimeter of a kite formula

Perimeter Calculator (16)

The formula for the perimeter of a kite is pretty straightforward – just sum up all of the sides:

Pkite=a+a+b+b=2(a+b)\begin{split}P_{\mathrm{kite}} &= a+a+b+b\\&=2(a+b)\end{split}Pkite=a+a+b+b=2(a+b)

Perimeter of an annulus formula

Perimeter Calculator (17)

As the perimeter is defined as the boundary, an annulus requires us to add the circumference of both concentric circles:

Pannulus=2π×R+2π×r=2π×(R+r)\begin{split}P_{\mathrm{annulus}} &= 2\pi \times R+2\pi\times r\\&=2\pi\times (R+r)\end{split}Pannulus=2π×R+2π×r=2π×(R+r)

Perimeter of a polygon formula (regular pentagon, hexagon, octagon, etc.)

Perimeter Calculator (18)

In our perimeter calculator, we've also implemented a simple formula for a regular polygon perimeter:

Ppolygon=n×aP_{\mathrm{polygon}}=n\times aPpolygon=n×a

where nnn is the number of polygon sides. So, for example, you can calculate the perimeter of a pentagon, hexagon, or octagon.

Additionally, for polygons up to 12 sides, the polygon name will appear in the tool. Awesome!

If you want to determine the perimeter of any polygon, sum the lengths of all its sides:

Ppolygon=aiP_{\mathrm{polygon}} = \sum a_iPpolygon=ai

where a1a_1a1, a2a_2a2, ..., ana_nan are sides lengths, and \sum is the sum symbol (from i=1i = 1i=1 to nnn).

Or use the vertices coordinates:

Ppolygon=i=1n((xi1xi)2+(yi1yi)2)\begin{split}P_{\mathrm{polygon}} = &\sum_{i=1}^n\Bigl((x_{i-1}-x_i)^2\\&\qquad +(y_{i-1}-y_i)^2\Bigr)\end{split}Ppolygon=i=1n((xi1xi)2+(yi1yi)2)

With xn+1=x1x_{n+1}=x_1xn+1=x1 and yn+1=y1y_{n+1}=y_1yn+1=y1.

FAQ

How do I calculate the perimeter of irregular shapes?

To find the perimeter of an irregular figure:

  1. Measure the lengths of all (outer) sides.
  2. If the sides include circular fragments, measure the radius and the central angle, i.e., the angle between the radii that join the two endpoints of the arc to the center.
  3. Apply the circle circumference formula for this radius and take the part proportional to the angle.
  4. Add together the length of all sides.

Can I determine area given perimeter?

In general, no, it's not possible to calculate area from the perimeter. This is particularly true for rectangles, parallelograms, kites, and trapezoids. However, for some specific shapes, like squares, hexagons, regular polygons in general, and circles, you can determine their side (radius in the case of circles) from the perimeter and then proceed to compute the area.

What is the perimeter of a 20m by 15m rectangular building?

The perimeter is 70 m. To arrive at this result, you need to add together the length of all four sides of the building. Two sides of length 20 m added together give 40 m, while the other two sides of length 15 m added together give 30 m. Together, we get 40 m + 30 m = 70 m, as claimed.

Perimeter Calculator (2024)

References

Top Articles
Latest Posts
Article information

Author: Clemencia Bogisich Ret

Last Updated:

Views: 6175

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Clemencia Bogisich Ret

Birthday: 2001-07-17

Address: Suite 794 53887 Geri Spring, West Cristentown, KY 54855

Phone: +5934435460663

Job: Central Hospitality Director

Hobby: Yoga, Electronics, Rafting, Lockpicking, Inline skating, Puzzles, scrapbook

Introduction: My name is Clemencia Bogisich Ret, I am a super, outstanding, graceful, friendly, vast, comfortable, agreeable person who loves writing and wants to share my knowledge and understanding with you.