Convert grams to mm of 3D printer filament: enter the weight, pick PLA, PETG, ABS or another material and 1.75 or 2.85 mm, or convert mm back to grams.

Assumes solid, round filament of constant diameter.

Net material weight, without the spool or packaging.

Typical densities; your brand or grade may differ slightly. Pick Custom density to enter your own.

Output unit

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.