molecalculator

Moles & Molar Mass

Storage Capacity Formula: How to Calculate

Calculator No. 01-10851 · 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.

This guide explains how to calculate the storage capacity of a rectangular container (like a box, tank, or room) in cubic units (cubic meters, cubic feet) and then convert that to practical units like liters or gallons. You’ll need the container’s length, width, and depth (or height). The calculator below does the math for you, and the step-by-step instructions show how to do it by hand.

Formula

The basic formula for the volume (storage capacity) of a rectangular prism is:

Volume = Length × Width × Depth

Where:

  • Length (l) – the longest horizontal dimension, in meters (m)
  • Width (w) – the shorter horizontal dimension, in meters (m)
  • Depth (d) – the vertical dimension (height or depth), in meters (m)

The result is in cubic meters (m³). To convert to other units:

  • 1 m³ = 1000 liters (L)
  • 1 m³ = 264.172 US gallons
  • 1 m³ = 35.3147 cubic feet (ft³)
  • 1 m³ = 61023.7 cubic inches (in³)

If your measurements are in centimeters, feet, or inches, convert them to meters first (1 cm = 0.01 m, 1 ft = 0.3048 m, 1 in = 0.0254 m) or use the unit selector in the calculator.

Worked Example

Using the default values: Length = 2 m, Width = 1 m, Depth = 0.5 m.

Step 1: Multiply length × width × depth.

Volume = 2 m × 1 m × 0.5 m = 1.0 m³

Step 2: Convert to liters.

Liters = 1.0 m³ × 1000 = 1000 L

Step 3: Convert to US gallons.

Gallons = 1.0 m³ × 264.172 = 264.172 gal (rounded to 264.17 gal)

So a container that is 2 m long, 1 m wide, and 0.5 m deep holds exactly 1 cubic meter, which is 1000 liters or about 264 US gallons.

Assumptions

  • The container is a perfect rectangular prism (flat sides, right angles).
  • Measurements are taken from the inside dimensions, not the outside, if you want usable capacity.
  • The formula gives the total volume; if the container is not filled to the brim, the actual stored volume will be less.
  • No allowance is made for walls, thickness, or internal obstructions.

When to Use This Formula

This is the standard formula for any box-shaped storage: shipping containers, water tanks, fish tanks, storage sheds, or even the cargo area of a truck. It is also the basis for calculating how much material (like soil, grain, or liquid) fits in a rectangular bin. For cylindrical tanks, use the cylinder volume formula (π × radius² × height) instead.

How to Read the Result

The volume tells you the maximum space inside. For liquids, liters or gallons are intuitive. For dry goods, cubic meters or cubic feet are common. Remember that the result is the theoretical capacity; in practice, you cannot always fill every corner (e.g., with irregular items), so actual usable capacity may be 10–20% less.

Common Mistakes

  • Mixing units: Multiplying meters by centimeters without converting. Always use the same unit for all three dimensions.
  • Using outside dimensions: For a tank or box, the wall thickness reduces the internal volume. Measure inside.
  • Confusing depth with height: Depth is the vertical dimension; for a horizontal tank, it’s the height. For a vertical tank, depth is the height as well, but make sure you measure the correct side.
  • Rounding too early: If you round each dimension to the nearest whole number, the volume error can be large. Keep at least two decimal places.
  • Forgetting conversion factors: 1 cubic foot is not 12 cubic inches; it’s 12³ = 1728 cubic inches.

Tips

  • Use a tape measure or laser measure for accuracy. For large tanks, measure at several points and average.
  • If the container has a sloped bottom or irregular shape, break it into rectangular sections and sum the volumes.
  • For liquid storage, always leave a small air gap (ullage) to allow for expansion and to prevent overflow.
  • When converting to gallons, note that US and UK gallons differ (1 UK gallon ≈ 1.20095 US gallons). This calculator uses US gallons.
  • Double-check your math with the calculator above – it’s easy to slip a decimal point.

Troubleshooting

My result seems too large or too small.
Check your units. If you measured in centimeters and got a huge number, you likely forgot to convert to meters. Divide centimeters by 100 before multiplying.

The calculator says “Cannot compute”
This happens if you enter a negative number. Length, width, and depth must be zero or positive.

I need the capacity in gallons, but I only have liters.
Multiply liters by 0.264172 to get US gallons. Or divide by 3.78541.

My container is not a perfect rectangle.
For a cylinder, use π × r² × h. For a sphere, use (4/3)πr³. For irregular shapes, use water displacement (if practical) or approximate with a 3D model.

The volume I get is more than what I can actually fill.
That’s normal. The formula gives the geometric volume. Real-world factors like internal braces, pipes, or the need to leave headspace reduce usable capacity.

Frequently Asked Questions

Q: What is the difference between capacity and volume?
A: Capacity usually refers to the maximum amount a container can hold, while volume is the space occupied. In practice, they are the same for a filled container.

Q: How do I calculate the capacity of a cylinder?
A: Use the formula V = π × r² × h, where r is the radius and h is the height. Enter the radius and height in the same units, then convert the result to liters or gallons.

Q: Can I use this formula for a cone or pyramid?
A: No. For a cone, use V = (1/3)πr²h. For a pyramid, V = (1/3) × base area × height.

Q: How many liters are in a cubic foot?
A: 1 cubic foot = 28.3168 liters. To convert, multiply cubic feet by 28.3168.

Q: What if my measurements are in inches?
A: Convert inches to meters by multiplying by 0.0254, or use the calculator’s unit selector. Alternatively, calculate volume in cubic inches and then divide by 61023.7 to get cubic meters.

Q: Does the formula work for a pool that is not rectangular?
A: For a kidney-shaped or freeform pool, you’ll need to approximate. Divide the pool into rectangles or use the average length and width times the average depth for a rough estimate.

Related

Formula used
in l | Length | m | 2 | 0
in w | Width | m | 1 | 0
in d | Depth | m | 0.5 | 0
in unit | Input unit | m, cm, ft, in | m | -
out vol | Volume (cubic meters) | m³ | l * w * d | 4
out liters | Volume in liters | L | vol * 1000 | 2
out gallons | Volume in US gallons | gal | vol * 264.172 | 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 →