Tank Volume Calculator Formula
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
The tank volume calculator formula depends on the tank’s shape: for a rectangular tank, volume = length × width × height; for a cylindrical tank, volume = π × radius² × height. This article explains the formulas for common tank shapes, how to use them correctly, and how to convert the result into gallons or liters.
Formula
For a rectangular tank, the volume is simply the product of its three internal dimensions:
Volume = Length × Width × Height
Where:
- Length (l) – the longest horizontal internal dimension, in feet (or meters, cm, etc.)
- Width (w) – the shorter horizontal internal dimension, in the same unit
- Height (h) – the vertical internal dimension, in the same unit
The result is in cubic units (e.g., cubic feet). To convert to US gallons, multiply by 7.48052 (since 1 cubic foot = 7.48052 US gallons). To convert to liters, multiply by 28.3168 (1 cubic foot = 28.3168 liters).
Worked Example
Using the default values from the calculator (length = 4 ft, width = 2 ft, height = 3 ft):
- Calculate cubic feet: 4 × 2 × 3 = 24 ft³
- Convert to US gallons: 24 × 7.48052 = 179.5 gal
- Convert to liters: 24 × 28.3168 = 679.6 L
The calculator shows 179.5 US gallons, 24.00 ft³, and 679.6 L, matching these steps.
Formulas for Other Tank Shapes
Most tanks are not rectangular. Here are the standard formulas for other common shapes:
- Cylindrical tank (horizontal or vertical): Volume = π × r² × h, where r is the radius (half the diameter) and h is the length (for horizontal) or height (for vertical). For a horizontal cylinder with elliptical ends, the formula is more complex and usually requires the length of the cylinder and the semi-axes of the ellipse.
- Spherical tank: Volume = (4/3) × π × r³
- Cone-bottom tank (like a silo): Volume = (1/3) × π × r² × h for the cone part, plus the cylinder part.
- Elliptical tank: Volume = π × a × b × L, where a and b are the semi-major and semi-minor axes of the ellipse, and L is the length.
For partially filled tanks, the formula changes. For a horizontal cylinder, the filled volume is calculated using the segment area of a circle: V = L × (r² × arccos((r – h)/r) – (r – h) × sqrt(2rh – h²)), where h is the liquid depth.
How to Use the Calculator Correctly
To get an accurate result, follow these steps:
- Measure the internal dimensions, not the external ones. Wall thickness reduces the actual capacity.
- Use the same unit for all dimensions. If you mix feet and inches, convert first (12 inches = 1 foot).
- For a rectangular tank, measure the height to the overflow or to the intended fill level, not necessarily the full height if you don’t plan to fill it to the top.
- After calculating the volume in cubic units, convert to gallons or liters using the conversion factors.
Common Mistakes and How to Avoid Them
The most frequent errors when using tank volume formulas are:
- Using external dimensions: Always measure inside the tank. A 1/4-inch wall thickness on a 2-foot tank can change the volume by several percent.
- Mixing units: If you measure length in feet and width in inches, you get a wrong cubic value. Convert everything to one unit first.
- Forgetting to convert cubic inches to gallons: 1 US gallon = 231 cubic inches. If you measure in inches, divide by 231 to get gallons.
- Confusing US and imperial gallons: 1 imperial gallon = 1.20095 US gallons. The calculator uses US gallons.
- Using diameter instead of radius in cylinder formulas: The radius is half the diameter. Using the diameter directly quadruples the volume error.
Limitations of the Formula
The rectangular formula assumes a perfect box with straight sides and sharp corners. Real tanks often have rounded corners, sloped bottoms, or internal baffles that reduce the actual volume. For such tanks, the formula overestimates the capacity. For a more accurate measurement, you can fill the tank with a known volume of liquid and measure the level, or use a tank strapping chart from the manufacturer.
Also, the formula gives the total volume when filled to the brim. In practice, you rarely fill a tank completely – leave some space for expansion, especially for liquids that expand with temperature (like water or fuel).
Why Use a Tank Volume Calculator?
Knowing the exact volume of a tank is useful for:
- Determining how much liquid it can hold (water, fuel, chemicals).
- Calculating the amount of treatment chemicals (e.g., chlorine for a pool) – but always follow safety guidelines.
- Sizing a tank for a specific application (e.g., aquaculture, rainwater harvesting).
- Estimating the weight of the contents (multiply volume by liquid density).
For irregularly shaped tanks, consider using a 3D modeling tool or a professional measurement.
Frequently Asked Questions
How do I calculate the volume of a cylindrical tank in gallons?
Measure the radius (half the diameter) and the height (or length for a horizontal cylinder) in inches. Calculate the volume in cubic inches using π × r² × h, then divide by 231 to get US gallons. For example, a 24-inch diameter, 36-inch tall cylinder: radius = 12, volume = π × 144 × 36 = 16,286 in³, which is 70.5 gallons.
What is the difference between US gallons and imperial gallons?
A US gallon is 231 cubic inches (about 3.785 liters). An imperial gallon is 277.42 cubic inches (about 4.546 liters). The imperial gallon is about 20% larger. Most online calculators use US gallons unless specified.
How do I calculate the volume of a partially filled horizontal cylinder?
Use the segment area formula: V = L × (r² × arccos((r – h)/r) – (r – h) × sqrt(2rh – h²)), where h is the liquid depth, r is the radius, and L is the length. This gives the volume in cubic units; convert to gallons or liters as needed.
Can I use the same formula for a tank with a conical bottom?
No. For a cone-bottom tank, calculate the volume of the cylindrical part (π × r² × h) and add the volume of the cone ((1/3) × π × r² × h_cone). The total is the sum of both parts.
Why does my tank’s actual capacity differ from the calculated volume?
Real tanks have internal fittings (baffles, sensors, heaters) that displace liquid, and the walls are not perfectly flat. Also, the tank may not be filled to the absolute top. Always measure internal dimensions and account for any internal components.