This calculator requires JavaScript. Please enable JavaScript or open the page in a modern browser. The engineering guide below remains available.

Tank Volume Calculator — All Shapes & Geometries

The Aienginear Tank Volume Calculator calculates total and partial liquid volume for cylindrical, horizontal, vertical, spherical, conical, elliptical, obround, rectangular, composite and common vessel geometries. It supports level-to-volume and volume-to-level calculations, tank capacity tables, ullage, liquid weight, multiple unit systems and engineering calculation reports.

It covers all the major common industrial tank and vessel geometries supported by this calculator: eleven geometry families and ten head types, listed in full below. It was built by Aienginear for process, mechanical, storage, terminal and facilities engineers working in oil and gas, refining, petrochemicals, chemicals, water and wastewater, power generation and general industry. Every result shows the geometry it came from, the equation or numerical method actually used, and whether a number is a closed-form solution or the output of numerical integration. Where a selected method cannot be solved, the calculation stops and says why instead of quietly substituting a different one.

What is a tank volume calculator?

A tank volume calculator converts tank dimensions and a liquid level into a volume. It answers two questions that come up constantly in plant operation and design: how much can this tank hold in total, and how much is in it right now at the level the gauge is showing.

The second question is where most simple calculators fall down. In a vertical cylindrical tank the relationship is linear, so half the height is half the volume. In a horizontal vessel, a sphere, a cone-bottom tank or any vessel with dished heads it is not. Using a percentage of height as a percentage of volume can be wrong by tens of per cent.

What this calculator does:

  • Eleven geometry families covering vertical tanks, horizontal vessels, spheres, cones and frustums, elliptical and obround cross-sections, rectangular tanks and user-defined composite vessels
  • Ten head types with an optional straight flange: flat, hemispherical, 2:1 elliptical, user-defined elliptical, ASME flanged-and-dished, 80:10 torispherical, user-defined torispherical, spherical dish, conical and conical frustum (hopper)
  • Partial-fill calculation by closed-form analytical solutions where they exist, and numerical integration with explicit convergence checking where they do not, including partly filled heads on a horizontal vessel
  • Level to volume and volume to level in both directions, for every geometry
  • Capacity tables at any increment on a gross geometric, net effective or operating-temperature basis, with the basis carried through volume, percentage full, ullage and mass, and full validation
  • Ullage, percentage full, liquid mass and liquid weight
  • Deadwood, operating levels and working volume, tilt, user-defined thermal correction and tolerance analysis
  • Engineering report, CSV, JSON and project files, case comparison, sensitivity analysis and a built-in numerical self-test suite

How to calculate tank volume

Tank volume is calculated by integrating the cross-sectional area of the tank over the depth of liquid. For a shape with a constant cross-section the integral collapses to area times height. For any other shape the area itself changes with depth, and that change has to be carried through the calculation.

  1. Establish the internal dimensions. Volume is an internal quantity. If the drawing gives external dimensions, subtract the wall thickness before anything else.
  2. Split the tank into sections. A cone-bottom tank is a cone plus a cylinder. A horizontal bullet is a shell plus two heads. Each section has its own equation.
  3. Find the section containing the liquid surface. Every section below it is full. The section containing the surface is partly full.
  4. Apply the partial-fill equation for that section. This is the step where geometry matters.
  5. Add the section volumes and, if required, subtract deadwood.
  6. Convert to the working unit and, if liquid mass is needed, multiply by the density at the stated reference temperature.

The calculator on this page performs exactly these steps and shows each one in the calculation trace.

Tank volume formulas

Vertical cylinder V = π·(D/2)²·h Horizontal cylinder V = A_seg(R, h)·L Circular segment A_seg(R, h) = R²·acos((R − h)/R) − (R − h)·√(2Rh − h²) Sphere V = (4/3)·π·R³ Spherical cap V = π·h²·(3R − h)/3 Cone V = (π/3)·r²·H Frustum V = (π·H/3)·(r&sub1;² + r&sub1;r&sub2; + r&sub2;²) Rectangular V = L·W·H Horizontal ellipse V = (a/b)·A_seg(b, h)·L Hemispherical head V = (2/3)·π·a³ 2:1 elliptical head V = π·D³/24 Ellipsoidal head V = (2/3)·π·a²·h Spherical dish head V = π·h·(3a² + h²)/6 Conical head V = (π/3)·a²·h

R and a are inside radii, D the inside diameter, L the length, h the liquid depth or head depth as noted, and a and b the horizontal and vertical semi-axes of an ellipse. The torispherical head has no simple closed form and is integrated numerically; the calculator says so wherever that result appears.

Horizontal tank volume

