Skip to content

Perimeter Calculator

Three lengths only make a triangle if two beat the third.

Work out Perimeter. Three lengths only make a triangle if two beat the third. Names the misconception directly.

Written and maintained by Mohit PatelLast checked August 4, 2026How we build these

Perimeter

14

Area 12 · diagonal 5

Perimeter14
Area12
Diagonal5
Aspect ratio1.333333
Side of an equal-area square3.464102

Perimeter and area are independent: two rectangles with the same perimeter can have very different areas, and the difference is largest when one is long and thin. A 1 × 9 and a 5 × 5 both have a perimeter of 20 and areas of 9 and 25.

How the Perimeter Calculator works

Perimeter of a rectangle, square, circle or triangle, with the area alongside. For triangles it checks the triangle inequality first, because three arbitrary lengths frequently cannot form a triangle at all.

Also known as: how to find perimeter · perimeter of a triangle · distance around a shape · triangle inequality check

The triangle inequality

Any two sides of a triangle must together exceed the third. Lengths of 1, 2 and 5 cannot form one — the two short sides laid end to end still fall short of reaching across the long one.

It is checked here before anything is calculated, because three arbitrary lengths frequently cannot form a triangle at all. Returning an area for an impossible triangle would be worse than refusing.

The degenerate case, where two sides exactly equal the third, gives a triangle of zero area — a straight line. That is the boundary, and it is why the inequality is strict rather than inclusive.

Heron's formula, which needs no height

A triangle's area is normally half base times perpendicular height, and the height is frequently the hardest thing to measure. Heron's formula gives the area from the three sides alone.

Take the semi-perimeter s, then the area is the square root of s(s−a)(s−b)(s−c). It is remarkable that three lengths determine the area at all, and it follows from the fact that three sides fix the triangle completely.

It also explains the triangle inequality's role: if any of the three bracketed terms goes negative, the product is negative and the root is imaginary — which is the formula's own way of saying the triangle does not exist.

The isoperimetric principle and coastlines

Among all shapes with a given perimeter, the circle encloses the most area. That is the isoperimetric inequality, and it is why bubbles are round and why compact shapes lose the least heat.

The reverse question — least perimeter for a given area — has the same answer, and it drives a great deal of engineering. Minimising boundary minimises material, heat loss, and cost simultaneously.

Fractal boundaries break the whole notion. A coastline's measured length grows without limit as the measuring stick shrinks, which is why published coastline lengths differ enormously between sources. Perimeter is only well defined for shapes with smooth boundaries.

Where to go next

The Perimeter question rarely arrives on its own. These are the ones that usually come with it:

Frequently asked questions

How do I find the perimeter?

Add every side. For a rectangle that is 2 × (length + width); for a circle it is the circumference, 2πr; for a triangle it is simply the three sides added.

What is the triangle inequality?

Any two sides must together exceed the third. Lengths of 1, 2 and 5 cannot form a triangle, because 1 + 2 is less than 5 — the two short sides cannot reach across.

What is Heron's formula?

It gives a triangle's area from the three sides alone, with no height needed. Take the semi-perimeter s, then the area is the square root of s(s−a)(s−b)(s−c).

What is the difference between perimeter and circumference?

None mathematically — circumference is simply the word used for a circle's perimeter. The distinct name is a historical convention rather than a different concept.

Which shape has the smallest perimeter for a given area?

The circle, always. It is why bubbles are round and why heat-loss calculations favour compact shapes — the circle encloses the most area per unit of boundary.

How do I find the perimeter of an irregular shape?

Measure and add every edge. There is no formula, which is exactly why irregular shapes are broken into regular ones for area but not for perimeter — the internal division lines are not part of the boundary.

What is the isoperimetric inequality?

The formal statement that among all shapes with a given perimeter, the circle encloses the greatest area. It is why bubbles are spherical and why compact shapes lose the least heat.

How do I find the perimeter of a sector?

Two radii plus the arc, and the arc is the radius times the angle in radians. Forgetting the two straight edges is the usual mistake.

What is a fractal perimeter?

A boundary whose measured length grows without limit as the measuring stick shrinks — coastlines behave this way. It is why published coastline lengths vary enormously between sources.

How does perimeter relate to heat loss?

In two dimensions, more perimeter per unit area means more boundary to lose heat through. It is the same reason a compact building loses less heat than a sprawling one of equal floor area.

Can two different shapes have the same perimeter and area?

Yes — the two quantities do not determine a shape between them. Many different shapes share any given pair.

How do I measure an irregular perimeter?

With a flexible tape, or by approximating with straight segments. A map wheel does the same job on a drawing, and the answer depends on how finely the curve is followed.

Put this calculator on your own site

Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.

The one-line version
<iframe src="https://www.thecalclibrary.com/embed/perimeter-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Perimeter Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/perimeter-calculator" style="color:#64748b">Perimeter Calculator</a> from The Calc Library</p>

The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.

Related calculators