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.