molecalculator

Moles & Molar Mass

Rectangle Volume Calculator: How to Find It

Calculator No. 01-7476 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

A rectangle volume calculator typically computes the volume of a rectangular prism (a box), which is length × width × height. You enter the three dimensions in consistent units, and the calculator returns the volume in cubic units. This article explains the formula, how to use it, and common pitfalls.

Formula

The volume of a rectangular prism (often called a box or a cuboid) is the product of its three dimensions:

V = l × w × h

where:

  • V = volume (cubic meters, m³, or other cubic units)
  • l = length (m)
  • w = width (m)
  • h = height (m)

All three dimensions must be in the same unit before multiplying. If you measure in centimeters, the volume is in cubic centimeters (cm³); in inches, cubic inches (in³); and so on.

Worked Example

Using the default values from the calculator above: length = 5 m, width = 3 m, height = 2 m.

Step 1: Write the formula: V = l × w × h

Step 2: Substitute the numbers: V = 5 × 3 × 2

Step 3: Multiply: 5 × 3 = 15; 15 × 2 = 30

Result: V = 30 m³

The calculator shows 30.00 m³, which matches.

Assumptions

  • The shape is a right rectangular prism (all faces are rectangles, all angles are 90°).
  • The three inputs are the outer dimensions (or inner dimensions, depending on what you measure).
  • Units are consistent; the calculator does not convert between units automatically.

When to Use This Calculator

Use this calculator whenever you need the volume of a rectangular container, room, box, or slab. Common real-world uses include:

  • Estimating the capacity of a fish tank or aquarium (length × width × height in centimeters gives cubic centimeters; divide by 1000 for liters).
  • Calculating the volume of concrete needed for a rectangular footing or slab (in cubic yards or cubic meters).
  • Determining the volume of a shipping box to estimate freight costs.
  • Finding the volume of a storage container to know how much it holds.

For a simple rectangle (a 2D shape), there is no volume—only area. Volume always requires three dimensions.

How to Read the Result

The result is in cubic units of the input unit. For example:

  • If you enter meters, the volume is in cubic meters (m³). One cubic meter is 1000 liters.
  • If you enter centimeters, the volume is in cubic centimeters (cm³). One liter is 1000 cm³.
  • If you enter inches, the volume is in cubic inches (in³). One gallon is 231 in³.

To convert to liters, multiply cubic meters by 1000, or divide cubic centimeters by 1000. For gallons (US liquid), divide cubic inches by 231.

Common Mistakes and Unit Mix-Ups

The most frequent error is mixing units. For instance, measuring length in meters, width in centimeters, and height in millimeters, then multiplying directly. Always convert all dimensions to the same unit first.

Another mistake is confusing the volume of a rectangular prism with the area of a rectangle. Area = length × width (2D), volume = length × width × height (3D).

Rounding errors can occur if you round intermediate values. Keep full precision until the final step, then round to a sensible number of decimal places.

Also, remember that the calculator assumes a rectangular prism, not a cylinder or an irregular shape. For a cylinder, use π × radius² × height.

Alternatives and Related Calculations

If your shape is not a rectangular prism, other formulas apply:

  • Cube: volume = side³ (a special case where l = w = h).
  • Cylinder: volume = π × radius² × height.
  • Sphere: volume = (4/3) × π × radius³.
  • Cone: volume = (1/3) × π × radius² × height.
  • Irregular shapes: use water displacement or integration.

For a rectangular prism with a hole (like a pipe or a box with a hollow interior), subtract the inner volume from the outer volume.

Practical Example: Aquarium Volume

Suppose you have a fish tank that is 60 cm long, 30 cm wide, and 40 cm high. The volume in cubic centimeters is:

V = 60 × 30 × 40 = 72,000 cm³

To convert to liters: 72,000 ÷ 1000 = 72 liters. This is the total volume; the actual water volume will be less because of gravel, decorations, and the water level not being at the very top.

For a rectangular pool that is 8 feet long, 4 feet wide, and 3 feet deep, the volume is 8 × 4 × 3 = 96 ft³. To convert to gallons (US), multiply by 7.48052: 96 × 7.48052 ≈ 718 gallons.

Frequently Asked Questions

Q: What is the difference between a rectangle and a rectangular prism?
A: A rectangle is a 2D shape with length and width, having area but no volume. A rectangular prism is a 3D shape with length, width, and height, and it has volume. The calculator on this page is for the 3D prism.

Q: Can I use this calculator for a cube?
A: Yes. A cube is a rectangular prism where all three dimensions are equal. Enter the same value for length, width, and height, and the calculator will give the volume (side³).

Q: How do I convert cubic meters to liters?
A: Multiply the volume in cubic meters by 1000. For example, 2 m³ = 2000 liters. Conversely, divide liters by 1000 to get cubic meters.

Q: What if my box has different units for each side?
A: Convert all dimensions to the same unit before using the calculator. For instance, if length is 2 m and width is 50 cm, convert 50 cm to 0.5 m, then multiply.

Q: Does the calculator account for wall thickness?
A: No. It uses the dimensions you enter. If you need the internal volume of a container, measure the inside dimensions. For the volume of the material itself, subtract the inner volume from the outer volume.

Q: Why is my result in cubic units, not square units?
A: Because you are multiplying three dimensions (length, width, height), the units multiply too: m × m × m = m³. Square units (m²) come from multiplying only two dimensions.

Related

Formula used
in l | Length | m | 5 | 0
in w | Width | m | 3 | 0
in h | Height | m | 2 | 0
out V | Volume | m³ | l * w * h | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →