Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Finance
    • Math
    • Health & Fitness
    • Education
    • Science
    • Real Estate
    • Chemistry
  • About Us
  • Contact Us
CalculatorZilo Logo
Home / Construction Calculators / Container Volume Calculator
Geometry Calculators

Container Volume Calculator

Published onJune 14, 2025 Updated onOctober 20, 2026 10:55 pm

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.

Container Volume Calculator
Box or cylinder, in inches, centimeters, or meters, out in gallons, liters, and quarts

Measure the inside of the container for true capacity.

Only know the diameter? Divide it by 2 for the radius.

Container volume
—
Liters—
US gallons—
Quarts—

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

Quick answer: A box container measuring 24 x 18 x 12 inches holds 5,184 cubic inches, which is 84.95 liters, 22.44 US gallons, or 89.77 quarts. Switch to the Cylinder tab and a drum with a 4-inch radius and 8-inch height holds 402.12 cubic inches, about 6.59 liters (1.74 gallons). Both results come straight from the calculator above, which is pre-filled with the box example.
On this page
  • Quick Answer
  • How to use the container volume calculator
  • The formulas and the conversions behind them
  • Worked examples, checked against the tool
  • Where container volume goes wrong in practice
  • What competing calculators miss
  • Add This Calculator to Your Website
  • Frequently Asked Questions
  • References

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

Box: Volume = Length x Width x Height. Cylinder: Volume = pi x Radius2 x Height. Conversions used by the tool: 1 cubic inch = 16.387064 mL, 1,000 cubic cm = 1 liter, 1 cubic meter = 1,000,000 mL, liters / 3.78541 = US gallons, and gallons x 4 = quarts.

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 sizeCubic volumeLitersUS gallonsQuarts
Box, 24 x 18 x 12 in5,184 in³84.95 L22.4489.77
Cylinder, radius 4 in, height 8 in402.12 in³6.59 L1.746.96
Box, 60 x 40 x 30 cm72,000 cm³72.00 L19.0276.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.

231 in³
In one US gallon, by definition
3.78541 L
In one US gallon
16.387064 mL
In one cubic inch
4 qt
In one US gallon

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

Embed the Container Volume Calculator on your own site. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

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

  1. 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.
  2. 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.
  3. 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.

Related calculators

Geometry Calculators45 45 90 Triangle Calculator A 45-45-90 triangle is the isosceles right triangle: two equal legs, a right angle, and a hypotenuse that is always the leg times √2.Geometry CalculatorsPerimeter Formula Calculator – Calculate Perimeter of Any Shape InstantlyGive this calculator a shape and its dimensions and it returns the perimeter with the formula written out and your numbers substituted, so you can follow every step.Geometry CalculatorsParallel Or Perpendicular CalculatorAre two lines parallel, perpendicular, or neither?Geometry Calculators30 60 90 Calculator: Solve Any Triangle FastA 30-60-90 triangle locks its sides into the ratio 1: √3: 2, so a single known value fixes the whole triangle.Geometry CalculatorsSin Calculator: Free Trigonometry Tool OnlineA sin calculator should do more than one ratio.Geometry CalculatorsGeometric Formula CalculatorSix shapes account for most geometry homework and most job-site measurement questions: rectangle, circle, triangle, square, sphere and cylinder.

CalculatorZilo

Free calculators for everything. Accurate, fast, no signup.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Legal

Privacy Policy Terms and Conditions Disclaimer Cookie Policy DMCA Policy

Company

About Us Contact Us FAQ Accessibility Statement

We use cookies to analyze traffic and to serve ads that keep our calculators free. You can accept or decline cookies below. Learn more

© 2026 CalculatorZilo. All rights reserved.

  • Home
  • Calculators
    • Finance
    • Math
    • Health & Fitness
    • Education
    • Science
    • Real Estate
    • Chemistry
  • About Us
  • Contact Us
Search