Diesel and petrol storage · Gallon outputs · Practical allowances

Fuel Tank Volume Calculator

Enter the internal dimensions of a rectangular or cylindrical fuel tank and get its capacity in litres, US gallons or UK gallons.

  • ✓ Rectangular and cylindrical cards
  • ✓ US and UK gallons
  • ✓ Expansion-space guidance
Formula with your numbers V = l × w × h
Capacity

— L

Enter the values above — the volume updates instantly.

Formula with your numbers V = π r² h
Capacity

— L

Enter the values above — the volume updates instantly.

Quick answer: calculate the internal geometry, then leave roughly 5–10% headspace for fuel expansion. A 1 m × 0.6 m × 0.5 m tank holds 0.3 m³ = 300 litres ≈ 79 US gallons.

How the calculation works

Rectangular tanks use l × w × h; cylindrical tanks use πr²h. Fuel is usually sold by volume, but density changes with temperature — a tank filled to the brim on a cold morning can overflow as the day warms.

Worked example

A cylindrical diesel tank 0.8 m across and 2 m long: r = 0.4, V = π × 0.16 × 2 ≈ 1.005 m³ = 1,005 litres. Filling to 95% leaves about 50 litres of expansion headroom.

Where this is useful

  • Generator and heater fuel planning
  • Marine and RV tank sizing
  • Farm diesel storage
  • Estimating range from capacity

Three worked examples you can reproduce

Numbers make a formula easier to trust than words alone. The three cases below use deliberately different scales — a small value, a fractional value and a large round value — so you can see how the answer scales and confirm that the calculator behaves the same way your hand calculation does. Each row lists the inputs as typed, the substituted formula, and the capacity the tool reports.

CaseInputsSubstitutionCapacity
Set 1l=2cm, w=3cm, h=4cm, r=5cmV = 2 × 3 × 424 cm³
Set 2l=1.5cm, w=2.5cm, h=3.2cm, r=4.1cmV = 1.5 × 2.5 × 3.212 cm³
Set 3l=6cm, w=8cm, h=10cm, r=12cmV = 6 × 8 × 10480 cm³

Compare case 1 with case 3: when every dimension is multiplied by the same factor, a length-based answer grows by that factor, an area-based answer by its square, and a volume-based answer by its cube. This scaling rule is the fastest way to spot a misplaced decimal point. If doubling every input quadruples a volume result, something has been entered or read as an area; if it leaves the answer unchanged, a field is being ignored.

Reproduce at least one of these examples by hand before using the tool on real measurements. Enter the exact same numbers, confirm that the live formula line shows the substitution you expect, and only then replace them with your own data. A calculator is only as reliable as the understanding of which number belongs in which box.

Try reversing one of the worked rows: fix the capacity and solve for a dimension, then check the calculator returns your original input. This round-trip test is the single best way to build confidence in a new tool, because it exercises the formula in both directions and exposes any misunderstanding of which symbol stands for which measurement before real data is at stake.

A useful discipline is to keep a single "home" unit for all your records and convert only when a result is consumed. Store every measurement in one consistent system so two jobs can be compared directly and summed without conversion arithmetic at the comparison stage. Note the home unit in your notes: a spreadsheet column labelled only with a number is a liability, while one labelled with its unit is an asset that survives handover.

Small errors compound across a project. An under-estimate of a few percent on each of ten repeated items becomes a noticeable shortfall in the order as a whole, which is why professionals add a wastage allowance rather than relying on exact arithmetic. The calculator gives the theoretical figure for one item; planning adds the practical margin for all of them. Keeping those two numbers separate makes it easy to see where the material actually went.

When a result contradicts your expectation, resist the urge to average it with a guess. Re-enter the inputs from scratch, confirm each unit selector, and compare against a bounding shape. Nine times out of ten the discrepancy is a diameter entered as a radius, a slant height used as a vertical height, or two systems of units mixed in one calculation. Finding the cause teaches you more than adjusting the answer to look right.

Precision and accuracy are different. A tool that prints eight decimal places is precise but not necessarily accurate if the inputs were rounded. Report the final figure with no more significant figures than the least certain measurement justifies; a tape read to the nearest centimetre does not support a result quoted to the nearest cubic millimetre. Where stakes are high, state the assumption and the tolerance together.

A useful discipline is to keep a single "home" unit for all your records and convert only when a result is consumed. Store every measurement in one consistent system so two jobs can be compared directly and summed without conversion arithmetic at the comparison stage. Note the home unit in your notes: a spreadsheet column labelled only with a number is a liability, while one labelled with its unit is an asset that survives handover.

Common mistakes & practical tips

Frequently asked questions

What is the difference between US and UK gallons?

A US gallon is 3.785 litres; an Imperial (UK) gallon is 4.546 litres. Always state which one a figure refers to.

Why leave headspace?

Liquid fuel expands with temperature; 5–10% free space prevents spills and pressure buildup.

How do I estimate running time?

Divide usable litres by consumption in litres per hour.

Can I use this for a horizontal cylindrical tank?

Yes for full capacity. For partial levels use the oil tank level calculator.

Do diesel and petrol have the same volume?

The same tank holds the same volume, but their densities differ, so weight and energy content differ.