Shape Calculator – Area, Perimeter & Volume of 2D and 3D Shapes

A shape calculator finds the area and perimeter of flat shapes and the volume and surface area of solids, from a square or circle to a box, cylinder or sphere, using the dimensions you enter.

Shape Calculators

Shape Calculator

Area, perimeter and volume of common 2D and 3D shapes: square, rectangle, triangle, circle, cube, box, cylinder and sphere.

Choose a shape above for its main measurements, or open a dedicated calculator below for irregular shapes, composite shapes, perimeters, angles and transformations.

The starting values are a square with a 5 side, a rectangle of 8 by 5, a triangle with sides 5, 6 and 7, a circle of radius 5, a cube with a 5 side, a box of 8 by 5 by 4, a cylinder with radius 3 and height 10, and a sphere of radius 5. Pick a shape, enter your measurements in any one unit and read the results in the matching squared or cubed unit.

What the shape calculator returns

Flat shapes give an area and a perimeter, or a circumference for the circle. Solids give a volume and a total surface area. The calculator covers eight common shapes. For irregular outlines, composite shapes, angles and transformations, use the dedicated calculators on this site, since this one handles standard shapes only.

The shape formulas

Square: Area = s², Perimeter = 4s

Rectangle: Area = L × W, Perimeter = 2 × (L + W)

Triangle (Heron): s = (a + b + c) ÷ 2, Area = √(s × (s − a) × (s − b) × (s − c)), Perimeter = a + b + c

Circle: Area = πr², Circumference = 2πr

Cube: Volume = s³, Surface area = 6s²

Box: Volume = L × W × H, Surface area = 2 × (LW + LH + WH)

Cylinder: Volume = πr²h, Surface area = 2πr × (r + h)

Sphere: Volume = (4 ÷ 3) × πr³, Surface area = 4πr²

Where s is a side, L, W and H are length, width and height, a, b and c are the three sides of a triangle, r is a radius and h is a height. The triangle sides must form a real triangle, so the two shorter sides must add up to more than the longest.

Starting results for every shape

  • Square, side 5: area 25, perimeter 20
  • Rectangle, 8 by 5: area 40, perimeter 26
  • Triangle, sides 5, 6, 7: area 14.697, perimeter 18
  • Circle, radius 5: area 78.54, circumference 31.42
  • Cube, side 5: volume 125, surface area 150
  • Box, 8 by 5 by 4: volume 160, surface area 184
  • Cylinder, radius 3, height 10: volume 282.74, surface area 245.04
  • Sphere, radius 5: volume 523.60, surface area 314.16

Worked example: a triangle with Heron formula

For sides of 5, 6 and 7, s = (5 + 6 + 7) ÷ 2 = 9.

Area = √(9 × 4 × 3 × 2) = √216 = 14.697

Heron formula is useful because you only need the three sides, not the height. For a 3, 4, 5 triangle, s = 6 and the area is √(6 × 3 × 2 × 1) = √36 = 6.

Worked example: a box

For a box of 8 by 5 by 4:

Volume = 8 × 5 × 4 = 160

Surface area = 2 × (8 × 5 + 8 × 4 + 5 × 4) = 2 × (40 + 32 + 20) = 184

In feet, that is a 160 ft³ space with 184 ft² of surface, which is the area you would paint or cover.

Worked example: a cylinder

For radius 3 and height 10:

Volume = π × 3² × 10 = 282.74

Surface area = 2π × 3 × (3 + 10) = 245.04

The surface area includes both circular ends. For a smaller cylinder with radius 2 and height 5, the volume is 62.83 and the surface area is 87.96.

Worked example: a circle and a sphere

A circle of radius 5 has an area of π × 25 = 78.54 and a circumference of 2π × 5 = 31.42. A sphere of the same radius has a volume of (4 ÷ 3) × π × 125 = 523.60 and a surface area of 4π × 25 = 314.16.

Choosing the right shape

Match the shape to the real object. A round table top is a circle, a stock tank is a cylinder, a storage crate is a box and a ball is a sphere. When an object is only close to a shape, the result is an approximation, so measure carefully and note what you left out. A rounded corner, a lip or a hole changes the true area slightly, and the calculator will not account for it.

Keeping the units straight

The calculator does not convert units. If you enter every length in feet, areas come out in square feet and volumes in cubic feet. If you mix inches and feet, the results are meaningless. Convert everything to one unit before you start.

Area, surface area and volume

Area measures a flat surface. Surface area adds up every face of a solid. Volume measures the space inside. A box with a surface area of 184 holds a volume of 160, but the two numbers answer different questions. Paint, tiles and wrapping use surface area, while concrete, soil and water use volume.

Material quantity is not the same as area

The area of a shape is the size of the surface, not the amount of material to buy. Cuts, overlaps and packaging mean you normally order more than the calculated area, and the allowance depends on the material and the layout.

Frequently asked questions

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

Use Heron formula. Find s as half the sum of the sides, then take the square root of s times (s − a) times (s − b) times (s − c). For sides 5, 6 and 7 the area is 14.697.

What is the difference between area and surface area?

Area is the size of one flat surface. Surface area is the total of every face of a solid. A box of 8 by 5 by 4 has a floor area of 40 but a surface area of 184.

How do I find the volume and surface area of a cylinder?

Volume is πr²h and surface area is 2πr × (r + h). With radius 3 and height 10 the volume is 282.74 and the surface area is 245.04.

Which shapes does this calculator cover?

It covers the square, rectangle, triangle, circle, cube, box, cylinder and sphere. For irregular shapes, composite shapes, perimeters, angles and transformations, use the dedicated calculators on this site.

Mark Danny

Mark Danny

Mark Danny builds and maintains the free calculators and guides on Area of Irregular Shapes Calculator. Every calculator page explains its formula and shows a worked example, so you can check the working yourself. Spotted a mistake or have a suggestion? Email gulsher.hingoro101@gmail.com.

Articles: 836