Calculate material volume from mass and density, or estimate the length of solid circular filament using mass, density and diameter. The calculator also supports the reverse mass calculations. Grams measure mass; mm measure length, and mm³ measure volume.

Estimate length of solid circular filament using its mass, density and diameter.

Use net material mass, excluding a spool, packaging or other parts. Zero is allowed.

Default 1.24 g/cm³ is an illustrative PLA assumption. Use the density for your actual grade, additives and conditions.

A length conversion needs cross-sectional area. Default 1.75 mm assumes a solid circular filament.

Material assumptions and output

These retained planning presets are approximate. Selecting one fills density; an edited density becomes Custom.

Selecting one fills diameter; an edited diameter becomes Custom.

Grams To mm Formula

Density gives material volume: V = M / D, using grams and g/mm³ to obtain mm³. Filament length additionally requires circular cross-sectional area: L = V / [π(d/2)²] = M / [Dπ(d/2)²], with diameter d and length L in mm. These follow the mass-density definition and cylinder volume formula.

V = M / D

Variables:

  • V is the volume in cubic millimeters (mm^3)
  • M is the mass in grams (g)
  • D is the density in grams per cubic millimeter (g/mm^3)

Divide mass in grams by density in g/mm³ to obtain material volume in mm³. If density is given in g/cm³, divide that density by 1,000 first: 1.24 g/cm³ = 0.00124 g/mm³. Volume is not a linear length; a filament-length result also needs its diameter.

Grams to Millimeters Conversion Table (PLA filament, d = 1.75 mm; ρ = 1.24 g/cm³)
Mass (g) Length (mm)
1335.284
2670.567
51676.418
103352.836
206705.672
258382.090
3010058.509
5016764.181
7525146.271
10033528.362
15050292.543
20067056.724
25083820.905
300100585.086
400134113.448
500167641.810
750251462.715
1000335283.619
1500502925.429
2000670567.239
* Computed at full precision, then rounded to 3 decimals. Assumes solid cylindrical PLA filament (ρ = 1.24 g/cm³) with 1.75 mm diameter. Derived linear density ≈ 0.002983 g/mm (≈ 2.983 g/m), so 1 g ≈ 335.284 mm. These are nominal mathematical values under the stated assumptions, not measurement precision guarantees.

What Does “Grams to mm” Mean?

Grams and millimeters measure different quantities, so there is no universal g-to-mm conversion. Density converts mass to material volume in mm³. For solid circular filament, dividing that volume by π(d/2)² gives length in mm. Hollow or noncircular shapes require their actual cross-sectional area. Use net material mass and an appropriate density for the material grade and conditions.

How to Calculate Grams To mm?

Use V = M / D for material volume. To find solid circular filament length, also use its diameter and L = V / [π(d/2)²].


  1. First, determine the mass in grams (M).
  2. Next, determine the density in grams per cubic millimeter (D).
  3. Next, use the formula V = M / D to calculate the volume in cubic millimeters (V).
  4. For a filament-length result, determine diameter d in mm, calculate area π(d/2)² in mm², then divide V by that area to obtain length L in mm.
  5. After inserting the variables and calculating the result, check your answer with the calculator above.

Example Problem : 

Use the following variables as an example problem to test your knowledge.

mass in grams (M) = 50

Assume PLA density D = 0.00124 g/mm³ (1.24 g/cm³) and solid circular filament diameter d = 1.75 mm. For M = 50 g, material volume V = 50 / 0.00124 = 40,322.580645 mm³. Filament length L = V / [π(1.75/2)²] = 16,764.180971 mm, approximately 16.764181 m. Density presets are illustrative planning assumptions; verify your actual material and diameter.