Nozzle School

Nozzle School · Guides

E-Steps Calibration: Marlin M92 and Klipper rotation_distance

How to calibrate extruder E-steps: the 100 mm mark test, the maths, Marlin M92, M503 and M500, and the Klipper rotation_distance equivalent.

Next level19 min readby Sam

E-steps calibration checks that your extruder pushes exactly the length of filament it’s told to. You mark the filament 120 mm above the extruder, heat the nozzle, extrude 100 mm slowly and measure what’s left: if 20 mm remains, it’s right. If not, the new value is old E-steps × 100 ÷ the length that actually went in, which you set with M92 E… and save with M500 on Marlin. Klipper uses rotation_distance instead, which works the other way round: new = old × actual ÷ requested.

This guide explains what E-steps are, which printers need the test, the step-by-step for Marlin and Klipper with the exact commands, worked examples of the maths, the mistakes that give wrong answers, and what to do when the number won’t settle. It’s the firmware half of extruder calibration; the slicer half is flow rate calibration, and you do this one first.

E-steps at a glance

Question Short answer
What is it? How many motor steps the firmware sends to push 1 mm of filament
Who needs it? Older and modified printers, especially after an extruder upgrade
Who can usually skip it? Bambu Lab, Prusa MK4 / Core One, Creality K-series, and any stock printer that prints well
The test Mark at 120 mm, extrude 100 mm slowly, measure what’s left
Marlin formula New E-steps = old × 100 ÷ actual length
Klipper formula New rotation_distance = old × actual ÷ requested
Marlin commands M503 to read, M92 E… to set, M500 to save
Klipper setting rotation_distance in [extruder] in printer.cfg
Good result Within about 1 mm of 100 mm (1%)

What E-steps actually are

The extruder is a stepper motor that turns a small toothed drive gear. The gear grips the filament and pushes it toward the hotend. A stepper motor moves in fixed steps: a common motor has 200 full steps per turn, and the driver usually splits each full step into 16 smaller microsteps, so one turn is 3,200 microsteps.

How far one turn pushes the filament depends on the drive gear’s effective diameter, and on any gear reduction between the motor and the drive gear. The firmware can’t know that on its own, so you tell it:

  • Marlin stores steps per millimetre for each axis. For the extruder this is the E-steps value, often written as E93 or E415.
  • Klipper stores rotation_distance: how many millimetres of filament one full turn of the motor (or of the gearbox output, if you set a gear_ratio) moves.

They describe the same thing from opposite ends, which is why their formulas are upside down relative to each other:

rotation_distance = full steps per rotation × microsteps ÷ steps per mm

For a stock Ender-3 at 93 steps/mm with a 200-step motor at 16 microsteps: 200 × 16 ÷ 93 = 34.409 mm per turn.

clamp 19 N · grips · fed 0.0 of 0 mm · mark at 120.0 mm

  • drag ↕ tension (thumb nut)
  • ↑ ↓ tension ±1 turn, 0–6
  • Space feed 100 mm (E-steps test); again to re-mark
  • R retract 5 mm
  • − + firmware E-steps ±1 (80–110)
  • Home reset
Two hobbed gears clamp the 1.75 mm filament: the motor turns the lower one, its spur teeth turn the upper one, and both bite. Turning forward pushes filament in; turning back retracts it. The thumb nut sets the clamp: too loose (about 6 N here) and the gears slip and grind the filament; too tight (over about 26 N) and they flatten it and push slightly less per turn. The pen mark starts 120 mm before the inlet; ask for 100 mm and about 20 mm should be left on the rule. If it isn't, new E-steps = old E-steps × 100 ÷ the length that really went in. Forces come from a simple model; the feed is sped up.

E-steps or flow rate: which one to change

There are two settings that change how much plastic comes out, and they belong to different things:

E-steps / rotation_distance Flow rate (flow ratio, extrusion multiplier)
Where it lives Printer firmware Slicer filament profile
What it describes The extruder hardware The filament
What it affects Every move of the extruder: printing, retraction, priming, loading Only printing moves the slicer plans
How often it changes When you change the extruder, drive gear or motor With each new filament
How you test it Extrude a measured length Print and look at, or measure, the result

That’s why you calibrate E-steps first. If the extruder pushes 5% too little and you make up for it with a 105% flow rate, every new filament starts from a wrong baseline, and your retraction distances are 5% shorter than the numbers in the slicer. Get the hardware right, then fine-tune the filament.

Do you need to calibrate E-steps?

Probably yes if:

  • You’ve replaced or upgraded the extruder, the drive gear or the extruder motor.
  • You’ve reflashed the firmware, and the extruder value might have reset.
  • It’s an older budget printer and every filament looks under-extruded, even after a temperature tower and a clean nozzle.
  • You see a mismatch between what the slicer asks for and what comes out, and you’ve ruled out the filament.

Probably not if:

  • You have a Bambu Lab, Prusa MK4 / Core One or Creality K-series printer and haven’t modified the extruder. These ship calibrated, and some don’t let you change the value at all; Bambu printers handle extrusion with their own flow calibrations instead.
  • Your prints look right with flow rates in the normal range (about 0.92–1.05).

Typical starting values

These are makers’ published values for common extruders on a 1.8° motor at 16 microsteps. Use them as a starting point after an upgrade, then run the test.

Extruder Typical E-steps Why
Creality Ender-3 / Ender-3 V2 stock (single gear, Bowden) 93 Direct from the motor, no gear reduction
Creality Sprite (direct drive, geared) about 424.9 Geared dual-drive, so many more steps per mm
Bondtech BMG and BMG clones (3:1 geared) 415 Bondtech’s published value

If your motor is 0.9° per step (400 steps per turn) or the driver uses 32 microsteps, the value doubles. A geared extruder needs several times the steps of a direct one, so a value of 93 on a geared extruder, or 415 on a stock Ender, is the classic sign of a firmware that wasn’t updated after an upgrade.11Klipper’s documentation points out that the BMG’s gears are sold as “3:1” but are really 50:17, which is why Klipper configs use gear_ratio: 50:17 for it.

What you need

  • A way to send G-code commands to the printer. For Marlin: a USB cable and a terminal such as Pronterface, OctoPrint’s terminal, or the printer’s own console if it has one. For Klipper: the console in Mainsail or Fluidd.
  • A fine marker or a small piece of tape.
  • A ruler or, better, digital calipers. Calipers make the 20 mm measurement far easier to read.
  • Filament loaded, ideally the PLA you print most.
  • 10–15 minutes.
A digital caliper with a stainless steel body and a small LCD display, on a white background
Digital calipers make the measurement easy: hold the depth end against the extruder's inlet and read the distance to the mark.Photo: Jacek Halicki ·CC BY-SA 4.0 ·Wikimedia Commons

How to calibrate E-steps on Marlin

1. Read the current value

Connect to the printer and send:

M503

The printer replies with its stored settings. Look for a line that starts with M92, for example:

echo:  M92 X80.00 Y80.00 Z400.00 E93.00

The number after E is your current E-steps. Write it down. You can also find it on many printers’ LCD menus, usually under Configuration or Control → Motion → Steps/mm, though the exact name depends on the firmware build.

2. Heat the nozzle

Heat to your normal printing temperature for this filament, for example 200 °C for PLA, and wait:

M109 S200

Marlin won’t move the extruder below its minimum extrusion temperature (170 °C by default), and testing at your real temperature means the hotend offers its normal resistance.

3. Mark the filament

Measure 120 mm up the filament from where it enters the extruder, and make a clear, thin mark. Measure from a fixed point you can find again: the top of the extruder housing or the hole where the filament enters.

4. Extrude 100 mm slowly

Switch the extruder to relative mode, then ask for 100 mm at 100 mm per minute:

M83
G1 E100 F100