A horizontal cylindrical tank filled to depth h holds A_seg(R, h)·L in the shell, where A_seg is the circular-segment area. The relationship between depth and volume is strongly non-linear.

The numbers make the point. In a horizontal cylinder filled to a quarter of its diameter, the shell is 19.55 per cent full by volume, not 25 per cent. At half the diameter it is exactly 50 per cent full, because the geometry is symmetric about the centreline. At three quarters of the diameter it is 80.45 per cent full. Reading a horizontal tank with a linear dipstick chart overstates inventory at low levels and understates it at high levels.

Heads make it harder still. When the liquid surface is below the top of the vessel, the heads are also only partly full, and each axial slice of the head is a smaller circle than the shell. This calculator integrates the circular-segment area of every slice through the head, which is why the head contribution changes continuously with level instead of jumping from zero to full.

Vertical tank volume

A plain vertical cylindrical tank with a flat bottom is the easy case: V = π·(D/2)²·h, and the level/volume relationship is a straight line. That is why most storage-tank gauge tables are close to linear over the shell.

The complication comes at the ends. A dished or conical bottom changes the relationship near the datum, and a dished roof changes it near the top. In a cone-bottom process tank, the liquid fills the cone first; only when the cone is full does the level start rising into the shell, and the volume-per-millimetre jumps at that transition. This calculator builds the tank as an ordered stack of sections and keeps the cumulative curve continuous across every boundary.

Partial-fill tank volume

The calculator uses analytical equations where available and numerical integration with explicit convergence checking where a closed-form expression is not used. The closed-form cases are the circular segment for horizontal cylinders, the spherical cap for spheres and hemispherical heads, the frustum to the liquid surface for cones, and the ellipsoid integral for elliptical heads. Where no closed form is used, notably torispherical heads and partly filled heads on horizontal vessels, the engine performs composite 8-point Gauss–Legendre quadrature with panel doubling and explicit convergence checking: the integration is repeated with increasing panel counts until the change between successive estimates satisfies the convergence tolerance, which is 1×10⁻¹² relative.

The engine never mixes the two silently. Every result is labelled as a closed-form analytical calculation, a numerical integration, a numerical root solution or a composite of these, and a numerical result is never described as exact. A method that fails to converge stops the calculation and reports its residual instead of returning a value.

A numerical convergence tolerance is not physical accuracy. Convergence to 1×10⁻¹² describes arithmetic and model convergence only; it says nothing about how closely the dimensions you entered match the fabricated tank. The tolerance and uncertainty panel addresses that separate question.

Cylindrical tank volume

Cylindrical tanks dominate industrial storage because a cylinder is the cheapest efficient pressure-retaining and liquid-retaining shape to fabricate from rolled plate. Vertical cylinders are used for atmospheric and low-pressure bulk storage; horizontal cylinders, often called bullets, are used for pressurised storage, receivers, separators and smaller fuel tanks.

Two dimensions decide the capacity: the inside diameter and the length or height between the head tangent lines. Because capacity varies with the square of the diameter, a 5 per cent diameter error is a 10.25 per cent capacity error. The sensitivity tool in the calculator makes this visible for any dimension you choose.

Spherical tank volume

A sphere holds (4/3)·π·R³, and the liquid volume at depth h is the closed-form spherical-cap volume π·h²·(3R − h)/3. Spheres are the most non-linear common geometry: at a quarter of the diameter a sphere is only 15.625 per cent full, and at three quarters it is 84.375 per cent full.

Spherical storage vessels are widely used for LPG, propane, butane, ammonia and other pressurised liquids because a sphere has the lowest surface area per unit volume and an even stress distribution. In service they are almost always gauged against a certified capacity table rather than a geometric calculation.

Cone and frustum volume

A full cone holds (π/3)·r²·H. A truncated cone, or frustum, holds (π·H/3)·(r&sub1;² + r&sub1;r&sub2; + r&sub2;²). The partial volume uses the radius at the liquid surface, which is itself a function of depth, so a cone filled to half its height holds far less than half its volume when the apex is at the bottom.

This calculator treats the upper radius as an independent input rather than assuming it is zero, which matters for hoppers and cone-bottom tanks with a finite outlet nozzle. A hopper with a 200 mm outlet is a frustum, not a cone, and the difference is real at low level.

Elliptical tank volume

A true elliptical tank has an elliptical cross-section: the width and the height of the cross-section differ and the outline is a single smooth curve. Because an ellipse is an affine image of a circle, the filled area at depth h is (a/b) times the circular-segment area of a circle of radius b at the same depth. That is a closed-form analytical result, not an approximation.

An ellipse is not the same shape as an obround, a stadium or a capsule, and this calculator keeps them separate. Confusing them is one of the most common sources of error in road-tanker and skid-tank volume calculations.

