Millimeters to Grams Calculator

Last Updated: July 6, 2026

This calculator was built with Calculator Academy’s community calculator studio with AI assistance, and was reviewed by the Calculator Academy team before publication.

About the Millimeters to Grams Calculator

This tool estimates an object’s mass in grams from its millimeter dimensions and material density. It is useful for makers, students, 3D printing users, and anyone who needs a quick weight estimate for a simple block, cylinder, or sphere.

How to use this calculator

  1. Select the closest shape: rectangular block, cylinder, or sphere.
  2. Choose a material density preset or select Custom density and enter the density in g/cm³.
  3. Enter the visible dimensions in millimeters, such as length, width, height, or diameter.
  4. Click Calculate grams to estimate the mass.
  5. Use Reset to return to the default 10 × 10 × 10 mm water cube example.

How it works

Millimeters describe size, not weight, so the calculator first finds the object’s volume from its selected shape. A rectangular object uses length × width × height, a cylinder uses π × (diameter ÷ 2)² × height, and a sphere uses 4/3 × π × (diameter ÷ 2)³.

The volume is initially calculated in cubic millimeters. Because the density is entered in grams per cubic centimeter, the calculator converts volume using 1 cm³ = 1,000 mm³.

Finally, mass is estimated with grams = volume in cm³ × density in g/cm³. The result assumes the object is a solid, simple shape with uniform density and no hollow spaces, coatings, or mixed materials.

Example calculation

For a rectangular water cube measuring 10 mm long, 10 mm wide, and 10 mm high, the volume is 10 × 10 × 10 = 1,000 mm³. That equals 1 cm³, and with water density of 1.00 g/cm³, the estimated mass is 1 × 1.00 = 1 gram.

Frequently asked questions

Can you directly convert millimeters to grams?

No. Millimeters measure length, while grams measure mass. You need a shape, dimensions, and material density to estimate grams.

Why is density entered in g/cm³ instead of g/mm³?

Most common material densities are listed in grams per cubic centimeter. The calculator converts mm³ to cm³ before multiplying by density.

Which dimensions are used for each shape?

A rectangular block uses length, width, and height. A cylinder uses diameter and cylinder height. A sphere uses diameter only.

How accurate is the gram estimate?

It is accurate for an ideal solid object with the entered density and simple shape. Real objects may differ if they are hollow, irregular, porous, or made from mixed materials.

What density should I use for a custom material?

Use the material’s density in g/cm³ from a reliable datasheet or reference. If density is given in kg/m³, divide by 1,000 to get g/cm³.