Prism Volume and Surface Area Calculator

Choose the base of the prism (triangle, rectangle or hexagon), then enter its dimensions to get the volume, surface area and more, with each step shown. The rectangle base covers boxes, cuboids and cubes.

Prism formulas

  • Volume: V = B · h
  • Surface area: A = 2 · B + P · h

B is the area of the base, P its perimeter and h the height of the prism. A prism has two identical bases joined by rectangular side faces, so the volume is the base area times the height, and the side faces together form a rectangle P wide and h tall.

Triangular prism

With an equilateral triangle base of edge a:

  • Base area: B = √3/4 · a²
  • Volume: V = √3/4 · a² · h
  • Surface area: A = √3/2 · a² + 3 · a · h

Example with a = 4 cm and h = 6 cm:

B = √3/4 · 4²          ≈ 6.93 cm²
V = 6.93 · 6           ≈ 41.57 cm³
A = 2 · 6.93 + 3 · 4 · 6 ≈ 85.86 cm²

Rectangular prism (box, cuboid)

  • Volume: V = w · l · h
  • Surface area: A = 2 · (w·l + w·h + l·h)
  • Space diagonal: d = √(w² + l² + h²)

A rectangular prism has six rectangular faces in three identical pairs, which is why the surface area doubles the sum of the three different face areas. The space diagonal is the longest straight line that fits inside. Example for a box 4 cm wide, 3 cm long and 2 cm tall:

V = 4 · 3 · 2                    = 24 cm³
A = 2 · (4·3 + 4·2 + 3·2) = 2 · 26 = 52 cm²
d = √(4² + 3² + 2²) = √29          ≈ 5.39 cm

Hexagonal prism

With a regular hexagon base of edge a:

  • Base area: B = 3·√3/2 · a²
  • Volume: V = 3·√3/2 · a² · h
  • Surface area: A = 3·√3 · a² + 6 · a · h

Example with a = 4 cm and h = 6 cm:

B = 3·√3/2 · 4²        ≈ 41.57 cm²
V = 41.57 · 6          ≈ 249.42 cm³
A = 2 · 41.57 + 6 · 4 · 6 ≈ 227.14 cm²

Frequently asked questions

How do I calculate a cube?

A cube is a rectangular prism with all sides equal, so enter the same value three times. With side a: V = a³, A = 6 · a² and d = a · √3.

What if my triangular prism does not have an equilateral base?

The general formulas still apply: V = B · h and A = 2 · B + (a + b + c) · h, where a, b and c are the sides of the triangle. For a right triangle with legs b and c, B = b · c / 2.

How many litres does a box or aquarium hold?

Calculate the volume in cm³ and divide by 1,000. An aquarium 60 cm × 30 cm × 40 cm holds 72,000 cm³, which is 72 litres. In metres, 1 m³ is 1,000 litres.

What is the difference between a prism and a pyramid?

A prism has two identical bases and the same cross-section all the way up. A pyramid has one base and narrows to a point, so it holds exactly one third of the volume of a prism with the same base and height.