Skip to content

Perimeter Formula for Every Shape, with Circumference

10 formulasCalculatorUpdated 22 Oct 2026

The perimeter formula for any straight-sided shape is simple: add the lengths of all its sides, P=sum of sidesP = \text{sum of sides}; for a circle the boundary is called the circumference and C=2πr=πdC = 2\pi r = \pi d. A rectangle 18 cm by 7 cm, for instance, has a perimeter of 2(18+7)=502(18 + 7) = 50 cm.

Below you get the ready formulas for the triangle, square, rectangle, circle, semicircle, sector and regular polygons, what every letter means, solved problems on fencing and wheels, and the traps examiners like to set. The area and perimeter calculator below gives both values together, so you can check your working.

Perimeter formula

Key formulas

  • Perimeter of triangle

    P=a+b+cP = a + b + c
  • Perimeter of square

    P=4aP = 4a
  • Perimeter of rectangle

    P=2(l+b)P = 2(l + b)

    l is the length, b the breadth

  • Circumference of circle

    C=2πr=πdC = 2\pi r = \pi d
  • Perimeter of semicircle

    P=πr+2r=r(π+2)P = \pi r + 2r = r(\pi + 2)
  • Arc length

    L=θ360∘×2πrL = \dfrac{\theta}{360^\circ} \times 2\pi r

    θ in degrees

  • Perimeter of sector

    P=2r+θ360∘×2πrP = 2r + \dfrac{\theta}{360^\circ} \times 2\pi r
  • Regular polygon

    P=n×aP = n \times a

    n sides, each of length a

  • Rhombus and parallelogram

    Prhombus=4a,Pparallelogram=2(a+b)P_{\text{rhombus}} = 4a, \quad P_{\text{parallelogram}} = 2(a+b)

    a and b are the two different side lengths

  • Semi-perimeter of triangle

    s=a+b+c2s = \dfrac{a+b+c}{2}

What perimeter means and the general perimeter formula

Imagine walking once around the edge of a park and measuring every step. The total distance is its perimeter. Because it is a length, its unit is cm, m or km, never square units. The word comes from Greek: "peri" means around and "metron" means measure.

For a polygon, the general rule is to add up all the side lengths. Each standard shape just gives you a shortcut, because some sides repeat. The perimeter formula in maths is written as

P=s1+s2+s3+⋯+snP = s_1 + s_2 + s_3 + \dots + s_n

Class 6 and 7 books treat perimeter together with area. Class 10 returns to it through the circumference of circles and the length of arcs.

Perimeter of triangle formula

A triangle has three sides aa, bb and cc, so its perimeter is a+b+ca + b + c. Special triangles give shorter forms:

  • Equilateral (all sides aa): P=3aP = 3a.
  • Isosceles (two equal sides aa, base bb): P=2a+bP = 2a + b.
  • Right angle triangle with legs pp and qq: find the hypotenuse first from Pythagoras, h=p2+q2h = \sqrt{p^2 + q^2}, and then P=p+q+hP = p + q + h.

Example 1: scalene and right triangles

(a) Sides 7 cm, 9 cm and 12 cm: P=7+9+12=28P = 7 + 9 + 12 = 28 cm.

(b) A right triangle has legs 6 cm and 8 cm. The hypotenuse is 36+64=10\sqrt{36 + 64} = 10 cm, so

P=6+8+10=24P = 6 + 8 + 10 = 24

Answer: 28 cm and 24 cm.

Half perimeter of triangle

Half the perimeter, written ss, is called the semi-perimeter. It is the starting point of Heron's formula which finds a triangle's area from its three sides.

Perimeter of square and rectangle formula

Square

All four sides of a square are equal, so the perimeter of square formula is P=4aP = 4a. A tile of side 12.5 cm has a boundary of 50 cm. If the diagonal dd is given, one side is d2\tfrac{d}{\sqrt{2}}, so P=22 dP = 2\sqrt{2}\,d; a diagonal of 10 cm gives about 28.28 cm.

Rectangle

A rectangle has two lengths and two breadths, so the formula of perimeter of rectangle is P=2(l+b)P = 2(l + b). Add length and breadth first, then double. Writing 2l+b2l + b by mistake is a very common slip.

