ThisCalculator

Conversions

Mass From Diameter & Length: How to Calculate

Updated · Standard formula, shown below

Mass 246.6 g
Volume
31.4 cm³
Result
Diameter
2 cm
You entered
Length
10 cm
You entered

Mass From Diameter & Length: How to Calculate

This calculator works out the mass of a uniform cylindrical or rod-shaped object when you enter its diameter, length, and material density. You get the mass in kilograms (or grams) directly, using the standard formula for the volume of a cylinder multiplied by density. It is designed for solid, round cross-sections; if your object is hollow or has a different shape, the formula changes, as explained below.

Formula

The mass \(m\) of a solid cylinder is given by:

\(m = \rho \cdot V = \rho \cdot \pi \cdot r^2 \cdot L\)

where:

  • \(m\) = mass (grams or kilograms)
  • \(\rho\) (rho) = density of the material (g/cm³ or kg/m³)
  • \(r\) = radius of the cross-section = diameter / 2
  • \(L\) = length of the cylinder
  • \(V\) = volume of the cylinder = \(\pi r^2 L\)

Because the radius is half the diameter, you can also write the formula as \(m = \rho \cdot \pi \cdot (d/2)^2 \cdot L\). The calculator uses this exact form.

Worked Example

Using the default values from the calculator: diameter = 2.0 cm, length = 10.0 cm, density = 7.85 g/cm³ (typical for steel).

  1. Radius = diameter / 2 = 2.0 / 2 = 1.0 cm
  2. Cross-sectional area = \(\pi \times (1.0)^2 = 3.14159\) cm²
  3. Volume = area × length = 3.14159 × 10.0 = 31.4159 cm³
  4. Mass = volume × density = 31.4159 × 7.85 = 246.6 g

The calculator shows 246.6 g (0.2466 kg). If you change the density to that of aluminum (2.70 g/cm³), the mass becomes 84.8 g—a clear example of how material choice dominates the result.

Why Density Matters Most

Density is the mass per unit volume of a material. It is not the same as weight, and it does not change with the size of the object. For a given diameter and length, a steel rod will always be about three times heavier than an aluminum rod of the same dimensions because steel’s density (~7.85 g/cm³) is roughly three times that of aluminum (~2.70 g/cm³). Common densities you might use:

  • Water: 1.0 g/cm³
  • Aluminum: 2.70 g/cm³
  • Iron/steel: 7.85–7.87 g/cm³
  • Copper: 8.96 g/cm³
  • Lead: 11.34 g/cm³
  • Wood (oak, dry): ~0.7–0.9 g/cm³

If you don’t know the density, look it up in a materials table or use the calculator’s default for steel as a starting point.

Unit Conversions and Common Mistakes

The biggest source of error is mixing units. The calculator expects diameter and length in centimeters and density in g/cm³, giving mass in grams. If you measure in inches, convert to centimeters first (1 inch = 2.54 cm). If you have density in kg/m³, divide by 1000 to get g/cm³ (e.g., 7850 kg/m³ → 7.85 g/cm³).

Another common mistake is forgetting to halve the diameter. Using the full diameter in the formula quadruples the volume (since area depends on radius squared). For example, a 2 cm diameter rod has a radius of 1 cm, not 2 cm. Always divide by 2.

Also, verify whether your object is truly solid. A pipe or tube has a hollow center; its mass is the difference between the outer cylinder and the inner void. That requires a different formula, often using the wall thickness.

When to Use This Calculation

This calculation is useful in many practical situations:

  • Estimating the weight of a metal rod or bar for shipping or handling.
  • Checking if a support beam or axle can handle a load (though that also requires strength calculations).
  • Calculating the amount of material needed for a machined part.
  • Balancing rotating components where mass distribution matters.
  • Converting between volume and mass for recycling or material cost estimates.

Remember that the formula assumes a perfectly uniform cylinder. If the rod tapers, has grooves, or is threaded, the actual mass will be lower than the calculated value because material has been removed.

Limitations and Real-World Considerations

This formula is exact only for a right circular cylinder with constant cross-section. Real objects often deviate:

  • Hollow tubes: subtract the inner cylinder volume.
  • Tapered rods: use an average diameter or integrate along the length.
  • Irregular shapes: use water displacement or 3D modeling.
  • Surface coatings: paint or plating adds negligible mass for most purposes.
  • Temperature: density changes slightly with temperature (most materials expand when heated, lowering density). For typical engineering at room temperature, this is negligible.

For precision work, always measure diameter at several points and average them. A 0.1 mm error in diameter on a 10 mm rod changes the cross-sectional area by about 2%—and the mass by the same amount.

Frequently Asked Questions

How do I calculate mass from diameter and length if I only know the weight density?

Weight density (specific weight) is weight per unit volume, usually in N/m³ or lb/ft³. Convert it to mass density by dividing by the acceleration due to gravity (9.81 m/s²). For example, steel has a weight density of about 77,000 N/m³, so mass density = 77,000 / 9.81 ≈ 7,850 kg/m³, which is 7.85 g/cm³.

What if my object is a hollow pipe?

Subtract the volume of the inner hole. If the outer diameter is D and inner diameter is d, the cross-sectional area is Ï€[(D/2)² – (d/2)²]. Multiply by length and density. Many pipe specifications list wall thickness; inner diameter = outer diameter – 2 × wall thickness.

Can I use this for a sphere or a cube?

No. This formula is specifically for cylinders. A sphere uses V = (4/3)πr³, and a cube uses V = side³. The same density principle applies, but the geometry is different.

Why is my calculated mass different from the actual weight on a scale?

Possible reasons: the material is not pure (alloys have different densities), the object is not perfectly cylindrical, or your measurements have small errors. Also, a scale measures weight (force), not mass. To get mass from weight, divide by the local gravitational acceleration (approximately 9.81 m/s² on Earth).

What is the best unit to use for large objects like a steel column?

For large objects, work in meters and kg/m³. A 5 m long column with a diameter of 0.3 m and steel density 7850 kg/m³ has mass = π × (0.15)² × 5 × 7850 ≈ 2775 kg. That’s about 2.8 tonnes. Using centimeters and grams would give the same result but with very large numbers.

Does the formula work for non-metal materials like plastic or wood?

Yes, as long as you use the correct density. Plastics range from about 0.9 to 1.4 g/cm³, and woods from 0.3 to 1.0 g/cm³ depending on species and moisture content. The math is identical; only the density input changes.

Related

Formula used
in d | Diameter | cm | 2.0 | 0
in l | Length | cm | 10.0 | 0
in rho | Density | g/cm³ | 7.85 | 0
out m | Mass | g | (pi * (d/2)^2 * l) * rho | 1
out vol | Volume | cm³ | pi * (d/2)^2 * l | 1

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.