Omni Calculator logo

Volume of a Rectangular Prism Calculator

Created by Hanna Pamuła, PhD
Reviewed by Bogna Szyk and Jack Bowater
Last updated: Jan 18, 2024

With this volume of a rectangular prism calculator – a.k.a., a box volume calculator – you'll find the volume of any box-shaped container in a blink of an eye. No fuss is required. You need to enter only three values, and we'll calculate the volume for you (though it's not so tricky, you could figure it out yourself 😊).

If you're searching for the definition, check the section What is a rectangular prism. However, if you're still wondering how to find the volume of a rectangular prism, we'll show you step-by-step how to use our calculator on an (almost) real-life example – the volume of a cat 🐈.

If you're looking for the area of a rectangular prism, try our surface area of a rectangular prism calculator, or go to the rectangular prism calculator for an all-in-one rectangular prism tool.

What is a rectangular prism?

A rectangular prism is a 3D shape with 6 faces, all of which are rectangles. Other names for a rectangular prism are a cuboid, or simply a box.

Every rectangular prism has:

  • 8 vertices;
  • 12 edges; and
  • 6 faces.
Volume of a box

What is the formula for the volume of a rectangular prism?

Finding the volume of a rectangular prism is a straightforward task – all you need to do is to multiply the length, width, and height together:

Rectangular prism volume = length × width × height

Where can you use this formula in real life? Let's imagine three possible scenarios:

  1. You bought a fish tank for your golden fish 🐠. It's in a regular box shape, nothing fancy, like a corner bow-front aquarium. If you're wondering how much water you need to fill it, simply use the volume of a rectangular prism formula. It is a similar story for other pets kept in tanks and cages, like turtles or rats – if you want a happy pet, then you should guarantee them enough living space.

  2. The time has come – you've decided that this year you'd like to grow your own carrots 🥕 and salad 🥗. For that, you need to construct a raised bed and fill it with potting soil. But how much dirt should you buy? Well, that's the same question as how to find the volume of a rectangular prism: measure your raised bed, use the formula, and run to the gardening center.

  3. You are going on the vacation of your dreams 🌴. You have to pack your stuff for the three weeks, and you're wondering which suitcase 🧳 will fit more in:

    • Your good old large suitcase, 30 × 19 × 11 inches; or

    • The new fancy one, 28 × 21 × 12 inches

    That's again the problem solved by the volume of a rectangular prism formula. Solve it manually, or find it using our calculator.

If you're searching for a calculator for other 3D shapes – like e.g. a cube, which is a special case of a rectangular prism – you may want to check out our comprehensive volume calculator. It has a gazillion different shapes! (Fourteen, to be exact.)

How to find the volume of a rectangular prism?

Well, now that you know what a rectangular prism is and its volume formula, all the calculations should be a piece of cake! Just measure the three dimensions of your rectangular prism, and use the method from the previous paragraph. Alternatively, you can simply use our box volume calculator.

Cat in a transparent box
Source: Youtube, mugumogu &

So, let's have a look at the example – let's calculate the volume of a cat🐈. Yes, a cat, as cats are almost like liquids (they take on the shape of whatever container they are in). Assuming that the cat completely fills a plastic container with dimensions 12 inches × 10 inches × 8 inches:

  1. Input the container's length into the first field of our volume of a rectangular prism calculator. It's 12 inches in our case.

  2. Enter the width of the box. Put 10 inches into the proper field.

  3. Finally, input the height of your container, 8 inches.

  4. And there it is: the volume of a rectangular prism calculator did the job. Now we know that our cat's volume is 960 cubic inches. Isn't that pawesome? 🐾

    (Of course, it's a really rough estimate. Take it with a pinch of salt 🧂 or even two pinches.)

So, now that you know your cat's volume, you can go and search for a perfect cardboard box📦 for your pet!

Cat in a cardboard box. cat.rar
Source:, cat.rar.


How do I calculate the volume of a rectangular prism?

To find the volume of a rectangular prism, you need to:

  1. Determine the lengths of the sides: width, length, and height.
  2. Multiply together the three values from Step 1.
  3. The result you've got is the volume of your solid.

Don't forget to include the units if it is given! Since it's volume, you need cubic units.

What is the volume of a rectangular prism with sides 2, 5, and 7?

The answer is 70. To see how to get this result, recall the formula for the volume of a rectangular prism:

volume = length × height × width

Hence, we compute the volume as 2 × 5 × 7 = 70.

Remember to include the units: for instance, if your measurements are in inches (in), the volume will be in cubic inches (in³).

How do I calculate the volume of a rectangular prism given diagonals?

To determine the volume of a rectangular prism when you know the diagonals of its three faces, you need to apply the formula:

volume = 1/8 × √(a² - b² + c²)(a² + b² - c²)(-a² + b² + c²),

where a, b, and c are the diagonals you're given. This formula can be easily derived by using the Pythagorean theorem.

Hanna Pamuła, PhD
Volume of a box
Length (l)
Width (w)
Height (h)
Rectangular prism volume
cu in
Check out 23 similar 3d geometry calculators 📦
Area of a hemisphereCubeCube Calc: find v, a, d… 20 more
People also viewed…


The decimal calculator will help you find the sum, difference, product, and quotient of any two decimals you give it. Plus exponent, root, and logarithm operations involving decimal numbers.

Ellipse standard form

In our ellipse standard form calculator, you can determine the standard form of an ellipse by inputting its vertices.


This millionaire calculator will help you determine how long it will take for you to reach a 7-figure saving or any financial goal you have. You can use this calculator even if you are just starting to save or even if you already have savings.


The perfect snowman calculator uses math & science rules to help you design the snowman of your dreams!