Example 2: fencing a plot

A rectangular plot is 40 m long and 25 m wide. Fencing costs Rs 35 per metre. Find the cost of fencing it.

Perimeter =2(40+25)=2×65=130= 2(40 + 25) = 2 \times 65 = 130 m.

Cost =130×35=4550= 130 \times 35 = 4550.

Answer: Rs 4550.

Rhombus and parallelogram follow the same logic: a rhombus has four equal sides, so 4a4a; a parallelogram has two pairs, so 2(a+b)2(a + b). A trapezium has no shortcut: add its four sides.

Circumference of circle formula

The circumference is the perimeter of a circle. For every circle, the ratio of circumference to diameter is the same number, π\pi. That is the definition of pi in maths, and it gives

C=πd=2πrC = \pi d = 2\pi r

Use the diameter form when the diameter is given, and the radius form when the radius is given; both are the same formula because d=2rd = 2r.

Example 3: radius and diameter

(a) A circular track has radius 21 m. Take π=227\pi = \tfrac{22}{7}: C=2×227×21=132C = 2 \times \tfrac{22}{7} \times 21 = 132 m.

(b) A bangle has diameter 35 mm: C=227×35=110C = \tfrac{22}{7} \times 35 = 110 mm.

Answer: 132 m and 110 mm.

Example 4: wheel revolutions

A cycle wheel has radius 35 cm. How many full turns does it make in covering 1.1 km?

One turn covers one circumference: 2×227×35=2202 \times \tfrac{22}{7} \times 35 = 220 cm.

Distance =1.1 km=110 000= 1.1\ \mathrm{km} = 110\,000 cm, so turns =110 000220=500= \tfrac{110\,000}{220} = 500.

Answer: 500 revolutions.

Proof of circumference of a circle using calculus

On a circle of fixed radius r, turning through a small angle dθd\theta (in radians) traces an arc of length r dθr\,d\theta. Going once round, θ\theta runs from 0 to 2π2\pi:

C=∫02πr dθ=2πrC = \int_0^{2\pi} r\,d\theta = 2\pi r

Read more on the integration formulas page.

Area of a circle using circumference

Many questions give the boundary and ask for the inside. Get the radius from r=C2πr = \tfrac{C}{2\pi}, then square it. In one line,

A=C24πA = \dfrac{C^2}{4\pi}

Example 5: from 88 cm of wire

A wire 88 cm long is bent into a circle. Find the area it encloses.

r=882×22/7=88×744=14r = \dfrac{88}{2 \times 22/7} = \dfrac{88 \times 7}{44} = 14 cm.

A=227×14×14=616A = \tfrac{22}{7} \times 14 \times 14 = 616.

Answer: 616 cm2616\ \mathrm{cm^2}.

Radius, diameter, circumference and area are linked: know any one and you can find the other three. The area side of that link, and the reason it is pi r squared, are explained on the area formulas page.

Perimeter of semicircle, sector and polygon

Semicircle

The boundary of a semicircle is half the circumference plus the straight diameter. Students often forget the diameter part.

P=πr+2rP = \pi r + 2r

For radius 7 cm, with π=227\pi = \tfrac{22}{7}: 22+14=3622 + 14 = 36 cm.

Arc and sector

An arc of angle θ\theta is θ360\tfrac{\theta}{360} of the full circumference. A sector is bounded by that arc and two radii.

Example 6: perimeter of a sector

Radius 21 cm, angle 60 degrees.

Arc =60360×2×227×21=22= \tfrac{60}{360} \times 2 \times \tfrac{22}{7} \times 21 = 22 cm.

Perimeter =22+21+21=64= 22 + 21 + 21 = 64 cm.

Answer: 64 cm.

Regular polygon

A regular polygon of nn equal sides of length aa has P=naP = na. A regular hexagon of side 5 cm has a perimeter of 30 cm; a regular octagon of side 3 m has 24 m.

Perimeter of cube, cuboid and sphere

