Filament cost per gram and per meter
For a 1 kg spool, the cost per gram is simply the spool price divided by 1000: a 20 per kg spool costs 0.02 per gram, so a 50 g print uses 1.00 of filament. The catch is that slicers often report filament in meters, and how much a meter weighs depends on the material.
The formulas
- Cost per gram = spool price ÷ grams of filament on the spool (not counting the spool itself).
- Grams per meter (1.75 mm filament) = 2.405 × density in g/cm³. For 2.85 mm filament use 6.379 × density.
- Cost of a print = grams used × cost per gram, plus an allowance for purge, failed prints and supports you throw away.
2.405 is the volume in cm³ of one meter of 1.75 mm filament: π × (0.0875 cm)² × 100 cm. The same for 2.85 mm gives 6.379.
Density and grams per meter by material (1.75 mm)
Densities are the values Bambu Lab ships in its slicer profiles, which slicers use to turn length into weight. Other brands are close but not identical; check your spool's data sheet.
| Material (profile) | Density g/cm³ | Weight per meter | Meters per kg |
|---|---|---|---|
| PLA (Bambu PLA Basic) | 1.26 | 3.03 g | 330 m |
| PLA, matte (Bambu PLA Matte) | 1.32 | 3.17 g | 315 m |
| PLA-CF (Bambu PLA-CF) | 1.22 | 2.93 g | 341 m |
| PETG (Bambu PETG Basic) | 1.25 | 3.01 g | 333 m |
| PETG HF (Bambu PETG HF) | 1.28 | 3.08 g | 325 m |
| ABS (generic Bambu profile) | 1.04 | 2.50 g | 400 m |
| ASA (Bambu ASA) | 1.05 | 2.53 g | 396 m |
| PC (Bambu PC) | 1.185 | 2.85 g | 351 m |
| TPU 95A (Bambu TPU 95A) | 1.22 | 2.93 g | 341 m |
| PA6-CF (Bambu PA6-CF) | 1.1 | 2.65 g | 378 m |
So 1 kg of ASA is about a quarter longer than 1 kg of matte PLA. If you price by length, the material matters; if you price by weight, it doesn't.
Convert filament length to weight
Type a length or a weight and the other one updates. Useful when your slicer reports meters (Cura does) or when you want to know how much is left on a spool.
Cost per gram at your spool price
Works in any currency. Assumes 1 kg of filament on the spool.
| Spool price | Per gram | 10 g | 50 g | 100 g | 250 g |
|---|---|---|---|---|---|
| 15 per kg | 0.015 | 0.15 | 0.75 | 1.50 | 3.75 |
| 20 per kg | 0.020 | 0.20 | 1.00 | 2.00 | 5.00 |
| 25 per kg | 0.025 | 0.25 | 1.25 | 2.50 | 6.25 |
| 30 per kg | 0.030 | 0.30 | 1.50 | 3.00 | 7.50 |
| 40 per kg | 0.040 | 0.40 | 2.00 | 4.00 | 10.00 |
| 60 per kg | 0.060 | 0.60 | 3.00 | 6.00 | 15.00 |
| 80 per kg | 0.080 | 0.80 | 4.00 | 8.00 | 20.00 |
Example: a real two-plate print
A Bambu Studio file with two plates (two_plates_h2c.gcode.3mf, from a public test suite) reports 149.85 g of filament in total. At 20 per kg that is 3.00, at 30 per kg 4.50. With a 5% waste allowance: 3.15 and 4.72. Open this print in the calculator to add electricity, wear, labor and fees with your own rates.
What people forget
- Waste. Purge towers, multi-color flushing, brims, supports and the occasional failed print are paid for too. A 5 to 10 percent allowance is a common starting point; multi-color prints can waste far more.
- Spool weight. "1 kg" means 1 kg of filament; the empty spool weighs extra. Some cheaper spools hold less, such as 800 g, so divide by what is actually on it.
- Shipping and tax on the filament belong in the price per kg.
Skip the arithmetic. Drop a sliced file (G-code, .bgcode, 3MF or .ufp) into the free 3D print cost calculator. It reads the filament used straight from your slicer, applies your spool price and waste allowance, and adds electricity, wear, labor and fees. Your file never leaves your browser.
Sources
- Example file:
two_plates_h2c.gcode.3mffrom BambuMate test fixtures (Bambu Studio 02.08), read with this calculator's parser: 149.85 g, 9,295 s. - Bambu Lab filament profiles as shipped in OrcaSlicer: resources/profiles/BBL/filament (
filament_densityin each@baseprofile; ABS from the genericfdm_filament_absprofile). - Weight per meter calculated from the nominal 1.75 mm and 2.85 mm diameters.
Densities checked 10 October 2026. Written by an AI agent (Claude) from the sources above.