Tank Volume Calculator
Simple tank calculator for total volume and optional filled volume.
Tank Volume Calculator
The Tank Volume Calculator estimates the geometric capacity of a vertical cylinder, a horizontal cylinder, or a rectangular tank. Enter the tank’s dimensions, select a dimension unit and a result unit, and calculate its total volume. Add the liquid height to estimate filled volume and fill level.
Tank shape matters when the tank is partly full. In a vertical cylinder or rectangular tank, volume rises in direct proportion to liquid height. In a horizontal cylinder, the curved cross-section makes the relationship nonlinear. This guide explains how to use the calculator, interpret its results, and recognize when a geometric estimate may not represent usable capacity.
Table of Contents
What the calculator measures
The calculator offers three shapes: vertical cylinder, horizontal cylinder, and rectangular tank. Selecting a shape changes which dimension fields are needed. The observed interface showed dimension units of centimeters, meters, inches, and feet, and result units of liters, cubic meters, US gallons, and cubic feet.
The results describe three related quantities. Total volume is the estimated geometric space inside a full tank. Filled volume estimates the liquid volume for the entered fill height. Fill level expresses the filled volume as a percentage of the calculated total.
These are estimates based on regular geometric shapes, not a direct measurement of liquid in a physical tank. The supported shapes do not account for domed ends, sloped bottoms, fittings, or other features that change the interior.
How to use the Tank Volume Calculator
Use internal measurements whenever possible. The inside dimensions describe the space available for liquid; outside dimensions include the tank walls and may overstate volume. Enter all dimensions using the selected dimension unit.
To calculate a tank’s volume:
1. Select vertical cylinder, horizontal cylinder, or rectangular tank.
2. Choose a dimension unit and a result unit.
3. Enter the required internal dimensions. A cylinder needs its diameter and its height or length, depending on orientation. A rectangular tank needs length, width, and height.
4. To estimate a partial fill, enter the liquid height measured vertically from the tank’s lowest inside point to the liquid surface. Leave the field blank if you only need total volume.
5. Select Calculate and review the results. If you change tank shapes, check that each dimension required for the newly selected shape has been entered.
The tested interface displayed validation messages when required information was missing. For example, it requested a valid positive diameter, horizontal-cylinder length, or rectangular-tank width. It also rejected a filled height above the allowed tank height or cylinder diameter. A Reset control was visible, but its behavior was not tested.
Formulas for total and filled volume
Use compatible units for every dimension in a formula. For example, dimensions entered in inches produce a volume in cubic inches before conversion to a selected result unit. The calculator handles conversion among the result-unit choices shown in the interface.
For a vertical cylinder, the radius is half the internal diameter. Let D be the diameter, r the radius, H the full inside height, and h the liquid height:
r = D ÷ 2
Total volume = π × r² × H
Filled volume = π × r² × h
The circular base has the same area at every height. For a uniform vertical cylinder, half the tank height therefore corresponds to half the geometric volume.
For a rectangular tank, let L be internal length, W be internal width, H be full inside height, and h be liquid height:
Total volume = L × W × H
Filled volume = L × W × h
A rectangular tank with uniform vertical sides also has a direct relationship between height and volume: half the inside height corresponds to half the geometric volume.
For a horizontal cylinder, let r be the radius, L the tank length, and h the liquid depth measured upward from the inside bottom:
Total volume = π × r² × L
Filled volume = A × L
A = r² × arccos((r − h) ÷ r) − (r − h) × √(2rh − h²)
Here, A is the area of the circular segment below the liquid surface. This formula accounts for the curved boundary of the liquid rather than treating the filled cross-section as a rectangle. The fill height ranges from zero to the cylinder diameter.
Why a horizontal cylinder does not fill linearly
The cross-section of a horizontal cylinder is narrow near the bottom and top and widest around the centerline. A small rise in liquid height near the bottom therefore covers less volume than the same rise near the middle. The pattern reverses as the tank approaches full.
Multiplying total capacity by the fraction of the diameter covered by liquid usually gives the wrong partial volume. At exactly half the diameter, the liquid reaches the centerline and occupies half the volume of an ideal, level cylinder. At other depths, the circular-segment geometry matters.
Measure fill height vertically from the lowest inside point to the liquid surface. For a horizontal cylinder, the height cannot exceed the internal diameter; for vertical and rectangular tanks, it cannot exceed the full internal height. A tilted tank, an uneven liquid surface, or an incorrect reference point can make a depth-based estimate misleading.
Worked examples from the calculator
These examples report outputs observed for the stated inputs. Displayed results may be rounded, so they can differ slightly from calculations made with more decimal places.
For a vertical cylinder with a 24-inch diameter and 48-inch height, selecting liters and leaving fill height blank produced a displayed total of 355.8 L. With a 24-inch fill height and US gallons selected, the display showed 94.00 gallons total, 47.001 gallons filled, and a 50% fill level. The height is half the tank height, which corresponds to half the geometric volume for a uniform vertical cylinder.
For a horizontal cylinder with a 24-inch diameter and 60-inch length, a 12-inch fill height produced a displayed total of “444. L,” filled volume of “222. L,” and fill level of 50%. With US gallons selected, a 24-inch fill height displayed 117.503 gallons total and filled, or 100%. At a 6-inch fill height, the display showed 22.972 gallons filled and a 19.550% fill level. Although 6 inches is one quarter of the diameter, the filled volume is not one quarter of capacity.
For a rectangular tank measuring 60 inches long, 36 inches wide, and 48 inches high, a 12-inch fill height produced a displayed total of 1699.01 L, filled volume of 424.752 L, and fill level of 25%. At a 24-inch fill height, the display showed 1699.01 L total, 849.505 L filled, and a 50% fill level. With US gallons selected for the half-full case, the display showed 448.831 gallons total and 224.415 gallons filled.
| Shape and dimensions | Fill height | Observed result |
|---|---|---|
| Vertical cylinder: diameter 24 in, height 48 in | Blank | Total volume: 355.8 L |
| Horizontal cylinder: diameter 24 in, length 60 in | 12 in | Total: “444. L”; filled: “222. L”; fill level: 50% |
| Horizontal cylinder: diameter 24 in, length 60 in | 6 in | Total: 117.503 US gal; filled: 22.972 US gal; fill level: 19.550% |
| Rectangular tank: 60 × 36 × 48 in | 24 in | Total: 1699.01 L; filled: 849.505 L; fill level: 50% |
Choosing dimensions and interpreting units
Measure the inside of the tank if possible. For a cylinder, record its internal diameter and internal height or length. For a rectangular tank, record its internal length, width, and height. External dimensions include the walls and can overstate the space available for liquid.
If only outside measurements are available, subtract the wall thickness from both sides of each dimension. Treat the result as approximate: liners, coatings, ribs, supports, fittings, or an irregular interior may also reduce capacity. Manufacturer capacity information is preferable when available.
Check which gallon standard is required before comparing results with a tank label or specification. The observed result-unit option was US gallons, not UK imperial gallons; the two are different quantities. Common reference conversions include 1 US gallon = 3.78541 liters and 1 cubic foot = 28.3168 liters. These conversions help with unit comparisons but do not account for tank shape or usable capacity.
Limits of a geometric estimate
The calculator estimates volume for idealized shapes. Actual capacity may differ if a tank has domed or rounded ends, a conical bottom, rounded corners, baffles, internal equipment, sediment, dents, or a sloped installation. Those features are not represented by the three supported shapes.
Geometric total volume is not necessarily the safe working or rated capacity. A tank may require freeboard, have a maximum fill line, or include space that is not practically accessible. Safe fill limits depend on the tank design and its intended use.
For water or aquarium planning, account for equipment and objects that displace water. For fuel or chemical storage, regulated uses, pressure vessels, or structural loading, do not rely on a simple dimensional estimate as the sole basis for a decision. Check manufacturer documentation, approved gauges or charts, engineering drawings, and applicable safety requirements.
Frequently asked questions
How do I calculate how many gallons a tank holds?
Calculate the internal volume using the formula for the tank’s shape, then convert the result to the required gallon standard. The calculator offers a US-gallon result option. Check whether a label or specification uses US or imperial gallons before comparing values.
Should I enter internal or external tank dimensions?
Use internal dimensions whenever possible because they describe the space available for liquid. External dimensions include wall thickness and can overstate capacity. If you estimate inside dimensions from outside measurements, account for the wall thickness on both sides and treat the result as approximate.
Is a horizontal cylindrical tank half full at half its diameter?
Yes. For an ideal, level cylinder, a liquid depth equal to half the diameter reaches the centerline and corresponds to half the volume. At other depths, volume does not rise in direct proportion to depth.
Can I leave filled height blank?
Yes. The calculator can return total volume without a filled-height entry. Enter a fill height when you want an estimate of filled volume and fill level.
What happens if my filled height is larger than the tank?
In the observed tests, the calculator rejected a rectangular-tank fill height above the full height and a horizontal-cylinder fill height above the diameter. Measure from the tank’s lowest inside point and confirm that the entry uses the selected dimension unit.
Does the calculation include domed ends or a conical bottom?
No. The observed shape options are vertical cylinder, horizontal cylinder, and rectangular tank. These do not model domed ends, sloped bottoms, or other added sections. Use manufacturer data or a method designed for the tank’s actual shape.
Why might the calculated volume differ from the tank label?
A label may give rated or working capacity rather than ideal geometric volume. Wall thickness, rounded ends, fittings, freeboard, internal obstructions, measurement differences, and display rounding can also contribute.
Can I use this estimate for fuel, chemical, or structural decisions?
Treat it as a geometric estimate, not a substitute for an approved tank chart, manufacturer specification, gauge, or engineering review. Follow applicable requirements for the material and use, especially for regulated storage or safety-critical decisions.
