engineering · plumbing-piping · tanks-vessels

Tank Volume Calculator

Computes full and partial volume for horizontal and vertical tanks with various heads, and a dip chart. Use it to gauge tank contents.

Last updated
Formula Focus

Calculator overview

Inputs and outputs

This summary comes from the calculator's published input and output contract.

Inputs

Straight shell length
About this input

The straight side length of a horizontal tank or the shell height of a vertical tank, in feet, not counting the curved heads.

Unit ft Default 20 Range At least 0
Orientation
About this input

Whether the tank sits horizontally on its side or stands vertically on its end. It sets which geometry and which head shapes apply.

Default Horizontal Allowed Vertical, Horizontal
Head Type Conditional
About this input

The end-cap shape of a horizontal tank, such as flat, hemispherical or elliptical. It sets the extra volume the two heads add beyond the cylinder.

Default Hemispherical Allowed Flat, Hemispherical
Diameter
About this input

The inside diameter of the cylindrical shell, in feet.

Unit ft Default 8 Range At least 0
Fill Height
About this input

The depth of liquid measured from the lowest inside point of the tank, in feet, used to find the partially filled volume.

Unit ft Default 5 Range At least 0

Outputs

Total Volume Cubic Feet
About this output

The full capacity of the tank including its heads, in cubic feet.

Unit ft3
Total Volume Gallons
About this output

The full capacity of the tank, in US gallons, converted from the cubic-foot volume.

Unit gal
Ullage
About this output

The empty space remaining above the liquid, in cubic feet: total volume minus filled volume.

Unit ft3
Model Status
About this output

The overall check on your entries, shown above the results. It reads OK when the inputs are usable, NOT VALID with a reason when an entry makes the model meaningless, or CHECK with a reason when a result is valid but worth a second look. Read it before you trust the numbers below.

No unit declared
Fill Percent
About this output

The filled volume as a percent of the total volume, showing how full the tank is.

Unit percent
Filled Volume Cubic Feet
About this output

The volume of liquid at the entered fill height, in cubic feet, from the partial-fill geometry for the orientation and head type.

Unit ft3
Filled Volume Gallons
About this output

The volume of liquid at the entered fill height, in US gallons.

Unit gal

What it is

The Tank Volume Calculator works out how much a cylindrical tank holds in total, and how much is in it at a given liquid depth. You give it the diameter, the straight-side length or shell height, whether the tank lies horizontally or stands vertically, the end-cap shape, and the measured depth, and it returns the full capacity, the filled volume, the ullage remaining, and the fill percentage.

Volumes come back in both cubic feet and US gallons; dimensions are in feet.

Use it to gauge tank contents from a dip measurement, or to check a tank's rated capacity. The horizontal case is the one worth having a calculator for, because the relationship between depth and volume is not linear.

Methodology

Purpose and model boundary

This model calculates total capacity, partial filled volume, ullage, and fill percent for a vertical cylindrical tank or a horizontal cylindrical tank with flat or paired hemispherical heads. It also produces a dip chart over fill height. It supports gauging and preliminary capacity checks from ideal dimensions. It does not use a certified strapping table, model deformed or tilted vessels, account for nozzles/internals, or determine safe working capacity.

Inputs and units

Orientation is vertical or horizontal. Diameter and fill height are in ft. Length_Or_Height is the shell height for a vertical tank and straight shell length for a horizontal tank; the workbook changes that label from the orientation. Head type is visible only for horizontal orientation and is flat or hemispherical. Volumes are calculated in ft³ and converted using 7.4805195 gal/ft³.

Governing relationships

Let D be diameter, R = D/2, L the straight shell length or vertical height, and h_c = max(0, min(h, tank height)) the capped fill height.

For a vertical cylinder:

V_filled = pi/4 × D² × h_c

V_total = pi/4 × D² × L

For a horizontal cylinder, circular-segment area is:

A_segment = R² × acos((R - h_c)/R) - (R - h_c) × sqrt(2Rh_c - h_c²)

The flat-head filled volume is A_segment × L. With paired hemispherical heads, the workbook adds the spherical-cap volume:

V_cap = pi × h_c² × (3R - h_c) / 3

At full height, the two hemispherical heads form one sphere, so horizontal total volume is piR²L + 4piR³/3; flat heads use piR²L. Ullage is V_total - V_filled, and fill percent is 100 × V_filled / V_total.

Calculation sequence

  1. Set the maximum fill dimension to vertical height or horizontal diameter according to orientation.
  2. Cap fill height to the physical range for geometry while retaining the original input for status.
  3. Calculate vertical-cylinder or horizontal circular-segment volume.
  4. Add a spherical cap for the paired hemispherical heads when horizontal; ignore head type when vertical.
  5. Calculate total capacity, ullage, percent full, and gallon conversions.
  6. Repeat the same geometry at 16 evenly spaced fill heights for the dip chart.
  7. Evaluate Model_Status using the uncapped inputs.

Outputs and interpretation

