Math

Perimeter Calculator

Find the perimeter of a square, rectangle, triangle, or circle.


Perimeter Calculator

Advertisement

The total boundary length of a shape, computed for four common shapes on one page.

How it works

Each shape uses its own standard perimeter formula: four times the side for a square, twice the sum of length and width for a rectangle, the sum of all three sides for a triangle, and 2π times the radius (the circumference) for a circle.

What this does not include

This does not include area — for that, use this site’s general area calculator instead, which covers the same and additional shapes from the area side.

How to use this calculator

  1. Select a shape and enter its dimensions.

A worked example

Square, side 5 → 4 × 5 = 20. Rectangle, length 8 and width 5 → 2 × (8+5) = 26. Triangle, sides 3, 4, 5 → 3+4+5 = 12. Circle, radius 4 → 2π × 4 = 25.1327.

What the formulas are

Shape Formula
Square 4 × side
Rectangle 2 × (length + width)
Triangle side a + side b + side c
Circle 2π × radius (its circumference)

Edge cases worth knowing

The triangle formula needs all three side lengths, not an angle or height — three side lengths that fail the triangle inequality (any two must outweigh the third) don’t describe a real triangle.

A square’s formula is really the rectangle formula with equal sides — 4 × side and 2 × (side + side) give the identical result.

Frequently asked questions

Is a circle’s “perimeter” the same as its circumference?

Yes — circumference is simply the specific term for a circle’s perimeter, its distance around the outside.

Does a square use a special case of the rectangle formula?

Yes — a square is a rectangle where length and width are equal, so its perimeter formula (4 × side) is a simplified version of the rectangle formula.

What’s a practical use for perimeter?

Estimating fencing, trim, or edging material needed to go around a shape’s boundary.

Be the first to rate this

Written by

J. Adeyemi

Statistics writer

J. Adeyemi writes the statistics and probability calculators, from descriptive summaries through to distributions and conditional probability. The recurring theme is scope: each page states precisely which question it answers, because most statistical mistakes come from applying a correct formula to the wrong question. Related-but-different measures get separate pages rather than being quietly merged.

Reviewed by

T. Okafor

Calculator reviewer — mathematics

T. Okafor reviews the mathematics calculators, verifying algebraic correctness and, just as importantly, behaviour at the edges — division by zero, undefined results, and the floating-point cases where a formula technically returns a number that should be reported as undefined. Every test case is recomputed independently rather than taken on trust.

How we write and review

Related calculators