
Rectangular Prism Volume Calculator
Use this rectangular prism volume calculator to compute box and tank volume V = l × w × h. Includes a 10-row table, fraction conversions, and worked examples.
Open toolThe Cube Volume Calculator is a three-dimensional geometry solver that acts as a volume of the cube calculator and volume of a cube calculator using V = s³. Because all six square faces and 12 edges of a regular hexahedron share identical dimensions, entering one positive measurement (1e-09 to 1,000,000,000) in #s (Cube edge) outputs exact cubic capacity to 12 significant digits.
Enter the inputs, then select Calculate result.
Result will appear here
Learning how to calculate volume of a cube starts with the right-prism rule: total enclosed space equals the flat base area multiplied by the perpendicular height (V = B × h). A regular cube consists of six congruent square faces meeting at 90° right angles. Because the base is a square of side s, its footprint area is B = s². Multiplying that square footprint by the vertical height s produces the cubic equation:
V = s² × s = s³
When you submit the workspace form, batch10-tools.js reads #s (Cube edge), verifies that the value is a positive number between 1e-09 and 1,000,000,000, and executes show(n('s')**3) locally in your browser. If your box has unequal length, width, and height, switch to the Rectangular Prism Volume Calculator; if the four walls taper to a top apex, use the Pyramid Volume Calculator.
Compare exact #result-main outputs from the volume of the cube calculator across 10 common metric and imperial edge lengths (s) alongside their surface areas, space diagonals, and container benchmarks:
| Edge Length (s) | Formula Step (s × s × s) | Exact Volume (#result-main) | Surface Area (6s²) | Space Diagonal (s√3) | Practical Container or Unit Benchmark |
|---|---|---|---|---|---|
| 1 | 1 × 1 × 1 | 1 | 6 | 1.73205 | Unit cube (1 cm³ = 1 mL) |
| 2 | 2 × 2 × 2 | 8 | 24 | 3.46410 | 2× edge scaling (2³ = 8× volume) |
| 3 (preloaded) | 3 × 3 × 3 | 27 | 54 | 5.19615 | Preloaded default (1 yd³ = 27 ft³) |
| 4 | 4 × 4 × 4 | 64 | 96 | 6.92820 | 4-inch corrugated mailer cube (64 in³) |
| 5 | 5 × 5 × 5 | 125 | 150 | 8.66025 | 50 mm ASTM mortar test cube (125 cm³) |
| 6 | 6 × 6 × 6 | 216 | 216 | 10.3923 | Break-even point where V = SA = 216 |
| 8 | 8 × 8 × 8 | 512 | 384 | 13.8564 | 8-inch gift box (512 in³ ≈ 2.22 US gal) |
| 10 | 10 × 10 × 10 | 1000 | 600 | 17.3205 | 10 cm decimeter cube (1,000 cm³ = 1 L) |
| 12 | 12 × 12 × 12 | 1728 | 864 | 20.7846 | 12-inch shipping carton (1,728 in³ = 1 ft³) |
| 100 | 100 × 100 × 100 | 1000000 | 60000 | 173.205 | 100 cm IBC tote (1,000,000 cm³ = 1 m³) |
Follow these three steps to calculate cube volume in the workspace above.
Type the length of one side s into Cube edge (#s, preloaded with 3), subtracting twice the wall thickness (s_int = s_ext - 2t) when finding internal liquid capacity.
Confirm that length, width, and height are equal and that #s is a positive number between 1e-09 and 1,000,000,000 in your chosen unit (in, ft, cm, or m).
Select Calculate result to compute the cubic volume in #result-main, then use Copy or Download (result.txt) to save your figure.
These three practical scenarios show how to calculate cube volume for the preloaded s = 3 cubic yard benchmark, a 12-inch shipping carton, and a 30 cm rimless nano aquarium.
A cubic yard measures 3 ft along every edge. Leaving Cube edge at 3 and clicking Calculate result returns 27 in #result-main (1 yd³ = 27 ft³).

A corrugated cube carton with 12 in edges outputs 1728 cubic inches (1 ft³), which divides by the UPS/FedEx factor of 139 for a 12.43 lb dimensional weight.

Entering 30 (cm) outputs 27000 cm³ (27 L gross); deducting 0.5 cm glass walls (s = 29 cm) gives 24389 cm³ (24.39 L net water).

The value returned in #result-main is always expressed in the cube of your input unit (in³, ft³, cm³, or m³). Keep three mathematical relationships in mind when interpreting results:
Cubic Scaling Law ((ks)³ = k³s³): Doubling the edge length from s = 2 (8) to s = 4 (64) multiplies total volume by 2³ = 8×, while tripling from s = 2 to s = 6 (216) multiplies volume by 3³ = 27×.
Cubic Foot, Cubic Meter & Reverse Cube Root: Because linear conversion factors also get cubed, 1 ft³ = 12³ = 1,728 in³ and 1 m³ = 100³ = 1,000,000 cm³. If you already know the required cubic volume V, take its cube root (s = V^(1/3)) to find the required side length s.

Avoid these frequent geometry and unit-conversion errors when sizing cubic containers:
Never multiply s by 3 instead of cubing (at s = 5, 5 × 3 = 15 whereas 5³ = 125), and never divide cubic inches by 12 instead of 1,728 (1,728 ÷ 12 = 144 sq in, not 1 ft³). When pouring epoxy or measuring water, always deduct twice the wall thickness from exterior dimensions: a 10 cm silicone mold with 0.4 cm walls has a 9.2 cm internal cavity (778.688 cm³), using 22.1% less resin than the 1,000 cm³ exterior cube.
For non-cubic or curved 3D solids, pair this solver with our Rectangular Prism Volume Calculator for l × w × h boxes, the Pyramid Volume Calculator for tapered hoppers ((1/3)lwh), the Cylinder Volume Calculator for round drums (πr²h), or the Sphere Volume Calculator for inscribed spheres ((π/6)s³ ≈ 52.36% of cube volume).


Use this rectangular prism volume calculator to compute box and tank volume V = l × w × h. Includes a 10-row table, fraction conversions, and worked examples.
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
Use this cylinder surface area calculator to find total closed area 2πr(r+h), lateral pipe wrap 2πrh, and end-cap area up to 12 digits.
Open tool
Use this sphere surface area calculator to find total area A = 4πr², open hemisphere dome area (2πr²), closed hemisphere area (3πr²), and paint coverage.
Open toolAnswers about using Cube Volume Calculator and understanding its results.
Measure the length of any single edge (s) and multiply that value by itself three times: V = s × s × s = s³. For example, a cube with an edge length of 3 inches has a volume of 3³ = 27 cubic inches.
First take the cube root of the volume to recover the single edge length (s = V^(1/3)), then square that edge and multiply by 6 faces: SA = 6s² = 6 × V^(2/3). A cube with volume 64 has edge s = 64^(1/3) = 4 and total surface area 6 × 4² = 96.
Compute the cube's volume in cubic inches (V = s³) and divide by 231 (1 US liquid gallon = 231 in³), or compute the volume in cubic feet and multiply by 7.48052. A 12 in cube (1,728 in³) holds 1,728 ÷ 231 ≈ 7.48052 US gallons.
Enter the edge length in centimeters so #result-main outputs cubic centimeters (cm³), then divide by 1,000 (1 L = 1,000 cm³). If your edge measurement is in meters, multiply the cubic meter result by 1,000. A 10 cm decimeter cube (1,000 cm³) holds exactly 1 liter.
Convert any millimeter (÷ 10), meter (× 100), or inch (× 2.54) edge measurement into centimeters before typing it into #s (Cube edge). Because the calculator cubes the input unit, a centimeter input automatically produces cubic centimeters (cm³) in #result-main.
Doubling the edge length increases the cube's volume by a factor of 2³ = 8. Substituting 2s into the volume formula gives V = (2s)³ = 8s³, because the container expands simultaneously along its length, width, and height axes.
Choose another tool for your next calculation, conversion, or text task.