Tank Volume Calculator
Use this free tank volume calculator to find the capacity of vertical cylinders, horizontal cylinders, rectangular tanks and spheres in gallons, liters and cubic feet, including partly filled tanks.
This slider sets liquid depth, not volume. In horizontal cylinders and spheres, volume is not proportional to depth, so 50% depth is only 50% of capacity at exactly half; at 25% depth a horizontal cylinder holds about 20%. The results show both figures.
Estimates only. By using this calculator you agree to our Terms.
How to Use This Tank Volume Calculator
Pick the shape that matches your tank, enter its inside dimensions, choose a unit, and use the depth slider if the tank is only partly full. Press Calculate to see capacity in US gallons, liters, imperial gallons, cubic feet, cubic meters and petroleum barrels. You also get a depth chart showing the percentage of capacity at each depth, a rough containment guide and a typical working capacity.
Why This Matters
Knowing how much a tank holds keeps you from buying the wrong size, overfilling, or under-building the containment around it. A homeowner sizing a rainwater cistern needs to know whether a 6 ft by 8 ft tank really delivers the 1,500 gallons the supplier promised (geometrically it holds about 1,692). A farmer with a horizontal fuel tank needs a dipstick chart because volume is not proportional to depth in a round, lying-down tank: at 25% depth it holds only about 20% of capacity. Aquarium and pond builders, brewers, plumbers, HVAC contractors and facility managers run the same sums every week.
Nominal ratings are also deceptive. A common 275-gallon rectangular oil tank measures roughly 60 × 27 × 44 inches, which works out to about 309 gallons of raw geometry. The difference is rounded corners, baffles, fittings and the headspace the manufacturer leaves. Running your own numbers lets you compare the label with reality and decide how much to trust it before you pour in anything expensive or hazardous. It also helps when ordering deliveries: knowing the real working capacity tells you how much a truck can safely put in without overfilling.
How It's Calculated
All dimensions are converted to meters, the volume is computed in cubic meters, then converted to other units. The formulas are standard solid geometry; no building code edition governs the math itself.
Horizontal cylinder: V = L × [ r²·cos⁻¹((r−h)/r) − (r−h)·√(2rh−h²) ]
Rectangular: V = L × W × H
Sphere (depth h): V = π × h² × (3r − h) / 3
Here r is the inside radius and h is the liquid depth, which is the slider percentage times the full inside height (or the full diameter for horizontal cylinders and spheres). For vertical cylinders and rectangular tanks, volume is proportional to depth. For horizontal cylinders and spheres it is not, which is why the results report depth and volume percentage separately. Key conversions: 1 US gallon = 231 cubic inches = 3.785 liters, 1 cubic foot = 7.481 US gallons, 1 cubic meter = 1,000 liters, and one petroleum barrel = 42 US gallons (not the same as a 55-gallon drum).
For safety-related figures the tool rounds conservatively. The containment guide is 110% of this tank's full capacity, rounded up. 110% of the largest tank is a common rule of thumb for secondary containment; some rules instead call for 100% of the largest tank plus freeboard for rain, and where several tanks share one containment area the largest tank governs. It is not a universal legal requirement. Typical working capacity is 90% of full capacity, rounded down, leaving headspace for expansion and overfill protection. Rules such as NFPA 30, EPA 40 CFR 112 (SPCC) and local fire or plumbing codes can require more. Local codes vary.
Worked Example
Take a vertical cylinder with an inside diameter of 6 ft and an inside height of 8 ft, filled to 75% depth.
- Radius = 6 ÷ 2 = 3 ft.
- Base area = π × 3² = 28.274 ft².
- Full volume = 28.274 × 8 = 226.19 ft³.
- Gallons = 226.19 × 7.4805 = 1,692 US gallons (about 6,405 liters).
- At 75% depth (6 ft) the liquid volume is 1,692 × 0.75 = 1,269 gallons. In a vertical cylinder, depth percentage and volume percentage match.
- Containment guide at 110% = 1,861.3, rounded up to 1,862 gallons.
- Working capacity at 90% = 1,522.8, rounded down to 1,522 gallons.
Enter 6, 8 and a 75% depth into the vertical cylinder tab and you will see the same figures.
Tips & Common Mistakes
- Use inside dimensions. Subtract wall thickness from outside measurements. For a tank with a 72 in (6 ft) outside diameter and 2 in walls, the inside diameter is 68 in, so volume drops by about 11% ((68 ÷ 72)² ≈ 0.89) from the diameter alone, and more if the inside height is also shorter.
- Flat ends are assumed. Dished heads, cone bottoms, internal baffles and pumps change real capacity. Use the manufacturer's strapping chart for custody-transfer or compliance work.
- Measure depth from the lowest inside point for horizontal tanks, and keep the tank level, or readings will be off. Remember that depth percentage is not volume percentage in a round, horizontal tank.
- Don't mix units. Entering 6 for feet and 72 for inches in the same calculation gives nonsense, so pick one unit for every field.
- Size containment from your largest tank, add freeboard for rain, and round up. Check your local authority before building.
Frequently Asked Questions
How do I calculate the volume of a cylindrical tank?
Multiply π by the radius squared, then by the height (or length for a horizontal tank). For example, a 4 ft diameter, 10 ft long tank holds π × 2² × 10 = 125.7 ft³, or about 940 gallons.
How many gallons are in a half-full horizontal tank?
Exactly half of its capacity when the liquid is at half the diameter, because the cross-section is symmetrical. At other depths the relationship is non-linear (25% depth is only about 20% of capacity), so use the depth table in the results.
How do I convert cubic feet to gallons?
Multiply cubic feet by 7.48052 to get US gallons. To get liters instead, multiply cubic feet by 28.3168.
Why is my tank's labeled size different from the calculated volume?
Manufacturers rate tanks by nominal or usable capacity, which accounts for headspace, rounded corners and fittings. The calculator shows the geometric maximum, so expect it to be a little higher than the label.
How much secondary containment do I need?
A common rule of thumb is 110% of the largest tank's capacity, though some rules use the largest tank plus rain freeboard. Requirements depend on the liquid, the location and your local authority, so treat the 110% figure as a starting point and confirm the rules that apply to you.
Does this calculator handle domed or conical tank ends?
No. It treats tanks as perfect cylinders, boxes or spheres with flat ends. Dished heads add some volume, so for precise results use the manufacturer's capacity chart.