This calculator works out the volume of a cylinder when you know its diameter and height. You enter the diameter (the full width across the circular face) and the height, and it returns the volume in cubic meters, liters, and other common units. It uses the standard formula V = π × (d/2)² × h, where d is the diameter.
Formula
The volume of a cylinder is the area of its circular base multiplied by its height. Since the base is a circle with radius r, the area is πr². When you only have the diameter d, the radius is half of it: r = d/2. So the formula becomes:
V = π × (d/2)² × h
- V = volume (cubic meters, m³)
- d = diameter of the circular base (meters, m)
- h = height of the cylinder (meters, m)
- π ≈ 3.14159
If you prefer to work in centimeters, use d and h in cm; the volume will be in cubic centimeters (cm³), and 1 cm³ = 1 mL. The calculator above uses meters for consistency with SI units.
Worked Example
Using the default values: diameter = 0.5 m, height = 1 m.
- Radius = diameter / 2 = 0.5 / 2 = 0.25 m
- Base area = π × (0.25)² = π × 0.0625 ≈ 0.19635 m²
- Volume = base area × height = 0.19635 × 1 ≈ 0.19635 m³
The calculator rounds to 4 decimal places, so it shows 0.1964 m³. In liters, 0.19635 m³ × 1000 = 196.35 L (rounded to 2 decimals).
Assumptions
- The cylinder is a right circular cylinder—the sides are perpendicular to the base.
- The diameter and height are measured in the same unit (here, meters).
- The cylinder is solid or hollow; the formula gives the total volume enclosed, not the volume of material.
- π is approximated to 3.14159 in manual calculations; the calculator uses a more precise value.
How to Measure Diameter and Height Correctly
For a real cylinder (a tank, pipe, or container), the diameter is the widest distance across the circular opening, measured through the center. If you have the circumference, divide it by π to get the diameter. The height is the perpendicular distance between the two circular faces. For a cylinder lying on its side, the height is the length along the axis.
Common mistakes include measuring the radius and calling it the diameter, or mixing units (e.g., diameter in cm and height in m). Always convert to the same unit before calculating. For example, if diameter is 50 cm and height is 1 m, convert height to 100 cm, then volume = π × (25)² × 100 = 196,350 cm³ = 196.35 L.
Practical Applications
This calculation is used in many everyday and industrial situations:
- Finding the capacity of a water tank or fuel tank.
- Estimating the volume of a pipe or a well casing.
- Calculating the amount of concrete needed for a cylindrical column.
- Determining the volume of a can, bottle, or storage drum.
For a partially filled horizontal cylinder, the formula is more complex and requires the fill height; this calculator assumes the cylinder is full.
Common Problems and How to Avoid Them
- Unit mix-ups: Always use the same unit for diameter and height. If you mix meters and centimeters, the result is off by a factor of 1000.
- Diameter vs. radius: Many people mistakenly use the radius in the formula that expects the diameter. Remember: radius = diameter/2.
- Rounding too early: Rounding π to 3.14 is fine for rough estimates, but for precise work use 3.14159 or the calculator’s value.
- Forgetting to convert cubic meters to liters: 1 m³ = 1000 L, not 100 L.
Alternatives and Related Calculations
If you know the radius instead of the diameter, use V = πr²h. If you know the circumference (C), then diameter = C/π, and the volume becomes V = π × (C/(2π))² × h = (C² × h) / (4π). For a cone or a sphere, different formulas apply. This calculator is specifically for cylinders, so for other shapes you would need a different tool.
Frequently Asked Questions
How do I find the volume of a cylinder if I only have the diameter and height?
Divide the diameter by 2 to get the radius, square it, multiply by π, then multiply by the height. That gives the volume in cubic units. For example, a cylinder with diameter 10 cm and height 20 cm has volume π × (5)² × 20 = 1570.8 cm³.
What is the formula for the volume of a cylinder in liters?
First calculate the volume in cubic centimeters (cm³) or cubic meters (m³), then convert: 1 L = 1000 cm³ = 0.001 m³. So if your volume is 5000 cm³, that’s 5 L.
Can I use this calculator for a cylinder that is not perfectly straight?
No, the formula assumes a right circular cylinder with uniform diameter. If the cylinder tapers (like a cone) or is tilted, the volume calculation is different and usually requires integration or a different formula.
What if I measure the diameter in inches and height in feet?
Convert all measurements to the same unit first. For example, convert feet to inches (1 ft = 12 in) or inches to feet (1 in = 1/12 ft). Then apply the formula. The result will be in cubic inches or cubic feet; convert to liters if needed (1 ft³ ≈ 28.317 L).
Does the formula work for a cylinder with a thick wall (like a pipe)?
Yes, the formula gives the total volume enclosed by the outer diameter. If you need the volume of the material itself, you must calculate the volume using the outer diameter and then subtract the volume using the inner diameter—that’s the volume of the wall.