Area and perimeter calculator

MA-08Math

Calculate the area and perimeter of squares, rectangles, circles, triangles and trapezoids.

Shape
Perimeter
14
Diagonal
5

Last updated: October 2026 · Report a calculation error

Area and perimeter formulas

ShapeAreaPerimeter
Square with side aa²4a
Rectangle a × ba × b2(a + b)
Circle with radius rπr²2πr
Triangle with sides a, b, cHeron’s formulaa + b + c
Trapezoid (bases a, b, height h)(a + b) × h ÷ 2sum of sides

Examples

  • Rectangle 4 × 3: area 12, perimeter 14, diagonal 5.
  • Circle with radius 5: area ≈ 78.5398, circumference ≈ 31.4159.
  • Triangle with sides 3, 4, 5: area 6 (it’s a right triangle).
  • Trapezoid with bases 6 and 4 and height 3: area 15.

Heron’s formula — triangle area from three sides

When you only know the side lengths, find half the perimeter s = (a + b + c) ÷ 2, then area = √(s(s − a)(s − b)(s − c)). For sides 3, 4, 5: s = 6, area = √(6 × 3 × 2 × 1) = 6. A triangle exists only if any two sides add up to more than the third.

Frequently asked questions

How do I work out the area of a room?

Multiply length by width in metres (or feet): a 4 × 3.5 m room is 14 m². Split an L-shaped room into two rectangles and add their areas.

What units is the result in?

The same as the sides you enter — area in square units (cm → cm², m → m², ft → ft²).

See alsoWhole category

  1. MA-01Percentage calculatorFind X% of a number, what percent one number is of another and percentage change.
  2. MA-02Root and exponent calculatorCalculate the n-th root or any power of a number.
  3. MA-03Fraction calculatorAdd, subtract, multiply and divide fractions with automatic simplification.
  4. MA-04Number base converterConvert numbers between decimal, binary, octal and hexadecimal.