Skip to content
HNarzędzia
en
Categories

Area and perimeter calculator - shapes and solids with formulas

Pick a shape or solid and enter its dimensions - the calculator shows area, perimeter, diagonal, volume and surface area, the formula with your numbers and a labelled diagram.

  • Free
  • No sign-up
  • Private
  • Runs locally
cm
cm
abd
Diagram

Results

Area
15 cm²
Perimeter
16 cm
Diagonal
5.831 cm

Formulas with your numbers

  • Area
    A = a · b = 5 · 3 = 15 cm²
  • Perimeter
    P = 2a + 2b = 2 · 5 + 2 · 3 = 16 cm
  • Diagonal
    d = √(a² + b²) = √(5² + 3²) ≈ 5.831 cm

How to calculate area and perimeter

  1. 1.

    Choose the type

    2D shapes (area, perimeter, diagonals) or 3D solids (volume, surface area).

  2. 2.

    Choose the shape

    E.g. a triangle from base and height or from three sides, a circle by radius or diameter, a trapezoid or a cylinder.

  3. 3.

    Enter dimensions

    Use one unit for all lengths and select it from the list (mm, cm, dm, m, km or no unit).

  4. 4.

    Read the results

    See the results, the formulas with your numbers substituted and a labelled diagram; copy the calculation if you need it.

Area and perimeter formulas for 2D shapes

ShapeAreaPerimeter
SquareA = a²P = 4a
RectangleA = abP = 2a + 2b
TriangleA = ah/2P = a + b + c
Equilateral triangleA = a²√3/4P = 3a
CircleA = πr²C = 2πr = πd
TrapezoidA = (a + b)h/2P = a + b + c + d
ParallelogramA = ahP = 2a + 2b
RhombusA = ef/2P = 4a
Regular hexagonA = 3a²√3/2P = 6a
EllipseA = πab≈ π[3(a + b) − √((3a + b)(a + 3b))]

Example: a circle with r = 5 cm has an area of about 78.5398 cm² and a circumference of about 31.4159 cm. A rectangle of 4 × 2.5 m has an area of 10 m² and a perimeter of 13 m. For the trapezoid and parallelogram the perimeter appears once you enter the optional legs or side.

Heron’s formula: a triangle from three sides

When you know all three sides but not the height: A = √(s(s − a)(s − b)(s − c)), where s = (a + b + c)/2 is the semi-perimeter. Sides 13, 14, 15 give s = 21 and A = √(21 · 8 · 7 · 6) = √7056 = 84.

The sides must satisfy the triangle inequality - each side shorter than the sum of the other two. Lengths 2, 3 and 6 cannot form a triangle, and the calculator reports this instead of returning a wrong area.

Volume and surface area of solids

SolidVolumeTotal surface area
CubeV = a³S = 6a²
Cuboid (box)V = abcS = 2(ab + bc + ac)
CylinderV = πr²hS = 2πr² + 2πrh
ConeV = πr²h/3S = πr² + πrl, l = √(r² + h²)
SphereV = 4/3·πr³S = 4πr²
Square pyramidV = a²H/3S = a² + 2a·hₛ

Example: a 2 × 3 × 4 cuboid has V = 24 and S = 52; its space diagonal is √29 ≈ 5.39. For the cylinder, cone and pyramid the results also include the lateral surface area, and for the cone and pyramid the slant height.

Units and common mistakes

Area is in square units and volume in cubic units, so conversions grow fast: 1 m² = 10,000 cm² and 1 m³ = 1,000,000 cm³ = 1,000 litres. The unit list is metric; for inches or feet choose “no unit”, enter the values and read the area in in² or ft² yourself (1 ft² = 144 in²). To convert lengths first, use the length converter.

  • Radius vs diameter - r is half of d. Switch the circle input to diameter if that is what you measured.
  • Slanted side instead of height - a parallelogram’s area uses the perpendicular height, not side b.
  • Mixed units - 2 m and 50 cm must become 2 m and 0.5 m before multiplying.

Measuring a room or a wall? The square meter calculator and the paint calculator handle real-life layouts.

Frequently asked questions

How do I find the area of a circle?

+
A = πr². For r = 5 cm the area is about 78.54 cm².

How do I find the area of a triangle from its sides?

+
Use Heron’s formula. For sides 13, 14 and 15 the area is 84.

How do I find the volume of a cylinder?

+
V = πr²h. A cylinder with r = 2 and h = 5 has a volume of about 62.83.

What is the difference between area and perimeter?

+
Perimeter is the length around a shape (in m), area is the surface inside it (in m²). A 3 × 4 m rectangle has a perimeter of 14 m and an area of 12 m².

How many cm² are in 1 m²?

+
10,000 cm², because 1 m = 100 cm and area is length times width.

Can I use inches or feet?

+
Yes - choose “no unit” and enter the values in inches or feet; the results are then in square or cubic inches or feet.

Is the ellipse perimeter exact?

+
No - there is no simple exact formula. The calculator uses Ramanujan’s approximation, accurate to well below 0.01% for typical ellipses.

Updated: