Perimeter Calculator
Select a shape and enter its dimensions to calculate the perimeter. Supports rectangles, triangles, circles (circumference), and regular polygons.
Perimeter is the total distance around the outside of a two-dimensional shape — the boundary length. For a rectangular garden, perimeter tells you how much fence to buy. For a circular pool, it's how much trim to order. For an irregular plot, it's the total walked distance around the border. Calculating perimeter is fundamental in construction, landscaping, sewing, real estate, and any field involving 2D boundaries.
Each shape has its own perimeter formula: - **Rectangle**: 2 × (length + width). - **Square**: 4 × side. - **Triangle**: sum of three sides (or 3 × side for equilateral). - **Circle**: 2 × π × radius (called "circumference"). - **Regular polygon**: n × side length. - **Irregular shapes**: sum of all sides.
Perimeter differs from area: perimeter is measured in linear units (cm, ft), while area is measured in square units (cm², ft²). They scale differently: doubling all dimensions doubles perimeter but quadruples area.
Among shapes with the same area, the circle has the smallest perimeter. This is the isoperimetric inequality. It's why bubbles are spherical (minimize surface for given volume), why bees build hexagonal cells (best polygon for tiling), and why rectangular plots use more fence than circular for same area.
Common applications: fencing, framing, edging, trim, materials lists, garden borders, sewing hems, building outlines, and any project involving the boundary length of a shape.
Inputs
Results
Perimeter
30
Formula Used
P = 2(l + w) = 2(10 + 5)
Formula
How to use this calculator
- Choose shape: rectangle, triangle, circle, or regular polygon.
- Enter dimensions appropriate to shape.
- Calculator returns perimeter in your chosen units.
- For irregular shapes: sum all side lengths manually.
- For triangles: ensure triangle inequality (each side < sum of others).
- For circles: result is circumference (C = 2πr).
Worked examples
Garden fencing
**Scenario:** Rectangular vegetable garden 12 m × 8 m. Need fence. **Calculation:** P = 2 × (12 + 8) = 40 m. **Result:** Need 40 m of fencing. Add ~10% for waste/corners: order ~44 m. Include cost of posts (typically every 2-3 m): ~15-20 posts. Linear-foot pricing for materials.
Picture frame moulding
**Scenario:** Frame for 11" × 14" photo using 2" wide moulding. **Calculation:** Inner perimeter: 2 × (11 + 14) = 50 in. Outer perimeter (after moulding): 2 × (15 + 18) = 66 in. Order moulding: 66 in + waste = ~72 in. **Result:** Order ~6 ft of moulding. Mitre cuts at 45° at each corner. Calculate carefully because frame moulding has specific corner-cutting requirements.
Running track
**Scenario:** Standard 400 m Olympic track. Compute total distance for one lap and three laps. **Calculation:** Inner lane: 400 m exactly (designed). 3 laps: 1200 m. **Result:** 3 laps = 1200 m = 0.75 mile. 4 laps = 1 mile (rough; actually 1.609 km = 4.02 laps). Standardized track distances allow direct comparison globally.
When to use this calculator
**Use perimeter calculations for:**
- **Fencing**: amount needed for boundaries. - **Framing**: picture frames, doors, windows. - **Edging**: garden borders, lawn edging. - **Sewing**: hems, trim, bias tape. - **Construction**: linear footage of walls. - **Trim work**: baseboard, crown molding. - **Running**: track lap distances. - **Real estate**: property line measurements.
**Add waste factor:**
Real materials need extra for cuts, corners, mistakes: - **Fencing**: 5-10% extra. - **Wood trim**: 10-15%. - **Bias tape**: 10-15%. - **Curved cuts**: 15-25%.
**Composite/irregular shapes:**
Sum all side lengths. For complex shapes: 1. Divide into rectangles, triangles, sectors. 2. Identify all outer edges. 3. Sum lengths. 4. Skip interior shared edges (only count outer perimeter).
**Linear vs squared:**
- Perimeter: linear units (cm, ft, m). One dimension. - Area: squared units (cm², ft², m²). Two dimensions. - Volume: cubed units. Three dimensions.
Don't confuse measurement types.
**Scaling laws:**
Double all linear dimensions: - Perimeter doubles (×2). - Area quadruples (×4). - Volume octuples (×8).
This is why small things have high surface-to-volume ratio (good for heat exchange, bad for heat retention).
**Common applications:**
- **DIY projects**: fence, trim, edging materials. - **Real estate**: lot boundaries. - **Athletic events**: track lap counts. - **Sewing**: hem lengths, ribbon trim. - **Cooking**: pie crust edge, baking pan rim. - **Architecture**: building exterior dimensions. - **Manufacturing**: edge work, finishing.
**Surveying methods:**
- **Tape measure**: small properties. - **GPS**: outdoor surveying. - **Total station**: professional precision. - **Drone photogrammetry**: large or complex sites. - **Online mapping**: rough estimates.
**Software:**
- **CAD**: AutoCAD, SolidWorks compute perimeter automatically. - **GIS**: ArcGIS, QGIS for property boundaries. - **Sketch apps**: many DIY apps for rooms. - **Spreadsheets**: known-shape calculations.
**Pitfalls:**
- **Confusing perimeter with area**: linear vs squared units. - **Forgetting all sides**: irregular shapes can have many. - **Imperial vs metric**: mixing causes errors. - **For circles: confusing radius and diameter**: C = 2πr or πd. - **For ellipse: no exact perimeter formula**: use approximation. - **Forgetting waste factor**: order short. - **Composite shape complexity**: easy to miscount sides.
**Practical tips:**
- **Always sketch the shape** with all dimensions. - **Double-check measurements**: walk the perimeter physically if possible. - **Round up** for material orders. - **Account for** doorways, gates, openings (subtract from total). - **Buy extra**: spare material for repairs/mistakes.
**For circular shapes:**
C = 2πr = πd
Pi ≈ 3.14159; for everyday work 3.14 is sufficient.
For elliptical: no exact formula; use Ramanujan approximation: P ≈ π × [3(a+b) − √((3a+b)(a+3b))]
**For polygons with curved sides** (rare): combine line segments + arc lengths.
**For complex shapes:**
Many CAD/GIS tools have automatic perimeter calculation. Manual calculation only needed for hand-sketched or theoretical shapes.
**Pitfalls (continued):**
- **Mixing in vs out**: perimeter is outer boundary; not inner cavities. - **Holes/cutouts**: separately compute hole perimeters if needed. - **For 3D shapes**: confuse perimeter (2D) with edge length (3D). - **Curved boundaries**: use appropriate formula or numerical estimation.
Common mistakes to avoid
- Confusing perimeter (linear) with area (squared units).
- Forgetting to include all sides of irregular shapes.
- For circles: confusing radius (in 2πr) with diameter (in πd).
- Mixing units (some sides in cm, others in m).
- Forgetting waste factor when ordering materials.
- Computing perimeter of composite shapes incorrectly.
- For triangles: not verifying triangle inequality.
- Confusing inner and outer perimeter.
Frequently Asked Questions
Sources & further reading
Related Calculators
Area Calculator
Calculate the area of common shapes: circle, rectangle, triangle, and trapezoid.
Triangle Calculator
Calculate triangle area, perimeter, and angles from three side lengths using Heron's formula and the law of cosines.
Circle Calculator
Calculate circle area, circumference, diameter, and radius. Solve from any known value.
Hexagon Calculator
Calculate the area, perimeter, and apothem of a regular hexagon from its side length.