Perimeter Calculator

Perimeter—
Shape—
Area—

How Perimeter Calculator is calculated: Rectangle: 2(l + w) · Square: 4s · Triangle: a + b + c · Circle: 2πr

What does perimeter mean?

The perimeter is the distance all the way around a shape. Walk the edge of a field and come back to where you started, and the distance you walked is the perimeter. It is a length, measured in ordinary units — metres, centimetres, feet — and it tells you how much fencing, edging, or border a shape needs.

Every shape has its own way of adding up its edges. A rectangle adds two lengths and two widths. A square multiplies one side by four. A triangle adds its three sides. A circle has no straight edges at all, so its perimeter is its circumference, 2πr. The idea is the same in each case — the total length of the boundary — but the arithmetic changes with the shape.

This calculator handles all four shapes in one place. Pick the shape, type the sides it needs, and the perimeter and the area appear together. The fields you do not need are simply ignored, so a rectangle never asks about a radius. Everything runs in your browser, so nothing is uploaded or stored.

How perimeter is calculated for each shape

For a rectangle, the perimeter is 2 × (length + width). A rectangle 10 by 5 has perimeter 2 × 15, which is 30, and area 10 × 5, which is 50. The two opposite sides are equal, which is why the formula doubles the sum of one length and one width instead of adding four separate numbers.

For a square, the perimeter is 4 × side. A square with side 6 has perimeter 24 and area 36. For a triangle, the perimeter is simply a + b + c — add the three sides. A triangle with sides 3, 4 and 5 has perimeter 12, and its area, by Heron's formula, is 6. For a circle, the perimeter is the circumference, 2πr: a circle of radius 7 has perimeter 43.98 and area 153.94.

The area is shown beside the perimeter because the two are so often needed together. Fencing a garden needs the perimeter; turfing it needs the area. Both come from the same measurements, so it makes sense to calculate them at once rather than running two separate tools. A rectangle area calculator gives the same area on its own if you only need that number.

Picking the right shape and the right sides

The shape selector is the input people get wrong most often, because the boxes change meaning with it. For a rectangle, box a is the length and box b is the width. For a square, only box a matters — it is the side, and the other boxes are ignored. For a triangle, a, b and c are the three sides. For a circle, only the radius box matters.

Measure the real thing before you type. For a rectangle, measure the two different sides; measuring the same side twice gives a square's answer for a rectangular field. For a triangle, measure all three sides — guessing the third from the other two is not possible in general, and the perimeter needs the real third side.

For a circle, measure across the middle to get the diameter and halve it for the radius. A circle 14 units across has radius 7, perimeter 43.98, and area 153.94. If you type 14 as the radius by mistake, the perimeter doubles to 87.96. A circle calculator is a good cross-check for any round measurement before you trust it here.

Worked examples: rectangle, circle, square and triangle

Start with the default: a rectangle 10 by 5. The perimeter is 2 × (10 + 5), which is 30, and the area is 10 × 5, which is 50. That is the whole calculation — add the sides, double the sum, and multiply them for the area.

Now a circle with radius 7. The perimeter is 2 × π × 7, which is 43.98. The area is π × 7², which is π × 49, or 153.94. Notice the perimeter is smaller than the area here, which is normal: the two are measured in different units — units of length against square units — so comparing their sizes directly means nothing.

A square with side 6 has perimeter 4 × 6, which is 24, and area 6 × 6, which is 36. A triangle with sides 3, 4 and 5 has perimeter 3 + 4 + 5, which is 12. Its area comes from Heron's formula: half the perimeter is 6, and the area is the square root of 6 × 3 × 2 × 1, which is the square root of 36, or 6. The triangle area calculator confirms that area from the same three sides.

Where perimeter matters in everyday life

Fencing is the classic use. A garden 10 metres by 5 metres needs 30 metres of fencing, and knowing that before buying saves a wasted trip — or a second trip when the fence runs short. The same maths sizes skirting boards, picture frames, and the edging around a patio.