Solids do not have a perimeter in the strict sense. What books sometimes call the perimeter of a cube is the total length of its 12 edges: 12a12a. For a cuboid it is 4(l+b+h)4(l + b + h), the wire needed to make a frame. A sphere has no edges at all; the closest idea is the circumference of its largest circle, 2πr2\pi r. For the space and surface of solids, use the volume and surface area page.

When the perimeter of a triangle is given, find the area

A perimeter alone does not fix the area, so the question must give something more: the ratio of sides, or the fact that the triangle is equilateral.

Example 7: triangle of perimeter 22 cm, find its area

The sides of a triangle are in the ratio 5 : 8 : 9 and its perimeter is 22 cm. Find the area.

Total parts =22= 22, so each part is 1 cm and the sides are 5, 8 and 9 cm.

s=11s = 11, so A=11×6×3×2=396≈19.90A = \sqrt{11 \times 6 \times 3 \times 2} = \sqrt{396} \approx 19.90.

Answer: about 19.90 cm219.90\ \mathrm{cm^2}.

For an equilateral triangle with perimeter 36 cm, each side is 12 cm and the area is 34×144=363≈62.35\tfrac{\sqrt{3}}{4} \times 144 = 36\sqrt{3} \approx 62.35 square cm.

Scale factor, area and perimeter

Enlarge any figure by a scale factor kk and every length, including the perimeter, is multiplied by kk, but the area is multiplied by k2k^2. Double the sides of a square, and its perimeter doubles while its area becomes four times as large. In percentage terms, see the percentage formula page.

Prove that AQ is half the perimeter of triangle ABC

This is a well known class 10 problem on tangents to a circle. A circle touches side BC of triangle ABC at P, and touches AB and AC extended beyond B and C at Q and R. Prove that AQ=12(perimeter of △ABC)AQ = \tfrac{1}{2}(\text{perimeter of } \triangle ABC).

The key fact: the two tangents drawn to a circle from an outside point are equal. So AQ=ARAQ = AR, BQ=BPBQ = BP and CP=CRCP = CR.

2AQ=AQ+AR=(AB+BQ)+(AC+CR)=AB+BP+AC+CP=AB+BC+CA\begin{aligned} 2AQ &= AQ + AR = (AB + BQ) + (AC + CR) \\ &= AB + BP + AC + CP \\ &= AB + BC + CA \end{aligned}

Hence AQAQ is half the perimeter. The same idea appears in exams in the form "prove that AR is half the perimeter" with the letters changed.

Mistakes that cost marks in perimeter questions

  • Writing square units for a perimeter. Perimeter is a length: cm, not cm2\mathrm{cm^2}.
  • Mixing units. Convert 2 m 40 cm to 240 cm before adding it to other sides in cm.
  • Using the radius in πd\pi d or the diameter in 2πr2\pi r. Check which one the question gives.
  • Leaving out the straight edge of a semicircle or the two radii of a sector.
  • In combined figures, counting an inside edge that is not part of the outer boundary. Trace the outline with your finger first.

Other geometry and algebra shortcuts are listed in the full maths formula list.

Download the PDF

Questions students ask

What is the perimeter formula of a rectangle?
P=2(l+b)P = 2(l + b), where ll is the length and bb the breadth. A 9 cm by 4 cm rectangle has a perimeter of 26 cm.
What is the circumference of a circle in simple words?

It is the distance once round the circle, its perimeter. It equals π\pi times the diameter, or 2π2\pi times the radius.

How do you find the radius from the circumference?

Divide the circumference by 2π2\pi. Taking π=227\pi = \tfrac{22}{7}, a circle with circumference 44 cm has r=44×744=7r = \tfrac{44 \times 7}{44} = 7 cm, so its diameter is 14 cm.

What is the perimeter of a square with side 15 cm?

Four times the side: 4×15=604 \times 15 = 60 cm.

Is circumference the same as perimeter?

Yes, circumference is just the special name for the perimeter of a circle or ellipse. For polygons we say perimeter.

Can two shapes have the same perimeter but different areas?

Yes. A square of side 5 and a rectangle 9 long and 1 wide both have a perimeter of 20, but their areas are 25 and 9. Among all rectangles with a fixed perimeter, the square encloses the most area.