>

Home / Partially Filled Cylinder Calculator

Partial fill tool

Partially Filled Cylinder Calculator

For upright containers that are not full: enter the size and how far up the liquid actually reaches.

Quick answer: For an upright cylinder, filled volume = π r² x liquid depth. Enter the diameter, total height, and the fill depth or percent. Half cylinder mode halves the result for D shaped containers.

Partially Filled Cylinder Calculator

Liquid fill preview

Cylinder diagram showing radius r and height h r h

Diagram is a visual guide, not to scale. It fills as your numbers change.

Vertical fill is the easy case

An upright cylinder has straight sides, so volume grows in a straight line with depth: half the height really is half the volume. That is not true for a tank on its side, which needs the horizontal calculator.

Aquarium owners use this page for dosing: a part filled cylinder tank is dosed on the water actually in it, measured to the water line, not the rim.

Half cylinder mode

A half cylinder (flat side against a wall, like a D shaped aquarium or a trough) holds exactly half of the full cylinder with the same diameter and depth, as long as the flat side is the full diameter.

A student on a homework forum checked this exact point before dividing by 2, and yes, it is exactly half.

How to use the partially filled cylinder calculator

  1. Enter the cylinder diameter and its total height.
  2. Choose whether you are giving the fill as a depth or as a percent.
  3. Enter the liquid depth, or the percent full.
  4. Pick the shape: a full round cylinder, or a half cylinder lying with its flat side up.
  5. Press Calculate for the liquid volume and the percent of capacity.

This page is for upright cylinders that are not full: a tank with a sight gauge, a barrel part way through a job, a pot on a stove.

Because an upright cylinder has straight sides, the fill maths is honest: volume grows in direct proportion to depth, which is exactly what makes this page simpler than its horizontal cousin.

The formula, with every symbol explained

V = π r² x fill depth

V
volume of liquid in the cylinder
r
radius: half the diameter
fill depth
how deep the liquid is, measured from the inside bottom
π
pi, about 3.14159

It is the ordinary cylinder formula with the liquid depth in place of the full height. For a half cylinder shape, such as a trough or a length of half round guttering, take half of that answer. Percent works the same way: a cylinder filled to 62.5 percent of its height holds 62.5 percent of its capacity.

Worked example: a tank of radius 15 inches filled 25 inches deep

An upright tank has a radius of 15 inches and a total height of 40 inches. It is filled to a depth of 25 inches. How much is in it?

  1. Base area: 3.14159 x 15² = 706.858 square inches.
  2. Liquid volume: 706.858 x 25 = 17,671.459 cubic inches.
  3. Convert: 17,671.459 / 231 = 76.5 US gallons.
  4. As a check: 25 / 40 = 62.5 percent of the height, and 76.5 is 62.5 percent of the 122.4 gallon full capacity.

Answer: 76.5 US gallons, 62.5 percent full.

Units and conversions

Diameter, height and depth share one unit; the result is shown in cubic units, US and Imperial gallons and liters. Depth and percent are interchangeable on this page: to turn a depth into a percent, divide it by the total height; to turn a percent into a depth, multiply.

For a cylinder lying on its side, neither shortcut works; use the horizontal cylinder calculator instead.

Common mistakes

  • Measuring depth from the rim. The gap at the top is the empty part. Depth is from the inside bottom to the surface.
  • Expecting the same trick to work sideways. In a horizontal tank the width of the liquid surface changes with depth, so percent of depth is not percent of volume.
  • Forgetting a sloped or dished bottom. The first inch or two of a dished tank holds less than the formula says. Measure depth from where the straight wall starts if you can.

Frequently asked questions

How do I calculate a partially filled vertical cylinder?

Use the liquid depth in place of the height: V = π r² x depth, then convert to gallons or liters.

Is a vertical cylinder half full at half height?

Yes. Straight sides mean volume is directly proportional to depth.

How do I find the volume of a half cylinder?

Calculate the full cylinder and divide by 2, or pick Half cylinder in the Shape menu here.

What about a tilted, partly filled cylinder?

A tilted cylinder is the hardest case and needs segment maths on an angle. For small tilts, measuring the average depth gives a close estimate.

How do I find the depth if I know the volume I need?

Work backwards: depth = volume / (π r²). For a radius of 15 inches, each inch of depth holds 706.858 cubic inches (3.06 US gallons), so divide the gallons you need by 3.06 to get the depth in inches.

Can I use this for a half full barrel?

Yes. Enter the barrel diameter and height, then enter half the height as the depth. An upright barrel at half depth is exactly half full by volume.

Related calculators and guides

Daniel Brooks, author of CylinderVolumeCalc

About the author

Daniel Brooks Mechanical engineer

I have spent 12 years sizing tanks, pipes and vessels for workshops and small plants, where a wrong volume means a wrong order, a short pour or a tank that overflows. I built this site after watching the same radius and diameter mix-up cause the same costly mistake again and again.

Every calculator, formula and worked example here is worked through and checked by hand before it goes live.

More about me and how I check the results