Cube Volume Calculator — Calculate volume for boxes, tanks, and 3D spaces
The Cube Volume Calculator finds the space inside a cube, rectangular box, room, or rectangular tank. Choose a shape, enter dimensions in one shared unit, and convert the result among cubic millimeters, centimeters, meters, inches, feet, yards, milliliters, liters, and US liquid gallons. The calculation remains visible so you can audit every measurement and conversion.
How to use
Choose “Cube” when every edge is equal. Choose “Rectangular box, room, or tank” when length, width, and height may differ. Next, select the Dimension unit. Every dimension you enter must use that unit; if one measurement is in feet and another is in inches, convert one of them before entering the values.
In cube mode, enter the Side length. In rectangular mode, enter Inside length, Inside width, and Inside height or fill depth. Use positive values only. For container capacity, measure the usable interior rather than the exterior. For a partly filled rectangular tank, enter the intended liquid depth as the height. If your purpose is clearance or occupied space, use the relevant external dimensions instead.
Select the Primary output unit. Cubic units such as ft³ and m³ describe geometric volume, while milliliters, liters, and US liquid gallons provide equivalent capacity values. The calculator updates immediately whenever an input or selection changes. The highlighted figure is the result in your chosen unit. The supporting results show cubic meters, liters, and US liquid gallons for comparison.
Read the calculation audit below the results. It reproduces the entered multiplication in the original dimension unit, making it easier to detect an incorrect measurement or shape selection. If a field is blank, zero, negative, nonnumeric, or outside the supported range, the calculator marks that field and withholds the result rather than displaying an invalid number.
Use Reset values to restore the example dimensions of 10 ft × 10 ft × 0.33 ft and a cubic-foot output. Treat capacity as theoretical unless the dimensions already account for wall thickness, freeboard, fittings, rounded corners, and displacement.
Formula
Step by step
Worked audit: Find the theoretical capacity of a rectangular tank with inside dimensions 1.20 m long, 0.80 m wide, and 0.75 m high.
- Confirm the shape. The tank has flat rectangular sides, so use rectangular-prism mode rather than cube mode.
- Confirm consistent units. All three measurements are already in meters, so no preliminary conversion is needed.
- Multiply the dimensions: V = 1.20 m × 0.80 m × 0.75 m.
- Multiply length and width first: 1.20 × 0.80 = 0.96. This is the base area, 0.96 m².
- Multiply by height: 0.96 m² × 0.75 m = 0.72 m³.
- Convert cubic meters to liters: 0.72 × 1,000 = 720 L.
- Convert to US liquid gallons if needed: 0.72 ÷ 0.003785411784 ≈ 190.203 US gal.
- Interpret the answer. The calculated 0.72 m³, 720 L, and approximately 190.203 US gal are equivalent descriptions of theoretical internal volume. They are not guaranteed usable capacity. If the tank must retain 0.10 m of freeboard, replace 0.75 m with a 0.65 m fill depth: 1.20 × 0.80 × 0.65 = 0.624 m³ = 624 L. Further allowances may be needed for fittings, rounded corners, or internal equipment.
Detailed calculation guide
A cube’s volume equals its side length raised to the third power. A rectangular box, room, or tank uses length multiplied by width multiplied by height. This Cube Volume Calculator standardizes the dimensions, computes the geometric volume, and converts it into the selected cubic or capacity unit. Use internal dimensions for capacity and external dimensions when estimating the space an object occupies.
To calculate cube volume, multiply the side length by itself three times: V = s³. For a rectangular prism, multiply length × width × height. All dimensions must use the same linear unit before multiplication, and the answer must be reported in the corresponding cubic unit.
Understanding the two supported shapes
A cube is a three-dimensional solid with six congruent square faces and twelve equal edges. Because its length, width, and height are identical, one side measurement contains all the dimensional information needed. If the side is 4 cm, the volume is 4 × 4 × 4 = 64 cm³.
A rectangular prism, also called a cuboid or rectangular box, has rectangular faces and three perpendicular dimensions. Those dimensions may differ, so the calculator requires length, width, and height. Rooms, cartons, storage bins, and tanks with flat rectangular sides can usually be modeled this way. A cube is therefore a special rectangular prism, but most rectangular prisms are not cubes.
What volume represents
Volume measures three-dimensional space. Multiplying three lengths produces a unit raised to the third power: meters multiplied by meters multiplied by meters becomes cubic meters. A 1 m³ volume can be visualized as a cube measuring one meter on every side. Volume is not area, length, mass, or weight. Square feet describe a surface; cubic feet describe space.
Capacity is closely related but contextual. Geometric volume describes the mathematical space enclosed by ideal dimensions. Capacity describes how much a container can hold. For a perfectly rectangular, open interior, the numerical quantities may correspond after conversion. Real containers often hold less because their walls have thickness, their corners are rounded, or part of the interior cannot be filled.
Units and conversion logic
The safest method is to convert every dimension to a common linear unit and then multiply. This calculator takes a shared dimension unit, converts each length to meters, and computes a cubic-meter reference value. It then converts that reference to the requested output. This approach avoids mixing incompatible numbers.
Volume conversion factors are cubic, not linear. Because 1 m equals 100 cm, 1 m³ equals 100³ cm³, or 1,000,000 cm³. Similarly, 1 ft equals 12 in, but 1 ft³ equals 12³ in³, or 1,728 in³. Applying only 100 or 12 to a volume is a common dimensional error.
The metric relationships are especially useful:
- 1 cm³ equals 1 mL.
- 1 dm³ equals 1 L.
- 1 m³ equals 1,000 L.
- 1,000 mm³ equals 1 cm³.
US liquid gallons are capacity units rather than cubic length units. One US liquid gallon corresponds to exactly 231 cubic inches, which is 0.003785411784 cubic meter. US liquid gallons differ from Imperial gallons, so the word “US” matters.
Common Mistakes
- Using s³ for a box whose three dimensions are not equal. Select rectangular mode unless every edge has the same length.
- Mixing feet, inches, centimeters, or other units in the input fields. Convert the measurements first or ensure every entry uses the selected dimension unit.
- Writing a result as feet or square feet. A three-dimensional calculation requires ft³, m³, cm³, or another cubic unit.
- Applying a linear conversion factor directly to volume. The underlying length conversion must be cubed.
- Measuring outside dimensions when the goal is container capacity. Wall thickness can create a substantial difference, particularly for small or heavily insulated containers.
- Treating geometric volume as guaranteed usable capacity. Fittings, freeboard, sediment, internal equipment, rounded corners, and operating limits all reduce usable space.
- Confusing liters with kilograms. Liters measure volume; kilograms measure mass. Conversion between them requires the density of a particular substance.
- Applying the rectangular-prism formula to a cylinder, hopper, sphere, sloped tank, or irregular room without decomposing the shape.
Assumptions
The calculator assumes straight, mutually perpendicular dimensions and flat faces. In cube mode it assumes all edges are equal. In rectangular mode it assumes the cross-sectional area remains length × width over the full height. Measurements are treated as exact numerical inputs even though physical measurements always have some uncertainty.
The capacity equivalents assume the entered values represent internal dimensions. If a tank is filled only to a specified operating level, enter that fill depth rather than its total internal height. The calculation does not infer freeboard, wall thickness, manufacturing tolerances, or displaced volume.
Limitations
This is a geometric calculator, not a tank calibration instrument. It cannot account automatically for bowed walls, curved corners, a sloping floor, baffles, pipes, pumps, insulation, contents already present, thermal expansion, or deformation under load. Small dimensional errors are also amplified because three measurements are multiplied.
For a nominal cube, relative uncertainty is particularly important. If the side measurement has a small relative error, the volume’s approximate relative error is three times as large for small errors. A side recorded as 1% too high produces a volume roughly 3% too high. For a rectangular prism, the first-order relative uncertainties of length, width, and height add in a conservative estimate.
The displayed digits do not imply that the physical measurements are equally precise. A result derived from dimensions measured to the nearest centimeter should not normally be presented as though it were known to six decimal places. Round according to the least precise measurement and the purpose of the estimate.
Practical Applications
Students can use the calculator to verify geometry exercises and explore how cubic scaling works. Homeowners can estimate room volume for preliminary ventilation discussions or determine the capacity of rectangular storage spaces. Builders can estimate excavation, fill, or concrete volume when the planned region is genuinely rectangular. Shippers can calculate carton volume, although carriers may price shipments using dimensional weight rather than physical volume alone.
Tank and aquarium users can estimate theoretical capacity from inside dimensions. Warehouse planners can compare carton volume with shelf or bin space. Manufacturers can estimate material envelope volume for a rectangular component. In every case, the formula is appropriate only to the rectangular portion being modeled.
Tips
- Measure each dimension along a perpendicular axis and use the same reference surfaces.
- Use internal measurements for holding capacity and external measurements for clearance, shipping footprint, or occupied space.
- For a partially filled rectangular tank, use liquid depth as height.
- Keep extra digits during intermediate conversions, then round the final value.
- Record whether gallons are US liquid gallons or Imperial gallons.
- Split composite spaces into non-overlapping rectangular prisms, calculate each volume, and add them.
- Subtract the volumes of rectangular voids only when their shapes and dimensions are known reliably.
Interpretation
The primary result is the same physical volume expressed in the selected unit. The cubic-meter, liter, and US-gallon values are equivalents, not separate quantities to add. For example, 2 m³, 2,000 L, and about 528.344 US gal describe the same volume.
A large numerical change after selecting another unit does not mean the physical volume changed. Smaller units require more units to represent the same space. One cubic meter therefore has a numerical value of one in m³ but one million in cm³.
When interpreting tank results, distinguish total internal geometric volume from working volume. A 1,000 L mathematical capacity may need deliberate freeboard, and a manufacturer’s rated capacity may be based on a specific fill line. For purchasing, safety, or compliance, use the manufacturer’s certified data rather than a dimensional estimate.
Related Formulas
The area of one cube face is s², and the total surface area is 6s². A rectangular prism’s surface area is 2(lw + lh + wh). If volume and two dimensions are known, the third dimension is V divided by the product of the other two. For example, h = V/(lw).
The side of a cube can be recovered from its volume using the cube root: s = ∛V. Scaling every dimension by a factor k scales volume by k³. Doubling every edge multiplies volume by eight; tripling every edge multiplies it by twenty-seven.
Mass can be estimated from volume only when density is known: mass = density × volume. This requires compatible units and a defensible density for the actual material, including its moisture, temperature, compaction, or mixture state where relevant.
Best Practices
Start by defining the measurement boundary. For capacity, decide whether the boundary is the inside wall, a safe fill line, or a manufacturer’s rated operating level. For occupied space, include external walls, lids, projections, and required clearance if those affect the planning decision.
Measure rather than relying on nominal names. A “two-foot” container may not have an exact two-foot internal dimension. Take multiple measurements when walls may not be parallel, and use a conservative value or a more detailed model if differences are significant.
Maintain dimensional consistency throughout the audit. Write the three dimensions with their units, show the multiplication, and label the cubic result. If conversion is required, preserve the unrounded base result until the last step. Compare the answer with a rough mental estimate to catch misplaced decimals.
When NOT to use this calculator
Do not use the rectangular-prism model for cylindrical, spherical, conical, rounded, tapered, bowed, or irregular containers unless you are intentionally approximating them and can tolerate the error. A cylinder requires base area πr² multiplied by height. A sloped or stepped space may require decomposition, integration, survey data, or a shape-specific calculator.
Do not use this estimate as a certified tank strapping table, legal trade measurement, structural design calculation, hazardous-material limit, shipping quote, or life-safety ventilation calculation. Those decisions may depend on regulations, calibration, load conditions, environmental factors, or professional judgment beyond geometric volume.
Real-world examples
A cube-shaped display case with a 0.6 m internal side has a volume of 0.6³ = 0.216 m³, equivalent to 216 L. The liter value describes theoretical enclosed space, not necessarily liquid-safe capacity.
A moving carton measuring 24 × 18 × 16 inches has a geometric volume of 6,912 in³. Dividing by 1,728 in³ per ft³ gives 4 ft³. A carrier’s dimensional-weight calculation may use the same dimensions but a separate pricing divisor.
A rectangular water tank with internal dimensions 1.2 × 0.8 × 0.75 m has a total geometric volume of 0.72 m³, or 720 L. If an operating rule requires 0.10 m of freeboard, use 0.65 m as the fill depth, producing 624 L before other displacement allowances.
A room measuring 12 × 10 × 8 ft contains 960 ft³ of geometric space. That value can support preliminary planning, but heating, cooling, and ventilation calculations also depend on occupancy, air changes, climate, insulation, leakage, equipment, and applicable standards.
Comparison and educational context
Manual multiplication is quickest when the measurements already share a unit and only one output is needed. A calculator becomes more valuable when converting cubic units, checking capacity equivalents, comparing scenarios, or documenting an audit trail. The visible equation helps learners connect the numerical answer to dimensional reasoning instead of treating conversion as a black box.
Compared with filling a container and measuring its contents, dimension-based calculation is faster and non-destructive but less representative of irregular interiors. Direct volumetric calibration can capture real geometry and obstructions, while manufacturer documentation may provide rated or certified capacity. Choose the method whose uncertainty matches the consequence of the decision.
The Cube Volume Calculator is best used as a transparent geometry and planning tool. Its strongest results come from correctly classified shapes, consistent units, well-defined measurement boundaries, and dimensions measured to suitable precision. Confirm high-consequence capacity, construction, shipping, or engineering decisions with authoritative specifications or a qualified professional.
Beginner: cube with a 3-meter side
27 m³; equivalent to 27,000 L
Cube the side length: 3 × 3 × 3 = 27 m³. The unused rectangular dimensions do not affect cube mode.
Intermediate: rectangular storage box
30 L
The box volume is 40 × 30 × 25 = 30,000 cm³. Since 1,000 cm³ equals 1 L, the theoretical capacity is 30 L.
Advanced: room volume in US gallons
Approximately 7,181.299 US gal
The room contains 960 ft³. Converting that geometric space to an equivalent US liquid capacity gives approximately 7,181.299 gallons.
Real-world: rectangular tank capacity
720 L
Internal volume is 1.2 × 0.8 × 0.75 = 0.72 m³, and 0.72 m³ equals 720 L before freeboard or displacement allowances.
Edge case: one-millimeter cube
1 mm³; equivalent to 0.001 mL
A 1 mm side produces 1 × 1 × 1 = 1 mm³. This illustrates why volume conversions use the cube of the linear factor.
Shipping carton in cubic feet
4 ft³
The carton contains 6,912 in³. Dividing by 1,728 in³ per cubic foot gives exactly 4 ft³, though carrier billing may use dimensional weight.
Frequently asked questions
How do I calculate the volume of a cube?
Measure one side, then multiply that value by itself three times: V = s × s × s = s³. If the side is measured in centimeters, the answer is in cubic centimeters; if measured in feet, the answer is in cubic feet.
How do I calculate the volume of a rectangular box or room?
Multiply length × width × height after converting all three measurements to the same linear unit. A 12 ft × 10 ft × 8 ft room therefore has a geometric volume of 960 ft³.
Can I use this Cube Volume Calculator for a rectangular tank?
Yes, when the tank has a rectangular interior with flat perpendicular sides. Select rectangular mode and enter inside length, inside width, and usable fill depth. Use a shape-specific method for cylindrical, rounded, or tapered tanks.
How many liters are in one cubic meter?
One cubic meter equals exactly 1,000 liters. This follows from one liter being one cubic decimeter: ten decimeters fit along each meter, so 10 × 10 × 10 gives 1,000 cubic decimeters.
Why is volume measured in cubic units?
Volume combines three perpendicular lengths. Multiplying length × width × height also multiplies their units, so meters × meters × meters becomes m³ and feet × feet × feet becomes ft³.
Should I use inside or outside dimensions for a box or tank?
Use inside dimensions when estimating how much the box or tank can contain. Use outside dimensions when calculating storage clearance, shipping envelope, or the total space occupied by the object.
Does calculated tank volume equal usable capacity?
Not necessarily. Usable capacity may be reduced by wall thickness, rounded corners, freeboard, fittings, baffles, sediment, internal equipment, displacement, or a manufacturer-defined operating fill limit.
Can I multiply dimensions measured in different units?
Not directly if you want a standard cubic result. Convert every measurement to one common linear unit first. For example, convert 6 inches to 0.5 feet before multiplying it by dimensions entered in feet.
How does doubling a cube’s side affect its volume?
Doubling the side multiplies volume by 2³, which is eight. A cube with a 2 m side has 8 m³ of volume, while a cube with a 4 m side has 64 m³.
What is the difference between cubic feet and square feet?
Square feet measure two-dimensional area, such as a floor or wall. Cubic feet measure three-dimensional space. A room’s floor may cover 120 ft² while the room itself contains 960 ft³.
How do I convert cubic feet to cubic inches?
Multiply cubic feet by 1,728 because one foot contains 12 inches and the length conversion must be cubed: 12³ = 1,728. Thus, 4 ft³ equals 6,912 in³.
Can liters be converted directly to kilograms?
No universal conversion exists because liters measure volume and kilograms measure mass. You also need the material’s density, and that density may vary with composition, temperature, moisture, or compaction.
Related calculators
Browse all calculators in this category
Editorial review
Author: JD
Sources
Enable JavaScript to use interactive calculators.