Obround, stadium and capsule tanks

An obround or stadium cross-section is a rectangle closed by two semicircles. A capsule is a cylinder closed by two hemispheres, which is a different thing again: the capsule’s curvature is along the axis, the obround’s is across the section. The calculator provides all three separately, and a horizontal capsule is computed as a circular segment along the shell plus a closed-form spherical cap for the two ends combined.

Tank head volume

Head volume is where capacity quietly appears or disappears. On a typical horizontal bullet, two 2:1 elliptical heads add around 9 to 12 per cent of the total capacity. The calculator supports:

  • Flat — adds nothing beyond the shell
  • Hemispherical — depth equals the inside radius, V = (2/3)·π·a³
  • 2:1 elliptical — depth equals D/4, V = π·D³/24, the most common process-vessel head
  • User-defined elliptical — any depth you enter
  • ASME flanged and dished — crown radius equal to the diameter, knuckle radius 6 per cent of the diameter
  • 80:10 torispherical — crown radius 0.8D, knuckle radius 0.1D
  • User-defined torispherical — your own crown and knuckle radii
  • Spherical dish — a dish-only head with no knuckle
  • Conical and conical frustum — including hoppers with an outlet

Every head can carry a straight flange, which is added explicitly as cylindrical length rather than being folded into the dish. Preset geometries are labelled “Preset geometry” and user geometries are labelled “User-defined geometry”, so a head shape is never assumed on your behalf.

Cone-bottom tank volume

A cone-bottom tank is a cone or hopper with a cylindrical shell above it, and often a dished roof on top. The fill sequence matters: liquid occupies the cone first, then the shell, then the roof region. A calculation that simply adds the full cone volume to a partially filled shell is wrong at every level below the cone tangent, and a calculation that treats the whole tank as a cylinder is wrong everywhere.

The worked example below gives the numbers for a 2.4 m diameter tank with a 1.2 m hopper.

Tank capacity versus working volume

Geometric capacity is what the shell encloses. Working volume is what the process can actually use between its low and high operating levels. The two are never the same number.

Four volumes are reported separately and are never merged into one ambiguous "capacity": the reference geometric volume from the dimensions and geometry, the net effective capacity after deadwood, the working volume between the operating levels, and, when a thermal correction is enabled, the operating-temperature volume.

Below the low-low level there is liquid that cannot be pumped out. Above the high-high level there is vapour space that must not be filled. Between them sits the working volume, which is what actually matters for surge, residence time and blending calculations. Enter LL, L, N, H and HH in the advanced panel and the calculator reports the working volume, the unusable volume and the operating ullage alongside the geometric capacity, while keeping them clearly labelled as process limits rather than geometry.

Gross versus net tank volume and deadwood

Gross geometric volume is the volume enclosed by the shell. Net volume accounts for everything inside the tank that occupies space or adds space: nozzle projections, manway barrels, heating and cooling coils, mixers, agitators, structural internals, striker plates, and bottom sumps or dead volumes.

Calibration practice calls these items deadwood, and deadwood can be positive or negative. Positive deadwood increases the effective capacity, like a sump or a bulge. Negative deadwood displaces liquid, like a coil, a mixer or structural internals. This calculator does not assume deadwood is negative, and it does not treat every internal item as generic displacement.

Where an item sits changes the level/volume relationship, so each item carries an explicit elevation model: at the bottom datum, effective above an entered elevation, in the vapour space, or a uniform allocation over the full height. The uniform model is a labelled screening approximation for cases where the elevation is unknown, and the above-elevation model is a simplified full-submergence step rather than a claim of physical exactness. The calculator reports gross geometric volume, net effective capacity, liquid geometric volume and liquid effective volume as four separate figures. None of them is a calibrated capacity.

Tank volume from liquid level, and level from volume

Converting a level to a volume is the forward calculation. Converting a volume back to a level is the inverse, and for any non-linear geometry it has no closed-form solution. The calculator solves it by safeguarded bisection on the monotonic V(h) curve and reports the number of iterations, the residual and the tolerance, so you can see that the answer converged rather than trusting that it did.

Both directions are available for every supported geometry, together with a percentage-full mode that solves for the level giving a chosen proportion of the gross capacity.

Tank capacity tables and dip charts

A capacity table can be generated on a gross geometric or net effective basis. When thermal correction is enabled, an operating-temperature representation may also be selected. The selected basis is carried consistently through volume, percentage full, ullage and mass.

The three bases answer different questions. Gross geometric reference is what the shell encloses at the reference dimensions, with no deadwood and no thermal expansion; this is the classic theoretical capacity table. Net effective reference applies the same deadwood items, with the same elevation models, that the main calculation uses. Net effective operating temperature scales the net table by the user-defined thermal expansion factor and is available only while that correction is enabled. None of the three is a certified calibration table.

