Xerobit

Volume Calculator for Tank: Cylindrical, Rectangular and Oval

Enter the shape and dimensions of your tank to calculate its total volume in US gallons, UK gallons, or liters. This volume calculator for tank supports cylindrical, rectangular, and horizontal oval shapes, and runs entirely in your browser without uploading any data.

Result

  • Volume (US gal)
    470
  • Volume (UK gal)
    391.4
  • Volume (liters)
    1,779.2

How to use the tank volume calculator

  1. Select the tank shape from the dropdown menu: cylindrical, rectangular, or oval.
  2. Enter the required dimensions using the appropriate fields for your chosen shape.
  3. Choose your input unit: inches, feet, centimeters, or meters.
  4. Read the calculated capacity in US gallons, UK gallons, and liters below the form.

How tank volume is calculated

The math behind this volume calculator for tank depends on the geometry you select. Each shape uses a standard formula to find the internal space.

For a cylindrical tank, the formula is V = pi x (d/2)^2 x h, where d is the diameter and h is the height. If your tank has a diameter of 48 inches and a height of 60 inches, the radius is 24 inches. The volume is 3.14159 x 24^2 x 60 = 108,573.4 cubic inches.

A rectangular tank is simply V = l x w x h. Multiply the length, width, and depth together to get the cubic measurement.

An oval tank (a horizontal cylinder with circular cross-section) uses the area of a circle multiplied by the length: V = pi x (w/2)^2 x l, where w is the width and l is the length of the straight section.

Converting cubic units to gallons and liters

Once the raw volume is computed in cubic inches, feet, centimeters, or meters, it must be converted into practical liquid units. This volume calculator for tank applies exact conversion factors so you do not have to look them up.

  • 1 US gallon = exactly 231 cubic inches = 3.785411784 liters
  • 1 UK (imperial) gallon = exactly 4.54609 liters
  • 1 cubic foot = 1,728 cubic inches
  • 1 cubic meter = 1,000,000 cubic centimeters = 1,000 liters

To convert cubic inches to US gallons, divide by 231. To convert cubic centimeters to liters, divide by 1,000. Using exact constants prevents rounding errors that compound when ordering large quantities of liquid or chemicals.

Common tank sizes reference

The table below shows approximate capacities for standard cylindrical tanks measured in inches. These are useful benchmarks when sizing a new installation.

Diameter (in)Height (in)US GallonsLiters
243670.5266.9
3648211.6801.0
4860470.21,779.9
6072880.13,331.5

Keep in mind that actual usable capacity is slightly less than the geometric volume because tanks are rarely filled to the absolute brim. Leave a margin for thermal expansion if storing liquids outdoors.

Practical applications

Knowing the exact capacity of a container is essential across many trades. Agricultural operations use a tank capacity calculator to mix fertilizers at precise concentrations. Aquarists often start here before refining their numbers with a dedicated fish tank volume calculator that accounts for glass thickness and substrate displacement.

Plumbers and HVAC technicians might calculate the volume of a storage cylinder, while those working with long runs of tubing will benefit more from a pipe volume calculator. For industrial chemical storage, verifying the volume ensures compliance with safety regulations regarding maximum fill limits.

Common mistakes to avoid

The most frequent error when calculating tank volume is mixing units. Entering a diameter in inches and a height in feet will produce a wildly incorrect result. Always verify that every dimension shares the same unit before computing.

Another mistake is confusing US gallons with UK imperial gallons. A US gallon is about 3.785 liters, while an imperial gallon is 4.546 liters. That is a 20 percent difference, which matters greatly when purchasing expensive fluids or dosing treatments. This tool displays both to prevent confusion.

Finally, remember that these formulas assume perfect geometric shapes. Real-world tanks may have domed tops, conical bottoms, or internal baffles that reduce the actual liquid capacity. Use the results as a reliable baseline, but consult manufacturer specifications for critical applications.

Worked examples

Each result below was produced by the same code the tool runs, so you can check your own numbers against them.

ExampleInputResult
50-gallon drumTank shape: cylindrical; Diameter / Length: 22.5; Height / Width: 33.5; Input unit: inVolume (US gal): 57.662; Volume (UK gal): 48.013; Volume (liters): 218.3
Small rectangular cisternTank shape: rectangular; Diameter / Length: 4; Height / Width: 3; Depth: 2; Input unit: ftVolume (US gal): 179.5; Volume (UK gal): 149.5; Volume (liters): 679.6
Horizontal oval fuel tankTank shape: oval; Diameter / Length: 120; Height / Width: 48; Input unit: cmVolume (US gal): 57.364; Volume (UK gal): 47.766; Volume (liters): 217.1
Metric cylindrical tankTank shape: cylindrical; Diameter / Length: 2; Height / Width: 3; Input unit: mVolume (US gal): 2,489.8; Volume (UK gal): 2,073.2; Volume (liters): 9,424.8

FAQ

How do I calculate the volume of a cylindrical tank?

Measure the diameter and height in the same unit. Divide the diameter by two to get the radius, square the radius, multiply by pi (3.14159), and then multiply by the height. Convert the resulting cubic measurement to gallons or liters.

What is the difference between US and UK gallons?

A US gallon is exactly 3.785411784 liters, while a UK imperial gallon is exactly 4.54609 liters. The UK gallon is roughly 20 percent larger than the US gallon.

Can I use this volume calculator for tank shapes other than cylinders?

Yes. Select rectangular or oval from the shape dropdown. Rectangular requires length, width, and depth. Oval requires the length of the tank and the width of the circular cross-section.

Why does my real tank hold less water than the calculated volume?

Geometric formulas calculate the total internal space. In practice, tanks are not filled to the very top to allow for expansion, and features like internal baffles, heaters, or curved bottoms displace some liquid.

Is my data sent to a server when I use this tool?

No. All calculations happen locally in your browser. Nothing is uploaded or stored anywhere.

How do I convert cubic inches to liters?

First convert cubic inches to US gallons by dividing by 231, then multiply by 3.785411784. Alternatively, one cubic inch equals exactly 0.016387064 liters.