Estimate material use from an existing G-code file
- Choose the G-code produced by your slicer.
- Set filament diameter and material density.
- Analyze extrusion, review the usage report and compare it with your slicer’s summary.
Worked example
For 1.75 mm PLA filament, use diameter 1.75 and density 1.24 g/cm³. The same extrusion length gives a different weight when diameter or density changes.
Input and output
Choose the text G-code that will actually be sent to the printer. The browser reads extrusion moves and converts filament length into an estimated volume and weight using your diameter and material density. A model file alone cannot provide those extrusion moves. Keep the slicer's own material summary for comparison.
Format and size limits
The reader recognizes common absolute and relative extrusion commands and extrusion resets. Layer counts depend on comments written by the slicer. A job can contain valid movements even if it lacks those comments, so a missing layer count is a poor indicator of an empty print.
If processing fails
For a large discrepancy, first confirm that the selected diameter matches the filament, then check the extrusion mode and whether the file uses firmware-specific commands. If no moves are found, open the file as text and confirm it contains sliced toolpaths. A binary or compressed export needs conversion in the slicer first.
Questions about this tool
Why does the result differ from my slicer?
Retractions, firmware modes and slicer-specific instructions can affect extrusion accounting. Prefer the slicer’s own material report when available.
Can this tell whether G-code is safe for my printer?
No. It estimates extrusion usage; it does not validate printer dimensions, temperatures, firmware commands or safe movement.
How it works
Parses G0/G1 extrusion moves, M82/M83 absolute or relative extrusion and G92 resets. Calculates material volume from diameter and density.
Important limitations
Firmware flavor, retractions, advanced modes and slicer comments may differ. Slicer reported material is more authoritative.
