Filament weight ⇄ length ⇄ cost
calculate_filament_usageConvert filament grams to metres (and back), compute volume and cost, and estimate how much is left on a spool from its gross weight. Knows densities for PLA, PETG, ABS, ASA, TPU, Nylon, PC, CF blends. Give either grams or meters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grams | No | ||
| meters | No | ||
| material | No | pla, petg, abs, asa, tpu, nylon, pc, pla-cf, petg-cf, pa-cf … | pla |
| diameter_mm | No | ||
| density_g_cm3 | No | Override density if known. | |
| spool_price_usd | No | ||
| spool_weight_kg | No | ||
| empty_spool_weight_grams | No | Weight of the empty spool (typ. 130–250 g). | |
| spool_gross_weight_grams | No | Weight of spool + remaining filament, to estimate what is left. |