← Home

🔴 Circumference Calculator

Find the perimeter or circumference of common shapes in seconds. Pick a shape, enter its dimensions and get the total boundary length instantly.

What is this tool?

Circumference (also called perimeter for polygons) is the total length of the boundary of a closed shape. For a circle it is the familiar curved distance all the way around, while for polygons such as squares, rectangles and triangles it is simply the sum of all the side lengths. Knowing the circumference is essential for tasks like buying the right amount of fencing, sizing a circular tablecloth, or calculating how much trim you need around a room. This calculator supports four of the most common shapes: a circle (where you enter the radius and get the circumference 2πr), a square (4 × side), a rectangle (2 × (length + width)) and a triangle (sum of its three sides). You simply choose the shape, fill in the requested dimensions, and the boundary length is computed and displayed at full precision. All calculations happen locally in your browser, so nothing is uploaded or stored. The tool accepts both whole numbers and decimals, lets you switch shapes instantly, and updates the result every time you press the button, making it easy to compare a few different dimensions for your project.

How it works

For a circle the circumference is calculated as 2 × π × radius, where π (pi) is approximately 3.14159. If you happen to know the diameter instead of the radius, the equivalent formula is π × diameter, since the diameter is simply twice the radius. The calculator uses a high-precision value of pi so the result is accurate to many more decimal places than 3.14. For polygons the perimeter is the sum of the side lengths. A square has four equal sides, so its perimeter is 4 × side. A rectangle has two pairs of equal sides, giving 2 × (length + width). A general triangle has three independent sides, so all three values must be entered and added together. The tool validates that every side length is a positive number before calculating, so an empty or non-numeric field produces a clear prompt instead of a wrong answer.
Ad

How to use

  1. Select the shape you want to measure from the dropdown.
  2. Enter the requested dimensions (radius for a circle, side lengths for polygons).
  3. Make sure all values are positive numbers.
  4. Press the Calculate button to compute the boundary length.
  5. Read the result and switch shapes or change values to recalculate.

Frequently Asked Questions

Frequently Asked Questions

What is the difference between circumference and perimeter?
They mean the same thing — the total length around the edge of a closed shape. The word circumference is traditionally reserved for circles, while perimeter is used for polygons such as squares and triangles. Mathematically the idea is identical.

Can I use the diameter instead of the radius?
Yes. The radius is exactly half of the diameter, so if you know the diameter simply divide it by two before entering it as the radius. The calculator uses 2πr internally, and since the diameter is 2r the result is the same as using π × diameter.

What value of pi does the calculator use?
It uses the built-in high-precision value of pi from JavaScript, which is accurate to roughly 15 decimal places (3.141592653589793). That is far more precision than the 3.14 you may remember from school, so the circumference is correct even for very large circles.

Does this work for irregular triangles?
Yes. As long as you know all three side lengths, the calculator adds them together to give the perimeter. It does not check whether the three sides can actually form a valid triangle, so make sure your measurements are real and consistent.

Tips & Advice

When buying materials sold by length — such as fencing, piping, or ribbon — always add a small safety margin (about 5 to 10 percent) to the calculated circumference to cover mistakes, overlaps and joins. For circular objects, measuring the diameter across the widest point is usually easier than measuring the radius from the centre, so remember that radius is just half of the diameter. If you are calculating the trim for a room with a door or window, subtract the width of those openings from the rectangle perimeter so you do not buy material you will throw away. Keep your units consistent: if you enter sides in centimetres, the perimeter comes out in centimetres, so convert all dimensions to the same unit first. The result is shown to several decimal places, but for most practical work rounding to the nearest whole unit is perfectly fine.

Related Tools

Ad