Rectangular Prism and Cube Volume Calculator
The volume of a rectangular prism (a box) is length × width × height. For a 2 × 3 × 4 box the volume is 24, the surface area is 52, the space diagonal is 5.385 and the total edge length is 36.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Step-by-Step Solution
What Is a Rectangular Prism?
A rectangular prism, also called a cuboid, is the three-dimensional shape of a box: six rectangular faces meeting at right angles. Shoeboxes, bricks, books, rooms, shipping containers and fish tanks are all rectangular prisms. Three measurements, the length l, width w and height h, describe it completely.
From those three numbers you can work out the volume (how much it holds), the surface area (how much material covers it), the space diagonal (the longest straight line that fits inside it) and the total edge length (the sum of its twelve edges). Each answers a different practical question: how much water, how much wrapping paper, whether a rod will fit, and how much trim or framing is needed.
Measurements for a 2 × 3 × 4 Box
| Measurement | Formula | Value |
|---|---|---|
| Volume | l × w × h | 24 |
| Surface area | 2(lw + lh + wh) | 52 |
| Space diagonal | √(l² + w² + h²) | 5.3852 |
| Total edge length | 4(l + w + h) | 36 |
Rectangular Prism Formulas
l,wandhare the three perpendicular edge lengths, in the same unit.- Volume is in cubic units (cm³, m³), surface area in square units and lengths in ordinary units.
- The space diagonal comes from the Pythagorean theorem applied twice: first across the base, then up through the height. See the Pythagorean theorem calculator.
- A cube is the special case l = w = h. See the cube calculator.
How Is It Calculated? Worked Examples
2 × 3 × 4
- Volume: 2 × 3 × 4 = 24.
- Face areas: lw = 6, lh = 8, wh = 12, so the surface area is 2(6 + 8 + 12) = 52.
- Space diagonal: √(4 + 9 + 16) = √29 ≈ 5.385.
- Total edge length: 4(2 + 3 + 4) = 36.
A Shipping Box
A box measures 40 cm × 30 cm × 20 cm. Its volume is 24,000 cm³, which is 24 litres. The surface area is 2(1,200 + 800 + 600) = 5,200 cm² of cardboard (before overlaps), and the longest item that fits inside, along the space diagonal, is √2,900 ≈ 53.85 cm. A 50 cm rod therefore fits diagonally inside, even though it is longer than the longest edge (40 cm).
A Fish Tank
A tank 100 cm long, 40 cm wide and 50 cm high holds 200,000 cm³ = 200 litres. Since a litre of water has a mass of about 1 kg, the water alone weighs roughly 200 kg.
A Concrete Slab
A patio slab 5 m × 3 m and 0.1 m thick needs 5 × 3 × 0.1 = 1.5 m³ of concrete.
Scaling
Doubling every dimension multiplies the volume by 8 and the surface area by 4. A box twice as large in each direction holds eight times as much but needs only four times the cardboard, which is why bigger containers are more material-efficient.
Which Box Holds the Most?
For a fixed amount of material, the cube holds the most. A cube with a surface area of 600 has an edge of 10 and a volume of 1,000. A 15 × 10 × 6 box also has a surface area of 2(150 + 90 + 60) = 600, but its volume is only 900. Packaging designers balance this against shelf shape and handling.
How to Use This Rectangular Prism Calculator
- Enter the length, width and height in the same unit.
- Read the volume, surface area, space diagonal and total edge length.
- Convert units if needed: 1,000 cm³ = 1 litre and 1 m³ = 1,000 litres.
Where Rectangular Prism Calculations Are Used
- Shipping and storage: box sizes, pallet loads and container capacity.
- Construction: room volumes for heating and ventilation, concrete, soil and gravel.
- Aquariums and pools: water capacity and weight.
- Packaging design: material needed and fit of products.
- Interior design: furniture clearances and fitting long items through doors, where the diagonal matters.
What Are the Most Common Mistakes With the Rectangular Prism and Cube Volume Calculator?
- Mixing units. A box 2 m × 30 cm × 40 cm must be converted to one unit first.
- Confusing volume with surface area. Volume is cubic, surface area square.
- Forgetting that all six faces count. The surface area formula includes three pairs of faces.
- Using the diagonal of one face instead of the space diagonal. The space diagonal passes through the interior.
- Ignoring wall thickness. Internal capacity is smaller than the outside dimensions suggest.
- Assuming right angles. The formulas only apply to true boxes.
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
What is the formula for the volume of a rectangular prism?
V = length × width × height. For 2 × 3 × 4 the volume is 24 cubic units.
How do I find the surface area of a box?
Add the areas of all six faces: 2(lw + lh + wh). For 2 × 3 × 4 that is 2(6 + 8 + 12) = 52.
What is the space diagonal?
The longest straight line inside the box, joining opposite corners: √(l² + w² + h²).
How do I convert cubic centimetres to litres?
Divide by 1,000. A box of 24,000 cm³ holds 24 litres.
What happens to the volume if every dimension doubles?
It becomes 8 times larger, while the surface area becomes 4 times larger.
Is a cube a rectangular prism?
Yes, the special case in which length, width and height are all equal.