Cylinder Volume Calculator – Calculate Volume of a Cylinder using Diameter and Height


Cylinder Volume Calculator

Calculate the volume of a cylinder using its diameter and height in various units.



The distance across the circular base, passing through the center.


The perpendicular distance between the two circular bases.


Select the measurement unit for diameter and height.

Cylinder Volume


Radius

Base Area

The volume is calculated using the formula: Volume = π × (Diameter / 2)² × Height.

Volume vs. Height (at current diameter)

A line chart showing how volume increases with height. Vol 0 0 Height

Chart showing the linear relationship between height and volume.

What Does it Mean to Calculate the Volume of a Cylinder?

To calculate the volume of a cylinder is to determine the total amount of three-dimensional space it occupies. A cylinder is a common geometric shape characterized by two parallel, identical circular bases connected by a curved surface. Think of a can of soup, a pipe, or a storage tank. The volume tells you the capacity of the cylinder—for example, how much liquid it can hold.

This calculation is essential in many fields, from engineering and construction to everyday tasks. Whether you’re designing a piston, determining the capacity of a water tank, or even figuring out how much concrete is needed for a cylindrical pillar, you need to be able to accurately calculate its volume. The primary inputs required are the dimensions of its circular base (either radius or diameter) and its height.

The Formula to Calculate Volume of a Cylinder using Diameter and Height

The standard formula for a cylinder’s volume is based on its radius (r) and height (h): V = πr²h. This formula essentially calculates the area of one of the circular bases (πr²) and multiplies it by the cylinder’s height.

However, it’s often more practical to measure the diameter (d) of a cylinder, which is the distance across the circle through its center. Since the radius is simply half of the diameter (r = d/2), we can substitute this into the main formula to create a version that uses the diameter directly:

V = π * (d/2)² * h

This is the exact formula our calculator uses. It allows you to work with the more easily measured diameter without needing to first calculate the radius manually. For more complex calculations, you might explore our surface area calculator.

Variables Used in the Cylinder Volume Formula
Variable Meaning Unit (Auto-Inferred) Typical Range
V Volume Cubic units (e.g., cm³, m³, in³) 0 to ∞
d Diameter Length units (e.g., cm, m, in) Greater than 0
h Height Length units (e.g., cm, m, in) Greater than 0
π (Pi) Mathematical Constant Unitless ~3.14159

Practical Examples

Understanding the formula is easier with real-world examples.

Example 1: A Water Tank

Imagine you have a cylindrical water tank with a diameter of 3 meters and a height of 5 meters. How much water can it hold?

  • Input (Diameter): 3 m
  • Input (Height): 5 m
  • Calculation: V = π * (3 / 2)² * 5 = π * (1.5)² * 5 = π * 2.25 * 5 ≈ 35.34 m³
  • Result: The tank can hold approximately 35.34 cubic meters of water. If you need to know how this affects fluid dynamics, check out our flow rate calculator.

Example 2: A Small Pipe

Let’s calculate the volume of a small pipe that is 20 inches long and has an internal diameter of 0.5 inches.

  • Input (Diameter): 0.5 in
  • Input (Height/Length): 20 in
  • Calculation: V = π * (0.5 / 2)² * 20 = π * (0.25)² * 20 = π * 0.0625 * 20 ≈ 3.93 in³
  • Result: The internal volume of the pipe is approximately 3.93 cubic inches.

How to Use This Cylinder Volume Calculator

Our tool is designed for speed and accuracy. Follow these simple steps:

  1. Enter the Diameter: Input the diameter of the cylinder’s base in the first field.
  2. Enter the Height: Input the height of the cylinder in the second field.
  3. Select Units: Choose the appropriate unit of measurement from the dropdown menu (e.g., cm, m, in, ft). The same unit is used for both diameter and height.
  4. Review the Results: The calculator instantly displays the final volume, along with intermediate values like the radius and the area of the base. The results will be in the corresponding cubic unit (e.g., cm³, m³).

The dynamic chart also updates in real-time to visualize how the volume changes with height for the given diameter. To start over, simply click the “Reset” button.

Key Factors That Affect Cylinder Volume

The volume of a cylinder is influenced by two primary factors, but their impact is not equal:

  • Diameter (and Radius): This is the most significant factor because the radius is squared in the formula (V = πr²h). This means that doubling the diameter of a cylinder will increase its volume by a factor of four (since (2r)² = 4r²).
  • Height: The height has a linear relationship with the volume. Doubling the height will simply double the volume. This is a direct, one-to-one relationship.
  • Units: The choice of units drastically changes the numerical result. A cylinder with a height of 1 meter is very different from one with a height of 1 centimeter. Always ensure your units are consistent.
  • Shape of the Base: The formula is specifically for a circular cylinder. If the base were an ellipse or another shape, the formula for the base area would change, altering the final volume calculation.
  • Hollow vs. Solid: This calculator assumes a solid cylinder. For a hollow cylinder (like a pipe), you would need to calculate the volume of the outer cylinder and subtract the volume of the inner empty space.
  • Measurement Accuracy: Small errors in measuring the diameter can lead to larger errors in the calculated volume due to the squaring effect. Precise measurements are key for accurate results.

For engineering applications where precision is key, consider using our tolerance analysis tool.

Frequently Asked Questions (FAQ)

1. What is the difference between using radius and diameter?
The radius is the distance from the center of the circle to its edge, while the diameter is the distance across the circle through the center. The diameter is always twice the radius (d = 2r). You can use either for the calculation, as long as you use the correct formula. This calculator uses diameter for convenience.
2. How do I calculate the volume of a cylinder in liters?
First, calculate the volume in a standard cubic unit. For example, if you get a result in cubic centimeters (cm³), you can convert it to liters using the fact that 1 liter = 1000 cm³. So, just divide your cm³ result by 1000.
3. What if my cylinder is lying on its side?
It doesn’t matter. The “height” of the cylinder is simply the distance between the two circular bases. If the cylinder is on its side, this dimension is often called “length,” but the volume calculation remains the same.
4. Can I use different units for diameter and height?
No, not directly in this calculator. To get a correct result, both diameter and height must be in the same unit. If you measure them in different units (e.g., diameter in inches, height in feet), you must convert one of them before using the formula. Our calculator requires selecting one unit for both inputs to ensure accuracy.
5. What is an oblique cylinder and is the formula different?
An oblique cylinder is one that is “tilted,” so its sides are not perpendicular to its bases. However, according to Cavalieri’s principle, as long as the perpendicular height (not the slant height) and the base area are the same, its volume is calculated with the exact same formula: V = πr²h.
6. How does the volume of a cone compare to a cylinder with the same base and height?
A cone’s volume is exactly one-third of a cylinder’s volume if they share the same base radius and height. The formula for a cone’s volume is V = (1/3)πr²h.
7. What happens if I input a negative number?
Geometrically, dimensions like diameter and height cannot be negative. Our calculator will produce a zero or negative volume, which is physically meaningless. Always use positive values for your inputs.
8. How accurate is the value of Pi (π)?
This calculator uses the `Math.PI` constant available in JavaScript, which is a highly accurate, double-precision floating-point representation of π (approximately 3.141592653589793), ensuring high precision for all calculations.

If you’re interested in the properties of materials, our material density calculator could be a useful resource.

© 2026 SEO Tools Inc. All rights reserved. For educational and professional use.



Leave a Reply

Your email address will not be published. Required fields are marked *