# Filament length and weight > How much filament is on my spool? Convert filament mass and length using diameter and material density. Convert 3D printing filament weight to length or length to weight using diameter and an editable material density, with the spool excluded. - Page: https://how.box/filament/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/filament/?mode={mode}&mass={mass}&length={length}&diameter={diameter}&material={material}&density={density} - `mode` (length or mass): Calculate: length, mass. Example: `length`. - `mass` (number 0 to 100000): Net filament mass, g, 0 to 100000. Example: `1000`. - `length` (number 0 to 100000): Filament length, m, 0 to 100000. Example: `100`. - `diameter` (number 0.1 to 10): Filament diameter, mm, 0.1 to 10. Example: `1.75`. - `material` (pla, petg, abs or custom): Material density example: pla, petg, abs, custom. Example: `pla`. - `density` (number 0.1 to 25): Custom density, g/cm³, 0.1 to 25. Example: `1.25`. Example answer: https://how.box/filament/?mode=length&mass=1000&length=100&diameter=1.75&material=pla&density=1.25 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `filament_calculate`: Convert 3D printing filament weight to length or length to weight using diameter and an editable material density, with the spool excluded. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"filament_calculate","arguments":{"mode":"length","mass":1000,"length":100,"diameter":1.75,"material":"pla","density":1.25}}}` - GET: https://how.box/mcp/run/filament_calculate?mode=length&mass=1000&length=100&diameter=1.75&material=pla&density=1.25 ## How it works Treat uniform round filament as a cylinder. Mass m equals density ρ multiplied by cross-sectional area π(d/2)² and length L. The calculation converts millimetres and metres into centimetres so density can be entered in g/cm³. Material examples are approximate product values, not universal polymer constants. PLA uses the midpoint 1.25 of the supplier’s 1.20–1.30 range. Additives, foaming, moisture and diameter variation change the result. Cost and infill-based print weight are not included. ## FAQ **Should I include the spool weight?** No. Subtract the empty spool before entering the net filament mass. **Are all PLA filaments the same density?** No. The example uses the midpoint of one supplier’s range. Use Custom density for a specific grade. **Why does diameter matter so much?** Cross-sectional area depends on diameter squared, so a small diameter difference changes mass per metre. **Does infill change this conversion?** No. This converts solid filament before extrusion; model infill is a separate print-planning input. **Can I use filled or foaming filament?** Use a supplier density relevant to that product, but expect uncertainty if the filament structure or extrusion changes volume. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)