Density of a Cylinder Calculator

Enter a solid cylinder's radius, height, and mass to find its density (ρ = m / (πr²h)), volume, specific gravity, and density in common unit systems.

Quick Facts

Density formula
ρ = m / V
Mass divided by volume; for a solid cylinder, V = πr²h.
Volume formula
V = πr²h
Radius squared, times height, times π (≈3.14159).
Water reference
1 g/cm³ = 1000 kg/m³
Density of water at 4°C — the baseline for specific gravity.
Radius vs. diameter
r = d / 2
If you only measured the diameter, halve it before entering the radius.

Your Results

Calculated
Density
-
ρ = m / (πr²h)
Volume
-
V = πr²h
Specific Gravity
-
Relative to water (1 g/cm³)
Density (Imperial)
-
Pounds per cubic foot

Ready

Enter the radius, height, and mass, then press Calculate.

How to Calculate the Density of a Cylinder

Density measures how much mass is packed into a given volume: ρ = m / V. For a solid cylinder, the volume depends on the radius and height, so the working formula is ρ = m / (πr²h), where r is the radius, h is the height, and π ≈ 3.14159. This calculator converts your radius, height, and mass into consistent SI units, computes the volume, then divides mass by volume to report density in g/cm³, kg/m³, and lb/ft³, plus a specific-gravity comparison to water.

How the calculation works

Enter the cylinder's radius and height in the same length unit, and its mass in your preferred mass unit. The calculator converts length to meters and mass to kilograms, squares the radius, multiplies by height and π to get volume (V = πr²h), then divides mass by that volume to get density (ρ = m / V) in kg/m³. The result is also expressed in g/cm³ and lb/ft³ for easy comparison with published material-density tables, and as specific gravity — density divided by the density of water (1 g/cm³ = 1000 kg/m³).

Common mistakes

  • Entering the diameter instead of the radius: this doubles the value used for r, which quadruples the calculated volume and cuts the resulting density to a quarter of the true value. Always divide diameter by 2 first.
  • Mixing length units: keep the radius and height in the same unit (both in cm, or both in inches) — this calculator applies one length unit to both fields.
  • Assuming a solid cylinder: the formula V = πr²h only applies to a solid cylinder. Hollow tubes and pipes need the inner cylinder's volume subtracted from the outer cylinder's volume before dividing by mass.

Real-world applications

  • Quality control and material verification: measuring a machined cylindrical sample's dimensions and mass confirms it matches the expected alloy or plastic (e.g., checking that aluminum stock is really about 2.70 g/cm³ and not a cheaper substitute).
  • Geology and materials science: cylindrical core samples are weighed and measured to estimate rock or soil density for classification.
  • Engineering design: density feeds directly into weight estimates for cylindrical components such as pipes, shafts, and rollers before they are manufactured.
  • Buoyancy checks: comparing specific gravity to 1 quickly shows whether a solid cylindrical object will float or sink in water.

Frequently Asked Questions

What is the formula for the density of a cylinder?
Density equals mass divided by volume: ρ = m / V. For a solid cylinder, volume is V = πr²h, so the full formula is ρ = m / (πr²h), where r is the radius and h is the height.
How do I find the radius if I only measured the diameter?
Divide the diameter by 2: r = d / 2. For example, a cylinder with a 4 cm diameter has a 2 cm radius — enter the radius, not the diameter, into this calculator.
What does specific gravity tell me about the cylinder?
Specific gravity compares the cylinder's density to the density of water (1 g/cm³ at 4°C). A value above 1 means the solid cylinder is denser than water and would sink; a value below 1 means it would float.
Can I use this calculator for a hollow cylinder or tube?
No — this calculator assumes a solid cylinder. For a hollow cylinder or tube, subtract the inner cylinder's volume from the outer cylinder's volume before dividing by mass: V = π(router² − rinner²)h.