Workshop & Manufacturing
3D Printing Filament Length, Mass & Material Cost Calculator
Relate solid round filament length, density and material cost, including an available-stock check.
How the calculation works
Required solid material volume = pi*diameter**2/4*length cm³. Required filament mass = pi*diameter**2/4*length*density g. Consumed material cost = pi*diameter**2/4*length*density/1000*price currency. Remaining stock mass = available-pi*diameter**2/4*length*density g.
Worked example
Example inputs — Measured filament diameter (mm): 2; Required filament length (m): 100; Material density (g/cm³): 1.2; Material price (currency/kg): 20; Available filament mass (g): 500. Expected results — Required solid material volume: 314.1592654 cm³; Required filament mass: 376.9911184 g; Consumed material cost: 7.539822369 currency; Remaining stock mass: 123.0088816 g.
Assumptions and limits
Uniform solid circular filament with user-entered density. Spool mass, supports, purge and failed prints must be accounted for in the required length. Price is hypothetical editable input; labour and machine cost are excluded.
Reference and further reading
Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.
Related calculators
- Milling Speed, Feed, Removal & Time Calculator
- Turning Pass Time, Removal & Finish Calculator
- Ball Nose Effective Diameter & Scallop Calculator
- Radial Chip Thinning Feed Correction Calculator
- Drill Point, Feed Travel & Time Calculator
Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.