Because a percentage divides a volume by a capacity on the same basis, the percentage column is normally identical on the reference and operating bases: both numerator and denominator carry the same thermal factor. Ullage and mass follow the selected basis in the same way, and the column headings name the basis so you never have to infer which model produced a number.

A capacity table, gauge table or dip chart lists liquid volume against level in fixed increments. The calculator generates one at any increment from 1 mm upward, or at a fixed number of rows, and validates it: volume must increase monotonically, the first row must be zero at the datum, the final row must equal the total capacity, and no value may be negative. Each of those checks is reported as PASS or FAIL rather than assumed.

Tables export to CSV with the level, percentage full, liquid volume, ullage volume, ullage height and liquid mass in the units you have selected.

Tank calibration versus theoretical volume

This calculator determines theoretical geometric volume. It does not replace a certified tank calibration or a capacity table prepared under the applicable API MPMS or ISO calibration procedure.

Tank calibration measures the tank that was actually built. Strapping, optical reference line, electro-optical distance ranging and liquid calibration methods capture the real circumference of each shell course, the real bottom shape, out-of-roundness, tilt, deadwood and the effect of shell temperature. A calibrated table therefore differs from a purely geometric calculation, sometimes by well under a per cent on a well-built tank and sometimes by considerably more on an old or deformed one.

Use a geometric calculation for design, screening, sizing, checking, operations support and education. Use a certified calibration table for custody transfer, fiscal measurement, inventory reconciliation and anything with commercial or regulatory consequences.

Oil and gas applications

  • Production and stock tanks — converting gauge readings to barrels for allocation and daily production reporting
  • Separators, KO drums and surge vessels — holdup and residence time between control and trip levels on horizontal vessels with dished heads
  • Terminal and refinery storage — capacity checks, ullage confirmation before a receipt, and screening against a calibrated table
  • LPG bullets and spheres — fill limits and inventory at a measured level, where the non-linearity is severe
  • Slop, drain and closed-drain systems — available volume before overflow
  • Firewater and utility storage — effective volume above the pump minimum level rather than nominal capacity
  • Hydrotest planning — water volume and, with the density entered, the weight the foundation will carry
  • Chemical injection and cone-bottom dosing tanks — usable volume above the hopper outlet

Common tank volume calculation errors

  1. Treating depth as proportional to volume in a horizontal vessel. At a quarter depth the error is about 5.5 percentage points of capacity, and much larger as a proportion of the actual contents.
  2. Adding full head volumes to a partly filled shell. In the worked example below this overstates the contents by about 61 per cent at a 500 mm level.
  3. Using external dimensions. Capacity is an internal quantity; on a small vessel the wall thickness is not negligible.
  4. Mixing US and Imperial gallons. They differ by about 17 per cent. This calculator labels them explicitly and never converts between them implicitly.
  5. Confusing ellipse, obround, stadium and capsule. Four different shapes, four different equations.
  6. Ignoring the cone in a cone-bottom tank, or adding it as a full cone at every level.
  7. Forgetting the straight flange on dished heads when the drawing gives a tangent-to-tangent length.
  8. Ignoring deadwood on tanks with large internal coils, mixers or structural internals, or spreading it uniformly over the height without saying so.
  9. Reporting a geometric volume as a calibrated capacity in a custody-transfer or allocation context.
  10. Quoting false precision. A volume stated to twelve digits from a diameter measured to the nearest 10 mm is not a better answer, just a less honest one.

Worked examples

Example 1 — horizontal oil storage vessel with 2:1 elliptical heads

A horizontal vessel of 2,500 mm inside diameter and 8,000 mm tangent-to-tangent shell length, with 2:1 elliptical heads at both ends, holding light crude oil at 850 kg/m³. Every figure below is produced by the calculator engine in this file, so the guide and the tool cannot drift apart.

  • Shell volume 39.270 m³; two heads 4.091 m³; total capacity 43.361 m³ (9.4 per cent of the capacity is in the heads)
  • At a 1,250 mm level, exactly mid-diameter: liquid volume 21.680 m³, 50.00 per cent full, ullage 21.680 m³, liquid mass 18.43 tonnes, 136.4 bbl
  • At a 500 mm level: liquid volume 6.017 m³, 13.88 per cent full. The shell contributes 5.591 m³ and the two partly filled heads contribute only 0.425 m³, against a full head volume of 4.091 m³
  • A calculator that added both full heads to the partial shell would report 9.682 m³ — 61 per cent too high

Example 2 — vertical cone-bottom process tank

