Perimeter Calculator: Find the Perimeter of Any Shape Instantly
Whether you’re fencing a garden, framing a room, edging a driveway, or solving a geometry problem, knowing the exact distance around a shape matters. A perimeter calculator solves this instantly by adding up the boundary of a shape based on its dimensions, so you don’t have to work through the formula by hand or risk a costly measuring mistake.
Perimeter Calculator
Enter Your Shape Details
Your Results
Calculate Perimeter to see your results.
—
Shape Breakdown
A visual snapshot of the sides that make up your perimeter.
Quick navigation
How perimeter calculator works

A perimeter calculator adds up the lengths of all the sides of a shape, such as a square, rectangle, triangle or circle’s circumference, to give the total distance around its boundary.
Things to keep in mind
- Formula changes depending on the shape chosen
- Irregular shapes need each side measured separately
- Does not tell you the area enclosed by the shape
- Accuracy depends on precise side or radius measurements
Online calculators
What is a Perimeter Calculator?
A perimeter calculator is a tool that works out the total distance around the outside of a two-dimensional shape, based on the lengths of its sides or its radius/diameter (for a circle). It supports common shapes like rectangles, squares, circles, triangles, and regular or irregular polygons.
Perimeter vs. area — what’s the difference?
Perimeter is the distance around a shape — think of it as the length of fencing needed to enclose a yard. Area is the amount of space inside a shape — think of it as the amount of turf needed to cover that same yard. Two shapes can have the same perimeter but very different areas, and vice versa, so it’s important to use the right calculation for the job at hand.
Two rectangular gardens with the same perimeter, for example, can have very different shapes — a long, narrow strip and a compact square — and therefore very different usable areas.
Why Use a Perimeter Calculator?
Using a perimeter calculator before you buy materials or submit an answer saves time and avoids errors in several practical ways:
- Avoid under-buying fencing, edging, or trim — running short mid-project means an extra trip and mismatched materials
- Avoid over-buying — excess material wastes money and is often non-returnable once cut
- Handle mixed shapes correctly — rectangles, circles, triangles, and irregular plots each use a different formula
- Get accurate homework and exam answers — apply the correct geometry formula every time, with the working shown
- Convert units on the fly — move between meters, feet, and inches without manual conversion errors
- Plan budgets accurately — know the exact length of material needed before pricing up a project
- Cross-check manual measurements — a quick way to verify hand-measured or hand-calculated results
How Does the Calculator Work?
Webequa’s calculator asks for a few simple inputs depending on the shape you choose:
- Shape type – rectangle, square, circle, triangle, regular polygon, or irregular polygon
- Side lengths – for rectangles, squares, triangles, and polygons
- Radius or diameter – for circles
- Number of sides – for regular polygons (e.g., pentagon, hexagon)
- Unit of measurement – meters, centimeters, feet, or inches
Once entered, the calculator applies the correct formula for the selected shape and returns the total perimeter (or circumference, for circles), along with the option to convert the result into a different unit.
Formula
Webequa’s calculator uses the standard geometric perimeter formulas taught in schools and used by builders and designers worldwide. The formula used depends on the shape selected.
Rectangle
Perimeter = 2 × (Length + Width)Square
Perimeter = 4 × SideCircle (Circumference)
Perimeter = 2 × π × Radius
or
Perimeter = π × DiameterTriangle
Perimeter = Side A + Side B + Side CRegular Polygon
Perimeter = Number of Sides × Length of One SideIrregular Polygon
Perimeter = Sum of the lengths of all sidesVariable explanations:
- Length / Width — the two dimensions of a rectangle, measured along adjacent sides
- Side — the length of one edge of a square, triangle, or regular polygon
- Radius — the distance from the center of a circle to its edge
- Diameter — the distance across a circle through its center (twice the radius)
- π (Pi) — a mathematical constant, approximately 3.14159, used in all circle calculations
Assumptions:
- Rectangles and squares are assumed to have perfectly straight, perpendicular sides
- Circle calculations use π rounded to 5 decimal places for accuracy
- Regular polygons are assumed to have equal side lengths and equal angles
- Irregular shapes require every individual side length to be measured and entered
Note: For irregular plots or rooms with more than four sides, measure each straight section separately and enter them individually. Skipping or estimating a side is the most common source of error in perimeter calculations.
How to Use This Calculator
- Select the shape you want to calculate (rectangle, square, circle, triangle, or polygon).
- Enter the required dimensions — side lengths, or radius/diameter for a circle.
- Choose your preferred unit (meters, centimeters, feet, or inches).
- For irregular polygons, add each side length one at a time.
- Click Calculate.
- Review the total perimeter and convert to another unit if needed.
Tip: Always double-check that every side of an irregular shape has actually been entered — a single missing side is the most common cause of an incorrect result.
Example Calculations
Example 1: Rectangular Garden Fencing
Garden dimensions:
| Measurement | Value |
|---|---|
| Length | 12 m |
| Width | 8 m |
| Shape | Rectangle |
Step 1: Apply the rectangle formula:
Perimeter = 2 × (12 + 8) = 2 × 20 = 40 mRecommendation: You’ll need approximately 40 meters of fencing to enclose this garden. Add a small allowance (5–10%) for gate posts, overlaps, and corner joints when buying materials.
Example 2: Circular Pool Edging
| Measurement | Value |
|---|---|
| Diameter | 5 m |
| Shape | Circle |
Step 1: Apply the circle formula:
Perimeter = π × Diameter = 3.14159 × 5 = 15.71 mRecommendation: You’ll need approximately 15.71 meters of edging or coping to go around this pool. Round up to the nearest full unit your supplier sells in (e.g., per meter or per linear foot).
Perimeter Formula Reference Chart
Formula by Shape
| Shape | Perimeter Formula |
|---|---|
| Rectangle | 2 × (Length + Width) |
| Square | 4 × Side |
| Circle | 2 × π × Radius (or π × Diameter) |
| Triangle (any) | Side A + Side B + Side C |
| Equilateral Triangle | 3 × Side |
| Regular Pentagon | 5 × Side |
| Regular Hexagon | 6 × Side |
| Regular Polygon (n sides) | n × Side |
| Irregular Polygon | Sum of all side lengths |
Common Unit Conversions
| Convert From | Convert To | Multiply By |
|---|---|---|
| Meters | Feet | 3.28084 |
| Feet | Meters | 0.3048 |
| Meters | Inches | 39.3701 |
| Feet | Inches | 12 |
| Centimeters | Inches | 0.3937 |
Understanding Your Results
- Total perimeter — the full distance around the outside of the shape, in your selected unit
- Per-side breakdown — for polygons, a list of each side length used in the calculation
- Unit conversion — the same result automatically shown in an alternative unit if selected
- Rounding — results are typically shown to two decimal places for practical use
For real-world projects like fencing or edging, always add a small material allowance on top of the exact calculated perimeter to account for joints, overlaps, and corners.
Factors That Affect Perimeter Accuracy
Several real-world factors can affect how accurate your perimeter calculation is:
- Measurement precision — small errors in measuring each side add up across the whole perimeter
- Irregular or curved edges — shapes that aren’t perfectly straight need to be broken into smaller measurable sections
- Sloped or uneven ground — measuring along a slope gives a different (longer) result than a flat horizontal measurement
- Rounding of π — using a less precise value of π introduces small errors in circle calculations
- Missing sides — forgetting to measure and enter every side of an irregular polygon
- Unit mismatches — mixing meters and feet within the same calculation without converting first
Benefits of Using a Perimeter Calculator
- Free and instant results
- Eliminates manual formula errors
- Supports rectangles, squares, circles, triangles, and polygons
- Handles irregular shapes with multiple side entries
- Works in metric (meters, cm) and imperial (feet, inches) units
- Saves money by giving accurate fencing or edging quantities
- Prevents project delays from under-measuring
- Useful for construction, landscaping, and education
- Helps students check geometry homework quickly
- Supports accurate project budgeting before buying materials
- Works for both simple and complex, multi-sided shapes
- Free to use as often as needed with no registration
Limitations
- Assumes straight sides between points — curved or freeform edges need to be approximated with multiple short straight segments
- Does not calculate area — use a dedicated area calculator if you need the space enclosed, not the boundary length
- Relies on accurate manual measurements — the calculator is only as accurate as the values entered
- Regular polygon mode assumes equal sides — shapes with uneven sides must use the irregular polygon mode instead
- Does not include material overlap allowances — add your own buffer when buying fencing, edging, or trim
- 2D shapes only — the calculator does not handle 3D surface perimeters or volumes
Disclaimer: Results are estimates based on standard geometric formulas and the values entered. Always double-check measurements on-site before purchasing materials, and add a reasonable allowance for joints, corners, and overlaps.
Common Mistakes
- Mixing units (some sides in meters, others in feet) without converting first
- Forgetting to measure and enter every side of an irregular shape
- Using the area formula instead of the perimeter formula, or vice versa
- Confusing radius and diameter when calculating a circle’s perimeter
- Assuming a regular polygon formula applies to a shape with unequal sides
- Not accounting for slope when measuring ground-level distances
- Rounding measurements too early, which compounds errors across multiple sides
- Forgetting to add a material allowance for joints, gates, or corners
- Measuring only two sides of a rectangle and assuming symmetry without checking
- Using an imprecise value of π for circle calculations
- Not re-checking on-site measurements against calculator inputs before ordering
- Treating a curved or freeform edge as a single straight line
Tips for Accurate Results
- Measure each side individually rather than estimating from a rough sketch
- Convert all measurements to the same unit before entering them
- For circles, confirm whether you’re measuring radius or diameter before calculating
- Break curved or irregular edges into several short, straight segments for a closer estimate
- Double-check rectangle and square measurements with a second measurement pass
- Add a small material allowance (5–10%) when buying fencing, edging, or trim
- Use a laser measure or tape measure for accuracy over long distances
- For sloped ground, measure the actual ground distance, not just the horizontal projection
- Recheck polygon entries to make sure no side has been missed or duplicated
- Round final answers only at the end of the calculation, not at each step
- For classroom or homework use, show the formula and working alongside the final answer
- Use consistent decimal precision throughout a multi-side calculation
- For fencing projects, account for gate widths separately from the continuous fence line
- Keep a written record of each side’s measurement in case you need to recheck later
- When in doubt about shape type, choose the irregular polygon option and enter each side manually
Why Trust Webequa?
- ✔ Accurate, formula-verified calculations
- ✔ Covers all common 2D shapes
- ✔ Expert-reviewed information
- ✔ Privacy-first — no data stored
- ✔ No registration required
- ✔ Mobile-friendly design
- ✔ Fast loading, no clutter
- ✔ Free forever
- ✔ Regularly updated content
- ✔ Accessible worldwide
Related Calculators
- Area Calculator
- Fence Calculator
- Square Footage Calculator
- Room Area Calculator
- Circle Calculator
- Triangle Calculator
- Paint Calculator
- Sand Calculator
- Concrete Calculator
- Decking Calculator
- Unit Converter
- Cost Per Square Meter Calculator
Scientific and Trade References
- National Institute of Standards and Technology (NIST) — Mathematical Constants
- Khan Academy — Perimeter and Area Fundamentals
- The Math Forum — Geometry Reference
- Royal Institution of Chartered Surveyors (RICS) — Measurement Standards
- National Council of Teachers of Mathematics (NCTM) — Geometry Resources
- Engineering Toolbox — Geometric Shape Formulas
Conclusion
Getting your perimeter right — whether for a fencing project, an edging job, or a geometry problem — saves time, avoids material waste, and keeps your numbers accurate. A perimeter calculator gives you a fast, reliable way to find the total distance around any shape, from simple rectangles and circles to complex irregular plots. Webequa’s calculator handles all the formulas automatically so you can move straight from measurement to result.
Try Webequa’s free perimeter calculator today and get an accurate answer for your next project or problem in seconds.