Tank Volume Calculator
A 48 by 24 by 24 inch rectangular tank holds 119.7 US gallons, which is 453.1 liters or 16.0 cubic feet. Divide cubic inches by 231, the exact size of a US gallon, and add a liquid depth for a partial fill.
| Full capacity | |
| Same volume in liters and cubic feet | |
| Volume at the liquid depth | |
| Fill level | |
| Raw volume | |
| In 42 gallon barrels | |
The US gallon is 231 cubic inches, so gallons = cubic inches divided by 231 and liters = cubic inches times 0.016387064. A horizontal tank uses the circular segment area at the liquid depth, so half the depth is not half the volume. Dimensions are inside measurements. All calculations run in your browser and nothing is uploaded.
Enter tank dimensions in inches, feet, meters or centimeters and get capacity in gallons, liters and cubic feet, including partial fills.
Key takeaways
- Gallons = cubic inches / 231, so a 48 x 24 x 24 in tank holds 27,648 / 231 = 119.7 gallons
- A 24 in diameter, 48 in tall cylinder holds 94.0 gallons, but 376 if you feed it the diameter as a radius
- Horizontal tanks fill on a curve: 12 in of depth in a 48 in tank is 19.6 percent of 564.0 gallons
- 1 cubic foot = 7.4805 gallons and 1 gallon = 3.785412 liters (NIST SP 811)
- A petroleum barrel is 42 gallons (EIA), and 1 inch of rain on 1,000 sq ft of roof yields about 623 gallons (USGS)
On this page
Three shapes cover most tanks
Three solids cover nearly every tank a homeowner meets. A rectangular cistern or stock tank is a box, so its volume is length x width x height. A rain barrel or pressure tank standing upright is a cylinder, so its volume is pi x radius squared x height. A fuel tank or trough lying on its side has the same body volume as the upright version of itself, but a depth reading no longer divides it evenly, which gets its own section below.
The tank volume calculator above runs all three in one place. Give it dimensions in inches, feet, meters or centimeters and it reports US gallons, liters and cubic feet, plus 42 gallon barrels for anyone comparing against petroleum figures. It also handles a partial fill: enter a liquid depth and it returns the water in the tank at that level, not the nameplate number.
| Shape | Full volume formula | Typical examples |
|---|---|---|
| Rectangular box | L x W x H | cisterns, stock tanks, sump pits |
| Vertical cylinder | pi x r^2 x h | rain barrels, pressure tanks, upright drums |
| Horizontal cylinder | pi x r^2 x L when full, segment area x L when partly full | fuel tanks, drums on their side, troughs |
Everything else, cones, domes, rounded corners, is a correction on top of these three. The safe habit is to compute the plain solid first, then adjust for the shape details you can see from outside.
Worked example: a rectangular tank
Take a rectangular tank 48 inches long, 24 inches wide and 24 inches tall. The raw volume is 48 x 24 x 24 = 27,648 cubic inches. Divide by 231, the exact number of cubic inches in a US gallon, and the tank holds 119.7 US gallons. The same volume reads 453.1 liters and 16.0 cubic feet, which is the figure to carry when the question is floor loading or shelf spacing.
Now set the water line at 18 inches instead of the rim. Only the height term changes: 48 x 24 x 18 = 20,736 cubic inches, which is 89.8 gallons. That is 75 percent of capacity from a tank filled three quarters of the way up, because a box fills evenly with height. Every inch of depth in this tank is worth 48 x 24 / 231, just under 5 gallons, which is a handy mental shortcut once you know one level.
Measure inside the walls, not outside. A quarter inch wall takes half an inch off each dimension, and 47.5 x 23.5 x 23.5 = 26,232 cubic inches, or 113.6 gallons. The same tank measured over the outside shows 119.7, so the tape measure alone created a 6 gallon gap, about 5 percent of the real number.
Vertical cylinders and the diameter trap
The mistake that costs people here is typing a diameter where the formula wants a radius. Volume grows with the square of the radius, so using the diameter instead makes the answer four times too big.
A rain barrel 24 inches across and 48 inches tall has a radius of 12 inches. Pi x 12^2 x 48 = 21,715 cubic inches, which is 94.0 US gallons, 355.8 liters and 12.6 cubic feet. Feed the same barrel its 24 inch diameter as if it were the radius and the arithmetic reports 376 gallons, four times what the barrel can hold.
Capacity also climbs faster than diameter. Widen the barrel from 24 to 30 inches at the same 48 inch height and the volume multiplies by (15 / 12)^2 = 1.5625: 94.0 gallons becomes 146.9. Height is more modest, since it enters the formula as a plain factor: adding 12 inches of height adds exactly 25 percent.
Horizontal tanks and partial fills
A tank on its side holds the same total as it would upright, but a dipstick reading maps through a circular segment instead of a rectangle. The area of liquid in the circular end is r^2 x acos((r - h) / r) - (r - h) x sqrt(2rh - h^2), where h is the liquid depth. Multiply that area by the tank length and divide by 231 to reach gallons.
Worked example: a fuel tank 48 inches in diameter and 72 inches long, with liquid 12 inches deep. The radius is 24 inches, and the segment area works out to 353.8 square inches. Times the 72 inch length that is 25,476 cubic inches, or 110.3 gallons, which is 19.6 percent of the tank. Full, the same tank holds pi x 24^2 x 72 = 130,288 cubic inches, or 564.0 gallons.
The curve is the part intuition misses. Half the diameter, 24 inches of depth, holds exactly half the volume, 282.0 gallons. But 18 inches of depth, three quarters of the way up the diameter, holds 193.2 gallons, only 34.3 percent of the tank. The bottom quarter and the top quarter of a horizontal cylinder each carry a small share and the middle carries most of it, which is why a quarter mark on a cylindrical fuel gauge means something different from a quarter of the stick.
Gallons, liters, cubic feet and barrels
Unit conversion is where tank math goes wrong most often, so anchor everything to two definitions. The US gallon is 231 cubic inches by definition, and NIST Special Publication 811, Appendix B lists it as 3.785412 liters. Every other figure follows: a cubic foot holds 1,728 cubic inches and therefore 7.4805 gallons, and the petroleum barrel is 42 US gallons, the unit the US Energy Information Administration uses for crude oil statistics.
| Unit | In US gallons | Reverse |
|---|---|---|
| 1 cubic inch | 0.0043 gal | 231 cu in per gallon |
| 1 cubic foot | 7.4805 gal | 0.1337 cu ft per gallon |
| 1 liter | 0.2642 gal | 3.7854 liters per gallon |
| 1 barrel (petroleum) | 42 gal | 23.81 barrels per 1,000 gal |
Run the 119.7 gallon example up the ladder: 119.7 x 3.785412 = 453.1 liters, 119.7 / 7.4805 = 16.0 cubic feet, and 119.7 / 42 = 2.85 barrels. Scale the same steps to a 1,000 gallon cistern and it is 3,785.4 liters, 133.7 cubic feet, or 23.81 barrels. The widget on this page reports all three beside the gallon figure so nobody has to run that ladder by hand twice.
Real capacity versus the nameplate
The printed capacity is almost always more than the water you can use. Freeboard is the gap between the liquid line and the rim, left so splash and thermal expansion do not push water over the top. Fill the 119.7 gallon example to 90 percent of its height and you have 107.7 gallons of usable water; the missing 12 gallons are freeboard, not slop in the arithmetic.
The same tank read at four fill levels, which is what a gauge or a dipstick is telling you:
| Fill level | Depth in the 24 in tank | Water held | Share of capacity |
|---|---|---|---|
| Full | 24 in | 119.7 gal | 100 percent |
| Nine tenths | 21.6 in | 107.7 gal | 90 percent |
| Three quarters | 18 in | 89.8 gal | 75 percent |
| Half | 12 in | 59.9 gal | 50 percent |
Shape details shave further volume. Dished or sloped bottoms hold less than the box math, internal baffles and fittings displace water, and an outlet that sits a couple of inches above the floor strands the last few gallons below it. A rain barrel drained through a spigot partway up the side gives up its bottom band permanently, which is one reason two barrels labeled the same size can deliver different amounts.
Wall thickness is the error that hides inside the tape measure, and on the 48 by 24 by 24 example it is worth about 6 gallons, roughly 5 percent. Plan around usable volume rather than printed volume whenever the water feeds something, a pump, an irrigation line, an aquarium, that cares where the level sits.
Rain barrels and roof catchment
Sizing a rainwater tank starts with the roof, not the tank. The US Geological Survey rain and precipitation page calculates that 1 inch of rain over 1 acre delivers 27,154 gallons. An acre is 43,560 square feet, so 1,000 square feet of roof collects about 623 gallons from a 1 inch storm. A pair of 55 gallon barrels is full after a tenth of an inch, which is why people who store rainwater seriously end up shopping for cisterns measured in hundreds of gallons.
Worked example: a 1,200 square foot roof under a 2 inch storm collects 1,496 gallons. A pair of 60 inch diameter, 60 inch tall cisterns holds 734.4 gallons each, 1,468.8 gallons together, and they come up about 27 gallons short of catching the whole storm. That is the useful kind of close: storage sized near the storm you want to catch, not near the roof area that produces it.
Vertical tanks also make level checks easy, because they fill linearly with depth. Twelve inches of water in that 60 inch cistern is 146.9 gallons, exactly 20 percent of capacity. Compare that with the horizontal tank in the earlier section, where 12 inches of depth held under 20 percent, and the reason the shape selector matters becomes obvious.
Mistakes that skew the number
- Diameter in the radius slot: makes a cylinder four times too big, 376 gallons instead of 94.0 on the rain barrel above.
- Mixed units in one formula: a tank entered as 48 by 2 by 24 inches instead of 48 by 24 by 24 reports 10.0 gallons instead of 119.7, because the 2 was feet.
- Outside dimensions on a thick walled tank: about 6 gallons of ghost water on the example tank, 5 percent of the real figure.
- Treating a horizontal tank dipstick as linear: 18 inches of depth is 34.3 percent of the tank, not 75 percent.
- Counting freeboard as capacity: a tank filled to 90 percent of height delivers 90 percent of the printed gallons, not all of them.
- Forgetting the flat end assumption: the segment math assumes flat ends, and a dished or sloped bottom holds less.
One last check that catches most of these at once: run the same tank twice, once in inches and once in feet, and the two answers should land within rounding of each other. If they do not, a unit went in wrong, and it is faster to find before the concrete pad is poured.
Frequently asked questions
How many gallons is a 48 x 24 x 24 tank?
48 x 24 x 24 is 27,648 cubic inches, and 27,648 / 231 is 119.7 US gallons, or 453.1 liters. That is the full capacity measured on the inside.
How many gallons does a 24 inch diameter, 48 inch tall cylinder hold?
Pi x 12 squared x 48 is 21,715 cubic inches, which is 94.0 US gallons. Using the diameter instead of the radius would wrongly report 376 gallons.
Why is a US gallon 231 cubic inches?
231 cubic inches is the definition of the US liquid gallon, and NIST Special Publication 811 lists the same gallon as 3.785412 liters.
How many gallons are in a cubic foot?
1,728 cubic inches per cubic foot divided by 231 gives 7.4805 gallons. One cubic inch is 0.0043 gallons.
How many liters are in 1,000 gallons?
1,000 x 3.785412 = 3,785.4 liters. The same 1,000 gallons is 133.7 cubic feet or 23.81 petroleum barrels.
How many barrels is 1,000 gallons?
23.81 barrels, because a petroleum barrel is 42 US gallons, the standard unit the US Energy Information Administration uses for crude oil.
How do I calculate how full a horizontal tank is?
Use the circular segment area at the liquid depth: r^2 x acos((r - h) / r) - (r - h) x sqrt(2rh - h^2), then multiply by the tank length. The calculator above runs it for you.
Is half the depth half the volume?
Only at exactly half. In a horizontal 48 inch tank, 12 inches of depth holds 19.6 percent of 564.0 gallons, while 18 inches holds 34.3 percent. Vertical boxes and cylinders do fill linearly.
How much rainwater does a 1,000 square foot roof collect?
About 623 gallons per inch of rain, based on the USGS figure of 27,154 gallons per acre inch. A 1,200 sq ft roof under a 2 inch storm collects about 1,496 gallons.
Should I measure a tank inside or outside?
Inside. Quarter inch walls on the 48 x 24 x 24 example take the reading from 119.7 gallons down to 113.6, a 6 gallon difference from wall thickness alone.
What if the liquid depth I enter is deeper than the tank?
The calculator caps the fill at the tank height and tells you the full capacity is being shown. Physically, water above the rim is spill, not storage.
What is freeboard on a tank?
The gap between the liquid surface and the rim. Filling the 119.7 gallon example to 90 percent of height leaves 107.7 usable gallons, with 12 gallons of freeboard above.
How many gallons does a 60 inch diameter, 60 inch tall cistern hold?
Pi x 30 squared x 60 = 169,646 cubic inches, which is 734.4 US gallons. Twelve inches of water in it is 146.9 gallons, exactly 20 percent.
Spotted a wrong number or a broken result?
More Converters tools
- 12 Hour to 24 Hour Converter Calculator
- Acres to Hectares Converter
- Acres to Linear Feet Calculator
- Acres to Square Feet Converter
- Activation Energy Calculator
- Air Density Calculator
- Amps to Watts Calculator
- Angle Converter
- Angle of Depression Calculator
- Angle of Elevation Calculator
- Area Calculator
- Area Converter
- BPM to FPS Calculator
- BPM to Hz Calculator
- BPS to Hz Calculator
- BTU per Hour to Tons Converter
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.