A 2,400 mm diameter tank with a 1,200 mm deep hopper ending in a 200 mm outlet, a 4,000 mm cylindrical shell and a 2:1 elliptical top head, holding water at 1,000 kg/m³.

  • Total internal height 5,800 mm; hopper 1.973 m³, shell 18.096 m³, top head 1.810 m³; total capacity 21.878 m³
  • At 1,200 mm, exactly the top of the hopper: liquid volume 1.973 m³, only 9.02 per cent of capacity from 21 per cent of the height
  • At 2,200 mm, one metre into the shell: liquid volume 6.497 m³, 29.70 per cent full, 6.497 tonnes of water
  • Treating the whole tank as a plain cylinder at 2,200 mm would give 9.953 m³, over 53 per cent too high

How to use the calculator

  1. Pick the geometry. Choose a family from the visual selector: vertical tank, horizontal vessel, sphere, cone, elliptical, obround, rectangular or composite.
  2. Enter the dimensions. Set the length unit once in the toolbar; every dimension uses it, and switching the unit converts the values rather than relabelling them.
  3. Select the heads. Choose a preset or enter your own crown, knuckle or depth, plus any straight flange.
  4. Set the liquid level. Enter a level, a target volume or a percentage full; the last two are solved by inversion.
  5. Add the liquid. Pick a library liquid or enter your own density with its reference temperature to get mass and weight.
  6. Switch to Advanced when you need it for external dimensions and wall thickness, deadwood, operating levels, tilt, thermal correction and tolerances.
  7. Check the results and every warning. Each warning states what, why and what to check.
  8. Generate the capacity table, fill chart and report, then export CSV, JSON or a project file that reproduces the calculation exactly.

Engineering standards and references

This tool is an engineering volume calculator with geometry and tank-calibration methodology references. The following documents are cited as terminology, methodology and design-context references only. No compliance is claimed or implied, and selecting a geometry does not make a result compliant with anything.

Design standards (engineering context only): API Std 650, Welded Tanks for Oil Storage, 14th edition, August 2025, with the API Monogram Program effective date of 1 March 2026; API Std 620, Design and Construction of Large, Welded, Low-pressure Storage Tanks, 12th edition (2013) with addenda; API Std 653, Tank Inspection, Repair, Alteration, and Reconstruction, 5th edition (2014) with addenda through Addendum 4, July 2025; API Spec 12F, API Spec 12B and API RP 12R1 for production-service tanks; API Std 625 for refrigerated liquefied gas storage; and ASME BPVC Section VIII, Divisions 1 and 2, for pressure-vessel geometry including torispherical and ellipsoidal heads.

Tank calibration and measurement references (methodology only, not implemented here): API MPMS Chapter 2 (Tank Calibration), including Chapter 2.2A, Measurement and Calibration of Upright Cylindrical Tanks by the Manual Tank Strapping Method, 2nd edition, November 2019, and Chapter 2.2E for horizontal cylindrical tanks; API MPMS Chapter 3 (Tank Gauging); API MPMS Chapter 12 (Calculation of Petroleum Quantities); the ISO 7507 series for vertical cylindrical tanks, of which Part 1:2003 was reviewed and confirmed in 2022, Part 2 was reissued in 2022 and Part 5 dates from 2000, while Part 7 on 3D laser scanning remains under development and is not a published International Standard; and ISO 12917-1:2017 with Amendment 1:2025 for horizontal cylindrical tanks, which covers flat, knuckle-dish, elliptical and spherical head tanks and tilted tanks.

Standards status was reviewed against publisher information in September 2026. Users must confirm the applicable project edition, amendments, addenda and contractual requirements before engineering reliance. A generic review date does not mean that every document was purchased, read in full or independently verified.

The two groups above are different in kind. The design standards govern how a tank is designed, fabricated and inspected. The calibration and measurement references govern how the capacity of an already-fabricated tank is established and how a gauged level becomes a quantity. Neither group is a calculation standard for this tool, and neither is implemented here. Certified calibration establishes the capacity of the actual fabricated tank by measuring it; this calculator provides theoretical geometric volume from the dimensions you enter, and it does not perform tank calibration.

Four activities are frequently confused and are kept apart here: geometric volume calculation (what this tool does), tank calibration (producing a certified capacity table from measurements of the real tank), tank design (API 650 and API 620 shell, roof and foundation design), pressure-vessel design (ASME VIII thickness and certification) and custody-transfer measurement (a fiscal quantity with a documented uncertainty). Tank mechanical design is outside the scope of this calculator and is deliberately not mixed into the volume engine.

