Tool in the box
Filament estimator
Convert metres of filament to grams, or grams to metres. Type in your filament's diameter and density and the page works the rest out with the volume of a cylinder. Results are estimates.
Estimate
Enter your filament's diameter, its density and a length or weight.
- Estimated weight
- Weight per metre
- Length per kilogram
- Cross-section area
How the estimate is worked out
V = π × (d ÷ 2)² × L
m = ρ × V
L = m ÷ (ρ × π × (d ÷ 2)²)
d is the diameter in mm, L the length in m, ρ the density in g/cm³, m the weight in g and V the volume in cm³. The units line up because 1 mm² × 1 m = 1,000 mm³ = 1 cm³.
Assumptions
- The filament is a solid round cylinder of the diameter you enter, along its whole length.
- The density is the value you enter, in g/cm³. The page has no material list and does not guess one.
- Weight means filament only. The spool, packaging and any desiccant are not included.
- Real filament varies a little in diameter. Weight scales with the diameter squared, so a 1% diameter error moves the result by about 2%.
- Every result is an estimate rounded to four significant digits. The worked line shows your inputs exactly as you typed them, so only its results are rounded. Nothing you type leaves your browser.
- Estimator limits: diameter 0.1 to 10 mm, density 0.1 to 25 g/cm³, length or weight 0 to 10,000,000. Anything outside these gets a message, not a result.
Sources
- OpenStax, "10.7 Volume and Surface Area" (volume of a cylinder)
- OpenStax, "14.1 Fluids, Density, and Pressure" (density as mass per volume)
- NIST, "SP 330 - Section 3" (SI prefixes and units)
- TC39, "21.3.1.6 Math.PI" (the value of π used by the script)
- Prusa Knowledge Base, glossary entry "1.75 mm" (filament diameter)
Worked example with sample numbers: 1,000 g of 1.75 mm filament at a density of 1.24 g/cm³ gives 1,000 ÷ (1.24 × π × 0.875²) ≈ 335.3 m.