In construction, the perimeter of a room sets the length of skirting, coving, and wiring runs. In sports, the perimeter of a running track or a field is the distance of one lap. In sewing and crafts, the perimeter of a piece of fabric is the length of binding or piping it needs.

Landscapers use the perimeter to price lawn edging and retaining walls, which are charged by the metre of edge rather than by the area covered. A garden bed 4 metres by 1 metre has an area of only 4 square metres but a perimeter of 10 metres, so the edging costs more than the size of the bed suggests. Knowing both numbers before getting a quote stops the surprise.

In school maths, perimeter is often the first step toward area and volume. Students who can walk a shape's edge in their head rarely mix up the two. The area of a 10 by 5 rectangle is 50 square units while its perimeter is 30 units — different numbers, different units, different jobs. A square area calculator covers the simplest area case when the shape is a square.

Perimeter vs area: the pair people confuse

Perimeter and area are the two numbers every shape has, and they are easy to mix up. Perimeter is a length — the distance around. Area is a surface — the space inside. A long thin rectangle 20 by 1 has perimeter 42 and area 20. A square 5 by 5 has perimeter 20 and area 25. The long thin shape has the bigger perimeter but the smaller area.

That trade-off is why the pair matters together. Two gardens can have the same area and very different perimeters, so one needs far more fencing than the other. A square encloses a given area with the least perimeter of any rectangle, which is why square plots are cheaper to fence than long thin ones of the same size.

The units are the giveaway when you are unsure which number you are looking at. Perimeter is in metres, area in square metres. If your answer has square units, it is an area, whatever the question asked. This calculator labels both clearly, so the mix-up is hard to make here — but on paper, writing the unit down is the habit that prevents it.

Common perimeter mistakes

The first mistake is adding only two sides of a rectangle and forgetting to double, or adding all four sides of a square as if they were different. The formulas exist to stop that: 2(l + w) for a rectangle, 4s for a square. Write the formula down, then substitute the numbers.

The second mistake is using the diameter of a circle as the radius. The circumference is 2πr, so typing the diameter in the radius box doubles the answer. Halve the diameter first. The third mistake is mixing units — a length in metres and a width in centimetres gives a perimeter that belongs to no real shape. Convert first, then calculate.

The fourth mistake is treating the perimeter of a triangle as the sum of two sides, or guessing the third side. All three sides are needed, and for the area the three sides must also satisfy the triangle inequality — each side shorter than the sum of the other two. A triangle with sides 2, 3 and 10 cannot exist, and no perimeter formula can fix that.

How to use this perimeter calculator

Pick the shape first — rectangle, square, triangle, or circle. Then fill in the boxes that shape needs: length and width for a rectangle, one side for a square, three sides for a triangle, or the radius for a circle. Boxes the shape does not need are ignored, so leave them alone.

The perimeter and the area update live as you type. Check the shape name in the results: if it says Rectangle when you meant Circle, the selector is set wrong and the numbers are for the wrong shape.

Everything runs in your browser. No account, no sign-up, no data sent anywhere. Measure in one unit, type the numbers in, and read the perimeter off the page — the fencing, edging, or border length you need is the headline number. A perimeter is the first number a fence needs — our fence calculator turns it into posts, panels and concrete at standard spacing.

Frequently Asked Questions

The perimeter is 30 units. The formula is 2 × (length + width), so 2 × (10 + 5) = 30. The area of the same rectangle is 10 × 5 = 50 square units.

The perimeter, or circumference, is 43.98 units. The formula is 2πr, so 2 × 3.1416 × 7 = 43.98. The area of the same circle is π × 49 = 153.94 square units.

Add the three sides: a + b + c. A triangle with sides 3, 4 and 5 has perimeter 12. Its area is 6 square units by Heron's formula, since half the perimeter is 6 and the square root of 6 × 3 × 2 × 1 is 6.

Perimeter is the distance around a shape, measured in units of length. Area is the space inside it, measured in square units. A 10 by 5 rectangle has perimeter 30 units and area 50 square units — two different numbers for two different jobs.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.