Density Cylinder Calculator
What material is that cylinder made of? Find out in seconds.
Enter the mass and dimensions of any cylinder to find its density. The calculator computes volume from radius and height, then divides mass by volume to give you density in grams per cubic centimeter or kilograms per cubic meter. Useful for material identification, quality control, and physics problems.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Pick up an unknown metal rod and you cannot tell aluminum from steel by sight alone — they can look identical. Density is the one property that separates them unambiguously. A cubic centimeter of aluminum weighs 2.7 grams. A cubic centimeter of steel weighs 7.8 grams. Measure the same size sample and the mass alone tells you which you are holding.
The math behind density is two steps. First, compute the volume of the cylinder using the formula V = πr²h. Pi times radius squared gives the area of the circular face, multiplied by height gives the total space the object occupies. Second, divide mass by that volume. The result is how much matter is packed into each unit of space.
What makes density a reliable identifier is that it is an intrinsic property — it does not change with the size of the sample. A tiny chip of gold and a gold bar have the same density: 19.3 g/cm³. That is why jewelers and materials labs use density tests to verify metal purity without destroying the sample. The cylinder shape makes this particularly clean because its volume formula is exact, with no approximation required.
When To Use This
Right tool, right situation
Use this calculator when you have a physical cylindrical object — a rod, puck, billet, or plug — and you need to identify its material or verify it meets a density specification. It works well for incoming inspection of metal stock, checking cast polymer parts, and physics lab exercises where students measure density to identify unknowns.
This tool is also appropriate for estimating the mass of a cylinder made of a known material. Run the calculation in reverse: enter the target density, volume from dimensions, and solve for mass. That application is useful for weight budgeting in product design.
Do not use this calculator for hollow cylinders, cylinders with tapered ends, or any object that is not a solid right cylinder. It also does not apply when the material is non-uniform — a cylinder that is copper on the outside and steel at the core will produce a density that is an average of both, not either. In that case, the material match output will be misleading. If the object has any obvious voids, surface pitting, or composite construction, treat the density result as an approximation only.
Common Mistakes
Why results sometimes look wrong
The most frequent mistake is entering diameter where radius is required. Diameter is what you measure directly with a caliper across the widest point. Radius is half that. Because radius is squared in the formula, using diameter instead of radius makes the computed volume four times too large and the computed density four times too small. A steel rod then appears to have the density of magnesium.
A second common error is unit mismatch. Someone weighs a sample in grams, measures its dimensions in millimeters (because calipers default to mm), and enters both into a g/cm³ calculator. One cubic centimeter equals 1,000 cubic millimeters, so the volume is 1,000 times too large and the density is 1,000 times too small. The result looks plausible at first glance — 0.0078 g/mm³ for steel instead of 7.8 g/cm³ — and the error goes unnoticed.
A third mistake is using this formula for hollow cylinders. A tube, pipe, or hollow shaft is not a solid cylinder. Its true volume requires subtracting the inner void: V = πh(R_outer² minus R_inner²). Using only the outer dimensions for a hollow part will produce a density that is too low and may falsely suggest a lighter material.
The Math
Worked examples and deeper derivation
The density formula is rho = m divided by V, where rho is density, m is mass, and V is volume. For a right circular cylinder, V = π multiplied by r squared multiplied by h, where r is radius and h is height. Combining: density = m divided by (pi times r squared times h).
The radius squared term means errors in radius measurement hurt more than errors in height. If you measure the radius 10% too large, the volume increases by 21% (1.1 squared is 1.21), and your computed density drops by about 17%. If you measure the height 10% too large, the volume and density error is exactly 10%. Always measure radius with calipers, not a ruler, when accuracy matters.
Unit consistency is critical. If mass is in grams and dimensions are in centimeters, the result is in g/cm³. If mass is in grams but dimensions are in millimeters, you need to divide the result by 1,000 to convert mm³ to cm³. Mixing units without conversion is the single most common source of density errors in informal measurements.
Expert Unlock
The thing most explanations skip
The formula assumes perfect geometric regularity — a true right cylinder with flat, parallel ends and uniform circular cross-section along its entire length. Real machined parts deviate from this. A cylinder that is 0.2 mm out of round across a 50 mm radius introduces less than 0.4% volume error, which is acceptable for material ID. But a cylinder with significant taper — common in sand-cast parts — can produce a volume error of several percent, enough to misidentify aluminum alloy as a slightly different alloy grade. For tapered objects, use the frustum volume formula instead and treat the density result here as an upper bound.
Why does my cylinder density not match the reference value for that material?
Need something this doesn't cover?
Suggest a tool — we'll build it →