InspectMesh
Tools

Planning & calibration

3D Printer Fit Checker3D PrintersCompare 3D Printers3D Print Cost Calculator3D Printing Price CalculatorFilament Length CalculatorFlow Rate CalculatorTolerance & ClearanceShrinkage CalculatorOrientation PlannerBed Layout Planner

After slicing

G-code Viewer & Preflight
View all 3D tools
STL toolsSTL ViewerSTL Quality CheckerSTL Print Preflight CheckerSTL Repair ToolSTL Watertight CheckerSTL Manifold CheckerSTL Dimensions CheckerSTL Scale ToolSTL Wall Thickness CheckerSTL Overhang CheckerSTL SplitterSTL Volume CalculatorSTL Triangle CounterSTL File Size ReducerSTL to 3MF Converter
3MF tools3MF Viewer3MF Quality Checker3MF Print Preflight Checker3MF Repair Tool3MF Watertight Checker3MF Manifold Checker3MF Dimensions Checker3MF Wall Thickness Checker3MF Overhang Checker3MF Volume Calculator3MF Triangle Counter3MF to STL Converter
MaterialsGuidesExamplesContact
Home›Guides›Absolute vs relative extrusion in G-code

G-code interpretation

Absolute vs relative extrusion in G-code

With absolute extrusion, compare a command's E coordinate with the previous logical E position. With relative extrusion, each E word requests a change. G92 E0 resets the logical reference without requesting an ordinary extrusion move. Repeated E1 fields can therefore describe different paths. Establish the firmware, configuration and preceding mode commands before interpreting them.

Separate XYZ positioning from extrusion mode

G90/G91 address positioning; M82/M83 address extrusion mode in the documented contexts. XYZ-absolute movement can coexist with relative E, but command order matters. Marlin documents M82 as selecting absolute E and M83 as selecting relative E; its notes say G90/G91 clear that override. This is named Marlin behaviour, not a promise about all firmware.

The worked tables below use millimetres and non-volumetric E, with initial logical XYZ/E zero and the InspectMesh parser's disclosed state model. They do not describe volumetric E, tool mappings or macro execution. Klipper's command reference and macro state guidance provide separate configuration-specific context. Do not transfer mode-order assumptions between firmware families.

Read the retained absolute-E control

This is the existing absolute-extrusion analytical control, including its notice. It is incomplete and must never be executed on a printer. Line references below count from the notice as source line 1.

; ANALYTICAL ONLY - hand-authored InspectMesh control. NEVER EXECUTE ON A PRINTER.
G21
G90
M82
G92 E0
G1 X10 Y10 Z0.2 E1
G1 X20 Y10 E1
G92 E0
G1 X30 Y10 E1
Absolute E under the stated millimetre, non-volumetric assumptions
Original line Logical E before to after E change Parser interpretation
6: first XYZ line, E1 0 to 1 +1 mm Positive-E XYZ path
7: second XYZ line, E1 1 to 1 0 mm XYZ path without additional E advance
8: G92 E0 1 to 0, logical reset No commanded feed No ordinary XYZ/extrusion move
9: third XYZ line, E1 0 to 1 +1 mm Positive-E XYZ path

From the assumed XYZ origin, the first movement is diagonal in X, Y and Z: its length is √(10² + 10² + 0.2²), approximately 14.144 mm. It is not a 10 mm path. An E coordinate and a spatial path length describe different quantities.

Change only M82 to M83

The retained relative-extrusion companion changes source line 4 to M83 and leaves the three XYZ instructions and G92 resets unchanged. Each E1 motion field now requests +1 mm under the stated relative model.

Same instructions with relative E
Original line Logical E before to after Requested change
6: E1 0 to 1 +1 mm
7: E1 1 to 2 +1 mm
8: G92 E0 2 to 0 Logical reset only
9: E1 0 to 1 +1 mm

Executing the current InspectMesh parser on the retained files gives two extrusion moves and one travel move for absolute E, versus three and zero for relative E. Both retain recognised linear/extrusion coverage and unavailable duration/material declarations. These are software classification observations, not firmware runs, physical deposition measurements or complete job totals.

G92 changes the reference, not the consumed spool

Marlin G92 documentation describes setting logical position. E-only resets do not request an ordinary extrusion move. G92 XYZ also changes the coordinate frame; relating it to machine-space bounds is a separate question. InspectMesh marks XYZ resets as incomplete machine-space coverage and flags firmware-dependent E transitions, including G90/G91 after explicit E mode and M82 with relative XYZ. Follow incomplete-preview findings rather than clearing a warning because the picture looks familiar.

Positive E includes recovery, not just new part material

Separate hypothetical accounting example: start at logical E=1.00 in absolute millimetre E. E0.40 retracts 0.60; E1.00 restores 0.60; E1.20 advances a further 0.20. Positive deltas sum to 0.80 mm, including recovery of that retract. Net logical advance is 0.20 mm. Neither establishes complete consumption or part mass. Purge, prime, tool changes, volumetric E, firmware retraction, overrides and unsupported effects can introduce further accounting requirements.

If an independently established length is 1,000 mm of 1.75 mm solid filament, at illustrative density 1.24 g/cm³ its approximate mass is π × (1.75 / 2)² × 1000 / 1000 × 1.24 = 2.98255 g. The division by 1,000 converts mm³ to cm³. This original cylinder calculation converts a known length; it cannot recover that length from ambiguous G-code. Use the filament-length converter and the complete consumption workflow for their separate tasks.

Compare the existing examples locally

  1. Open the G-code viewer. It reads locally and sends no commands to hardware.
  2. Use its example selector to load the absolute-extrusion control deliberately. Loading replaces the current file/result; preserve unsaved exports first.
  3. Review per-metric coverage, the solid extrusion and dashed travel paths, then inspect original source lines around G92 in the source evidence.
  4. Load the relative companion and compare the same lines and move counts. No material or duration declaration becomes available merely by changing E mode.

Choose the next interpretation

Symptom Next action
Repeated E appears non-extruding Trace preceding E position and M82/M83 mode before interpreting the path.
Final E looks too small Find resets and retractions; do not substitute the coordinate for consumption.
A mode transition makes coverage incomplete Read the source finding and exact firmware/configuration in the original project/profile.
Material metadata is absent Obtain complete per-material slicer totals; leave the unknown declaration unavailable.

Command references reviewed 2 November 2026. Tables and accounting examples are original explanatory work. Preserve unfamiliar production G-code and return to its generating project/profile; these examples do not prescribe mode edits.

Get occasional updates on new tools and practical 3D-print guides.

Verification (required)

Enter your email to start verification.

Simple, browser-friendly tools for better 3D prints.

ExamplesPrivacyCookiesContact