Perimeter Calculator

Calculate the perimeter of any 2D shape — square, rectangle, triangle, circle (circumference), parallelogram, trapezoid, rhombus, and regular polygons. Select your shape and enter the dimensions.

What is a Perimeter Calculator?

A Perimeter Calculator finds the total distance around the outside edge of a two-dimensional shape, such as a rectangle, square, triangle, or circle (where perimeter is called circumference). Enter the relevant side lengths or dimensions, and it returns the total perimeter.

Perimeter is one of the most practical measurements in everyday geometry — used for anything from figuring out how much fencing surrounds a yard to how much trim is needed around a room, or how much ribbon wraps around a box.

Formula Used in the Perimeter Calculator

Rectangle: P = 2(length + width)
Square: P = 4 × side
Triangle: P = side1 + side2 + side3
Circle (circumference): C = 2πr

Where each shape has its own specific formula based on its sides or radius. For any polygon (straight-sided shape), perimeter is simply the sum of all side lengths; for a circle, the equivalent measurement (circumference) uses pi and the radius instead.

Detailed How to Use the Calculator (Step-by-Step)

  1. Select your shape rectangle, square, triangle, circle, or another polygon.
  2. Enter the required measurements such as side lengths, or radius for a circle.
  3. Click Calculate to see the total perimeter (or circumference for a circle).
  4. Double-check your units make sure all measurements are in the same unit before calculating.

Detailed Example Calculation

Example — A rectangular garden that is 15 meters long and 8 meters wide

P = 2 × (length + width) = 2 × (15 + 8)

= 2 × 23

P = 46 meters of fencing needed to enclose the garden.

Detailed Benefits of Using This Calculator

  • Quickly calculate perimeter for multiple shape types: avoid remembering multiple formulas by having them applied automatically.
  • Support practical planning projects: estimate materials like fencing, trim, or edging needed for a project.
  • Check geometry homework: verify manually calculated perimeters for accuracy across different shapes.
  • Understand the relationship between perimeter and area: recognize that shapes with the same perimeter can have very different areas, and vice versa.

Detailed Real Life Use Cases

  • Fencing and landscaping projects: calculate how much fencing or edging material is needed to enclose a yard or garden.
  • Home improvement and trim work: determine how much baseboard, trim, or molding is needed around a room.
  • Geometry homework and coursework: calculate perimeter as part of studying two-dimensional shapes and their properties.
  • Sports and track planning: calculate the distance around a field, track, or court for planning or measurement purposes.

Detailed Tips for Accurate Calculations

  • Perimeter is a one-dimensional measurement (a length), unlike area, which is two-dimensional (measured in square units) — don't confuse the two.
  • For irregular polygons, simply add up the length of every individual side to find the total perimeter.
  • For a circle, the equivalent measurement is called circumference, calculated using the radius (or diameter) and pi, not a simple sum of sides.
  • When planning materials like fencing, it's often wise to add a small buffer to your calculated perimeter to account for gates, overlaps, or waste.
  • Two shapes can have the same perimeter but very different areas — a long, thin rectangle and a square can share a perimeter while enclosing very different amounts of space.

Frequently Asked Questions

Q.What is perimeter?

Perimeter is the total distance around the outside edge of a two-dimensional shape, calculated by adding together the lengths of all its sides (or using a specific formula for shapes like circles).

Q.What's the difference between perimeter and area?

Perimeter measures the distance around a shape's boundary (a one-dimensional length), while area measures the space enclosed within that boundary (a two-dimensional measurement in square units) — they answer different questions about the same shape.

Q.What is circumference and how does it relate to perimeter?

Circumference is simply the term used for the perimeter of a circle, calculated using the formula 2πr (or πd using diameter), since a circle doesn't have straight sides to simply add together.

Q.How do you find the perimeter of an irregular polygon?

For any polygon with straight sides, regardless of whether it's regular or irregular, simply add together the lengths of all its individual sides to get the total perimeter.

Q.Can two shapes have the same perimeter but different areas?

Yes, this is a common and somewhat counterintuitive geometry concept — for example, a very long, narrow rectangle and a more square-shaped rectangle can have identical perimeters while enclosing very different amounts of area.

Q.How is perimeter used for real-world fencing calculations?

Calculating the perimeter of the area you want to enclose tells you the total length of fencing material needed, though it's often wise to add extra for gates, corner posts, or material waste in practical projects.

Q.What's the perimeter formula for a square versus a rectangle?

For a square, since all four sides are equal, the formula simplifies to 4 times the side length; for a rectangle, since opposite sides are equal but adjacent sides can differ, the formula is 2 times the sum of the length and width.

Q.Does perimeter apply to three-dimensional shapes?

No, perimeter specifically applies to two-dimensional shapes; for three-dimensional objects, the relevant measurements are typically surface area (total area of all faces) and volume (space enclosed), not perimeter.

Q.How do you calculate the perimeter of a triangle?

Simply add together the lengths of all three sides of the triangle; there's no need for a more complex formula unless you're solving for an unknown side length first using other triangle properties.

Q.What units is perimeter measured in?

Perimeter is measured in the same linear units (like meters, feet, or inches) as the side lengths used to calculate it, unlike area, which uses squared units.

Related Calculators