Container Volume Calculator
How many gallons does that storage tote really hold? Will the tank fit the stand, and how much liquid goes in before it reaches the fill line? Box or cylinder, the question is always the same shape of arithmetic, followed by a conversion most people would rather not do by hand.
The Container Volume Calculator below does both shapes in one tool. Enter dimensions in inches, centimeters, or meters and get the volume in cubic units plus liters, US gallons, and quarts, with no manual conversion and no second calculator for the other shape.
Measure the inside of the container for true capacity.
Capacity only: the tool assumes straight walls and a flat base. Tapered buckets, rounded corners, and domed tank ends hold less (or more) than the straight-shape result.
Quick Answer
How to use the container volume calculator
Pick the shape first: Box for totes, tanks, crates, aquariums, and anything with flat sides and corners, Cylinder for drums, pipes, buckets with straight walls, and round tanks. Then set the unit you measured in (inches, centimeters, or meters) and enter the inside dimensions. For a box that is length, width, and height. For a cylinder it is radius and height: if you measured straight across the top, that is the diameter, so halve it before typing.
Two habits keep the answer honest. Measure inside, not outside, because wall thickness is space your liquid cannot use. And for a container that is only partly full, enter the depth of the contents rather than the full height: the same formula then returns what is actually in there. If your shape is a simple rectangular solid and nothing else, the dedicated box volume calculator covers that one shape in depth; this page is the better pick when you also need a cylinder or a gallon conversion.
The formulas and the conversions behind them
The gallon figure surprises people until they see where it comes from. A US gallon is defined as exactly 231 cubic inches, and 231 cubic inches converted to liters is 3.78541 liters, which is the divisor the tool uses. That is also why the shortcuts you see on forums (divide cubic inches by 231) and the liter route agree: they are the same definition walked in two directions. All three input units feed the same path, so a 60 x 40 x 30 cm box returns 72,000 cubic cm and 72.00 liters without you converting anything by hand.
Worked examples, checked against the tool
| Shape and size | Cubic volume | Liters | US gallons | Quarts |
|---|---|---|---|---|
| Box, 24 x 18 x 12 in | 5,184 in³ | 84.95 L | 22.44 | 89.77 |
| Cylinder, radius 4 in, height 8 in | 402.12 in³ | 6.59 L | 1.74 | 6.96 |
| Box, 60 x 40 x 30 cm | 72,000 cm³ | 72.00 L | 19.02 | 76.08 |
The box example is the size of a common large storage tote, and the gap between the marketing label and the math is the lesson: totes in that class are often sold as 27-gallon, but the straight inside dimensions give 22.44 gallons to the brim, and less once the lid taper and a sensible fill line are counted. Run your own tote through the tabs before you plan a move, a fill, or a chemical mix around the printed number. Aquarium keepers get the same warning in reverse: glass thickness and substrate depth shrink real water volume, which is why the aquarium capacity calculator exists for tank-specific planning.
Where container volume goes wrong in practice
Tapered walls. Most molded buckets and totes are wider at the top than the bottom, so the box formula with top dimensions overstates capacity and with bottom dimensions understates it. Averaging the top and bottom length and width before calculating gets you close. Precision shapes with sloped or rounded sections, like the capsule volume calculator handles, need their own formulas rather than an average.
Fill line versus brim. A container filled to the rim in a calculation is filled to the rim in real life only if you never move it. Leave headroom for sloshing, thermal expansion of fuels and chemicals, and lids that dip into the opening. A working rule is to plan around 90 to 95 percent of the brim figure this tool returns.
Weight, not just space. Volume tells you whether it fits; it does not tell you whether the shelf, stand, or floor can hold it. Water weighs about 8.34 lb per US gallon, so the 22.44-gallon tote above is roughly 187 lb of water alone. For pours and mixes measured in cubic yards rather than gallons, the concrete volume calculator is the right sibling tool.
What competing calculators miss
The container and tank tools ranking for this term each give up something practical. Inches-to-gallons tools handle the shape math but lock you into inches and gallons, so a centimeter measurement or a liter answer means a second tool. Cylinder-only tools bury the conversions in article text instead of the result. Box-only tank tools refuse cylinders outright. None of the reviewed set returns quarts, and most make you re-enter everything when you switch shapes.
This calculator keeps both shapes behind one tab switch, accepts inches, centimeters, or meters, and returns cubic units, liters, US gallons, and quarts in a single pass, with copy and share buttons on the result. Its honest limits are stated on the card: straight walls and a flat base are assumed, and US (not imperial) gallons are used throughout.
Add This Calculator to Your Website
Frequently Asked Questions
Measure the inside if you want true capacity. Outside dimensions include the wall thickness, which matters on thick-walled tanks, coolers, and molded totes. A tote that measures 24 inches outside can easily lose half a gallon or more once both walls are counted.
Divide by 231. One US gallon is defined as exactly 231 cubic inches, so 5,184 cubic inches divided by 231 is 22.44 gallons. The calculator does this conversion automatically and also shows liters and quarts.
Enter the height of the liquid, not the height of the container. The formulas only care about the filled space, so a drum filled to 4 inches of its 8-inch height returns the volume it currently holds, not its full capacity.
Not directly, but the liter result gets you there: multiply liters by the liquid density in kilograms per liter. Water is 1 kg per liter, so the 84.95 liters in the worked example weigh about 84.95 kg (roughly 187 lb) before you add the container itself.
Because the radius is squared in the cylinder formula. A 10 percent error in the radius becomes roughly a 21 percent error in volume. Measure the diameter carefully in two places, average it, and halve it for the radius.
No. A US gallon is 3.78541 liters; an imperial (UK) gallon is 4.54609 liters, about 20 percent larger. This calculator reports US gallons, quarts, and liters only, so convert the liter figure if you need imperial gallons.
References
- National Institute of Standards and Technology, Weights and Measures Division: the US gallon is defined as 231 cubic inches and the liter conversions used here follow the NIST customary-unit tables. NIST: Weights and Measures. Accessed October 2026.
- US Geological Survey, Water Science School: water density and weight figures (1 kg per liter, about 8.34 lb per gallon) used for the weight estimates. USGS: Water Density. Accessed October 2026.
- Bureau International des Poids et Mesures, the SI Brochure: definitions of the liter and cubic meter underlying the metric conversions. BIPM: The SI Brochure. Accessed October 2026.
