E-steps calibration: one measured test for Marlin and Klipper, and when to skip it
By Sina Esfahani, OmniTechs · Published 27 November 2026
E-steps (Marlin) and rotation_distance (Klipper) tell the firmware how far the filament moves when the extruder motor turns. They describe the extruder hardware: the drive gear, any gearing and the microstepping. Calibrate them after you change the extruder, drive gear, motor or driver, or once on a kit printer that pushes measurably too much or too little.
The test is the same in both firmwares: mark the filament, extrude a known length slowly, measure what actually went in, and scale the setting. On a factory-built Prusa or Bambu Lab printer you normally skip it. Differences between filaments are a flow setting, not a steps setting.
Calibrate it in this order:
Check you need it: after an extruder hardware change or on a kit printer, not for a new spool.
Fix clogs, nozzle temperature and idler tension first, or you calibrate the fault in.
Heat to your print temperature plus 10 °C and extrude very slowly, or detach the hotend so nothing restricts the filament (Teaching Tech).
Marlin: mark the filament 120 mm above the extruder, send M83, then G1 E100 F50, and measure what is left.
Klipper: mark about 70 mm from the intake, send G91, then G1 E50 F60, and measure again.
Scale it: Marlin new = old × 100 ÷ actual length; Klipper new = old × actual length ÷ 50.
Save (M92 E and M500, or printer.cfg and RESTART) and repeat the test once to confirm.
Do you need to calibrate at all?
When an extruder calibration makes sense
| Situation | Calibrate e-steps or rotation_distance? | Why |
|---|---|---|
| New Prusa or Bambu Lab printer with its stock extruder | No | The maker sets it; Prusa and Bambu Lab point to flow and other calibrations first |
| Extruder, drive gear, motor or driver replaced | Yes | The hardware the value describes has changed |
| Kit or budget printer that measures short or long | Yes, once | Teaching Tech treats it as a base calibration |
| New filament brand or colour | No; calibrate flow | Steps describe the hardware, not the filament |
| Under-extrusion on a printer that used to work | Not first | A clog, a cold nozzle or a slipping gear gives the same symptom |
A calibrated extruder moves a fixed length of filament per turn of its gear, whatever the filament's diameter, so the steps only need recalibrating when the extruder hardware changes (3D Printing Stack Exchange). Klipper adds one nuance: the gear's grip varies from printer to printer and can even vary between spools. That small difference is what flow calibration is for.
Fix the hardware first
The test measures everything between the gear and the nozzle tip. If the nozzle is partly blocked, too cold or the gear slips, you bake that fault into the setting. A forum user calibrated e-steps through the hot nozzle and then found the extruder skipping. The answer: extruding through the nozzle mixes temperature, speed and grip into the result, so calibrate with the Bowden tube disconnected and set flow per filament afterwards. Check for clogs, temperature and idler tension first, as described in under-extrusion causes and fixes.
Two ways to keep the hotend out of the measurement:
Detach the extruder from the hotend so the filament exits in free air (Teaching Tech). On a Bowden printer, disconnect the tube at the extruder output (Creality). Switch the printer off and unplug it before you detach anything.
If that is awkward, extrude very slowly at your print temperature plus 10 °C (Teaching Tech). Klipper insists on the slow rate too, because a faster one builds pressure and skews the result. Do not use the extrude button of a web interface: it runs too fast.
You need a caliper or ruler, a fine marker and a way to send commands: a terminal such as Pronterface or OctoPrint for Marlin, or the console of your Klipper web interface.
Marlin: e-steps with M92 and M500
Send M92 (or M503 on older Marlin) and note the number after E.
Raise the nozzle clear of the bed and heat it. Marlin refuses to extrude below its minimum temperature when cold-extrusion protection is on; M302 reports that setting.
Send M83 to make only the extruder relative. Teaching Tech uses G91 instead, which makes every axis relative.
Mark the filament 120 mm above the point where it enters the extruder.
Send G1 E100 F50 to push 100 mm at 50 mm per minute. It takes two minutes.
Measure from the extruder entry to the mark. 20 mm left means exactly 100 mm went in.
New e-steps = old e-steps × 100 ÷ (120 − what is left).
Set it with M92 E followed by the new value and save with M500, which writes the settings to EEPROM.
Repeat the test. Afterwards send G90 or M82 to return to absolute mode, or simply restart.
On a stock Ender-3 you can do the same from the screen: Control → Motion → Steps/mm → E-steps, then Control → Store Settings (Creality). Prusa has disabled saving with M500 on some printers such as the MINI; there the M92 line goes into the slicer's start G-code (Teaching Tech).
Worked example (Marlin)
Your printer reports 93 steps/mm. After G1 E100 F50, 25 mm is left before the mark, so 120 − 25 = 95 mm went in. New e-steps = 93 × 100 ÷ 95 ≈ 97.89; that is Creality's own Ender-3 example. Send M92 E97.89, then M500, and test again.
Teaching Tech's calibration video covers this procedure from 7:02.
Klipper: rotation_distance
Klipper's test uses 50 mm, not 100 mm. That matches its default limit: an extrude-only move longer than max_extrude_only_distance, 50 mm, returns an error. Klipper also refuses extruder moves below min_extrude_temp, 170 °C by default.
With filament loaded and the hotend heated to a suitable temperature, mark the filament about 70 mm from the extruder intake. Measure that distance precisely.
Send G91, then G1 E50 F60. The move takes about 50 seconds.
Measure the distance to the mark again. Actual length = first measurement − second measurement.
New rotation_distance = old rotation_distance × actual length ÷ 50. Round to three decimals.
If the actual length differs from 50 mm by more than about 2 mm, repeat the test with the new value.
Put the value in the extruder section of printer.cfg and send RESTART to reload the configuration.
The direction is the reverse of Marlin's. Rotation_distance is millimetres per motor turn, the inverse of steps per millimetre, so too little filament means a smaller value.
Worked example (Klipper)
The mark sits 70.00 mm from the intake. After the move it sits 18.85 mm away, so 70.00 − 18.85 = 51.15 mm went in. With an old value of 32.135: 32.135 × 51.15 ÷ 50 = 32.874. Joe Prints works through these exact numbers for Klipper and Marlin.
Moving from Marlin? Klipper's conversion: rotation_distance = full steps per rotation × microsteps ÷ steps per mm. For a 1.8° motor (200 full steps) at 16 microsteps and 93 steps/mm, that is 200 × 16 ÷ 93 ≈ 34.409. Geared extruders use a separate gear_ratio setting; Klipper warns that BMG gears sold as 3:1 actually use 50:17.
Marlin and Klipper side by side
| Step | Marlin | Klipper |
|---|---|---|
| Setting | E steps per mm | rotation_distance in the extruder section |
| Read the current value | M92, or M503 on older versions | printer.cfg |
| Relative extrusion | M83 | G91 |
| Test move | G1 E100 F50, mark at 120 mm | G1 E50 F60, mark at about 70 mm |
| Too little filament means | a larger value | a smaller value |
| New value | old × requested ÷ actual | old × actual ÷ requested |
| Save | M500 | edit printer.cfg, then RESTART |
After calibration: flow is a separate setting
E-steps fix the length of filament the extruder pushes. Flow corrects how one filament behaves. Stack Exchange answers on calibrating for a new filament agree: do not recalibrate the steps per spool; adjust the filament diameter or flow in the slicer instead. Prusa describes its extrusion multiplier as that setting, with typical values between 0.9 and 1.1, and Bambu Lab's flow rate calibration (Calibration → Flow Rate in Bambu Studio) does the same job. The method is in flow rate calibration.
Prusa, Bambu Lab and other factory-tuned printers
Prusa says its extrusion multiplier calibration is not needed on a new printer from the factory. When a reader asked for an e-steps guide, Prusa's support replied that for under-extrusion not caused by hardware or filament it suggests the extrusion multiplier calibration instead, as it has the same effect. Bambu Lab says mechanical tolerances on its printers with its own filament are minimal, so defects more likely come from other calibrations, and advises keeping the default flow ratio for its filaments. Its flow rate and under-extrusion guides do not mention extruder steps at all. On other closed or Klipper-based printers, read the maker's documentation before editing configuration files; firmware choices are compared in printer firmware: stock, Marlin or Klipper.
Common mistakes
Calibrating through a hot nozzle at normal speed. The result then depends on temperature and back-pressure, not only on the hardware.
Using the extrude button of a Klipper web interface. It runs too fast for this test (Klipper).
Recalibrating the steps for every new spool. That is flow's job.
Lowering the steps to stop a skipping extruder. It hides a clog or a too-fast print and leaves every line thin.
Forgetting to save. Without M500 the new Marlin value is gone after a restart.
When to stop, and where to go next
A big correction on stock hardware is a warning sign, not a result. If a printer that used to print well suddenly measures far off, look for slipping or a blockage before you save anything; extruder clicking or skipping covers those causes. If you need the part rather than the practice, the 3D printing service prints PLA and PETG parts from your file.
Sources
Prusa Knowledge Base: Under-extrusion (with Prusa's reply on e-steps)
3D Printing Stack Exchange: How do I calibrate the extruder of my printer?
3D Printing Stack Exchange: Calibrating E steps for new filament
3D Printing Stack Exchange: Calibrated Esteps Causes Extruder Skipping
Teaching Tech: 3D printer calibration revolutionised (YouTube)
Joe Prints: Extruder steps and rotational distance calibration (YouTube)

