General calculator
Perimeter Calculator
A perimeter calculator that turns a rectangle length and width, or a circle diameter, into the perimeter in feet and yards. That is the length of fence, edging, trim or border a project needs, so the number decides the order. Measure the perimeter wrong and the border runs short at the last corner.
- Free to use
- No sign-up
- Formula and sources shown

Got the number? Save it before it gets lost.
A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.
Perimeter
64.00 ft
Equivalent
21.33 yd
Turn this result into a priced plan
Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.
Formula
Rectangle: 2 × (Length + Width) · Circle: π × Diameter
Worked example. A 20 ft × 12 ft rectangular yard: 2 × (20 + 12) = 64 linear feet of perimeter.
To calculate the perimeter of a rectangle, add the length and width and double the result. A 20 ft by 12 ft yard has a perimeter of 2 times 20 plus 12, or 64 linear feet. For a circle, multiply the diameter by pi, so a 12 ft circle has a circumference of about 37.7 ft. Use the same number for fence, edging or trim.
Key takeaways
- •Rectangle perimeter = 2 × (length + width). Circle circumference = π × diameter.
- •The calculator shows the perimeter in feet and in yards, and treats all dimensions as feet.
- •The circle option takes the diameter, not the radius.
- •Perimeter is a length, so it is measured in linear feet, not square feet. It is the number you use for fence, edging, baseboard and borders.
- •For lots or rooms with more than four sides, measure each side and add them.
How to use the perimeter calculator
- Choose a rectangle or a circle.
- For a rectangle, enter the length and the width in feet. For a circle, enter the diameter.
- Read the perimeter in feet, and in yards if your material is sold that way.
- Subtract the width of any gate, door or other opening that will not be covered.
- Divide by the length of one piece of material, such as a 6 ft fence panel or an 8 ft board, and round up.
- Add extra for waste, corners and overlap if the material needs it.
Perimeter formulas
Rectangle: Perimeter = 2 × (Length + Width)
Circle: Circumference = π × Diameter where π ≈ 3.14159
Perimeter in yards = Perimeter in feet ÷ 3
Pieces needed = ceil[ (Perimeter − Openings) ÷ Piece length ]
A rectangle has two sides of each length, which is why the sum of length and width is doubled. A circle's perimeter is called its circumference.
Perimeter calculator examples
Example 1: a 20 ft × 12 ft rectangular yard (the calculator default)
- Perimeter = 2 × (20 + 12) = 64 ft
- In yards = 64 ÷ 3 = 21.33 yd
Example 2: a 100 ft × 50 ft lot
- Perimeter = 2 × (100 + 50) = 300 ft
Example 3: a circular garden bed 12 ft across
- Circumference = π × 12 = 37.70 ft, or 12.57 yd
Example 4: a 10 ft × 10 ft room, to find baseboard
- Perimeter = 40 ft; subtract a 3 ft door = 37 ft of baseboard before waste
Example 5: a 20 ft round fire pit patio edge
- Circumference = π × 20 = 62.83 ft
Example 6: cost of Example 1 for fence at an example price
- 64 ft × $25 per linear foot = $1,600 (example price only, materials and labor)
Perimeter of common rectangles
| Size | Perimeter (ft) | Perimeter (yd) |
|---|---|---|
| 10 × 10 ft | 40 | 13.3 |
| 12 × 12 ft | 48 | 16.0 |
| 12 × 15 ft | 54 | 18.0 |
| 20 × 12 ft | 64 | 21.3 |
| 50 × 100 ft | 300 | 100.0 |
Perimeter grows in proportion to the side lengths, while area grows faster, so a bigger space needs proportionally less edge per square foot.
Perimeter of circles by diameter
| Diameter | Circumference (ft) | Circumference (yd) |
|---|---|---|
| 4 ft | 12.57 | 4.19 |
| 8 ft | 25.13 | 8.38 |
| 10 ft | 31.42 | 10.47 |
| 12 ft | 37.70 | 12.57 |
| 20 ft | 62.83 | 20.94 |
Circumference = π × diameter. Curved edging, flexible borders and fabric edges follow this length.
Irregular shapes and multi-sided lots
- •Measure each straight side with a tape or a measuring wheel, and add the lengths. Write them down in order as you walk around.
- •For an L-shaped lot, the perimeter is the sum of all six sides. It is not the same as the perimeter of the bounding rectangle, although for an L shape that has a simple notch it comes out the same.
- •Curved edges can be approximated by measuring along the curve with a flexible tape or a string laid on the curve.
- •A survey or plat map often lists the length of each boundary line.
- •Check that the sides close the shape, which means your measurements add up to a closed loop.
Turning perimeter into materials
| Project | How perimeter is used | Next step |
|---|---|---|
| Fence | Perimeter minus gates, divided by section length | Fence calculator |
| Landscape edging | Bed perimeter divided by edging piece length | Landscape edging calculator |
| Baseboard and trim | Room perimeter minus doors | Baseboard trim calculator |
| Crown molding | Room perimeter at the ceiling | Crown molding calculator |
| Gutters | Roof edge length where gutters will run | Gutter calculator |
| Wall studs | Wall length divided by stud spacing | Wall stud calculator |
Perimeter is the starting length. The material's piece length, corners and waste determine how much to order.
Subtracting gates, doors and openings
| Opening | Typical width | Notes |
|---|---|---|
| Walk gate | 3 to 4 ft | Subtract it from the fence length and add its own hardware |
| Double drive gate | 10 to 12 ft | Subtract and plan separate posts |
| Interior door | About 2.5 to 3 ft | Subtract from baseboard and trim runs |
| Wide opening | As measured | Subtract the full width, then add any returns |
The numbers are typical sizes only. Measure your own openings, and add the extra pieces needed at each end.
Planning corners, waste and lengths
- •Add 5 to 10% for waste when cutting long pieces such as trim, and more for patterned or mitered material.
- •Corners use extra material for mitered or overlapped joints, so count them as extra cuts.
- •Choose piece lengths that put joints where they are hidden or strongest, and avoid very short offcuts.
- •Round up to a whole number of pieces, such as 8 ft boards or 6 ft fence panels.
- •Keep the leftover from one run to use as a short piece in another.
Estimating cost per linear foot
Cost = Perimeter (linear feet) × Price per linear foot
Example only: 64 linear feet at $25 per linear foot is $1,600. Many materials are priced per piece or per linear foot, so convert the unit before comparing, and add hardware, concrete, labor and taxes.
Troubleshooting perimeter problems
| Problem | Likely cause | What to do |
|---|---|---|
| Perimeter is half what it should be | Forgot to double the length plus width | Use 2 × (length + width), or the calculator |
| Circle perimeter is twice too large | Entered the radius as the diameter | Enter the full distance across |
| Ordered too little trim | No waste or did not subtract and add corners | Add waste and count corners and returns |
| Ordered too much fence | Did not subtract gates | Subtract each gate opening from the perimeter |
| Shape is not a rectangle | L-shaped lot or an angled wall | Measure every side and add them |
| Material ran short at corners | Mitered joints used extra | Add a cut allowance at each corner |
Terms explained
| Term | Meaning |
|---|---|
| Perimeter | The total length around the outside of a shape |
| Circumference | The perimeter of a circle |
| Diameter | The distance straight across a circle through its center |
| Linear foot | One foot of length, used for materials sold by the length |
| Run | A straight stretch of material, such as a fence run |
| Return | A short side that turns back from a main run |
| Opening | A gap such as a gate or door that is not covered |
| Miter | An angled cut where two pieces meet at a corner |
Common perimeter calculator mistakes
- •Forgetting to double the length plus width for a rectangle.
- •Entering the radius instead of the diameter for a circle.
- •Confusing perimeter, which is a length, with area, which is a surface.
- •Not subtracting gates and doors, or not adding the posts and trim they need.
- •Using the perimeter of a bounding rectangle for an irregular lot.
- •Ignoring waste and the extra length at corners.
Metric conversions
| From | To |
|---|---|
| 1 foot | 0.3048 metres |
| 64 feet | 19.51 metres |
| 1 yard | 0.9144 metres |
| 37.7 feet | 11.49 metres |
| 12 ft diameter | 3.66 m diameter |
Triangle and polygon perimeters by hand
The calculator covers rectangles and circles, but lots, rooms and garden beds are often triangles or polygons. Every one of these is just an addition problem: add up all the sides. The only shortcut is for regular shapes, where every side is the same length, so you multiply one side by the number of sides.
Triangle: Perimeter = a + b + c
Regular polygon: Perimeter = Number of sides × Side length
| Shape | Formula | Worked example |
|---|---|---|
| Triangle | a + b + c | 13 + 14 + 15 = 42 ft |
| Square | 4 × side | Side 12 ft → 48 ft |
| Regular pentagon | 5 × side | Side 6 ft → 30 ft |
| Regular hexagon | 6 × side | Side 6 ft → 36 ft |
| Regular octagon | 8 × side | Side 5 ft → 40 ft |
| Irregular polygon | Add every side | Sides 10, 12, 8, 15 and 9 ft → 54 ft |
A triangle's three sides must be able to close: the longest side has to be shorter than the other two added together. Sides of 5, 6 and 12 ft cannot form a triangle, because 5 + 6 is less than 12.
For a triangle you also need its area for material orders, and the two numbers come from the same measurements. Run the sides through the area calculator with Heron's formula, and use the perimeter here for the edging or fence around it.
Same area, different perimeter: the cheapest shape to fence
Fencing is priced by the linear foot, so the shape of a yard decides the fence bill as much as its size does. For the same 256 square feet of lawn, a circle needs the least fencing, a square is next, and a long thin strip needs by far the most. This is the comparison no pure-geometry perimeter page makes, and it is the one that saves money.
| Shape, all 256 sq ft | Dimensions | Perimeter | Fence cost at an example $25 per ft |
|---|---|---|---|
| Circle | Radius about 9.03 ft | About 56.7 ft | About $1,418 |
| Square | 16 ft × 16 ft | 64 ft | About $1,600 |
| Rectangle | 32 ft × 8 ft | 80 ft | About $2,000 |
| Long thin rectangle | 64 ft × 4 ft | 136 ft | About $3,400 |
Example price only, materials and labor vary by region and fence type. The ranking is what matters: the circle costs the least to enclose and the long thin strip the most, for the same area.
The same logic runs the other way for a fixed length of fence. With 64 ft of fencing you can enclose 256 sq ft as a square, 240 sq ft as a 20 ft × 12 ft rectangle, only 60 sq ft as a 30 ft × 2 ft strip, or about 326 sq ft as a circle. If you are choosing between two lots of the same area, the squarer one is cheaper to fence, and if you are laying out a new bed, a rounder shape gives you more planting area per foot of edging.
Fence and trim ordering worked examples
A perimeter is not an order. Panels, boards and rolls come in fixed lengths, gates and doors take length away, and corners and cuts take a little extra. The three worked examples below take a raw perimeter all the way to a shopping list, which is the step the geometry-only calculators skip.
Example: fencing a 100 ft × 50 ft yard with 6 ft panels and a 12 ft double gate
- Perimeter = 2 × (100 + 50) = 300 ft
- Minus the gate = 300 − 12 = 288 ft of fence
- Panels = 288 ÷ 6 = 48 panels; posts = 48 + 1 = 49, plus 2 gate posts
- Check the fence calculator for rails, pickets and concrete per post
Example: baseboard for a 12 ft × 15 ft room with one 3 ft door
- Perimeter = 2 × (12 + 15) = 54 ft
- Minus the door = 54 − 3 = 51 ft; with 10% waste = 51 × 1.10 = 56.1 ft
- 8 ft boards: 56.1 ÷ 8 = 7.01, so buy 8 boards (7 boards give only 56 ft)
Example: landscape edging for a round bed 12 ft across
- Circumference = π × 12 = 37.70 ft
- Edging sold in 20 ft coils: 37.70 ÷ 20 = 1.89, so buy 2 coils
- Allow one extra foot for the overlap joint where the coil ends meet
Example: crown molding for a 20 ft × 12 ft room with two 3 ft doors
- Perimeter = 64 ft; doors do not reduce crown molding, it runs above them
- With 10% waste = 70.4 ft; 12 ft lengths: 70.4 ÷ 12 = 5.87, so buy 6 lengths
Notice the traps: the door is subtracted for baseboard but not for crown molding, and 7.01 boards rounds up to 8, not down to 7. Carry the finished length into the fence calculator, the baseboard trim calculator or the landscape edging calculator to get posts, rails and fixings as well as the length.
Measuring a lot from a plat, a survey or a wheel
A tape measure is fine for a room, but a yard needs better tools. A survey or plat map lists each boundary length, and that is the most reliable source for a fence quote. Where there is no survey, a measuring wheel rolled along the boundary, or a long tape with a helper, gives a usable figure. Walk the boundary in order and write each side down as you go, so the shape closes.
- •Measure along the ground the fence will follow, not the straight-line distance on a map, if the ground slopes. A fence on a slope is longer than the flat distance.
- •A 100 ft run on a 10% grade rises 10 ft, and the slope length is √(100² + 10²) = about 100.5 ft, so the slope adds about half a foot per 100 ft at that grade. Steeper ground adds more.
- •Measure curved boundaries with a flexible tape or a string laid on the curve, then measure the string. For a true circle, use the circumference formula instead.
- •Mark gates, driveways and existing fences on the sketch, and note which sides already have a fence you can share or must replace.
- •Check local rules before you order: fence height, setback from the property line and gate rules vary, and a fence on the wrong line can be an expensive mistake. Your local building department or planning office can confirm.
Once the boundary is measured, the perimeter feeds straight into the material tools. The fence calculator turns it into posts and panels, and the square footage calculator gives you the area inside the same boundary for sod, seed or paving.
Perimeter, area or volume, which number does your job need?
Perimeter, area and volume are three different measurements of the same space, and ordering the wrong one is the classic estimating mistake. If the material runs along an edge, you need the perimeter. If it covers a surface, you need the area. If it fills a space, you need the volume.
| Job | Number you need | For a 20 ft × 12 ft yard |
|---|---|---|
| Fence, edging, trim, gutters | Perimeter (linear feet) | 64 linear ft |
| Sod, pavers, paint, flooring | Area (square feet) | 240 sq ft |
| Topsoil, mulch, gravel, concrete | Volume (cubic feet or yards) | 240 sq ft × 4 in = 80 cu ft = 2.96 cu yd |
| Wall studs along a wall | Wall length ÷ stud spacing | 20 ft wall at 16 in spacing = 16 studs |
One measurement feeds the next: area × depth gives volume, and the perimeter gives the length of everything that runs around the edge. Save all three to your project in the BuildCova app and the numbers stay together.
A quick self-check: if your answer is in square feet, you measured a surface; if it is in linear feet, you measured an edge; if it is in cubic feet or yards, you measured a space. For the surface, use the area calculator, and for the space, the volume calculator or the yard calculator.
Related tools
- •Fence calculator for posts, sections and rails around a perimeter
- •Landscape edging calculator for border pieces
- •Baseboard trim calculator for room trim
- •Area calculator for the surface inside the perimeter
- •Square footage calculator for rooms and lots
- •Linear feet to square feet converter for products sold both ways
Assumptions
- •Supports a rectangle and a circle, with dimensions in feet. Other shapes need each side measured and added.
- •The circle input is the diameter, and the result is the circumference.
- •Does not subtract openings, add corners or waste, or round to piece lengths. Do these from the result.
Sources✓ Verified
- NIST Special Publication 811, Guide for the Use of the International System of Units. Authoritative unit conversion factors, including feet to metres.
- Standard plane geometry formulas for the perimeter of rectangles and the circumference of circles. The formulas used here, as found in standard mathematics references.
- Local building department fence and setback rules. Boundary, height and gate requirements that affect fence perimeter.
- Material manufacturer piece-length and installation data. How perimeter converts into pieces of trim, edging or fencing.
Formula reviewed November 2026.
Add up the lengths of all the sides. For a rectangle, double the sum of the length and width. A 20 × 12 ft rectangle has a perimeter of 64 feet.
2 × (length + width). A 12 × 15 ft room has a perimeter of 54 feet.
Multiply the diameter by π, about 3.14159. A circle 12 feet across has a circumference of 37.7 feet.
Perimeter is the distance around the outside of a shape, in linear units such as feet. Area is the surface inside the shape, in square units such as square feet.
Measure each side of the yard and add them, or double the sum of the length and width if it is a rectangle. Subtract gates, then divide by your fence section length.
Calculate the room's perimeter, subtract the width of door openings, and add 5 to 10% for waste. A 10 × 10 ft room with one 3 ft door needs about 37 feet before waste.
Measure all six sides and add them. Do not use only the length and width of the bounding rectangle unless the shape fits it exactly.
Divide by 3. 64 feet is 21.33 yards.
Lay a flexible tape or a string along the curve, then measure the string. For a true circle, use the circumference formula.
Yes, the perimeter follows every side, including the corners. The total length does not change, but mitered or overlapped materials need extra at the corners.
Yes, if the fence or edging will not cross the opening. Subtract the gate width, then add the gate's own posts and hardware.
Multiply the diameter by π. A 12 foot round bed needs about 37.7 linear feet, plus a little extra for overlap and waste.
Feet for the dimensions, with the result in feet and yards. Convert inches to decimal feet by dividing by 12.
For a square, the side is the square root of the area and the perimeter is four times that. For other shapes you need at least one more measurement.
About 5 to 10% for waste on long pieces, and more for mitered or patterned material. Round up to a whole piece.
Converters to use with the Perimeter Calculator
Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.
Volume, Area & UnitsCubic Feet to Cubic Yards ConverterDivide by 27: any volume in seconds.
Volume, Area & UnitsSquare Feet to Square Yards ConverterDivide by 9: carpet, turf and paving.
Slope & MeasurementFeet & Inches to Decimal Feet Converter5 ft 6 in = 5.5 ft, both directions.More general calculators
GeneralPost CounterA post counter calculator that turns a straight run length and your post spacing into the number of posts you need, for deck railings, pergolas, trellises, mailbox rows or any evenly spaced layout. Count the posts before you buy the lumber, and the run ends with a post instead of a gap. Miss one post and the last section has nothing to hold it.
GeneralMaterial List CalculatorA material list calculator that turns your area, the coverage per unit from your product label and a waste percentage into the number of boxes, rolls, bags or buckets to order. It works for almost any coverage-based material, so one tool covers the flooring, the paint and the tile. Order off the label rate and the count matches what the box actually covers.
GeneralPool Volume CalculatorThis pool volume calculator works out the water volume of your pool in gallons and litres, for rectangle, round, oval or kidney shapes, so you order the right chemicals and know how long the pool takes to fill. Enter the dimensions and the shallow and deep end depths. A rectangular pool 32 ft by 16 ft, 3 ft deep at the shallow end and 8 ft at the deep end, holds about 21,065 gallons, and the page turns that volume into the chemical dose per 10,000 gallons.
GeneralMuck Away & Waste CalculatorA muck away calculator that works out what comes out of the hole and what it costs to take away. Enter the dig dimensions and soil type, and get the volume in the ground, the bulked-up volume once dug, the weight in tons, the grab-lorry loads, the skip requirements and the disposal cost. Dug soil swells, clay by 30% and rock by 60%, and the lorry is limited by weight as well as volume, so the calculator checks both and tells you which one binds.
GeneralSize to Weight CalculatorTurn any box size into a weight in seconds with this size to weight calculator, so you can check whether a load is safe to lift, ship or stack before you move it. Enter the length, width and thickness, pick steel, aluminum, wood, stone, concrete or plastic, or type in any density, and get the volume, the weight per piece and the total for your quantity in pounds, kilograms and tons.
GeneralAluminum Weight CalculatorWork out the weight of any aluminum plate, sheet, bar or pipe from its size and alloy with this aluminum weight calculator, so you can size supports, plan lifts and price a job without guessing at the weight. Aluminum weighs about a third of steel, 169 lb per cubic foot for 6061 against 490 for carbon steel, so the same part is far lighter. Pick the alloy, pick the shape, enter the size, and get the weight in pounds and kilograms, per piece and per foot.Was this calculator helpful?
Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.