Why this keeps coming up
You show up to a machine shop floor and someone needs a tank volume calculated by end of shift. The cylinder is either fabricated in-house or it's a standard component from a distributor. Either way, you need the number right because the order depends on it. Getting it wrong costs more than the hour you spent double-checking. The formula is V = × r² × h where r is the radius and h is the height. That part everyone knows. The actual work starts after you write that down on paper. I spent three weeks chasing a discrepancy on a hydraulic accumulator spec back in 2019. The drawing listed a bore diameter of 127 millimeters and a stroke length of 450 millimeters. Someone plugged those numbers into a spreadsheet using 127 as the radius instead of the diameter. The resulting volume was off by a factor of four. Not a typo in the calculator. A full-order mistake. We caught it during a peer review before the fabricator started cutting plate, but it still cost us two days of re-quoting and explaining to the project manager why the bid price changed.
Here's the part nobody emphasizes: make sure your units are consistent before you multiply anything. Mixing inches for the radius and centimeters for the height gives you a number that looks plausible but means nothing. Convert everything to the same unit system first. Then calculate. Then convert the result to whatever volume unit your client actually needs.
What people miss on the first pass
The radius is half the diameter. That sounds obvious until you're reading a drawing that only gives diameter, which is most of them in practice. Engineering drawings specify bore sizes as diameters. If you use the diameter directly in the formula without dividing by two, your volume will be exactly four times too large. There's no rounding error involved. It's a clean factor-of-four mistake that's hard to catch because the math itself is trivial. Another thing that trips people up is wall thickness. The formula gives you the volume of the empty space inside the cylinder, also called the displacement volume. If you're calculating how much material is needed to make the cylinder itself, you need the outer diameter and the inner diameter and you subtract the hollow part. For a thick-walled pressure vessel, that difference matters. A 200-millimeter bore cylinder with ten millimeters of wall thickness on each side has an outer diameter of 220 millimeters. The volume of the steel shell is not the same as the internal volume. They're completely different calculations. When dealing with horizontal cylindrical tanks, the formula changes slightly because the liquid doesn't fill the entire cross-section. You need partial-fill calculations involving circular segments. The simple V = r²h only works when the cylinder is full or vertical. For a partially filled horizontal tank, you're looking at trigonometric work to find the area of the wetted segment and then multiplying by the length. I've seen people use the full-cylinder formula for a half-empty horizontal storage tank and report a volume that was double the actual content.
Get the Full Details

Edge cases that actually show up
Fabricated cylinders rarely have perfect geometry. Welded seams add material. End caps are usually hemispherical or dished, not flat. A standard ASME dished head adds roughly 0.0000675 times the square of the diameter in volume compared to a flat head. For a large pressure vessel with a two-meter diameter, that difference is measurable. If you're doing precision volume calculations for certification purposes, you can't ignore the head geometry. Nominal pipe sizes are another trap. A pipe labeled "6 inch" does not have a 6-inch inner diameter. The outer diameter is fixed by the standard. The inner diameter depends on the schedule, which determines wall thickness. Schedule 40 and Schedule 80 of the same nominal size have different wall thicknesses and therefore different internal volumes. Always look up the actual ID from a pipe table rather than assuming the nominal size tells you the bore. Temperature matters too. Metals expand. A steel cylinder measured at 20 degrees Celsius will be slightly larger at 80 degrees Celsius. The volumetric expansion coefficient for carbon steel is about 36 × 10 per degree Celsius. Over a 60-degree temperature rise, that's roughly a 0.2 percent volume increase. Small for casual use, significant if you're calibrating flow meters or doing custody transfer calculations where fractions of a percent trigger contractual disputes.
Practical calculation workflow
Measure or read the diameter from the drawing. Divide by two to get the radius. Confirm the height or length is in the same unit system. Square the radius. Multiply by . Multiply by the height. Check your units. Convert the final result if necessary. For quick field estimates, I keep a reference card with common pipe schedule inner diameters and standard tank dimensions. It saves about ten minutes per calculation compared to looking up every value online. Ten minutes doesn't sound like much but on a job with eight different cylinders to size, it adds up. When I need high accuracy, I use a dedicated calculator script rather than a generic spreadsheet. The script validates that the input is a diameter and automatically divides by two, flags inconsistent units, and outputs the result with the appropriate significant figures based on the input precision. It's not fancy. It just removes the human step where the mistake happened in that accumulator incident.
When this formula breaks down
The standard formula assumes a perfect geometric cylinder with uniform cross-section. Real objects deviate. Corroded tanks have uneven wall loss. Cast components might have varying thickness. If the cylinder tapers or has irregular features, the basic formula gives you an approximation, not an exact value. In those cases, you measure at multiple points along the length and average the cross-sectional areas, or you use water displacement to find the actual volume directly. For very large industrial tanks, the flatness of the bottom plate and the convexity of the roof can add or subtract measurable volume. One facility I worked with had a storage tank where the roof sag due to thermal expansion shifted the effective volume by over two percent between summer and winter. The nameplate volume didn't account for that. They ended up using ultrasonic level gauges calibrated to the actual geometry rather than relying on the theoretical formula alone.
