Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Perimeter Calculator

Perimeter Calculator

Find the perimeter of a circle, square, rectangle, triangle, or other 2D shape. Enter the sides and see the result instantly with its formula.

Perimeter and Circumference of 2D Shapes

The perimeter is the total distance around the outline of a flat shape. Pick one of nine common 2D shapes, type in its dimensions, and the perimeter appears the moment you enter a value — with the exact formula shown so you can follow the math. For a circle, that boundary distance has its own name: the circumference.

Perimeter is a length, so the answer stays in the same linear unit you choose for the inputs — cm, m, in, and so on — never a square unit.

Shapes You Can Measure

Circle & Ellipse

Circumference of a circle from its radius, plus the ellipse perimeter via Ramanujan's approximation.

Quadrilaterals

Square, rectangle, trapezoid, parallelogram, and rhombus.

Triangle & Polygon

Any triangle from its three sides, plus a regular polygon with n equal sides.

How to Calculate Perimeter

1

Select the Shape

Choose the shape you want to measure. The input fields change to ask only for the dimensions that shape needs.

2

Enter the Dimensions

Type in the side lengths, radius, or semi-axes the shape requires. Fill in every field for a complete result.

3

Read the Result Instantly

The perimeter is computed as you type, with the formula and the substituted values shown so you can check each step.

4

Set Your Unit

Pick mm, cm, m, in, or ft from the dropdown. The result is labelled in that same linear unit.

Enter all required sides. For a scalene triangle or a trapezoid, every side counts — leaving one blank gives an incomplete perimeter.

Perimeter Formulas by Shape

Each shape uses a standard formula. The calculator applies them for you, but here is the full reference for checking your own work by hand.

ShapeFormulaInputs Needed
CircleP = 2 × π × rradius r
SquareP = 4 × aside a
RectangleP = 2 × (l + w)length l, width w
TriangleP = a + b + csides a, b, c
TrapezoidP = a + b + s₁ + s₂bases a, b, sides s₁, s₂
ParallelogramP = 2 × (a + b)sides a, b
RhombusP = 4 × aside a
EllipseP ≈ π × (3(a+b) − √((3a+b)(a+3b)))semi-axes a, b
Regular PolygonP = n × asides n, side length a
Worked example: a circle with radius r = 5 cm gives P = 2 × π × 5 = 10π ≈ 31.415927 cm.

Calculator Features

Nine 2D Shapes

Circle, square, rectangle, triangle, trapezoid, parallelogram, rhombus, ellipse, and regular polygon — all covered.

Real-Time Results

The perimeter updates the instant you change a value — no submit button, no waiting.

Formula & Steps Shown

Every result displays its formula with your numbers substituted in, so you can see exactly how it was worked out.

Five Unit Labels

Label your result in mm, cm, m, in, or ft — the same linear unit you enter your dimensions in.

Private by design: every calculation runs locally in your browser — nothing you type is uploaded.

Frequently Asked Questions

What is the difference between perimeter and circumference?

Circumference is simply the perimeter of a circle. Both measure the total length around the outside of a shape; "circumference" is the word reserved for a round boundary like a circle or ellipse, while "perimeter" is the general term for any 2D shape.

How do I find the perimeter of a shape?

For a polygon, add the lengths of every side. Regular shapes have shortcuts — P = 4 × a for a square, P = 2 × (l + w) for a rectangle, and P = 2 × π × r for a circle's circumference. This tool applies the right formula automatically once you pick the shape.

How do you calculate the circumference of a circle?

Multiply the radius by 2 and by π: P = 2 × π × r. A circle with radius 5, for example, has a circumference of 2 × π × 5 = 10π ≈ 31.42. Enter the radius and the tool returns the circumference instantly.

How is the ellipse perimeter calculated?

An ellipse has no simple exact perimeter formula, so the tool uses Ramanujan's approximation: P ≈ π × (3(a+b) − √((3a+b)(a+3b))). It is extremely accurate for everyday ellipses.

What unit is the perimeter given in?

Perimeter is a length, so it stays in the linear unit you selected — mm, cm, m, in, or ft — the same unit you used for the dimensions. The unit is a label, so enter every value in one consistent unit.

Do I need every side of a triangle?

Yes. The perimeter of a triangle is the sum of all three sides (a + b + c), so each side length must be entered for a correct total.

Circle
Perimeter
-
cm
Formula: P = 2 × π × r
For a circle, the perimeter is called the circumference (P = 2 × π × r)
Enter every required side length for an accurate total
Perimeter is a length — the result keeps the linear unit you pick (mm, cm, m, in, ft)
Ellipse perimeter uses Ramanujan's approximation for high accuracy
Results update in real time as you type — there is no submit button
Want to learn more? Read documentation →
1/6

Geometry Calculator

Start typing to search...
Searching...
No results found
Try searching with different keywords