🧮
🧮 Math & statistics

Prism Volume Calculator (any base)

Results update as you type.

Your numbers

Understanding the prism volume calculator — concept and principle

A prism is a solid with two identical, parallel bases joined by flat side faces. The base can be any polygon: a triangle, a rectangle, a hexagon or an irregular shape. Because you enter the base area and the base perimeter directly, this calculator works for any base, which makes it handy for triangular roofs and tents, hexagonal columns, channels, beams and L-shaped slabs.

Prism with base area 12, perimeter 14 and height 7Seven layers of a base with area 12 stack to a volume of 84. Unrolled, the side walls form a 14 by 7 rectangle of 98; adding the top and bottom, 12 each, gives a surface of 122.A prism is the base stacked up1234567area 127 layers × 12 = 84h = 7unroll the sides14 × 7 = 98perimeter 147volume 12 × 7= 842 × 12 + 98surface = 122
Any base shape works: volume = base area × height.

How it is calculated

The lateral area P × h is the sum of all the rectangular side faces: each has one base edge as its width and h as its height. Use one length unit; B is in square units, the volume in cubic units.

The principle

Think of the prism as a stack of thin slices, each a copy of the base. Every slice has area B, and there are as many as the height allows, so the volume is B × h. This is Cavalieri's principle: two solids whose cross-sections have equal area at every level have equal volume. It also explains why an oblique (slanted) prism has the same volume B × h, provided h is measured perpendicular to the bases.

For the surface, unfold the side faces of a right prism: they form one long rectangle whose width is the perimeter P and whose height is h. Add the two bases and you get 2B + Ph.

Worked example

  1. Inputs: base area B = 12, height h = 7, base perimeter P = 14. A 3 × 4 rectangle has exactly this area and perimeter.
  2. Volume: 12 × 7 = 84.
  3. Lateral area: 14 × 7 = 98.
  4. Two bases: 2 × 12 = 24.
  5. Surface area: 24 + 98 = 122.
How Volume changes with Base areaHow Volume changes with Base area05010015020036912151824Example: 84Base area
Each point is the calculator re-run with only “Base area” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Base areaVolume
321
642
963
1284
15105
18126
24168

How to read the result

For the 3 × 4 × 7 box, the direct formula 2(12 + 21 + 28) = 122 agrees. Volume scales linearly with height, so doubling h doubles the volume, while the surface area grows by only P × h. Among prisms with the same base area, the one whose base has the smallest perimeter (closest to a circle) uses the least side material.

Common mistakes

Keep in mind: The surface area formula assumes a right prism. For concrete, timber or tank orders, use inner dimensions, add a waste margin and follow local codes and a qualified professional for structural work.

Frequently asked questions

How do I get the base area of a regular hexagon?

For side s, B = (3√3/2) × s² ≈ 2.598 s², and the perimeter is 6s.

Is a cylinder a prism?

It behaves like one: V = πr² × h follows the same rule, but its side is curved, so it is usually treated as a separate solid.

What is the volume of a triangular prism?

Base area ½ × b × t times the prism length. A triangle with b = 4 and t = 3 on a length of 10 gives 6 × 10 = 60.

Sources: B. Cavalieri, Geometria indivisibilibus continuorum (1635), principle of indivisibles · Euclid, Elements, Book XI (solid geometry of parallelepipeds and prisms)

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →