Pipe / Tank Volume and Dimensions Calculator

Educational multi-shape calculator for tank, pipe, and pool capacity using metric and imperial units, with partial-fill estimation and missing-dimension solving.

Last Updated: March 2026

Calculator Mode

Use this to solve for dimensions when target volume is known.

m

Enter inside diameter when possible.

m
m

Use internal height for best capacity estimates.

l

Use in missing-dimension scenarios where volume is known and a dimension is unknown.

Fluid mass is a reference estimate based on assumed density.

Custom Density

Select "Custom density" to manually enter fluid density.

Formula Summary

Cylinder: V = pi x r^2 x h. Partial fill (vertical): V_liquid = pi x r^2 x fill depth.

Enter dimensions and select a mode to calculate tank, pipe, or pool volume. This tool supports full and partial fill estimation plus missing-dimension solving.

Worked Example Cards

Vertical rainwater tank

Use diameter + height to get total liters and gallons, then compare conversion outputs.

Horizontal partial-fill check

Enter tank diameter, length, and liquid depth to see non-linear fill behavior.

Pool average-depth estimate

Use shallow/deep depth values to estimate average depth and total water capacity.

Missing dimension solver

Set target volume and known dimensions to solve for required length, height, or diameter.

Engineering and Capacity Disclaimer

This calculator provides educational geometric volume estimates only. It is not a pressure-vessel design tool, structural approval, legal compliance certificate, or manufacturer capacity replacement. Real usable capacity can vary with wall thickness, rounded corners, dished ends, internal obstructions, tilt, and production tolerances. Confirm final values with manufacturer data or qualified professionals when precision matters.

How This Calculator Works

The tool starts by normalizing your chosen unit system and converting dimensions into a consistent internal geometry base. This keeps calculations stable while still showing results in your preferred metric or imperial output units.

Next, it applies the formula that matches your selected shape. Vertical and horizontal cylinders share the same full-capacity formula, while rectangular and elliptical tanks use their own area-times-length geometry relationships. Pool mode uses surface area and average depth for practical planning estimates.

If partial-fill mode is selected, the calculator adjusts liquid volume based on fill depth. Vertical and rectangular shapes scale linearly with depth, but horizontal cylinders and partially filled round pipes use circular-segment geometry because liquid cross-sectional area changes non-linearly.

Missing-dimension mode lets you solve for unknown values when enough inputs are available, such as solving required tank height from target volume. Output includes total, liquid, and empty volume, fill percentage, conversion table values, and assumptions/warnings to keep interpretation transparent.

What You Need to Know

How tank and pipe volume is calculated

Most storage volume calculations follow a simple structure: cross-sectional area multiplied by a length or depth. The challenge is selecting the right area formula for the shape. Cylinders, boxes, and ellipses each have different cross-sectional geometry, so they need different formulas.

Internal dimensions matter most for capacity. Outside dimensions can overstate volume when wall thickness is meaningful, especially in smaller tanks and thicker-walled vessels.

Full volume vs partial fill

Full volume is total geometric capacity. Partial-fill volume is current liquid content at a specific depth. The difference matters in day-to-day operations such as remaining storage checks, delivery planning, and treatment dosing.

Vertical cylinders and rectangular tanks are linear with depth: if depth is half, liquid volume is half. Horizontal cylindrical tanks are different. Their fill curve is non-linear, so equal depth changes do not produce equal volume changes.

Metric vs imperial units

Unit mix-ups are a common source of planning error. This page supports both systems and explicitly separates US gallons from UK gallons to avoid hidden assumptions.

ReferenceMetric viewUS customaryUK imperial
1 m31000 L264.172 US gal219.969 UK gal
1 US gal3.78541 L0.13368 ft30.83267 UK gal
1 UK gal4.54609 L0.16054 ft31.20095 US gal
1 ft328.3168 L7.48052 US gal6.22884 UK gal
1 in316.3871 mL0.004329 US gal0.003604 UK gal

Use the conversion table in the results panel to compare all major unit outputs from the same geometry.

