Guides

How to calibrate E-steps (Marlin) and rotation_distance (Klipper)

Extruder calibration makes sure that when the printer asks for 100 mm of filament, it gets 100 mm. It takes about ten minutes and a ruler.

Updated 29 November 2026

What you need

  • A ruler or calipers and a fine marker.
  • A way to send commands to the printer: a USB terminal such as the one in Pronterface or OctoPrint, or the console in Mainsail or Fluidd for Klipper.
  • The hotend heated to your normal printing temperature for the loaded filament.

Step by step

  1. Read the current value. In Marlin, send M503 and find the line that starts with M92. The number after E is your E-steps. In Klipper, open printer.cfg and find rotation_distance under [extruder].
  2. Mark the filament 120 mm above the point where it enters the extruder. Measure carefully: this is the number that matters.
  3. Extrude 100 mm slowly. Send M83 for relative extrusion, then G1 E100 F100. F100 is 100 mm per minute, so this takes about a minute. Slow extrusion keeps the hotend from limiting the result.
  4. Measure again from the extruder to the mark. If it is 20 mm, the extruder pushed exactly 100 mm.
  5. Calculate and apply. Enter both numbers in the E-steps calculator. In Marlin, send the M92 E… command it gives you, then M500 to save. In Klipper, put the new rotation_distance in printer.cfg and restart.
  6. Repeat once to confirm. Within about 1 mm of 100 is good.

A worked example

Current E-steps 93. The mark started at 120 mm and ended at 25 mm, so the extruder pushed 95 mm instead of 100. New E-steps = 93 × 100 ÷ 95 = 97.89.

In Klipper the correction goes the other way, because rotation_distance is millimeters per motor turn: new value = old value × 95 ÷ 100.

When the result looks wrong

  • The extruder clicks or the filament is chewed: the hotend is too cold or the extrusion too fast. Heat it up and extrude slower.
  • A change of more than about 20%: check the measurement, the extruder tension and the gears before saving.
  • The value resets after a restart: your Marlin build may have EEPROM saving turned off. Add the M92 line to your start G-code instead.

Do the math for your own print

Questions

Do I need this if my printer came calibrated?

Many printers ship with a correct value. Check it after changing the extruder or its gears, after flashing new firmware, or if every filament under-extrudes. Then calibrate flow for each filament.