Checking a cylinder height recovered from volume
When a cylinder's volume and radius are known, its height follows by dividing the volume by the base area. This guide shows the division, the radius-squared step that is easy to skip and a cross-check with a frustum calculator.
The task: finding a missing height
Many practical problems give the volume of a round tank, pipe section, can or column and ask how tall it is. A garden planter holds a certain amount of soil, a drum is rated for a certain volume, or a drawing lists a capacity and a diameter. In each case the height is the missing quantity. A cylinder is a prism with a circular base, so its volume is the base area times the perpendicular height. Solving that for the height means dividing the volume by the base area. The Cylinder Calculator works forward from radius and height to volume and surface area. This guide uses it as a check on a height found by division, and adds the Cone Frustum Calculator as an independent route for the special case where both radii are equal.
The formula and why the radius is squared
The volume of a cylinder is pi times r squared times h. Rearranged, h equals the volume divided by pi times r squared. The base is a circle of area pi r squared, a quantity in squared length units. A frequent mistake is to divide by pi times r, which treats the circumference-like quantity as if it were an area, or to forget to square the radius. The units expose the error: volume in cubic meters divided by a length gives square meters, not meters. Only when the divisor is an area does the result come out as a length. Squaring the radius before dividing is therefore a requirement of the units and not just of the formula, and it is the first thing to check when a height looks too large or too small.
The worked case with radius 2
The example uses a radius of 2 and a volume of 20 pi. The base area is pi times 4, or 4 pi. Dividing 20 pi by 4 pi gives 5, because the pi cancels and 20 divided by 4 is 5. The height is 5 length units. To check, give the Cylinder Calculator a radius of 2 and a height of 5. It returns a volume of 62.83185307179586, which is 20 pi, since 20 times 3.14159265 is 62.8319. The check closes the loop and confirms the radius-squared step. Because the volume was supplied as a multiple of pi, the cancellation is exact. With a decimal volume, such as 62.832, the division gives a height very close to 5 but with a small rounding offset from the rounded pi.
A second cylinder
Try a different illustrative case: radius 3 and height 10. The base area is 9 pi, and the volume is 90 pi, which is about 282.7433. The Cylinder Calculator returns 282.7433388230814 for those inputs. Now run it backward from the volume: dividing 90 pi by 9 pi gives 10. A decimal version also works: 282.7433 divided by 28.2743, which is pi times 9, is 10.0000. The same cylinder also has a total surface area of 2 pi r times r plus h, which is 2 pi times 3 times 13, or 78 pi, about 245.04. The surface area is a different quantity from the volume and is shown by the same calculator. Be careful to read the volume output and not the surface output when checking a height.
Measuring the radius in practice
Radius is rarely measured directly. A tank or can usually has its diameter or its circumference measured. The radius is half the diameter, and from a circumference C it is C divided by 2 pi. Mixing these up changes the result strongly because the radius is squared: using the diameter as if it were the radius makes the base area four times too large and the height four times too small. Measure inside the vessel if the volume is the internal capacity, since the outer diameter includes the wall. For a 20 centimeter outer diameter with a wall of 0.5 centimeter, the inner radius is 9.5, not 10, and the inner base area is about 9.75 percent smaller than that based on the outer radius.
The equal-radius frustum as a second route
A frustum is a cone with its tip cut off, and its volume is pi times h times R squared plus R times r plus r squared, divided by 3, where R and r are the two radii. If the radii are equal, the bracket becomes 3 R squared, the 3 cancels, and the volume reduces to pi R squared h, exactly the cylinder volume. The Cone Frustum Calculator with R equal to 2, r equal to 2 and h equal to 5 returns 62.83185307179586, matching the cylinder. This agreement shows that a cylinder is a limiting case of a frustum, and it gives a second way to check the figure. If you ever see a difference between the two, one of the inputs was entered incorrectly, because the equal-radius frustum has no reason to disagree with the cylinder. The frustum route is also helpful for tapered containers such as buckets and flower pots, where the top radius exceeds the bottom radius. Entering the two radii and the height gives the capacity directly, and setting the radii equal reproduces the cylinder. Comparing the tapered and straight cases for the same height shows how much capacity the taper adds or removes.
Unit conversions for capacities
Capacity is often quoted in liters or gallons while dimensions are in centimeters, inches or meters. A liter is exactly one cubic decimeter, which is 1,000 cubic centimeters. A cylinder with a radius of 5 centimeters has a base area of 25 pi, about 78.54 square centimeters, so a liter fills it to a height of about 12.73 centimeters. A cubic meter is exactly 1,000 liters. The US liquid gallon is defined as exactly 231 cubic inches, which is about 3.785 liters. Convert the capacity to the cubic version of your length unit first, then divide by the base area. Doing the conversion after dividing leads to errors when the unit factor is applied once to a cubic quantity instead of cubed.
What the geometric volume leaves out
The result describes an ideal cylinder: straight sides, flat parallel ends and an exact circular cross-section. It uses the internal geometric volume and the perpendicular height. Real containers have walls, bottoms that are domed or rounded, rims, fittings and fill limits. A beverage can, for example, is not a perfect cylinder, and a tank may have a rated capacity lower than its geometric volume to leave room for expansion. Pipe volumes depend on the inner diameter, which differs from the nominal size. If you need a capacity for a purchase or a safety limit, use the manufacturer's rated figure and treat the geometric calculation as an estimate. It also assumes the height is measured perpendicular to the base, which matters for slanted shapes.
Sensitivity to the radius
Because the radius appears squared, small errors in it matter more than errors in the volume. A 2 percent error in radius produces about a 4 percent error in the base area and therefore about a 4 percent error in the recovered height. Take the example: if the radius is really 2.04 instead of 2, the base area is pi times 4.1616, about 13.07, and 20 pi divided by that is about 4.81, a drop of about 4 percent from 5. So when a height recovered from volume looks suspicious, the first measurement to recheck is the radius. Measuring the diameter with a caliper or tape across the widest point, in several directions, reduces the error from an out-of-round object. Report the recovered height with a precision that matches the inputs. If the volume was given as 20 pi, an exact value, the height of 5 is exact. If the volume came from a measuring jug and the radius from a tape, two significant digits is usually the honest limit, and writing 5.00 would suggest accuracy the data cannot support.
Sizing a tank for a target capacity
Suppose a cylindrical rain tank has an inside radius of 0.5 meter and must hold 1.5 cubic meters, which is 1,500 liters. The base area is pi times 0.25, about 0.7854 square meter. The height is 1.5 divided by 0.7854, about 1.91 meters. If the available space limits the height to 1.5 meters, the radius has to grow instead, and the formula rearranged gives r equal to the square root of volume over pi times h, which is the square root of 1.5 over 4.712, about 0.564 meter. This shows the two-way use of the same relation. Because capacity depends on the square of the radius, adding 1 centimeter to the radius of this tank adds about 60 liters, while adding 1 centimeter to its height adds only about 7.9 liters. The figures are illustrative, and a real tank also needs freeboard and overflow allowances. Check the geometry against the available space too. If the tank must fit under a ceiling 1.2 meters tall and the recovered height is 1.91 meters, the design needs a larger radius or a second tank, and the formula tells you by how much before any material is cut. Use trial radii until the capacity and the clearance both work.
Hollow cylinders and wall volume
A pipe, a tube or a thick-walled can is a cylinder with a smaller cylinder removed from the middle. The material volume is pi times h times the difference between the squares of the outer and inner radii. For an outer radius of 5, an inner radius of 4.5 and a height of 10, the squares are 25 and 20.25, the difference is 4.75, and the volume is 47.5 pi, about 149.2. The internal capacity uses only the inner radius, so the same tube holds pi times 20.25 times 10, about 636.2. Mixing the two radii is a common source of error when a drawing lists an outside diameter and the question concerns what fits inside. The Cylinder Calculator treats a single solid cylinder, so run it once per radius and subtract when you need a wall.
Reproduce the checks
Cylinder reconstruction
Open the Cylinder calculator and enter:
- Radius
2- Height
5
Expected output:
Volume
62.83185307179586The recovered height is five.
Equal-radius frustum check
Open the Cone Frustum Calculator and enter:
- Outer or sphere radius
2- Radius
2- Height
5
Expected output:
volume
62.83185307179586The equal-radius model describes the same ideal solid.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- MathWorld ↗ · 2026-10-08
- OpenStax: volume and surface area ↗ · 2026-10-17