Tank and pool shape guide

Different containers need different formulas, and shape choice affects how partial fill behaves. Use the table below as a quick shape-selection reference.

ShapeCommon usePractical note
Vertical cylinderUpright tanks and silosVolume changes linearly with fill height.
Horizontal cylinderHorizontal storage tanks and pipe sectionsPartial-fill volume is non-linear with depth.
Rectangular tankPools, cisterns, and box containersArea times depth gives straightforward full and partial volume.
Elliptical tankOval tanks and flattened profilesFull volume is reliable with major/minor axis and length.
Circular pipeStatic line volume estimatesShows contained volume, not dynamic flow rate.
Pool estimatorHome and facility poolsUses shape area and average depth for sloped floors.

Pool water estimation guide

Pool mode estimates volume from shape area and average depth. For sloped pools, average depth is often approximated as (shallow + deep) / 2 when detailed depth mapping is not available.

This approach is useful for first-pass planning. Irregular pools may require segmented measurements for higher confidence.

Rainwater tank examples and planning

Rainwater planning often requires frequent conversion between liters and gallons. The calculator helps compare household storage options, estimate remaining water in partially filled tanks, and translate volume into optional reference mass for logistics checks.

ExampleInput scenarioWhat you learn
Vertical rainwater tankDiameter 2 m, height 3 m.Estimate full capacity in liters, m3, US gallons, and UK gallons using one input set.
Horizontal tank partial fillDiameter 1.5 m, length 4 m, liquid depth 0.7 m.Shows non-linear liquid volume behavior for horizontal cylindrical storage.
Rectangular pool estimate30 ft x 15 ft with shallow 3.5 ft and deep 6 ft.Uses average depth workflow to estimate water volume for pool planning tasks.
Pipe static contentInternal diameter 4 in, length 50 ft.Computes contained liquid volume only, not dynamic flow rate.
Missing-dimension solveVertical cylinder with diameter 1.8 m and target 5000 L.Solves required height and converts output into your selected length units.

Pipe volume vs flow rate

Pipe mode estimates static contained liquid volume based on internal diameter and length. This is useful for inventory and line-content calculations.

It does not calculate dynamic flow rate by itself. Flow rate analysis needs additional variables such as velocity, pressure, slope, pump behavior, and system resistance.

Common mistakes

MistakeWhy it mattersBetter approach
Using outside dimensionsCapacity can be overstated when wall thickness is meaningful.Use internal dimensions whenever possible, especially for precise inventory planning.
Mixing US and UK gallonsReported volume appears inconsistent across systems.Keep unit labels explicit and compare both gallon outputs separately.
Assuming horizontal fill is linearLiquid estimate can be significantly off at low and high depths.Use circular-segment partial-fill math for horizontal cylinders and round pipes.
Skipping average depth for sloped poolsPool water estimate can be biased.Use shallow and deep depth inputs or a measured average-depth override.
Using nominal pipe size as IDContained volume estimate may be incorrect.Use actual internal diameter from manufacturer or pipe schedule data.
Treating static volume as flow rateDesign assumptions for pumps or drainage can be wrong.Use a dedicated flow-rate method when velocity, pressure, or slope matters.
Treating calculator output as approvalCompliance and safety risk increases for regulated systems.Confirm with manufacturer data and qualified professional review when precision matters.

Educational unit reference table

These conversion factors are included as educational references for quick checks and troubleshooting.

Volume unitTo cubic metersSystem context
Milliliters (mL)0.0000010000000 m3metric
Liters (L)0.0010000000 m3metric
Cubic meters (m3)1.0000000 m3metric
Cubic centimeters (cm3)0.0000010000000 m3metric
US gallons (gal)0.0037854118 m3imperial
UK gallons (imp gal)0.0045460900 m3imperial
Cubic feet (ft3)0.028316847 m3imperial
Cubic inches (in3)0.000016387064 m3imperial
US barrels (bbl)0.15898729 m3imperial

When this calculator is not enough