M83 makes E100 mean “push 100 mm from where you are now”, not “go to position 100”. F100 is the feed rate in millimetres per minute, so this is about 1.7 mm/s and takes roughly a minute. Wait until the motor stops completely.

5. Measure what’s left

Measure from the same fixed point to your mark.

  • 20 mm left: the extruder pushed exactly 100 mm. You’re done.
  • Less than 20 mm: it pushed more than 100 mm (over-extruding).
  • More than 20 mm: it pushed less than 100 mm (under-extruding).

The length that actually went in is 120 minus what’s left.

6. Work out the new value

New E-steps = old E-steps × 100 ÷ actual length

7. Set it and save it

Send the new value, then save it to memory:

M92 E91.18
M500

M92 changes the value straight away. M500 writes all settings to the printer’s memory (EEPROM), so the value survives a power cycle. Send M503 again to confirm the M92 line now shows the new number.

8. Test again

Make a new mark at 120 mm and repeat steps 4 and 5. Within about 1 mm of 100 (19–21 mm left) is a good result. If it’s still off, recalculate from the new value, not the original one.

Worked examples (Marlin)

Over-extruding. Old E-steps 93. After extruding, 18 mm is left, so the extruder pushed 120 − 18 = 102 mm.

New E-steps = 93 × 100 ÷ 102 = 91.18

Fewer steps per millimetre, so the motor turns a little less for each millimetre the slicer asks for.

Under-extruding. Old E-steps 93. After extruding, 25 mm is left, so it pushed 120 − 25 = 95 mm.

New E-steps = 93 × 100 ÷ 95 = 97.89

More steps per millimetre, so the motor turns a little more.

After an upgrade. You fitted a BMG-style geared extruder and set 415 as a starting point. The test leaves 23 mm, so it pushed 97 mm.

New E-steps = 415 × 100 ÷ 97 = 427.84

A 3% difference is normal for a new extruder: the drive gear’s teeth bite into each filament a little differently, so the real effective diameter differs from the one on paper.

Left after extruding Actual length New value (from old 93) Change
15 mm 105 mm 88.57 −4.8%
18 mm 102 mm 91.18 −2.0%
20 mm 100 mm 93.00 none
22 mm 98 mm 94.90 +2.0%
25 mm 95 mm 97.89 +5.3%

If M500 doesn’t save

If M500 replies with something like “EEPROM disabled”, or your new value disappears after a restart, the firmware was built without EEPROM_SETTINGS. You have two options:

  • Put the command in your slicer’s start G-code, for example M92 E91.18 near the top, so every print sets it. This is the quick fix.
  • Rebuild the firmware with the new DEFAULT_AXIS_STEPS_PER_UNIT value, or with EEPROM support turned on.

M502 resets every setting to the firmware’s built-in defaults, including E-steps. If you ever send it, check E-steps again before printing, and send M500 if you want the defaults saved.

How to calibrate rotation_distance on Klipper

Klipper follows the same idea with three differences: the value is rotation_distance, the test uses 50 mm instead of 100 mm, and you save the result in printer.cfg.

Why 50 mm?

Klipper limits any extrude-only move to max_extrude_only_distance, which defaults to 50 mm. A single G1 E100 asks for twice that, and Klipper rejects it with an “Extrude only move too long” error. Klipper’s own guide uses 50 mm for that reason. You can extrude 50 mm twice if you want a longer measurement.

The steps

  1. Heat the nozzle to printing temperature, for example M109 S200. Klipper’s minimum extrusion temperature is 170 °C by default.
  2. Mark the filament about 70 mm above the extruder inlet, and measure that distance as exactly as you can with calipers. That’s your initial mark distance. Klipper’s guide suggests about 70 mm; any known distance a bit over 50 mm works.
  3. Extrude 50 mm slowly:
G91
G1 E50 F60

