Tool
Extruder steps calculator
Turn a requested extrusion and the length you measured into new Marlin E steps and a new Klipper rotation distance.
Calculator
Lengths can be millimeters or inches. Inch entries are multiplied by 25.4, because E steps are steps per millimeter and Klipper’s rotation_distance is millimeters of filament per motor revolution. Switching the unit does not rewrite numbers already typed. The calculation stays in your browser.
Set E steps to 96.875 or rotation_distance to 33.032. Rotation distance is converted from the E steps. That conversion applies only when Klipper gear_ratio is not set.
- Requested
- 100 mm
- Actual extruded
- 96 mm
- New E steps
- 96.875 steps/mm
- Previous rotation distance
- 34.408602 mm
- New rotation distance
- 33.032258 mm
- Rounded to 3 decimals
- 33.032 mm
- Steps/mm at that rounded value
- 96.876
Formula
Marlin’s E steps are how many motor steps the firmware commands for one millimeter of filament. If the current setting commands requested millimeters, the steps it sends are current steps times that requested length. Those same steps actually moved the length you measured. The steps that belong to one real millimeter are therefore:
new E steps = current E steps × requested ÷ actual
Klipper stores the inverse idea. rotation_distance is the millimeters of filament that move in one full turn of the stepper. Klipper’s measure-and-trim formula is:
new rotation_distance = previous rotation_distance × actual ÷ requested
The two formulas move in opposite directions. If the extruder delivered less than you asked, Marlin’s steps must go up and Klipper’s rotation distance must go down. Klipper also tells you to round the new rotation_distance to three decimal places.
When you know steps per millimeter and you are not using Klipper’s gear_ratio, the same page converts between them:
rotation_distance = full steps per rotation × microsteps ÷ steps per millimeter
A geared extruder with gear_ratio set uses rotation_distance for one turn of the final gear, not one turn of the motor. Do not paste the converted number into a config that also sets gear_ratio until you have read that section. Thefilament length converter is a different question: it turns a spool weight into meters, and it does not change firmware. Once the extruder delivers the length you command, a speed limit is thevolumetric flow calculator.
Worked example
The fields start on an illustration, not a reading from a printer. The first mark is120 mm from the intake. After a requested 100 mm extrusion, the mark is 24 mm away. Actual extrusion is120 − 24 = 96 mm. The firmware currently has 93 steps/mm. Full steps are 200and microsteps are 16.
New E steps are 93 × (100 ÷ 96) = 96.875. Marlin’s M92 page shows the command as M92 E followed by the new steps. With EEPROM_SETTINGS enabled, that page says M500 saves the steps and M501 loads them. M502 puts back the compiled defaults.
The matching rotation distance, with no gear_ratio, starts at200 × 16 ÷ 93= 34.408602 mm. The trimmed value is that number × 96 ÷ 100= 33.032258 mm, which rounds to 33.032. At the rounded distance, steps per millimeter are200 × 16 ÷ 33.032= 96.876. The direct E-step result was 96.875. The 0.001 step gap is the three-decimal rounding, not a second measurement.
Common mistakes
Entering the second mark as the extruded length runs the formula backwards. On these numbers that would treat 24 mm as the extrusion instead of 96 mm. A fast extrusion does the same kind of damage in a different way: Klipper says a faster rate builds pressure in the extruder and skews the test, and it says not to use the extrude button on a screen because those buttons extrude quickly. The published check is slow. Their 50 mm move at F60 takes about 50 seconds.
Klipper says that if actual and requested differ by more than about 2 mm, run the test a second time. This illustration is 4 mm short on a 100 mm request, which is past that line on purpose so the arithmetic is easy to check. It is not a reason to skip the second pass on a real extruder. The page also does not decide between a Bowden tube left connected and one pulled off. Use the procedure your firmware documents, then type the two lengths here.
A slicer extrusion multiplier, or a flow percentage, is not E steps. Steps make a commanded 100 mm move 100 mm of filament. The multiplier is a later, separate correction. Calibrating steps with a single-wall cube mixes the two. Klipper also says not to use measure-and-trim on X, Y, or Z. Those axes want the belt, pulley, or screw measurement, and this page does not do that.
Sources
- Klipper, Rotation distance: the extruder measure-and-trim procedure, the formula rotation_distance = previous × actual ÷ requested, the instruction to round to three decimal places, the slow
G1 E50 F60check, and the conversion rotation_distance = full_steps_per_rotation × microsteps ÷ steps_per_mm. The page says to use 200 and 16 when you are unsure, and it explainsgear_ratio, including that a BMG-style gear is often 50:17 rather than the advertised 3:1. - Marlin M92, Set Axis Steps-per-unit: E sets extruder steps per unit. With no parameters, M92 reports the current steps. With
EEPROM_SETTINGS, M500 saves them, M501 loads them, and M502 restoresDEFAULT_AXIS_STEPS_PER_UNIT. The new-steps formula on this page is the definition of steps per millimeter applied to a measured length. Marlin’s page does not print that proportion itself.
FAQ
The extruder was short. Which number goes up?
If actual is less than requested, Marlin’s E steps go up by requested ÷ actual. Klipper’s rotation_distance goes down by actual ÷ requested. Using the Marlin multiplier on a Klipper config makes the error larger.
Can I calibrate X or Y here?
No. Klipper says a measure-and-trim procedure is not accurate enough for X, Y, or Z and will usually make those axes worse. This page is only for the extruder length you measured.
What if the config already has gear_ratio?
Then rotation_distance is the filament moved by one turn of the final gear, and the simple conversion from steps per millimeter is the wrong number to paste in. Klipper’s page gives the BMG case as 50:17 rather than 3:1. Read that section before changing a geared extruder. The E-step line does not depend on gear_ratio.
Does this replace the extrusion multiplier?
No. Get a commanded length to match a measured length first. The slicer’s flow percentage is a separate setting for filament diameter and the bead you want after that. Thelength and weight converter only helps when you are turning grams on a spool into meters.