Some applications need more than geometric formulas. Use professional review when system shape, compliance, or safety requirements exceed simplified estimation scope.

ScenarioWhy deeper review is needed
Irregular tank geometryComplex geometry may need segmented survey methods or manufacturer charts.
Dished, conical, or multi-end vesselsEnd-cap geometry can materially change effective capacity.
Large internal baffles/obstructionsGross geometric volume can differ from usable fluid volume.
Pressure-vessel or structural design workSafety and compliance calculations require licensed engineering review.
Commercial regulated storagePermit and compliance decisions need jurisdiction-specific documentation.
Chemical compatibility planningMaterial compatibility and hazard controls are outside geometric volume scope.

Further reading and next steps

  • Geometry basics for area and volume relationships.
  • Average-depth methods for sloped pools and open reservoirs.
  • Water treatment and dosing workflows that depend on volume confidence.
  • Rainwater storage planning and demand-cycle estimation.
  • Static contained volume versus dynamic flow-rate analysis.
  • US versus UK gallon conversion hygiene in international contexts.

For more engineering planning tools, visit the Engineering Calculators hub. If you need ratio checks while comparing scenarios, the Percentage Calculator is useful for quick deltas.

Final takeaway

Volume estimation is straightforward when shape and units are handled carefully. This page gives you a practical, multi-shape workflow for total capacity, partial fill, conversion, and missing-dimension solving in one place. Treat results as educational geometric estimates, then confirm with manufacturer data and qualified review when the decision is safety-critical or compliance-sensitive.

Frequently Asked Questions

Tank volume depends on shape. Cylindrical tanks use pi x radius squared x height or length, rectangular tanks use length x width x height, and elliptical tanks use pi x semi-major x semi-minor x length. This calculator applies the matching formula automatically.

First estimate pool volume from surface area and average depth, then convert that volume into US gallons or UK gallons. For sloped pools, average depth is typically (shallow depth + deep depth) / 2 unless you have a better measured average.

Use the vertical cylinder formula: V = pi x r^2 x h. If the tank is partially filled, replace total height with liquid fill height to estimate current liquid volume.

Full volume still uses the cylinder formula, but partial-fill volume requires circular-segment geometry. That is why horizontal tank liquid volume does not increase linearly with depth.

Because the liquid cross-section changes shape as depth increases. Near the bottom and near the top, depth changes add less area than around mid-depth, so equal depth steps do not produce equal volume steps.

Use a unit conversion step after volume calculation. This tool converts between liters, cubic meters, US gallons, UK gallons, cubic feet, and other common units so you can compare results quickly.

They are different units. One UK gallon is larger than one US gallon, so the same tank gives a smaller number in UK gallons than in US gallons. This calculator keeps both units separate to avoid mix-ups.

For a full circular pipe section, use V = pi x r^2 x L based on internal diameter and internal length. For a partially filled pipe, the calculator uses circular-segment area multiplied by length.

Yes. In missing-dimension mode, you can enter target volume plus known dimensions and solve for values like height, diameter, length, width, or fill depth where the geometry allows a stable solution.

Use inside dimensions whenever possible. Capacity depends on internal space, and outside dimensions can overstate usable liquid volume when wall thickness is significant.

Yes, as an educational estimate for planning. It is useful for comparing tank size options, estimating stored water, and converting between liters and gallons for household usage planning.

Confirm with manufacturer data when precision matters, especially for regulated storage, tanks with dished ends, internal baffles, unusual geometry, or procurement and compliance decisions.

Related Calculators

Sources & References

  1. 1.NIST Guide to SI and unit conversion references(Accessed March 2026)
  2. 2.Engineering ToolBox volume and tank geometry references(Accessed March 2026)
  3. 3.USGS water science school references(Accessed March 2026)
  4. 4.NOAA water and measurement educational resources(Accessed March 2026)
  5. 5.APHA water and wastewater operator references (general technical library)(Accessed March 2026)
  6. 6.ASHRAE fundamentals resources portal (measurement context)(Accessed March 2026)