G91 makes all moves relative; F60 is 60 mm per minute, or 1 mm/s. Klipper’s documentation stresses using this slow rate and not the extrude button in Mainsail or Fluidd, which extrudes fast.

  1. Measure the mark again once the motor stops. That’s your subsequent mark distance.
  2. Work out what went in: actual = initial mark distance − subsequent mark distance.
  3. Calculate the new value:

New rotation_distance = old rotation_distance × actual ÷ 50

Round to three decimal places, as Klipper’s guide suggests.

  1. Save it. Open printer.cfg, find the [extruder] section, change rotation_distance, save and send RESTART. Send G90 afterwards, or just restart, so later moves aren’t relative.

Worked example (Klipper)

The current value is rotation_distance: 34.409. You mark at 70.0 mm, extrude 50 mm, and the mark is now 22.0 mm from the inlet. Actual = 70.0 − 22.0 = 48.0 mm.

New rotation_distance = 34.409 × 48.0 ÷ 50 = 33.033

Note the direction. The extruder pushed less than asked, and the new rotation_distance is smaller. A smaller rotation_distance means “each turn moves less filament than I thought”, so Klipper turns the motor further for each millimetre. Marlin’s E-steps would go up in the same situation. That’s the most common mix-up when people move between the two.

Pushed too little Pushed too much
Marlin E-steps Goes up Goes down
Klipper rotation_distance Goes down Goes up

Trying a value without editing the file

SET_EXTRUDER_ROTATION_DISTANCE EXTRUDER=extruder DISTANCE=33.033 changes the value until the next restart, which is handy for a second test. Sent without DISTANCE, it reports the current value. It’s lost on a restart, so copy the final number into printer.cfg.

Converting a Marlin value

If you’re moving a printer from Marlin to Klipper, convert the E-steps you already trust:

rotation_distance = 200 × 16 ÷ E-steps (for a 1.8° motor at 16 microsteps)

So 93 E-steps becomes 34.409, and 415 becomes 7.711. For a geared extruder you can enter the result directly, or set gear_ratio and the drive gear’s own rotation_distance; Klipper’s documentation recommends leaving gear_ratio unset if you’re not sure. Either way, run the test afterwards.

Optional: test without the hotend

Some people measure E-steps with the nozzle out of the path: on a Bowden printer, they disconnect the tube at the hotend end and extrude into the air; on a direct drive, they remove the hotend. This measures the extruder alone, with no resistance from the nozzle at all.

It’s a valid check of the hardware, but it isn’t what your printer sees when printing, and on Marlin you’d need M302 P1 to allow extrusion with a cold hotend. For most people, extruding slowly through a hot nozzle, as above, is simpler and close enough. If the two methods disagree by more than a percent or two, the hotend is offering more resistance than it should: look for a partial clog or a temperature that’s too low.

Common E-steps mistakes

Mistake What goes wrong Do this instead
Extruding fast The hotend resists, gears slip, the result reads low 100 mm/min on Marlin, 60 mm/min on Klipper
Measuring from a different point the second time A millimetre or two of error Use one fixed reference, such as the top of the extruder
Thick marker line You can’t tell where the mark is A fine marker, or the edge of a piece of tape
Forgetting M83 (Marlin) G1 E100 moves to position 100, which may not be 100 mm Send M83 first
Sending G1 E100 on Klipper “Extrude only move too long” error Use 50 mm, Klipper’s default limit
Forgetting M500 The new value is lost when you switch off Save, then check with M503
Mixing up Marlin and Klipper directions The error gets worse, not better E-steps and rotation_distance move in opposite directions
Calibrating to cover a clog or a slipping extruder A value that’s wrong once the fault is fixed Fix the hardware, then calibrate
Then using flow rate far from 1.0 E-steps and flow fighting each other After E-steps, flow should land near 0.92–1.05

When the number won’t settle

