Skip to main content
math

Perimeter Calculator

Calculate the perimeter of common shapes including rectangles, squares, and triangles.

Reviewed by Chase FloiedUpdated

This free online perimeter calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Third side — used only for triangle

Results

Perimeter

30 units

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Perimeter Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Perimeter Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Perimeter Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Perimeter Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
  • Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
  • Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
  • Use it to explore the behavior of mathematical functions across a range of inputs.

About This Calculator

The Perimeter Calculator is a free mathematical calculation tool for students, educators, and professionals who need quick, reliable results. Calculate the perimeter of common shapes including rectangles, squares, and triangles. The underlying algorithms implement well-established mathematical formulas and numerical methods. Results are computed instantly in the browser. This tool is useful for learning, verification of hand calculations, and rapid exploration of mathematical relationships. All computation happens locally — no data is sent to a server.

About Perimeter Calculator

The perimeter of a shape is the total length of its boundary — the distance you would travel if you walked along its edges. Perimeter is one of the first geometric concepts taught in school and has countless practical applications: fencing a yard, framing a picture, trimming a border, or measuring a running track. For a rectangle, the perimeter is P = 2(l + w); for a square, P = 4s; and for a triangle, P = a + b + c. Understanding perimeter helps develop spatial reasoning and is a prerequisite for more advanced topics like circumference and surface area. This calculator supports rectangles by default and provides a quick, accurate result. Knowing the perimeter is also essential for cost estimation — when buying materials like fencing, molding, or tape, the perimeter tells you exactly how much you need.

The Math Behind It

Perimeter is a one-dimensional measurement of a two-dimensional shape's boundary. For polygons, it is simply the sum of all side lengths. For curves, perimeter generalizes to arc length, computed via integration. The isoperimetric inequality states that among all closed curves of a given perimeter, the circle encloses the maximum area: A ≤ P²/(4π), with equality only for circles. For rectangles with a fixed perimeter P, the maximum area is achieved when the rectangle is a square with side P/4, giving area P²/16. This optimization principle appears in packaging design, architecture, and resource allocation. The perimeter of similar figures scales linearly with the scaling factor k, while area scales with k². This distinction is important in map reading and model building. For irregular shapes, perimeter can be approximated by sampling boundary points and summing the distances between consecutive points.

Formula Reference

Rectangle Perimeter

P = 2(l + w)

Variables: l = length, w = width

Triangle Perimeter

P = a + b + c

Variables: a, b, c = side lengths

Worked Examples

Example 1: Fencing a garden

A rectangular garden is 15 m long and 8 m wide.

Step 1:P = 2 × (15 + 8)
Step 2:P = 2 × 23

P = 46 meters of fencing needed

Example 2: Picture frame

A frame is 24 inches by 18 inches.

Step 1:P = 2 × (24 + 18)
Step 2:P = 2 × 42

P = 84 inches of frame material

Common Mistakes & Tips

  • !Confusing perimeter with area — perimeter is measured in linear units, not square units.
  • !Forgetting to add all sides for irregular polygons.
  • !Using incorrect units when sides are given in different units.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

Is circumference just the perimeter of a circle?

Yes. Circumference is the special term for the perimeter of a circle.

How do I find the perimeter of an irregular shape?

Measure each side individually and add them all together. If the boundary is curved, approximate it with small straight segments.