Area & Perimeter Calculator

The area and perimeter calculator finds the area and perimeter (or circumference) of ten common shapes — rectangle, square, circle, triangle, right triangle, trapezoid, parallelogram, ellipse, regular polygon and circle sector. Enter the measurements in any unit and see the result with the formula used, plus extras like diagonals, hypotenuse and interior angles. It works in your browser.

Formulas

ShapeAreaPerimeter
Rectanglel × w2(l + w)
Circleπr²2πr
Triangle√(s(s−a)(s−b)(s−c))a + b + c
Trapezoid(a + b)h / 2a + b + c + d
Regular polygonns² / (4 tan(π/n))ns

When to use it

  1. Work out the floor area of a room.
  2. Check geometry homework.
  3. Find how much fencing or edging you need.
  4. Calculate the area of a circular or hexagonal patio.

How to Use

  1. Choose a shape and unit.
  2. Enter the measurements.
  3. Read the area, perimeter and the formula used.

Features

  1. 10 shapes
  2. Heron's formula for triangles
  3. Formulas shown
  4. Diagonals, hypotenuse and angles
  5. Unit labels
  6. 100% client-side

FAQs

How do you calculate the area of a triangle with three sides?

Use Heron's formula: find s = (a + b + c) ÷ 2, then area = √(s(s − a)(s − b)(s − c)).

What's the difference between perimeter and circumference?

They're the same idea — the distance around a shape. Circumference is the word used for circles.

Can I use different units?

Enter every measurement in the same unit; area comes out in that unit squared.

Why is the ellipse perimeter approximate?

There's no exact simple formula, so Ramanujan's very accurate approximation is used.

Is anything uploaded?

No. It's calculated in your browser.

Technical Details

Each shape uses its standard formula: rectangle A = lw and P = 2(l + w) with the diagonal √(l² + w²); circle A = πr² and C = 2πr; triangles from three sides use Heron's formula A = √(s(s − a)(s − b)(s − c)) with s the semi-perimeter, and side lengths that can't form a triangle (one side at least the sum of the other two) are rejected; a right triangle also gives the hypotenuse; trapezoid A = (a + b)h ÷ 2; parallelogram A = bh; regular polygon A = ns² ÷ (4 tan(π/n)) with the interior angle (n − 2) × 180° ÷ n; a sector uses its angle as a fraction of 360°. An ellipse's area is πab, but its perimeter has no exact closed form, so Ramanujan's approximation π(3(a + b) − √((3a + b)(a + 3b))) is used, which is accurate to a few parts per million for most shapes. The formula is shown with every result.

Calculators & Converters

Calculators & Converters

  • Volume & Surface Area Calculator
  • Permutation & Combination Calculator
  • Equation Solver
  • Quadratic Equation Solver
  • Exponent & Logarithm Calculator
  • Fraction Calculator
  • GCD & LCM Calculator
  • Matrix Calculator