Total_Volume_Gallons and Filled_Volume_Gallons are the primary results. Cubic-foot equivalents, ullage, and fill percent provide supporting checks. The dip chart is linear for a vertical cylinder but nonlinear for a horizontal tank because equal depth changes do not contain equal circular-segment areas. A fill above the tank is capped to full volume and explicitly warned.

Validation and status logic

Condition Returned status
Diameter or length/height is zero or less NOT VALID: diameter and length must be positive
Fill height is negative NOT VALID: fill height cannot be negative
Fill height exceeds the applicable tank height by more than 0.0000001 ft CHECK: fill height exceeds the tank; volume is capped at full
None of the preceding conditions applies OK

Invalid tank geometry precedes negative-fill validation. The overfill check uses the original input and a small workbook tolerance; the volume calculation itself uses the capped height.

Assumptions and limitations

  • The shell is a perfect right circular cylinder with uniform inside dimensions and a level horizontal or vertical axis.
  • Horizontal hemispherical selection represents two true hemispherical ends, together equal to one full sphere. Other head geometries such as 2:1 elliptical, torispherical, conical, or dished heads are not available.
  • Vertical orientation always uses a plain cylinder; the hidden head selector has no effect on vertical results.
  • Fill is level, and the tank has no tilt, deadwood, internal coils, baffles, wall thickness correction, thermal expansion, heel restrictions, nozzle volume, or calibration offset.
  • The dip chart has 16 computed points and is not a certified high-resolution gauge table.
  • Entered dimensions must be internal dimensions if the desired result is internal liquid capacity.

Restrictions and non-computing states

This calculator restricts orientation and head type to the declared options and rejects negative diameter, length/height, and fill height. The workbook requires positive diameter and length/height. A zero fill is valid and returns an empty tank. A fill exactly at the tank height is valid and full; a greater fill returns a CHECK while capping the computed volume at full. The head selector is dynamically hidden for vertical tanks.

Errors and warnings

An undeclared option or negative value outside its allowed range is rejected by the page before a workbook decision. Workbook NOT VALID means the physical tank or fill basis is unusable. Workbook CHECK means a full volume is still returned but the entered dip exceeds the physical tank. A connection failure is a service error and is not evidence of an empty or full vessel.

References

The workbook derives its relations rather than reproducing any table, chart or figure from a standard or agency publication. The volumes are elementary solid geometry: a cylinder, a sphere formed by two hemispherical heads, and the circular-segment area for a partially filled horizontal cylinder.

For tank gauging used in trade, a strapping table calibrated for the individual tank is the governing document and this calculation is not a substitute for one. No trademark or organisation name appearing here implies endorsement by its owner.

Additional source notes migrated from Methodology

The workbook uses exact cylinder, circular-segment, and spherical-cap geometry and reproduces no proprietary strapping table. The reviewer packet cites CalculatorSoup's tank-volume reference, Omni Calculator's tank-volume reference, and FIRGELLI's horizontal/vertical tank reference for independent comparison.

Frequently asked questions

Why is my horizontal tank not half full at half the depth?
It is, at exactly half depth. That is the one depth where the intuition works, and it holds because a circle is symmetric about its centreline. Everywhere else the intuition fails: the liquid surface is a chord whose width changes with depth, so the volume per inch of depth is small near the bottom, largest at the centreline, and small again near the top. At an eighth of the diameter the tank holds about a fifteenth of its contents; at three quarters of the diameter, over four fifths.
Why does head type change the total volume so much?
Because two hemispherical heads together form a complete sphere of the tank's diameter, and a sphere is not a small solid. On the shipped 8-foot tank that is 268 cubic feet (over 2,000 gallons) added to a 1,005 cubic foot shell. Because the head contribution depends only on diameter, it matters proportionally more on a short fat tank than a long thin one.
Does head type matter for a vertical tank?
No. The tool treats a vertical tank as a plain cylinder and the head selection has no effect on either the total or the partial volume. Fill percentage is simply depth over height. If you need the heads counted on a vertical vessel, this tool does not do it.
Can I use this to measure what is in my tank for a sale?
No. Custody transfer and legal metrology use strapping tables calibrated for the individual tank, plus corrections this tool does not make: temperature correction for the thermal expansion of the liquid, density, and the conversion from gross observed volume to net standard volume. A geometric calculation on nominal dimensions is a useful operational estimate and not a basis for trade.
My calculated volume reads higher than what the tank actually holds. Why?
Most often internals. Baffles, heating coils, agitators, dip tubes and internal supports all displace liquid, and none of them are subtracted here. Other candidates: you may have entered an outside diameter where the calculation wants the inside, since wall thickness is not deducted; the tank may not be level, which distorts a horizontal dip reading most near empty and full; or the tank may simply have deformed or settled.
Which dimension is "length or height"?
The straight side of the shell, not the overall length. For a horizontal tank it is the cylindrical portion between the heads, with the heads added separately by the calculation. For a vertical tank it is the shell height. Including the heads in the length figure would count them twice.
This page is provided by LogicCommons for informational purposes only. Results are analysis outputs computed from the inputs you supply and are not engineering advice, a design, or a substitute for review by a licensed professional under the codes adopted where the work is built. Verify all inputs and results independently.

LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.