Limitations

  • Theoretical geometric volume only; it is not a certified calibration and not a custody-transfer measurement.
  • Fabrication tolerance, out-of-roundness, shell deformation, bottom irregularity, lining, insulation and corrosion allowance are not modelled.
  • For vertical cylindrical tilt, the supported screening model converts the measured gauge level to a centreline level using the signed tilt and gauge offset. For volume-to-level or percentage-to-level inversion, the solver works on the corrected centreline geometry and converts the solved level back to the gauge reference, so the forward and inverse calculations use the same model. It remains a simplified geometric screening model and not a certified calibration method.
  • The tilt model is a simplified geometric screening model, not a certified calibration procedure. It is implemented for horizontal cylindrical vessels with flat ends and for vertical cylindrical tanks with the liquid surface inside the shell, within 15 degrees; curved heads under tilt and every other case are refused rather than approximated.
  • Deadwood is applied by the elevation model chosen for each item. The above-elevation model is a simplified full-submergence step and the uniform model is a labelled screening approximation; neither produces a calibrated level/volume relationship.
  • Any thermal correction is a user-defined shell-expansion factor, not a standardised petroleum temperature correction. Mass is conserved under a reference-temperature density basis and changes only if you state that the density applies at the operating temperature.
  • Numerical convergence tolerances describe arithmetic and model convergence only; they are not a statement of physical measurement accuracy.
  • Library densities are illustrative reference values and are not valid for fiscal measurement.
  • Floating roofs, internal floating blankets and geometry-modelled internals are not included.
  • Tank mechanical design, shell thickness, roof design, nozzle loads, wind and seismic design are outside the scope.

Frequently asked questions

How do you calculate tank volume?

Split the tank into sections with known geometry, calculate the volume of each section that is completely below the liquid surface, add the partially filled volume of the section containing the surface, and subtract any internal displacement. For a vertical cylinder the whole calculation reduces to V = π·(D/2)²·h; for other shapes the cross-sectional area changes with depth and must be integrated.

How do you calculate the volume of a horizontal tank?

Use the circular-segment area: A = R²·acos((R − h)/R) − (R − h)·√(2Rh − h²), then multiply by the shell length and add the partly filled head volumes. Never scale the total volume by the percentage of depth.

How do you calculate the volume of a partially filled tank?

Apply the partial-fill equation for the geometry at the liquid surface. A horizontal cylinder uses the circular segment, a sphere uses the spherical cap, a cone uses the frustum to the surface, and a torispherical head has to be integrated numerically. This calculator selects and reports the method it actually used.

What is the formula for cylindrical tank volume?

A full cylinder holds V = π·(D/2)²·L. If the cylinder is vertical, the partial volume is π·(D/2)²·h. If it is horizontal, the partial volume is the circular-segment area at depth h multiplied by the length.

How do you calculate tank volume from liquid level?

Enter the level measured from the lowest internal point of the tank and the calculator returns the liquid volume, ullage, percentage full and liquid mass. For a dished or cone bottom, be careful that the level datum on the instrument matches the datum used in the calculation.

How do you convert tank level to volume?

Either with a capacity table at the increment your gauge reads, or by calculating the level directly. Generate the table on the Capacity table panel and export it to CSV for use in a spreadsheet or historian.

How do you calculate the volume of a spherical tank?

Total volume is (4/3)·π·R³. At liquid depth h the contents are the spherical cap π·h²·(3R − h)/3. At a quarter of the diameter a sphere is 15.625 per cent full, so linear scaling is badly wrong.

How do you calculate cone-bottom tank volume?

Add the cone and the cylinder as separate sections. Below the cone tangent the contents follow the frustum equation with the radius at the liquid surface; above it, the cone is full and the shell fills linearly. The calculator keeps the transition continuous.

What is the difference between gross and working volume?

Gross volume is the geometric capacity of the shell. Working volume is the usable volume between the low and high operating levels. The difference is the unusable heel below the low level plus the vapour space above the high level.

What is ullage?

Ullage, also called outage, is the empty space above the liquid: the volume between the liquid surface and the reference point at the top of the tank, or the corresponding height. It is what determines how much more product a tank can receive.

What is dead volume?

Dead volume is liquid that is present but cannot be withdrawn, typically below the outlet nozzle or the pump minimum level. It is different from deadwood, which is the volume occupied or added by internal items such as coils, mixers and sumps.

What is tank calibration?

Tank calibration is the measurement of an actual tank to produce a capacity table relating level to volume. It is carried out by strapping, optical reference line, electro-optical distance ranging, liquid calibration or 3D scanning under API MPMS Chapter 2 or the ISO 7507 and ISO 12917 series.

Is tank volume the same as tank capacity?

Not necessarily. Capacity usually means the total geometric volume, but nominal capacity, gross capacity, net capacity, safe fill capacity and working capacity all mean different things. This calculator reports gross geometric capacity, net capacity after deadwood, and working volume between the operating levels as separate figures.