If you calibrate, re-test and get a different answer each time, the extruder isn’t moving filament consistently, and the fault is mechanical:

  1. Extruder tension. Too loose and the gears slip; too tight and they crush and flatten the filament, which changes how far each turn moves it. Most extruders have a tension screw or knob; set it to the maker’s mark if there is one. See extruder clicking.
  2. Dirty drive gear. Plastic dust packs into the teeth over time. Brush it out with a small stiff brush while the extruder is open.
  3. Worn or loose drive gear. On cheap extruders the gear can wear, or its grub screw can work loose on the motor shaft, so it slips on the shaft itself.
  4. A cracked extruder arm. The plastic arm on many stock Creality extruders is known to crack near the pivot, which loses grip. Look closely at it.
  5. Spool drag. A spool that’s hard to turn or a tangled loop means the extruder has to pull the filament off the spool, which can rob it of a millimetre or two. See under-extrusion.
  6. A partial clog. If extruding slowly still meets resistance, clean the nozzle. See how to unclog a 3D printer nozzle.
  7. Heat creep. On direct drive printers, a failing hotend fan lets the filament soften above the heat break, so it squashes rather than moving cleanly.

Once the hardware is sound, two or three runs of the test should agree within a millimetre.

What to do after E-steps

  1. Flow rate. Now the extruder pushes the right length, run a flow rate calibration for each filament. Expect a value close to 1.0.
  2. Retraction. A changed E-steps value changes the real length of every retraction, so recheck it with a retraction test.
  3. Pressure advance, if your printer uses it, since it depends on how much filament the extruder really moves.

The full sequence is in how to calibrate a 3D printer. If you’re not sure which parts of your printer are which, parts of a 3D printer walks through them, and Bowden vs direct drive covers the two extruder layouts.

Your action plan

  1. Only calibrate if you need to: an older or modified printer, or a fresh firmware flash.
  2. Read the current value with M503 (Marlin) or from printer.cfg (Klipper).
  3. Heat the nozzle to printing temperature.
  4. Mark at 120 mm (Marlin) or about 70 mm (Klipper), measured from a fixed point.
  5. Extrude slowly: M83 then G1 E100 F100 on Marlin; G91 then G1 E50 F60 on Klipper.
  6. Measure and calculate: Marlin, old × 100 ÷ actual; Klipper, old × actual ÷ 50.
  7. Set and save: M92 E… then M500; or edit rotation_distance and RESTART.
  8. Repeat until you’re within about 1 mm.
  9. Then calibrate flow rate and retraction for each filament.

FAQ

What are E-steps on a 3D printer?

The number of stepper motor steps the firmware sends to the extruder to push 1 mm of filament. Marlin calls it steps per mm for the E axis; Klipper uses rotation_distance, the millimetres of filament moved per motor turn.

How do I calculate new E-steps?

New E-steps = old E-steps × 100 ÷ the length that actually went in. If you marked 120 mm and 18 mm is left, 102 mm went in, so an old value of 93 becomes 93 × 100 ÷ 102 = 91.18.

What is the default E-steps for an Ender-3?

93 steps per millimetre for the stock Ender-3 and Ender-3 V2 extruder. Upgraded or geared extruders need much higher values, such as 415 for a Bondtech BMG.

How do I save E-steps in Marlin?

Set the value with M92 E<value>, then send M500 to save it to the printer’s memory. Check it with M503. If the firmware has no EEPROM support, put the M92 line in your slicer’s start G-code.

What is the Klipper equivalent of E-steps?

rotation_distance in the [extruder] section of printer.cfg. New rotation_distance = old × actual ÷ requested. It moves in the opposite direction to E-steps.

Should I calibrate E-steps with the nozzle hot or cold?

Hot, at your printing temperature, and extruding slowly. That’s what the extruder sees during a print, and Marlin and Klipper both refuse to extrude below 170 °C by default.

Do I need to calibrate E-steps on a Bambu Lab or Prusa MK4?

No, not unless you’ve modified the extruder. They ship calibrated and handle the rest with their own flow calibrations and filament profiles.

Should I change E-steps for each filament?

No. E-steps belong to the extruder. Use the flow rate in the filament profile for differences between filaments.