Perimeter Calculator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free perimeter calculator for squares, rectangles, triangles, circles (circumference) and regular polygons, with the area and the formula shown.
- Area
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the perimeter calculator
- Choose a shape: rectangle, square, triangle, circle or regular polygon.
- Enter the measurements. The labels change to match the shape: length and width for a rectangle, the side for a square, three sides for a triangle, the radius for a circle, or the number of sides and side length for a regular polygon.
- Read the results. The perimeter calculator shows the perimeter (or circumference for a circle), the area, and the formula used.
Use any unit you like, such as inches, feet, centimeters or meters. The perimeter comes out in the same unit, and the area in square units.
What is perimeter?
The perimeter is the total distance around the outside of a two-dimensional shape. If you walked all the way around the edge of a field, the distance you walked would be its perimeter. For a circle, the perimeter is called the circumference.
Perimeter is a length, so it's measured in units like meters or feet. Area is the space inside the shape, measured in square units like square meters or square feet.
Perimeter formulas
| Shape | Perimeter | Area |
|---|---|---|
| Square (side a) | 4a | a² |
| Rectangle (length l, width w) | 2(l + w) | l × w |
| Triangle (sides a, b, c) | a + b + c | Heron's formula |
| Circle (radius r) | 2πr | πr² |
| Regular polygon (n sides of length s) | n × s | n × s² ÷ (4 × tan(180° ÷ n)) |
Rectangle
A rectangle 12 m long and 8 m wide has a perimeter of 2 × (12 + 8) = 40 m and an area of 96 m².
Square
A square with 5 cm sides has a perimeter of 4 × 5 = 20 cm and an area of 25 cm².
Triangle
Add the three sides. A triangle with sides 3, 4 and 5 has a perimeter of 12. The perimeter calculator also checks that the sides can form a triangle: any two sides must add up to more than the third. Sides of 2, 3 and 10 can't make a triangle.
For the area, it uses Heron's formula: with s = half the perimeter, area = √(s(s − a)(s − b)(s − c)). For 3, 4, 5: s = 6, area = √(6 × 3 × 2 × 1) = 6.
Circle
The circumference is 2πr, or π × diameter. A circle with a radius of 10 cm has a circumference of 2 × π × 10 ≈ 62.83 cm. Our circle calculator works from the diameter, circumference or area too.
Regular polygon
A regular polygon has all sides and angles equal: a regular hexagon with 6 cm sides has a perimeter of 6 × 6 = 36 cm and an area of about 93.53 cm².
Perimeter of irregular shapes
For a shape with straight sides of different lengths, add up all the sides. For an L-shaped room, measure every wall, including the short ones in the inside corner. A useful shortcut: for an L-shape (or any shape where every corner is a right angle and the sides only go horizontal or vertical), the perimeter equals the perimeter of the smallest rectangle that encloses it. So an L-shaped room that fits in a 15 × 12 ft rectangle has a perimeter of 2 × (15 + 12) = 54 ft.
For curved shapes, break the edge into straight sections and arcs. The length of an arc is (angle ÷ 360°) × 2πr.
Perimeter versus area
Two shapes with the same perimeter can have very different areas. With 40 m of fencing:
- A 10 × 10 m square encloses 100 m².
- A 15 × 5 m rectangle encloses 75 m².
- A 19 × 1 m rectangle encloses only 19 m².
- A circle with a 40 m circumference encloses about 127 m².
For a fixed perimeter, a circle encloses the largest area, and among rectangles, a square does. This is useful when planning gardens, pens and enclosures.
Real-world uses of perimeter
- Fencing: the length of fence needed is the perimeter of the area (minus any sides that don't need fencing). The fence calculator then counts posts, rails and pickets.
- Skirting boards, trim and crown molding: measured along the walls of a room, minus door openings.
- Edging: garden borders, lawn edging and paths.
- Framing: the length of moulding needed for a picture frame is the perimeter of the picture (plus extra for mitred corners).
- Sewing and crafts: trim, piping and ribbon around fabric and cushions.
- Running tracks and fields: laps and boundary lengths.
- Construction: foundation footings and wall lengths.
Common mistakes
- Confusing perimeter and area. Perimeter is a length; area is a surface.
- Mixing units, such as one side in feet and another in inches. Convert first.
- Using the diameter instead of the radius in 2πr. With the diameter, the circumference is π × d.
- Forgetting sides of irregular shapes.
- Giving area in plain units (it should be square units, such as m²).
A worked example
Jordan is putting new skirting board in a living room that measures 16 × 13 ft, with two 3 ft doorways where no skirting is needed.
In the perimeter calculator with "Rectangle" selected: 2 × (16 + 13) = 58 ft. Subtracting the two doorways leaves 52 ft of skirting. Skirting comes in 12 ft lengths, so Jordan needs 52 ÷ 12 = 4.33, which rounds up to 5 lengths, plus a little extra for mitred corners and mistakes, so 6 lengths.
Jordan also checks the floor area for new carpet: 16 × 13 = 208 sq ft.
Who uses a perimeter calculator
Students use it for geometry homework. Builders, carpenters and decorators use it for trim, fencing and framing. Gardeners and landscapers use it for edging and borders. Event planners use it to work out barrier and lighting lengths, and crafters use it for trims and borders.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.
Perimeter of other shapes
The perimeter calculator covers the most common shapes. A few more you may need:
- Parallelogram: 2 × (side a + side b), the same as a rectangle, since opposite sides are equal.
- Rhombus: 4 × side.
- Trapezoid: add all four sides.
- Kite: 2 × (side a + side b).
- Semicircle: πr + 2r (the curved edge plus the straight diameter).
- Quarter circle: ½πr + 2r.
- Ellipse: there's no simple exact formula. A good approximation is Ramanujan's: π × (3(a + b) − √((3a + b)(a + 3b))), where a and b are the two half-axes.
- Sector of a circle with angle θ in degrees: (θ ÷ 360) × 2πr + 2r.
Finding a missing side from the perimeter
If you know the perimeter and some sides, rearrange the formula:
- Rectangle: width = perimeter ÷ 2 − length. A rectangle with a perimeter of 30 m and a length of 9 m has a width of 15 − 9 = 6 m.
- Square: side = perimeter ÷ 4.
- Circle: radius = circumference ÷ (2π). A circle with a circumference of 100 cm has a radius of about 15.92 cm.
- Triangle: the missing side = perimeter − the other two sides.
Perimeter in real units
Measurements in real projects often mix units. Convert everything to one unit before calculating: 12 ft 6 in becomes 12.5 ft, and 1 m 20 cm becomes 1.2 m. If you need the answer in a different unit, convert at the end; our length converter handles feet, inches, meters, centimeters and more. For buying materials sold in fixed lengths, such as trim in 8 ft or 2.4 m lengths, divide the perimeter by the length and round up, adding extra for joins and corner cuts.
Teaching perimeter
Students often confuse perimeter and area. Hands-on activities help: walking around the edge of a rectangle marked on the playground (perimeter), then filling it with square tiles (area). Comparing shapes with the same perimeter but different areas, as in the fencing example above, shows why the two measures are different. The perimeter calculator shows both side by side, which makes the difference easy to see.
Perimeter and cost estimates
Many materials are priced by length: fencing, edging, skirting, crown moulding, gutters and ribbon. Multiply the perimeter from the perimeter calculator by the price per foot or meter, then add extra for waste, joins and corners, typically 5% to 10%.
Sources and further reading
- Perimeter on Wikipedia: formulas for common shapes.
- Circumference on Wikipedia: the perimeter of a circle and the role of π.
- Heron's formula on Wikipedia: a triangle's area from its three sides.
Frequently asked questions
How do you find the perimeter?
Add up the lengths of all the sides. For a rectangle, use 2 × (length + width); for a circle, 2πr.
What is the perimeter of a 10 x 5 rectangle?
30 units: 2 × (10 + 5).
What is the difference between perimeter and area?
Perimeter is the distance around a shape; area is the space inside it.
How do I find the perimeter of a circle?
Multiply the radius by 2π, or the diameter by π. That's the circumference.
What is the perimeter of a triangle?
The sum of its three sides.
Is the perimeter calculator free?
Yes. It's free, needs no sign-up, and works in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.