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.
How it is calculated
- Volume: V = B × h, where B is the base area and h the height (the distance between the two bases).
- Surface area: S = 2B + P × h, where P is the base perimeter.
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
- Inputs: base area B = 12, height h = 7, base perimeter P = 14. A 3 × 4 rectangle has exactly this area and perimeter.
- Volume: 12 × 7 = 84.
- Lateral area: 14 × 7 = 98.
- Two bases: 2 × 12 = 24.
- Surface area: 24 + 98 = 122.
| Base area | Volume |
|---|---|
| 3 | 21 |
| 6 | 42 |
| 9 | 63 |
| 12 | 84 |
| 15 | 105 |
| 18 | 126 |
| 24 | 168 |
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
- Entering a base side length instead of the base area. Work out B first, for example ½ × base × height for a triangle.
- Using the slant edge length of an oblique prism as h; the volume needs the perpendicular height.
- Applying S = 2B + Ph to an oblique prism: its side faces are parallelograms, so the lateral area is the perimeter of a cross-section perpendicular to the edges times the edge length.
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)