Free Perimeter Calculator Online – Rectangle, Square & Triangle

Perimeter Calculator

Choose a shape, enter its side lengths or radius, and calculate the total distance around its boundary. Keep all measurements in the same unit.

Your result will appear here.

For a circle, the result is its circumference. The answer uses the selected linear unit, not square units.

What Is a Perimeter Calculator?

A perimeter calculator finds the total distance around a two-dimensional shape. It adds the lengths of the outside edges to give one linear measurement, such as meters, centimeters, feet, or inches. This free online perimeter calculator supports rectangles, squares, triangles, and circles. For a circle, the equivalent boundary measurement is called circumference.

Perimeter is often needed when estimating fencing, edging, trim, skirting boards, borders, or the length of material needed around a space. It is different from area: perimeter measures the boundary, while area measures the surface inside it. A room may have an area of 20 square meters and a perimeter of 18 meters; these figures describe different things and use different units.

How to Use This Perimeter Calculator

  1. Select the shape you want to measure.
  2. Choose a unit, such as meters, centimeters, feet, or inches.
  3. Enter the side lengths for a rectangle or triangle, the side length for a square, or the radius for a circle.
  4. Click Calculate Perimeter to see the result and the formula.
  5. Use Reset to clear the form before another calculation.

All measurements in one calculation must use the same unit. If your measurements are mixed—for example, one side in centimeters and another in meters—convert them to a common unit before entering them. The calculator checks that values are positive and checks the triangle inequality before calculating a triangle’s perimeter.

Perimeter Formulas for Common Shapes

Rectangle

A rectangle has two pairs of equal opposite sides. Its perimeter is P = 2 × (length + width). For example, a rectangle that is 8 meters long and 3 meters wide has a perimeter of 2 × (8 + 3), or 22 meters. This can help estimate the length around a rectangular garden bed or room.

Square

A square has four equal sides, so its perimeter is P = 4 × side. If one side measures 5 feet, the perimeter is 20 feet. Remember that the side length is multiplied by four; do not square the measurement, because squaring a side calculates area rather than perimeter.

Triangle

The perimeter of a triangle is the sum of its three side lengths: P = a + b + c. A triangle with sides of 4 cm, 5 cm, and 6 cm has a perimeter of 15 cm. The lengths must form a possible triangle: the sum of any two sides must be greater than the remaining side.

Circle Circumference

A circle has no straight sides, so its boundary length is called circumference. Use C = 2πr, where r is the radius—the distance from the center to the edge. A circle with a radius of 2 meters has a circumference of approximately 12.566 meters. If you know the diameter, divide it by two to find the radius first.

Practical Uses of Perimeter

Fencing and garden borders: Calculate the outside boundary of a rectangular or square area to estimate how much fencing or edging may be needed. Gates, corners, overlaps, and the layout can change the final material requirement, so measure the actual site before buying supplies.

Home improvement: Perimeter can help estimate trim, skirting boards, decorative edging, or border material. For a room, measure the length and width and use the rectangle formula. If doorways or openings interrupt the boundary, account for them when estimating the material you need.

School mathematics: Students can use this tool to check calculations and learn how different shapes use different formulas. Try doubling one side of a rectangle while keeping the other constant to see how its perimeter changes. Compare that with the square formula, where all four sides are equal.

Craft and design projects: When adding ribbon or edging around a simple shape, perimeter gives an estimate of the required length. Add a suitable allowance for joining, cutting, folds, or overlaps depending on the project.

Perimeter vs. Area: What Is the Difference?

Perimeter and area answer separate questions. Perimeter tells you how far it is around the outside; area tells you how much surface is inside. Perimeter uses ordinary length units such as m or ft, while area uses square units such as m² or ft². For example, a square with 4-meter sides has a perimeter of 16 meters and an area of 16 square meters. The numbers happen to match, but their meanings and units are not the same.

Tips for Accurate Measurements

  • Measure each side carefully and record the unit.
  • Convert all measurements to the same unit before calculating.
  • For a circle, enter the radius, not the diameter.
  • For a triangle, check that the side lengths can form a real triangle.
  • For real-world projects, account for cuts, overlaps, corners, gates, and waste.
  • Keep extra decimal places during calculations and round the final answer only when needed.

This calculator works with ideal geometric shapes. If the real boundary includes curves, angled sections, alcoves, or other irregular features, divide it into simpler parts and add the boundary lengths that are actually needed. For construction and material purchases, confirm measurements at the site rather than relying only on an estimate.

Frequently Asked Questions

What units can I use?

The calculator supports meters, centimeters, millimeters, feet, inches, and yards. The result is expressed in the selected linear unit.

Is perimeter the same as circumference?

Circumference is the word used for the perimeter of a circle. It describes the total distance around the circular boundary.

Should I enter the radius or diameter for a circle?

Enter the radius. If you only know the diameter, divide it by two before entering the value.

Why does the triangle calculation reject some values?

A triangle cannot be formed if the sum of two sides is equal to or less than the third side. The calculator checks this rule to avoid returning an invalid triangle perimeter.

Can I calculate the perimeter of an irregular shape?

This tool handles rectangles, squares, triangles, and circles. For an irregular boundary, measure each outside segment and add the lengths together, taking care not to include internal edges.

Calculate Perimeter Online

Use the calculator above to estimate the boundary length of a common shape. Select the correct shape, check the measurements and units, and save the result for your schoolwork, home project, or planning task.

Related Tools

Explore these related free tools: Area Calculator · Volume Calculator · Unit Price Calculator.