Gallons

Calculator for Volume of a Cylinder in Gallons

Turn tank or container dimensions into gallons in one tap — with a clear US vs Imperial gallon choice so you never mix the two up.

The single most important thing a calculator for volume of a cylinder in gallons has to get right is which gallon you mean. A US gallon and an Imperial gallon are not the same size, so this tool asks you to choose — and shows both, so there is never any doubt about the number you are reading.

For anything bought or sold by volume, the gallon figure is the one that matters, and small measurement errors scale up fast: a couple of missed inches on a large tank can be dozens of gallons. Measuring the inside carefully, and reading both gallon types, keeps you honest.

How the calculation works

  1. Measure across the circular end — the diameter or radius.
  2. If you measured the diameter, halve it to get the radius r.
  3. Square the radius and multiply by π to get the base area.
  4. Multiply the base area by the height h: V = π r² h.
  5. Convert the result into your preferred unit above.

Getting an accurate measurement

Measure the inside diameter of a tank, not the outside — the wall does not hold liquid. Keep every measurement in the same system, and let the tool convert between units for you.

The maths in one line

The volume of a cylinder is:

V = π r² h

A worked example

Worked example. Take a cylinder with a diameter of 30 in (so a radius of 15 in) and a height of 48 in. The base area is π × 15² = 706.86 in², and multiplying by the height gives a volume of about 146.9 US gallons (33,929 in³ · 556.0 litres).

UnitEqual to
1 US gallon231 in³ · 3.785 L
1 Imperial gallon277.42 in³ · 4.546 L
1 cubic foot7.481 US gal · 28.32 L
1 litre0.264 US gal · 0.220 Imp gal
1 US gallon128 US fl oz

These are geometric gallons from the dimensions you enter. A real tank holds slightly less once wall thickness, fittings and headspace are taken into account — and always confirm whether you need US or Imperial gallons.

Conversions use standard factors: 1 US gallon = 231 in³, 1 Imperial gallon = 4.54609 L, 1 litre = 1000 cm³.

After you have your answer

The figure above is usually the start, not the finish. These are the questions that tend to come next, answered here so you do not have to run another search:

How do I read a tank that is only part full?

For an upright tank, enter the current liquid height instead of the full height. For a tank lying on its side, use the horizontal-tank mode, which turns a dip depth into gallons using the correct segment maths.

Is the answer US or Imperial?

Both are shown at once. In the United States use US gallons; most other English-speaking countries use the larger Imperial gallon. Mixing the two is the single most common tank-sizing error.

How many litres is that in metric?

Every gallons result on this page is shown next to its litre value in the breakdown, because 1 US gallon is about 3.785 litres and 1 Imperial gallon is about 4.546 litres. You can hand the same figure to anyone regardless of which system they use.

What if I only measured around the outside?

You do not need the diameter directly. Measure the circumference around the tank, switch the base input to circumference, and the tool divides by 2 pi to find the radius before working out the gallons.

Where people use this

People reach for this in a range of situations:

  • Sizing a water storage or rainwater tank
  • Working out fuel or oil drum capacity
  • Estimating how many gallons a pool or trough holds
  • Checking a well or cistern volume

Common mistakes to avoid

Watch three things with gallons: which gallon you actually mean, inside versus outside dimensions, and whether the tank is truly full to the top when you picture it. Each one on its own can throw a delivery out by a noticeable margin.

Reading and converting your result

Because volume units are where most errors creep in, the tool does the converting for you. Enter your measurements once and every common unit appears together, from millilitres up to cubic metres and across to US and Imperial gallons. Pick whichever the task calls for and lift the rest from the list; nothing needs a second calculation. The result also updates live as you change a measurement, so you can compare two sizes quickly without starting over.

Keep going

Once you have your answer you may also want to work in tank capacity litres & liters cubic feet. These related calculators pick up where this one leaves off:

The bottom line: with the radius or diameter and the height, the volume follows immediately, and the breakdown lets you hand the same number to anyone in the unit they prefer. Measure inside dimensions for anything that holds liquid, leave a little headspace at the top of a real container, and treat the geometric figure as a clean maximum rather than the final word on usable capacity.

Good to know

What is the formula for the volume of a cylinder?
The volume is V = π r² h — the area of the circular base (π r²) multiplied by the height (h). If you have the diameter instead of the radius, halve it first: r = d ÷ 2.
Do I use radius or diameter?
Either — just tell the calculator which you are entering. The radius is from the centre to the edge; the diameter is the full width across. The tool converts diameter to radius automatically.
What units can I use?
Any of millimetres, centimetres, metres, inches, feet or yards for the measurements, and you can read the result in litres, gallons, cubic feet, cubic inches and more.
Is the volume of a cylinder squared or cubed?
The result is in cubic units, because volume fills three dimensions. The radius is squared inside the formula only because it forms the flat circular base; multiplying by the height adds the third dimension.
Does this work for a tank or a pipe?
Yes. A solid tank uses the standard mode; for a pipe or tube use the hollow mode, which subtracts the bore. For a tank on its side, use the horizontal mode.
How many gallons are in a cylinder?
Work out the volume with V = π r² h, then convert. One US gallon is 231 cubic inches; one Imperial gallon is about 277.42 cubic inches. The calculator does both for you.

More cylinder calculators