Calculators.Life Calculator
Math

Perimeter Calculator

Input Parameters

Scenarios
Select geometric shape to calculate perimeter or circumference
Side for square/polygon; Length for rectangle/parallelogram; Radius for circle/sector; Semi-major axis (a) for ellipse; Side A for triangle/trapezoid
Width for rectangle/parallelogram; Semi-minor axis (b) for ellipse; Side B for triangle/trapezoid
Side C for triangle/trapezoid; Central angle in degrees for sector; Number of sides for regular polygon (e.g. 8 for octagon)
Side D (fourth side) for trapezoid
Display unit for linear measurements

Computed Results

Perimeter / Circumference
30
Semiperimeter15
Formula AppliedP = 2 * (l + w)

This tool calculates the total boundary length of various geometric shapes, including squares, circles, triangles, and ellipses. By selecting your shape and entering its dimensions, you can quickly determine both the perimeter and semiperimeter, along with the specific mathematical formula applied to your calculation.

How to Use the Perimeter Calculator

Follow these steps to determine the boundary length of your chosen shape:

  1. Select the Shape: Choose the geometric figure you are measuring from the dropdown menu (e.g., rectangle, circle, trapezoid, or regular polygon).
  2. Enter the Dimensions: Input the required measurements based on your shape. For a square or circle, you only need Dimension A (side or radius). For a trapezoid, you will need to enter all four sides (Dimensions A, B, C, and D).
  3. Choose the Unit: Select your preferred measurement unit, such as centimeters, meters, inches, or feet.
  4. Review the Results: The calculator will display the total perimeter (or circumference), the semiperimeter (half the perimeter), and the exact formula used to compute the result.

Formulas and Explanations

The perimeter is the continuous line forming the boundary of a closed geometric figure. The calculator applies different formulas depending on the shape selected. Here are the primary formulas used:

Square and Rectangle

For a square with side length a:

P = 4 × a

For a rectangle with length l and width w:

P = 2 × (l + w)

Circle (Circumference)

For a circle with radius r:

C = 2 × π × r

Triangle and Trapezoid

For a triangle with sides a, b, and c:

P = a + b + c

For a trapezoid with four distinct sides a, b, c, and d:

P = a + b + c + d

Ellipse

Calculating the exact perimeter of an ellipse is highly complex, so this tool uses Ramanujan's first approximation, where a is the semi-major axis and b is the semi-minor axis:

P ≈ π × [3(a + b) − √((3a + b)(a + 3b))]

Inputs and Outputs

Understanding the data you need to provide and the results you will receive ensures accurate calculations.

FieldTypeDescription
ShapeInputThe geometric figure you are measuring.
Dimension AInputThe primary measurement (Side, Length, Radius, Semi-major Axis, or Side A).
Dimension BInputThe secondary measurement (Width, Semi-minor Axis, or Side B).
Dimension CInputThe third measurement (Side C, Sector Angle in degrees, or Number of Polygon Sides).
Dimension DInputThe fourth side, used specifically for trapezoids.
Measurement UnitInputThe linear unit for your dimensions (e.g., cm, m, in, ft).
Perimeter / CircumferenceOutputThe total continuous boundary length of the shape.
SemiperimeterOutputExactly half of the calculated perimeter.
Formula AppliedOutputThe mathematical equation used to generate the result.

Verified Scenario Walkthroughs

Below are examples of how the calculator processes different shapes and dimensions.

Small Square Garden Plot

If you are measuring a square garden plot with a side length of 2.5 meters, you select "square" and enter 2.5 for Dimension A. The calculator multiplies this by 4 (using the formula P = 4 * a) to find a total perimeter of 10 meters and a semiperimeter of 5 meters.

Large Circular Swimming Pool

For a circular pool with a radius of 15 feet, you select "circle" and enter 15 for Dimension A. Using the formula C = 2 * π * r, the calculator determines the circumference is 94.2478 feet, with a semiperimeter of 47.1239 feet.

Irregular Trapezoid Land Boundary

When calculating the boundary of a trapezoidal plot of land with sides measuring 120.5, 85.2, 95.0, and 110.0 kilometers, you enter these values into Dimensions A through D. The calculator adds them together (P = a + b + c + d) for a total perimeter of 410.7 kilometers and a semiperimeter of 205.35 kilometers.

Octagon Polygon Shape Calculation

To find the perimeter of a regular octagon where each side is 4 inches, select "regular polygon". Enter 4 for Dimension A (side length) and 8 for Dimension C (number of sides). The calculator multiplies the number of sides by the side length (P = n * s) to yield a perimeter of 32 inches and a semiperimeter of 16 inches.

Practical Use Cases

Calculating perimeters is a fundamental step in many practical projects. Common applications include:

Frequently Asked Questions

What is a semiperimeter?

A semiperimeter is exactly half of a shape's total perimeter. It is frequently used in advanced geometric formulas, such as Heron's formula for finding the area of a triangle.

How does the calculator determine the perimeter of an ellipse?

Because there is no simple exact formula for the perimeter of an ellipse, the calculator uses Ramanujan's first approximation. This provides a highly accurate estimate based on the semi-major and semi-minor axes.

What is the difference between perimeter and circumference?

Perimeter is the general term for the total boundary length of any closed two-dimensional figure. Circumference is the specific term used for the perimeter of a circle or an ellipse.

How do I calculate the perimeter of a regular polygon?

For a regular polygon (where all sides are equal in length), you multiply the length of one side by the total number of sides. For example, a hexagon with 5-inch sides has a perimeter of 30 inches (6 sides × 5 inches).

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.