
Cube Volume Calculator
Use this cube volume calculator to find cubic volume V = s³ from any edge length s. Includes a 10-row reference table, liter and gallon conversions, & FAQs.
Open toolThe Rectangular Prism Volume Calculator is a three-dimensional box solver that serves as a volume of a rectangular prism calculator and volume calculator for rectangular prism shapes using V = l × w × h. Enter any three positive dimensions between 1e-09 and 1,000,000,000 in a consistent unit to get a 12-significant-digit cubic volume in in³, ft³, cm³, or m³.
Enter the inputs, then select Calculate result.
Result will appear here
Learning how to calculate the volume of a rectangular prism (also called a right cuboid or rectangular box) starts with its two-dimensional base footprint. A rectangular prism has six rectangular faces where opposite faces are congruent and adjacent faces meet at 90° right angles. Multiplying Length (l) by Width (w) gives the flat rectangular base area B = l × w (which you can also compute standalone in the Rectangle Area Calculator). Extruding that base footprint straight up through the perpendicular Height (h) sweeps out the three-dimensional volume:
V = B × h = l × w × h
When you click Calculate result, batch10-tools.js reads #l, #w, and #h, validates that all three entries lie between 1e-09 and 1,000,000,000, and runs show(n('l')*n('w')*n('h')) locally in your browser. Because multiplication is commutative (l × w × h = w × h × l), rotating a box on its side never changes its volume. If all three edges are equal (l = w = h = s), you can also use our single-input Cube Volume Calculator.
Compare 10 verified box, tank, and slab dimensions to see how this volume calculator for rectangular prism geometries converts Length, Width, and Height into exact #result-main outputs and real-world capacities:
| Length (l) | Width (w) | Height (h) | Base Area (l × w) | Exact Volume (#result-main) | Practical Box, Tank, or Construction Benchmark |
|---|---|---|---|---|---|
| 4 (preloaded) | 3 (preloaded) | 2 (preloaded) | 12 | 24 | Preloaded default workspace test case (SA = 52) |
| 10 in | 8 in | 6 in | 80 in² | 480 | Small e-commerce mailer box (0.2778 ft³, 3.45 lb dim wt) |
| 12 in | 12 in | 12 in | 144 in² | 1728 | 1-cubic-foot carton (1,728 in³ = 1.0 ft³) |
| 24 in | 18 in | 18 in | 432 in² | 7776 | Standard medium moving box (4.5 ft³) |
| 48 in | 12.75 in | 21 in | 612 in² | 12852 | Standard 55-gallon glass aquarium (55.64 US gal gross) |
| 60 cm | 30 cm | 36 cm | 1800 cm² | 64800 | 60P rimless planted aquarium (64.8 L / 17.12 US gal) |
| 8 ft | 4 ft | 1 ft | 32 ft² | 32 | 8' × 4' × 12'' raised garden bed (1.185 yd³ soil) |
| 20 ft | 12 ft | 0.5 ft (6 in) | 240 ft² | 120 | 20' × 12' concrete patio slab at 6'' depth (4.444 yd³) |
| 5.898 m | 2.352 m | 2.393 m | 13.8721 m² | 33.195925728 | 20-ft ISO dry shipping container internal capacity (33.2 m³) |
| 50 m | 25 m | 2 m | 1250 m² | 2500 | Olympic competition swimming pool (2,500,000 L) |
Follow these three steps to use the find the volume of a rectangular prism with fractions calculator workflow in the workspace above.
Type your three orthogonal dimensions into Length (#l, preloaded with 4), Width (#w, preloaded with 3), and Height (#h, preloaded with 2).
Ensure all three fields use the same unit (in, ft, cm, or m) and convert fractional tape-measure readings to decimals (1/2 = 0.5, 3/4 = 0.75, 3/8 = 0.375).
Select Calculate result to display the exact cubic volume in #result-main, then select Copy or Download (result.txt) to save your calculation.
These three practical scenarios demonstrate how to calculate volume of a rectangular prism for the preloaded baseline, a moving carton, and a poured concrete slab.
With Length = 4, Width = 3, and Height = 2, the solver multiplies 4 × 3 × 2 to output 24 cubic units (SA = 52 square units).

A mover checking a 24 in by 18 in by 18 in box enters 24, 18, and 18 to get 7776 in³, then divides by 1,728 to confirm 4.5 ft³.

A contractor pouring a 20 ft by 12 ft slab at 6 in (0.5 ft) thickness enters 20, 12, and 0.5 to get 120 ft³ (4.444 yd³ of ready-mix concrete).

The number shown in #result-main is always in the cubic unit matching your input length unit (in³, ft³, cm³, or m³). Use these conversion factors and reverse formulas when applying your result:
Cubic Inches, Cubic Feet, Cubic Yards & Liquid Volume: Divide cubic inches by 1,728 (12³) to get cubic feet (ft³), and divide cubic feet by 27 (3³) to get cubic yards (yd³) for concrete, mulch, or topsoil orders. For liquid tanks, divide cm³ by 1,000 (or multiply m³ by 1,000) to get liters (L), and divide in³ by 231 (or multiply ft³ by 7.48052) to get US liquid gallons.
Finding a Missing Dimension (h = V / (l × w)): When target volume V and two edges are fixed, divide V by the product of the two known dimensions to solve for the third edge.

Watch out for these three measurement pitfalls before ordering materials or shipping boxes:
Never mix feet and inches: entering a 20 ft by 12 ft slab with a 6 in depth as 20 × 12 × 6 produces 1,440 instead of 120 ft³, overstating concrete volume by 12×. Always convert inches to feet (inches ÷ 12) first, and subtract twice the wall thickness (l - 2t, w - 2t, h - 2t) when calculating internal holding capacity of a hollow box.
To calculate other 3D solids and 2D faces, pair this tool with our Cube Volume Calculator for equal-sided boxes (s³), the Pyramid Volume Calculator for rectangular hoppers ((1/3)lwh), the Cylinder Volume Calculator for cylindrical tanks (πr²h), or the Rectangle Area Calculator for 2D floor footprints (l × w).


Use this cube volume calculator to find cubic volume V = s³ from any edge length s. Includes a 10-row reference table, liter and gallon conversions, & FAQs.
Open tool
Use this pyramid volume calculator to find cubic volume V = (Base Area × Height) / 3 for square, rectangular, and triangular pyramids, with a 10-row table.
Open tool
Use this cylinder volume calculator to find cubic volume V = πr²h from radius and height up to 12 digits, with gallon and liter conversions.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this sphere volume calculator to compute cubic volume V = (4/3)πr³ from radius, with hemisphere (2/3πr³), hollow shell, and gallon conversions.
Open tool
Use this cone volume calculator to find cubic volume V = (1/3)πr²h from base radius and perpendicular height, with slant height and gallon conversions.
Open tool
Calculate the area of any rectangle or square from its width and height with our free rectangle area calculator. Includes room sizing table and examples.
Open tool
Use this rectangular prism surface area calculator to find total 6-face box area SA = 2(lw + lh + wh), lateral 4-wall area 2h(l + w), and missing edges.
Open toolAnswers about using Rectangular Prism Volume Calculator and understanding its results.
Multiply the prism's length (l), width (w), and height (h) together using one consistent linear unit: V = l × w × h. For instance, a shipping carton measuring 10 in long by 8 in wide by 6 in high encloses 10 × 8 × 6 = 480 cubic inches.
Convert each fractional measurement into a decimal before typing it into #l, #w, and #h: 1/2 = 0.5, 1/4 = 0.25, 3/4 = 0.75, 1/8 = 0.125, 3/8 = 0.375, 5/8 = 0.625, and 7/8 = 0.875. For example, a box measuring 10 1/2 in × 8 1/4 in × 4 in is entered as 10.5, 8.25, and 4, returning 346.5 in³.
If you need the internal holding capacity of a hollow box or tank with wall thickness t, subtract 2t from each exterior dimension and enter l - 2t, w - 2t, and h - 2t. If you need the volume of the wall material itself (such as rectangular steel tubing or concrete culvert walls), calculate the outer volume (l_out × w_out × h_out) and subtract the inner cavity volume (l_in × w_in × h_in).
Measure Length, Width, and Height in centimeters (cm) so #result-main outputs cubic centimeters (cm³), then divide that result by 1,000 (1 L = 1,000 cm³). If your dimensions are in meters (m), multiply the cubic meter output by 1,000 (1 m³ = 1,000 L).
Divide the known total volume V by the product of the two known dimensions: h = V / (l × w), w = V / (l × h), or l = V / (w × h). For example, if a rectangular tank must hold 240 ft³ on a 10 ft × 6 ft footprint (60 ft²), the required height is 240 ÷ 60 = 4 ft.
Every cube is a rectangular prism, but not every rectangular prism is a cube. A general rectangular prism can have three different edge lengths (l, w, h) and six rectangular faces, whereas a cube (solved in our Cube Volume Calculator) requires all three dimensions to be equal (l = w = h = s) so all six faces are identical squares.
Choose another tool for your next calculation, conversion, or text task.