Skip to main content
🔢 Geometry

Perimeter Calculator

Find the perimeter of a rectangle, square or triangle — or the circumference of a circle — and the area too, with the formula spelled out for each shape.

Rectangle & square
Triangle
Circle circumference
Area included
100% Free
🔢 Open All Math Calculators 📖 Read the Guide

Perimeter — Quick answer

Perimeter is the distance around a shape; for a circle it's the circumference.

rect 2(l+w) · square 4s · triangle a+b+c · circle 2πr

Worked example: rectangle 8×5 → perimeter 26 (area 40) · circle r=7 → circumference 43.98.

Perimeter formulas

ShapePerimeterArea
Rectangle2(l + w)l × w
Square4s
Trianglea + b + cHeron's
Circle2πr (circumference)πr²

Perimeter is a length; area is in square units.

🔢 Perimeter Calculator

Pick a shape and enter its dimensions (same unit).

Perimeter / Circumference
Area
Formula used

ℹ️ Perimeter is in the same unit as your inputs; area is in square units. A triangle's sides must satisfy the triangle inequality.

Perimeter is the total distance around the edge of a flat shape. For polygons you just add the sides — 2(l + w) for a rectangle, 4s for a square, a + b + c for a triangle. For a circle, the same idea is the circumference, 2πr. This calculator finds the perimeter (or circumference) for each shape and the area as well, showing the formula it used.

Reviewed: June 20, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: standard perimeter and area formulas, recomputed in code.

Perimeter formulas by shape

Rectangle & square
P = 2(l + w)  ·  P = 4s
Triangle
P = a + b + c
Circle
C = 2πr = πd

Every polygon's perimeter is just the sum of its sides; the rectangle and square formulas are shortcuts because their sides repeat. A circle has no straight sides, so its "perimeter" is the circumference, 2π times the radius. Perimeter always comes out in linear units — the same unit you measured the sides in — while the area the calculator also gives is in square units.

Worked example — rectangle 8 × 5

Scenario: a rectangle 8 long and 5 wide.

Perimeter
2 × (8 + 5) = 2 × 13 = 26
Area
8 × 5 = 40
Circle (r = 7)
C = 2 × π × 7 = 43.98 · area = π × 49 = 153.94

The rectangle's perimeter is 26 and its area is 40 square units — you'd need 26 units of fencing but 40 units of turf. A square of side 6 has perimeter 24 and area 36, and a 3-4-5 triangle has perimeter 12. For a circle of radius 7 the circumference is 43.98 and the area 153.94. Perimeter and area answer different questions: distance around versus space inside.

Frequently Asked Questions

What is perimeter?

The total distance around a 2D shape — the sum of its sides. For a circle it's the circumference. Measured in linear units.

How do you find the perimeter of a rectangle?

P = 2(l + w). An 8 by 5 rectangle: 2 × 13 = 26. Its area is l × w = 40.

What is the perimeter of a circle called?

The circumference: C = 2πr = πd. Radius 7 → ≈ 43.98; area πr² ≈ 153.94.

What is the difference between perimeter and area?

Perimeter is the distance around (a length); area is the space inside (square units). 8×5: perimeter 26, area 40.

How do you find the perimeter of a triangle?

Add the three sides: P = a + b + c. A 3-4-5 triangle has perimeter 12. No angles needed.

Need more math tools?

Explore area, circle, triangle, surface area and more across the AI Calculator math suite.

🔢 Open Math Calculators — Free

No registration required · 350+ calculators · PDF report export