Topic hub

Gallons calculator

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.

Most people reach for a gallons calculator because they want a real-world capacity: how many gallons will this tank, drum or pipe hold? The tool above answers that directly. Enter the diameter and height in inches or feet, pick US or Imperial gallons, and you have your figure.

Using the calculator

  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.

Worked example. Take a cylinder with a diameter of 24 in (so a radius of 12 in) and a height of 36 in. The base area is π × 12² = 452.39 in², and multiplying by the height gives a volume of about 70.5 US gallons (16,286 in³ · 266.9 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.

Every gallons page

Each page below targets a specific question and opens with the calculator ready to go:

Good to know

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.
What is the difference between US and Imperial gallons?
An Imperial gallon (about 4.546 litres) is larger than a US gallon (about 3.785 litres). Always confirm which one you need — the tool shows both so you can't mix them up.
How do I convert cubic inches to gallons?
Divide the cubic inches by 231 for US gallons, or by roughly 277.42 for Imperial gallons. For example, 462 in³ ÷ 231 = 2 US gallons.
Does the gallon figure account for wall thickness?
No. It is the geometric capacity from the dimensions you enter. Measure the inside of a tank, and remember real usable capacity is a little less once fittings and headspace are considered.

Explore other calculators