Perimeter Calculator
Perimeter is the distance around a shape. A 6 ft square has a perimeter of 24 ft, an 8 x 5 ft rectangle has 26 ft, and a circle of radius 7 ft has a circumference of 43.98 ft. Choose the shape above and the calculator shows the perimeter with the formula it used.
| Perimeter | |
| Formula used | |
| Inputs read |
Only the fields your shape uses are read, and a blank field counts as 0. The circle option returns the circumference, which is the perimeter of a circle.
All calculations happen in your browser, and no data is uploaded.
Pick a shape, type the sides or the radius, and read the distance around it, formula and all.
Key takeaways
- Perimeter adds the boundary lengths: a 6 ft square has 4 x 6 = 24 ft of edge
- Rectangles use P = 2(length + width): 8 by 5 gives 2 x 13 = 26 ft
- A circle's perimeter is its circumference, C = 2 x pi x r, about 43.98 ft at r = 7
- Equal perimeters can hide different areas: 24 ft of fence holds 11 sq ft at 1 x 11 but 36 sq ft at 6 x 6
- Fencing a 40 x 25 ft yard at $12 per foot costs 130 x 12 = $1,560, so perimeter drives budget
On this page
- What perimeter measures, and how to read it back
- The five formulas this calculator uses
- The circle case: perimeter becomes circumference
- Regular polygons: one side repeated n times
- Perimeter against area: the fence and the lawn
- Fencing, baseboards and other budget lines
- Walking and running: perimeter on the move
What perimeter measures, and how to read it back
Perimeter is the total length of a shape's boundary: the fence line around a yard, the tape measure run around a room, the chalk line around a ball field. The word itself carries the recipe, since the Greek roots mean measure around. Whatever the shape, the perimeter always comes out in plain length units, feet or meters or inches, never square units, because the walk around the edge is a one dimensional trip.
For shapes built from straight sides, the whole job is adding. Walk the boundary once, add every segment, and the sum is the perimeter. Wolfram MathWorld's perimeter entry (accessed 2026) defines it exactly this way for plane figures, and notes the special case that sends the idea further: for a circle the boundary is one smooth curve, so the perimeter is computed rather than walked, and mathematicians give it its own name, the circumference.
Keep the units honest and the answer stays useful. If two sides are in feet and one wall was measured in inches, convert first, then add, because a mixed unit sum is silently wrong. The NIST unit conversion guidance (SP 1038, 2006) recommends converting before computing and rounding only the final result, which fits perimeter work well: add full values, round the total once at the end.
The five formulas this calculator uses
Every common shape has a shortcut formula that skips the segment by segment walk. Each one is the segment sum in disguise, and each row below carries a worked example with real numbers.
| Shape | Formula | Worked example | |
|---|---|---|---|
| Square | P = 4s | s = 9: 4 x 9 = 36 |
| Shape | Sides (n) | Side length | Perimeter |
|---|---|---|---|
| Square | 4 | 6 in | 24 in |
| Pentagon | 5 | 4 in | 20 in |
| Hexagon | 6 | 3 in | 18 in |
| Octagon | 8 | 2.5 in | 20 in |
The table hides a useful pattern: as the side count grows at a fixed perimeter, each side shrinks. A 20 in perimeter is 4 sides of 5 in, 5 sides of 4 in, or 8 sides of 2.5 in, and pushed far enough it approaches a circle whose circumference is 20 in. That is the same limit the track section below touches: many short steps add to the same boundary as one smooth curve.
Irregular polygons are the leftover case. If the sides differ, the n x s shortcut no longer applies, and the honest method is the plain sum of measured sides. An L shaped room, a truncated lot line, or a garden bed with a chamfered corner all fall back to the tape measure and the addition the first section described. The widget's polygon mode expects the sides to be equal, so check that before entering n and s.
Perimeter against area: the fence and the lawn
Perimeter and area answer different questions, and mixing them up is the classic measuring mistake. Perimeter is the fence run; area is the lawn inside it. Paint, baseboards, fence rails and trim follow the perimeter. Seed, mulch, sod and flooring follow the area. The units tell them apart at a glance: feet against square feet.
The two quantities also move independently, which the table below shows with four rectangles that all use exactly 24 ft of fence.
| Sides (ft) | Perimeter (ft) | Area (sq ft) |
|---|---|---|
| 1 x 11 | 24 | 11 |
| 2 x 10 | 24 | 20 |
| 4 x 8 | 24 | 32 |
| 6 x 6 | 24 | 36 |
The same 24 ft of boundary holds anywhere from 11 to 36 sq ft depending on the proportions, and the square, the most compact of the four, holds the most. Stretch the rectangle and the lawn shrinks while the fence bill stays put. That is why a fence quote and a lawn order are quoted from two different measurements, and why the square footage calculator belongs next to this page in the toolkit: perimeter plans the edge, area plans the inside.
Fencing, baseboards and other budget lines
Fencing is the clearest budget case. A yard measuring 40 ft by 25 ft has a perimeter of 2 x (40 + 25) = 130 ft. At $12 per installed foot, the fence line costs 130 x 12 = $1,560, and a gate shifts a few feet of that line from fence to gate pricing. Because every side of the yard feeds the total, a two foot measuring error on one boundary quietly moves the whole quote, so measure each run before pricing.
Baseboards run the same arithmetic indoors. A 15 ft by 12 ft room has a perimeter of 2 x (15 + 12) = 54 ft, and the doorway eats about 3 ft of it, so the trim order is roughly 51 ft, plus one cut of slack per corner. Crown molding and gutter runs follow the identical pattern: the boundary length, minus openings, plus waste.
| Project | Measurements | Perimeter | Order line |
|---|---|---|---|
| Backyard fence | 40 x 25 ft | 130 ft | 130 ft at $12 per foot is $1,560 |
| Living room baseboard | 15 x 12 ft, one 3 ft doorway | 54 ft | 51 ft plus corner slack |
| Plywood edge banding | 4 x 8 ft sheet | 24 ft | 24 ft of banding per sheet |
| Picture frame | 24 x 18 in | 84 in | 84 in of moulding before miter cuts |
The order line column is where the perimeter turns into money. Fencing quotes per installed foot, trim quotes per eight or twelve foot stick, and both convert the boundary length into a parts list. Round the wrong direction and the job comes up one stick short; round the right direction and the offcut bin absorbs the slack.
Walking and running: perimeter on the move
Sports and travel use the circle and oval versions. An Olympic running track measures 400 m along its innermost lane, a circumference figure set by the shape of the loop rather than by straight segments. Walkers on a park loop talk about their route in exactly these terms: two laps of a quarter mile path is half a mile of boundary walked twice.
The same idea repeats at every scale. A city block has a perimeter you can pace in minutes, a farm field has one a surveyor prices in hours, and a tabletop game map has one you count in grid edges. Each case is the definition from the first section, applied to a boundary you can physically travel: start at a point, follow the edge, and stop where you began.
One caution for fitness tracking: a GPS trace of a loop usually reads slightly short of the true perimeter, because the device samples positions and cuts the corners between them. A measured 400 m lap can log as 396 m, and the drift repeats every lap. When the boundary matters, trust the surveyed or computed figure, and let the walk be the check rather than the source. When the next step is the inside rather than the edge, the area calculator takes over, and for round projects the circumference calculator works the circle case in depth.
Frequently asked questions
What is the perimeter of a 6 foot square?
24 ft. A square has four equal sides, so P = 4s = 4 x 6 = 24 ft.
How do I find the perimeter of a rectangle?
Add the length and width, then double the sum: P = 2(length + width). An 8 by 5 ft rectangle gives 2 x 13 = 26 ft.
What is the perimeter of a circle called?
The circumference. It is computed as C = 2 x pi x r, so a circle of radius 7 ft has a perimeter of about 43.98 ft.
How do I find the perimeter of an irregular shape?
Add every side. An L shaped room with runs of 10, 4, 6, 2, 4 and 2 ft has a perimeter of 10 + 4 + 6 + 2 + 4 + 2 = 28 ft, with no shortcut formula.
What is the perimeter of a 4 by 8 sheet of plywood?
24 ft. P = 2 x (4 + 8) = 24, so a full sheet carries 24 ft of edge, which is why the trim math for one sheet never needs a calculator.
Is perimeter measured in square units?
No. Perimeter is a length, so it uses feet, meters or inches. Square units belong to area, which measures the surface inside the boundary.
Can two shapes have the same perimeter but different areas?
Yes, and it happens constantly. Rectangles of 1 x 11 and 6 x 6 both have a 24 ft perimeter, but their areas are 11 sq ft and 36 sq ft.
How much fencing do I need for a 40 by 25 ft yard?
130 ft around, from P = 2 x (40 + 25). At $12 per foot the fence line runs 130 x 12 = $1,560 before gates and corners hardware.
How do I find the perimeter of a triangle with sides 5, 6 and 10?
Add the three sides: 5 + 6 + 10 = 21. Check that the longest side is shorter than the other two combined, which holds here, so the triangle can close.
What is the perimeter of a hexagon with 3 inch sides?
18 in. A regular hexagon has 6 equal sides, so P = 6 x 3 = 18 in.
How many baseboards do I need for a 15 by 12 ft room?
The perimeter is 2 x (15 + 12) = 54 ft, and a 3 ft doorway removes 3 ft of it, so order about 51 ft plus a little slack for corner cuts.
Does doubling the sides double the perimeter?
Yes. Perimeter scales in step with length: a 6 ft square has 24 ft of edge and a 12 ft square has 48 ft, while the area inside grows by four times, not two.
Spotted a wrong number or a broken result?
More Math tools
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.