Use the diameter form of the cylinder formula
For a right circular cylinder with diameter d and perpendicular height h, volume is V = πd²h / 4. This is the familiar base-area-times-height formula V = πr²h after replacing radius r by d / 2. The division by four matters because the radius is squared. Dividing a diameter by two only after squaring it would leave the base area twice as large as it should be.
The formula describes a solid cylinder or a fully filled ideal cylindrical interior. It assumes a circular cross-section of constant diameter and a height measured perpendicular to the base. It does not describe a cone, a tapered vessel or a cylinder with domed ends. Identify the geometric model before entering dimensions; a plausible-looking number cannot establish that a real container has the constant cross-section needed by this calculation.
Measure the diameter and height for the quantity you need
For container capacity, use internal diameter and internal usable height. Outside dimensions include walls and may overstate the space available inside. A cylindrical package's external volume and its internal capacity answer different questions, even when both use the same formula. Mark which dimensions were measured and whether lids, rounded bottoms or fittings reduce the simple cylindrical interior. A wall-thickness estimate is not automatically an exact internal measurement.
For a vertical cylinder filled only partway, an ideal constant cross-section permits replacing full height by the perpendicular liquid depth. That shortcut does not apply to a horizontal partially filled cylinder, whose wetted cross-section is a circular segment. The general Volume Calculator calculates full primitive solids; it does not provide a dedicated horizontal-fill workflow or automatically subtract internal objects. Use the aquarium-specific tool when its waterline and displacement model matches the task.
Follow a complete diameter-and-height example
Suppose the internal diameter is 30 cm and the usable cylindrical height is 40 cm. Radius is 30 / 2 = 15 cm. The base area is π × 15² = 225π cm². Multiply by height: V = 225π × 40 = 9,000π cm³, approximately 28,274.333882 cm³. The direct diameter form gives the same result: π × 30² × 40 / 4 = 9,000π cm³.
A useful estimate takes π as roughly 3 for a preliminary check, giving about 27,000 cm³. The more precise result being modestly larger is reasonable. If you get approximately 113,097 cm³, you likely used the 30 cm diameter as a radius, creating four times the intended volume. If you get about 706.86 cm², you have calculated only the circular base area and have not yet multiplied by the cylinder height.
Enter the radius expected by the Volume Calculator
Select cylinder in the Volume Calculator. Its dimension field asks for radius, so enter 15 rather than 30 for this example, with height 40 and centimeters as the length label. The result should be approximately 28,274.333882 cm³. Record the conversion from diameter to radius in your calculation note. The guide title uses diameter because that is a common supplied measurement; it does not change the field label in the existing tool.
Switching shape loads that shape's example dimensions, so inspect the fields after selecting cylinder. Changing the length-unit selector relabels numbers rather than converting an existing physical measurement. If you prefer meters, enter radius 0.15 and height 0.4. The result is 0.009π m³, approximately 0.028274334 m³. Matching the numbers to the chosen unit is your responsibility; the tool cannot infer the original ruler or source document.
Convert cubic length units to capacity carefully
One liter equals 1,000 cubic centimeters, so the example volume is 9π liters, approximately 28.274333882 L. The same conversion follows from 1 m³ = 1,000 L: multiply 0.028274333882 m³ by 1,000. Keep cubic centimeters, cubic meters and liters clearly labelled. The number 28,274 is not liters when its original unit is cm³. A conversion error here can be much larger than any rounding error in π.
To express capacity in gallons, identify the gallon system explicitly. US liquid gallons and imperial gallons have different sizes. Use the volume converter for the desired system rather than an unqualified gallons label. When converting all linear dimensions from centimeters to meters, each dimension changes by a factor of 100 and volume by a factor of 100³. Applying a length conversion factor once to a cubic result is not a correct volume conversion.
| Unit | Exact expression | Approximate value |
|---|---|---|
| cm³ | 9,000π | 28,274.333882 |
| m³ | 0.009π | 0.028274334 |
| L | 9π | 28.274333882 |
Internal diameter 30 cm, radius 15 cm and height 40 cm. Conversion does not change the physical volume.
Understand how a diameter change affects volume
With height fixed, volume is proportional to diameter squared. Doubling diameter multiplies volume by four, while doubling height multiplies it by two. If both are doubled, volume increases eightfold. This sensitivity explains why a small diameter measurement error can matter. A 1% increase in diameter gives a factor of 1.01² = 1.0201, or a 2.01% volume increase when height is unchanged. It is not merely a 1% capacity change.
As a comparison, keep height at 40 cm but reduce diameter to 20 cm. Radius becomes 10 cm and volume is 4,000π cm³, approximately 12.566370614 L. Its ratio to the original is (20 / 30)² = 4 / 9. The cylinders have the same height but very different capacities. Do not compare cylindrical containers by height or apparent diameter alone when the question concerns volume.
Separate capacity from practical fill and mass
A geometric capacity to the top is not necessarily a sensible working fill volume. Freeboard, displaced objects, plumbing and operational requirements can reduce usable liquid volume. Those reductions must be modelled separately. Likewise, volume is not weight: estimating a filled container's mass requires the contents' density and the container's own mass. A liter of an unspecified substance cannot be assigned a universal mass just because water is familiar.
The current tool does not add material allowances, wall volume, headspace or safety ratings automatically. For hollow material, separate outer and inner cylinder volumes may be needed, with compatible heights and geometry. For an aquarium, use internal dimensions and actual displacement in the dedicated workflow rather than loose substrate bulk volume. These distinctions keep a mathematically correct full-cylinder answer from being presented as a guarantee about a particular real vessel.
Check the result with dimensions and a reverse step
A volume calculation must combine three length factors overall. In πd²h / 4, diameter supplies two and height one, producing cubic units. Divide the example's 9,000π cm³ by its base area of 225π cm² to recover height 40 cm. Alternatively, solve d = 2√(V / (πh)) to recover 30 cm. Use unrounded values for the cleanest reverse check and expect small discrepancies if the displayed volume was rounded first.
A complete educational answer records the interior or exterior measurement choice, diameter, perpendicular height, formula, cubic result and any explicit capacity conversion. Round the final result to suit the input precision. More calculator digits do not remove uncertainty in a diameter measurement or fix a non-cylindrical bottom. When the shape differs from the ideal model, report that limitation and select an appropriate geometric or measured-capacity method before relying on the number.