What standards apply to tank calibration?

API MPMS Chapter 2 in the United States, and internationally the ISO 7507 series for vertical cylindrical tanks and ISO 12917 for horizontal cylindrical tanks. API MPMS Chapters 3 and 12 cover gauging and the calculation of petroleum quantities from those measurements.

Is this calculator API 650 compliant?

No, and no such claim is made. API 650 is a tank design and construction standard, not a volume calculation method. This tool calculates theoretical geometric volume and references API 650, API 620, API 653, API MPMS Chapter 2, ISO 7507, ISO 12917 and ASME BPVC Section VIII for terminology and methodology context only.

Can I calculate horizontal tanks with elliptical heads?

Yes, and the partly filled heads are integrated slice by slice rather than being treated as full or empty. That distinction alone changes the answer by more than 60 per cent at low level in the worked example above.

Can I calculate torispherical heads?

Yes. ASME flanged-and-dished (crown radius equal to the diameter, knuckle 6 per cent of the diameter), 80:10, and fully user-defined crown and knuckle radii are supported. The head depth follows h = L − √[(L − r)² − (a − r)²], and the volume is obtained by numerical integration of the knuckle torus and the spherical crown.

Can I generate a tank capacity table?

Yes, at any increment from 1 mm or 1 inch upward, or at a fixed number of rows. Three volume bases are available. The gross geometric reference basis is the geometric volume enclosed by the entered reference dimensions, with no deadwood and no thermal expansion. The net effective reference basis is that reference volume modified by the selected deadwood model. The net effective operating-temperature basis is the net reference volume multiplied by the user-defined thermal expansion factor, and it appears only while that correction is enabled.

Percentage full, ullage and liquid mass all follow the selected basis: percentage is the row volume divided by the capacity on that same basis, ullage is that capacity minus the row volume, and mass uses the density on the same thermal basis as the volume it multiplies. Every column heading names the basis, and so do the CSV metadata, the project file and the report.

Every table is validated for monotonicity of both volume and percentage, finite values, duplicate levels, datum and top-of-tank boundaries, negative values, values above capacity, non-negative and zero-final ullage, boundary continuity and monotonicity, basis percentage consistency, thermal scaling consistency and inverse safety. A table that fails validation is not exported. If the increment does not divide the tank height exactly, every regular row uses the requested increment and one final full capacity / boundary row is added at the exact top of the tank, flagged in the table, in the CSV and in the report.

Discontinuities are handled explicitly rather than smoothed over. A simplified deadwood elevation model switches on in one step, so the net curve jumps at that level. An upward step leaves a band of volumes that no level produces; a downward step makes the same volume occur at two levels. The calculator classifies the curve as monotonic and continuous, monotonic with upward steps, discontinuous at a boundary, or non-monotonic, and refuses to publish a table or resolve an inverse that the classification makes unsafe.

Can I calculate liquid weight?

Yes. Select a liquid or enter your own density with its reference temperature and the calculator reports liquid mass in kilograms, tonnes, pounds, US tons or long tons, and the weight force in kilonewtons.

Does the calculator support gallons and litres?

Yes: litres, cubic metres, US gallons, Imperial gallons, cubic feet, US oil barrels and cubic inches. US and Imperial gallons are labelled explicitly and are never mixed, because they differ by about 17 per cent.

Does it support partial filling?

Yes, for every supported geometry, in both directions. You can enter a level and get a volume, or enter a volume or a percentage and get the level.

How accurate is the calculator?

The mathematical model is evaluated using double-precision browser arithmetic, with analytical solutions where available and numerical methods controlled by explicit convergence tolerances. A built-in self-test suite checks every geometry and head type against analytical benchmarks and an independent reference implementation, and reports each result with its expected value, actual value, error and tolerance. Numerical convergence describes arithmetic and model convergence; it does not represent physical measurement accuracy. Real-world accuracy is limited by the dimensions you enter and by the difference between a drawing and a fabricated tank, not by the arithmetic.

Can this replace a certified tank calibration?

No. It calculates theoretical geometric volume from the dimensions you enter. A certified capacity table measures the actual tank and includes deformation, tilt, deadwood, bottom irregularity and temperature corrections. Use a calibrated table for custody transfer, fiscal measurement and inventory reconciliation.

Can I export the calculation?

Yes. A printable engineering report, results CSV, capacity-table CSV, JSON and a project file. The project file contains the calculator, engine and database versions, the standards-review date, the calculation timestamp, the full input set, the dimension basis, the density basis, the thermal, deadwood, tilt and uncertainty settings, the unit selections, the numerical methods with their tolerances, the results and the warnings, so the calculation can be reproduced. Loading a project saved with an older version recalculates it with the current engine and tells you it has done so.

