About the Perimeter Calculator
Fencing a garden, edging a flower bed, framing a picture or fitting skirting boards all start with a perimeter. This perimeter calculator handles common shapes and any list of side lengths: a 12 m by 8 m garden needs 40 m of fencing, and a circular bed with a 3.5 m radius has a circumference of about 21.99 m. The formula is shown for each shape, and ellipses use an accurate approximation, since their perimeter has no simple exact formula. Add a little extra when buying materials, to allow for joins and offcuts.
For any polygon the perimeter is the sum of its sides: 2(l + w) for a rectangle, 4s for a square, n × s for a regular polygon. Curves need π: a circle's circumference is 2πr, a semicircle's perimeter is πr + 2r including the straight edge, and a sector's is 2r plus its arc, θ ÷ 360 × 2πr. An ellipse has no simple exact formula, so the calculator uses Ramanujan's approximation, π(3(a + b) − √((3a + b)(a + 3b))), which is accurate to a tiny fraction of a percent for most shapes.
Example: a 10 m × 5 m rectangle has a perimeter of 30 m. A circle with radius 3 cm has a circumference of 6π ≈ 18.8496 cm, and a semicircle of the same radius has a perimeter of about 15.4248 cm. An irregular quadrilateral with sides 3, 4, 5 and 6 has a perimeter of 18, and a regular hexagon with 2-inch sides has a perimeter of 12 inches.
Perimeter measures the boundary; for the space inside use the area calculator. Fencing projects can continue in the fence calculator, and circles in full on the circle calculator.
How to use the Perimeter Calculator
- Pick a shapeChoose a rectangle, triangle, circle, polygon, or a list of sides.
- Choose the unitType the unit your measurements are in, such as m or ft.
- Enter the measurementsFill in the lengths the shape needs.
- Read the perimeterSee the distance around the shape and the formula used.
Perimeter Calculator features
- 10 shapes plus any list of sides
- Circumference of circles
- Ellipse perimeter by Ramanujan's approximation
- Semicircles and sectors with their straight edges
- Regular polygons with any number of sides
- Formula with your numbers
- Any unit
Common uses
- Fencing gardens and yards
- Baseboards, trim and skirting for rooms
- Picture frames and borders
- Running tracks and paths
- Geometry homework
Perimeter for real jobs: fencing, skirting, edging, frames and coastlines
Perimeter is the distance around a shape, and it is the measurement behind fencing a plot, fitting skirting boards, edging a garden, framing a picture and marking a sports field. Calculating it is simple for regular shapes, but practical jobs involve gates, doorways, corners and offcuts. This guide works through fencing and framing examples, explains the extra length that mitred corners need and ends with the surprising coastline paradox.
Fencing a plot
A rectangular plot's perimeter is twice the length plus twice the width. For a plot of 35 by 65 feet, a common size for a 10-marla house in some housing schemes, the perimeter is 2 × (35 + 65) = 200 feet. Subtracting a 12-foot gate leaves 188 feet of fencing or wall. If the fence comes in panels 6 feet wide, the job needs 188 ÷ 6 = 31.3, so 32 panels, plus posts at each joint and at the corners.
Skirting boards and trim
Skirting boards run around a room's perimeter but stop at doorways. For a room 4 metres by 3.5 metres with one doorway 0.9 metres wide, the perimeter is 15 metres and the skirting needed is about 14.1 metres. Because skirting comes in fixed lengths and corners waste some material, buying about 10% extra is sensible.
Garden edging and curves
For curved beds, the perimeter includes arcs: a semicircular bed with a straight side of 4 metres has a curved edge of half the circumference of a 4-metre circle, about 6.28 metres, plus the 4-metre straight side, a total of about 10.3 metres. Flexible edging is sold by length, so calculating the full perimeter, curves included, avoids running short halfway round.
A worked example: a picture frame
A picture frame with mitred corners needs more moulding than the perimeter of the picture, because each piece is measured along its outer edge. For a picture 50 by 40 cm and moulding 3 cm wide, the total moulding length is 2 × (50 + 40) + 8 × 3 = 204 cm. The extra 24 cm comes from the corners, where each piece extends by the moulding width at both ends.
Framers add a little more again for the saw cuts and for trimming, so a single length of 2.2 metres or more is a sensible purchase.
Running tracks and stadium shapes
A standard running track is a stadium shape: two straight sections joined by two semicircles. The inside lane measures 400 metres around, and each outer lane is longer because its curves have a larger radius. That is why races of 200 and 400 metres use staggered starts, so that every runner covers the same distance.
Perimeter and area are different
Two shapes with the same perimeter can have very different areas. With 40 metres of fencing, a square pen of 10 by 10 metres encloses 100 square metres, while a long pen of 18 by 2 metres encloses only 36 square metres. For a fixed perimeter, a circle encloses the most area of any shape, and among rectangles, a square encloses the most.
The coastline paradox
How long is a coastline? The answer depends on the length of the measuring stick. Measuring with a 100 km stick skips many bays and headlands; a 1 km stick follows more of them and gives a longer total, and a 1 metre stick longer still. Coastlines have detail at every scale, so their measured length keeps growing as the measuring unit shrinks. The mathematician Benoit Mandelbrot used this paradox to introduce the idea of fractals.
Common mistakes
- Forgetting to subtract gates and doorways, or to add posts.
- Ignoring mitred corners when cutting frame moulding.
- Measuring curved edges as straight lines.
- Confusing perimeter with area when ordering materials.
Related tools
For areas, use Area Calculator. For circles, try Circle Calculator, and for fencing materials, Fence Calculator.
Irregular plots
Real plots are rarely perfect rectangles, so measure each side separately and add them. A plot with sides of 40, 62, 38 and 65 feet has a perimeter of 205 feet. If the corners are not right angles, the sides still add up in the same way, but the area calculation becomes more complex. Survey drawings give accurate side lengths and are the best source for legal or building purposes.
Boundaries in sport
Sports grounds are marked by their perimeters. A cricket boundary rope set at a radius of 65 metres from the centre is about 408 metres long, and groundsmen need that length of rope or marking. Football pitch lines, athletics tracks and tennis courts all require perimeter calculations when marking out, especially when the lines include curves and arcs.
Checking with a measuring wheel
For large outdoor perimeters, such as a field or a long boundary wall, a measuring wheel is quicker and more accurate than a tape. Walk the wheel along each side, keeping it on the line, and note the reading at each corner. Measuring the same boundary twice and comparing the totals shows how reliable the measurement is before ordering expensive fencing.
Limits
Formulas are exact for ideal shapes; real sites have uneven boundaries, so measure on site and allow extra material.
Frequently asked questions
How do I find the perimeter of a rectangle?
Add the length and width and double the result: P = 2(l + w). A rectangle 8 m long and 3 m wide has a perimeter of 2 × 11 = 22 m.
What is the perimeter of a circle called?
The circumference. It is C = 2πr = πd, so a circle with a diameter of 10 cm has a circumference of about 31.42 cm.
How do I find the perimeter of a triangle?
Add its three sides. A triangle with sides 5, 7 and 9 cm has a perimeter of 21 cm. For a right triangle missing a side, find it first with the Pythagorean theorem.
How do I find the perimeter of an irregular shape?
Measure every side and add them all. Choose the list of sides option and type the lengths separated by commas, such as 3, 4, 5, 6 for a perimeter of 18.
What is the perimeter of a semicircle?
Half the circumference plus the diameter: P = πr + 2r. With a radius of 3 m that is about 9.42 + 6 = 15.42 m. Forgetting the straight edge is a common mistake.
Is there an exact formula for the perimeter of an ellipse?
No simple one; the exact value needs an elliptic integral. Ramanujan's approximation, used here, is extremely close: for semi-axes 5 and 3 it gives about 25.527, accurate to better than one part in a million.
What is the difference between perimeter and area?
Perimeter is the length around a shape, measured in units such as meters. Area is the surface inside, measured in square units such as square meters. Fencing needs perimeter; turf needs area.