ThisCalculator

Everyday

Volume of Rectangular & Triangular Prisms

Updated · Standard formula, shown below

Volume 150.00 m³
Shape
1 Rectangular=1, Triangular=2
You entered
Length (rectangular)
5 m
You entered
Width (rectangular)
3 m
You entered
Triangle base (triangular)
4 m
You entered

Volume of Rectangular & Triangular Prisms

This calculator finds the volume of a rectangular prism or a triangular prism. You enter the prism’s dimensions (length, width, height for a rectangular prism; base, height of triangle, and prism height for a triangular prism), and it returns the volume in cubic units. The same formula structure applies to both: Volume = Base Area × Height.

Formula

For a rectangular prism (also called a cuboid or box):

V = l × w × h

where:

  • V = volume (cubic units, e.g., m³, cm³, ft³)
  • l = length of the base (same unit as V’s linear unit)
  • w = width of the base
  • h = height of the prism (the distance between the two bases)

For a triangular prism:

V = (½ × b × htri) × hprism

where:

  • b = base of the triangular face
  • htri = height of the triangular face (perpendicular to base b)
  • hprism = length of the prism (distance between the two triangular faces)

In both cases, the volume is the area of the base shape (rectangle or triangle) multiplied by the prism’s height. All dimensions must be in the same unit.

Worked Example

Using the default values from the calculator:

Rectangular prism: l = 5 m, w = 3 m, h = 10 m

Step 1: Find the base area: 5 × 3 = 15 m²

Step 2: Multiply by the prism height: 15 × 10 = 150 m³

The calculator returns 150.00 m³.

Triangular prism: b = 4 m, ht = 2 m, h = 10 m

Step 1: Find the triangular base area: ½ × 4 × 2 = 4 m²

Step 2: Multiply by the prism height: 4 × 10 = 40 m³

The calculator returns 40.00 m³.

Understanding Prisms and Volume

A prism is a three-dimensional shape with two identical, parallel bases and flat rectangular sides. The volume measures how much space the prism occupies. The key insight is that volume = area of the base × height, regardless of the base shape. This works for any prism—rectangular, triangular, pentagonal, even cylinders (where the base is a circle).

For a rectangular prism, the base is a rectangle, so the base area is length × width. For a triangular prism, the base is a triangle, so the base area is ½ × base × height of the triangle. The “height” in the formula is always the distance between the two bases, measured perpendicular to them.

How to Choose the Right Dimensions

To use the formula correctly, you must identify which measurement is which:

  • For a rectangular prism (like a box or a brick): measure the length, width, and height. It doesn’t matter which face you call the base; any pair of opposite faces can serve as bases. The product will be the same.
  • For a triangular prism (like a tent or a wedge): the two triangular faces are the bases. You need the base and height of that triangle (perpendicular to each other), plus the length of the prism (the distance between the two triangles).

If you have a triangular prism lying on its side, the “height” in the formula is the long dimension, not the vertical height of the triangle. Always check that the triangle’s height is perpendicular to the triangle’s base.

Common Mistakes and Misconceptions

The most frequent error is mixing up the triangle’s height with the prism’s length. For example, a triangular prism might have a triangular face with base 4 cm and height 3 cm, and a length of 10 cm. Some people mistakenly use 10 cm as the triangle’s height. Always label your diagram and keep the two heights separate.

Another mistake is forgetting the ½ factor for the triangle. A triangle’s area is half the rectangle that encloses it, so you must multiply by 0.5. Also, ensure all dimensions are in the same unit. If one is in meters and another in centimeters, convert first. Volume units are cubic, so if you measure in meters, volume is in cubic meters (m³).

Finally, do not confuse volume with surface area. Volume is the space inside, measured in cubic units; surface area is the total area of all faces, measured in square units. The formulas are different.

Practical Applications

Knowing how to calculate prism volumes is useful in many everyday situations:

  • Rectangular prisms: calculating the capacity of a fish tank, a shipping box, a swimming pool, or a room’s volume for heating/cooling.
  • Triangular prisms: estimating the volume of a tent’s interior, a wedge-shaped doorstop, a triangular roof attic space, or a prism-shaped concrete block.
  • In construction, you might need to know how much concrete or soil fills a triangular trench. In packaging, volume helps determine shipping costs and storage capacity.

For example, a rectangular fish tank that is 60 cm long, 30 cm wide, and 40 cm high has a volume of 60 × 30 × 40 = 72,000 cm³, which equals 72 liters (since 1 liter = 1000 cm³). A triangular prism-shaped tent with a triangular face of base 2 m and height 1.5 m, and a length of 3 m, has a volume of ½ × 2 × 1.5 × 3 = 4.5 m³.

Limitations of the Formula

The formulas work only for right prisms, where the sides are perpendicular to the bases. If the prism is oblique (leaning), the volume is still the base area times the perpendicular height, not the slant height. The calculator assumes the height you enter is the perpendicular distance between the bases.

Also, the triangular prism formula assumes the triangular face is a simple triangle with a base and a height. If the triangle is not right-angled, you still use ½ × base × height, where the height is the perpendicular distance from the base to the opposite vertex. For a triangle with sides only, you might need Heron’s formula to find the area first.

For shapes that are not perfect prisms (e.g., a tapered container), these formulas give only an approximation. In such cases, more advanced methods like integration or water displacement are needed.

Frequently Asked Questions

What is the difference between a rectangular prism and a cube? A cube is a special rectangular prism where all six faces are squares of equal size. So the volume formula becomes V = s³, where s is the side length. The general formula V = l × w × h still works, but l = w = h.

Why is there a ½ in the triangular prism formula? Because the area of a triangle is half the area of a rectangle with the same base and height. A triangle is essentially half of a rectangle. So the base area is ½ × base × height, and then you multiply by the prism’s length.

Can I use the same formula for a cylinder? Yes, conceptually. A cylinder is a prism with a circular base. The volume is the base area (πr²) times the height. The formula V = base area × height applies to all prisms and cylinders.

What if I only know the volume and two dimensions? You can rearrange the formula to find the missing dimension. For a rectangular prism, if you know V, l, and w, then h = V / (l × w). For a triangular prism, if you know V, b, ht, and h, you can solve for any one variable.

How do I convert cubic meters to liters? 1 cubic meter equals 1000 liters. So multiply the volume in m³ by 1000 to get liters. For example, 0.5 m³ = 500 liters. This is useful for tank capacities.

Does the orientation of the prism matter? No. Rotating a prism does not change its volume. The formula uses the base area and the perpendicular height, regardless of which face is on the bottom. Just make sure you correctly identify a pair of parallel, identical faces as the bases.

Related

Formula used
in shape | Shape | Rectangular=1, Triangular=2 | 1 | 0
in l | Length (rectangular) | m | 5 | 0
in w | Width (rectangular) | m | 3 | 0
in b | Triangle base (triangular) | m | 4 | 0
in ht | Triangle height (triangular) | m | 2 | 0
in h | Prism height | m | 10 | 0
out vol | Volume | m³ | shape * l * w * h + (1-shape) * (0.5 * b * ht * h) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.