Can the tank capacity table account for deadwood?

Yes. Select the net effective basis and the table applies the same deadwood items, with the same elevation models, that the main calculation uses: at the bottom datum, effective above an entered elevation, in the vapour space, or a labelled uniform screening approximation. The gross geometric basis leaves deadwood out entirely and gives the classic theoretical table. Both are theoretical calculations. A certified calibration table, prepared under API MPMS Chapter 2 or the ISO 7507 and ISO 12917 series, remains necessary for custody transfer, fiscal measurement and inventory reconciliation, because it measures the tank that was actually built and allocates deadwood incrementally by elevation. One case is worth knowing about: a negative deadwood item on the above-elevation model makes the net level/volume curve step downward at that elevation. The calculator detects that, explains it, fails the table validation and refuses the export rather than publishing a non-monotonic table.

Does thermal expansion change the tank liquid mass?

Not if the density you entered applies at the reference temperature, which is the default. Thermal expansion changes how the volume is represented; the liquid in the tank does not gain mass because the shell got warmer. The calculator asks for the density basis and multiplies the density by the volume on that same basis, in the main result and in every row of the capacity table. If you state that the density applies at the operating temperature, it uses the operating-temperature volume instead and says so in the mass column heading. The main calculator reports percentage full on the gross reference geometric basis; a capacity table reports it on the selected table basis, and because a thermal factor scales the liquid volume and the capacity alike, the reference and operating-temperature percentages come out numerically identical. Operating-temperature volume here is a user-defined thermal expansion representation; it is not a petroleum custody-transfer temperature correction and implements no API MPMS Chapter 11 or 12 procedure.

What numerical method does the calculator use?

Closed-form analytical equations wherever one exists. Where a closed-form expression is not used, notably torispherical heads and partly filled heads on horizontal vessels, the engine performs composite 8-point Gauss–Legendre quadrature with panel doubling and explicit convergence checking: the integration is repeated with increasing panel counts until the change between successive estimates satisfies the convergence tolerance. Level from volume is solved by safeguarded bisection on the monotonic V(h) curve. Every result reports which of these produced it, together with the tolerance, the panel count, the evaluation count and the convergence status.

Does a thermal correction change the liquid mass?

No, not if the density you entered applies at the reference temperature, which is the default. Thermal expansion changes how the volume is represented; the mass in the tank does not change because the shell got warmer. The calculator asks you for the density basis and multiplies the density by the volume on that same basis. If you state that the density applies at the operating temperature, it uses the operating-temperature volume instead.

Does thermal expansion change percentage full?

The main calculator's percentage full is reported on the gross reference geometric basis. Capacity tables calculate percentage full on their selected basis. When thermal correction is only a uniform scaling factor, reference and operating-temperature percentages are numerically identical because both liquid volume and capacity are scaled by the same factor.

How is deadwood handled?

Each item is entered as a positive magnitude, marked as positive deadwood (adds effective capacity) or negative deadwood (displaces liquid), and given an elevation model: at the bottom datum, effective above an entered elevation, in the vapour space, or a uniform allocation over the full height. The uniform model is a labelled screening approximation for when you do not know the elevation. The calculator then reports gross geometric volume, net effective capacity, liquid geometric volume and liquid effective volume separately, and refuses any combination that would give a negative capacity or a liquid volume above the capacity.

Some of those simplified elevation models introduce discrete steps in the level/volume curve, and the calculator does not hide that. Negative vapour-space deadwood, for instance, creates a downward step at the tank-top boundary: the capacity table fails validation, the CSV export is blocked, and the inverse solver refuses. Where a target volume is ambiguous, because a downward step makes it occur at two levels, or unreachable, because an upward step leaves a gap, the calculator says so and names the levels or the step responsible rather than choosing an arbitrary answer.

Is my data sent anywhere?

No. All calculations, tables, reports and exports run locally in your browser. Nothing is transmitted to a server, and no personal information is collected.

Disclaimer

This calculator is intended for preliminary engineering calculations, screening, education and design support. It calculates theoretical geometric volume based on user-entered dimensions and the selected geometry. It does not replace certified tank calibration, custody-transfer measurement, manufacturer documentation, project specifications, applicable regulations, or review by a qualified engineer. Actual tank capacity may differ because of fabrication tolerances, deformation, tilt, internal fittings, deadwood, corrosion, temperature, liquid properties and calibration corrections.

Aienginear Tank Volume Calculator — All Shapes & Geometries, version 1.0.5 (engine 1.0.5, database 1.0.5), standards review September 2026. Published by Aienginear.com.