SpoolGuide
Language: English,EN

Steps per mm calculator

Enter your motor, the driver’s microsteps and the belt or the lead screw of an axis, and the calculator gives the steps per mm for Marlin and the rotation_distance for Klipper.

Motor and driver
Most stepper motors are 1.8 degrees, which is 200 full steps a turn. Some are 0.9 degrees, which is 400. Use 200 if you are not sure.
Most drivers use 16 microsteps. Klipper's guide says to use 16 if you are not sure.
Belt axis (X and Y)
The distance between two teeth of the belt. Most printers use 2 mm. Leave it empty if you are not working on a belt.
Count the teeth of the pulley on the motor shaft.
Lead screw axis (Z)
The distance between two grooves of the screw. Leave it empty if you are not working on a lead screw.
A T8 lead screw has a pitch of 2 mm and 4 separate threads, which makes its rotation distance 8. A threaded rod has one thread.
A value you already have
In Marlin, M92 with no parameters reports it (M503 on older versions). The answer is the rotation_distance that Klipper wants for it.
In Klipper, it is in the stepper section of printer.cfg. The answer is the steps per mm that Marlin wants for it.

Result

Belt axis: steps per mm80

Steps of one motor turn
3,200 (200 full steps × 16 microsteps)
Belt axis: rotation_distance
40 mm
Belt axis: Marlin
M92 X80, M92 Y80
Belt axis: Klipper
rotation_distance: 40
Lead screw axis: steps per mm
400
Lead screw axis: rotation_distance
8 mm
Lead screw axis: Marlin
M92 Z400
Lead screw axis: Klipper
rotation_distance: 8

These are example numbers. Change any box to see your own.

These are for the axes. Klipper's guide says not to use the measure and trim method on x, y or z, and to measure the belts, pulleys and lead screw instead. The extruder is the other way round: use the E-steps calculator.

Marlin keeps an M92 value after a restart on a printer whose firmware saves settings, with M500.

What one turn of a motor moves

An axis moves a fixed distance for each full turn of its stepper motor. Klipper calls that distance the rotation_distance. Marlin counts the steps that make the axis move one millimeter instead. Both describe the same hardware, and the calculator gives both.

Belt axes

Klipper’s documentation says that the rotation_distance of a belt axis is the belt pitch times the number of teeth on the motor pulley. Most printers use a 2 mm belt, and the documentation’s own example is a pulley of 20 teeth, which moves the axis 40 mm a turn. A 1.8 degree motor on a driver set to 16 microsteps takes 3,200 steps a turn, so that axis needs 80 steps per mm.

Lead screw axes

For a lead screw it is the pitch of the screw times its number of separate threads. The common T8 screw has a pitch of 2 mm and four threads, so a turn moves the axis 8 mm, and on the same motor and driver the axis needs 400 steps per mm. Older printers with a threaded rod have one thread: an M6 rod moves 1 mm a turn and an M8 rod moves 1.25 mm.

The motor and the driver

Most stepper motors take 1.8 degree steps, which makes 200 full steps a turn. Some take 0.9 degree steps, which makes 400. Most drivers use 16 microsteps. Klipper’s guide says to use 200 and 16 when you are not sure, and the calculator opens on those values. A 0.9 degree motor, or a driver at 32 microsteps, doubles the steps per mm and leaves the rotation_distance as it was.

Converting a value you have

Moving from Marlin to Klipper, type the steps per mm that M92 reports into the last group and read the rotation_distance. Going the other way, type the rotation_distance. Klipper says to round a result that is within .01 of a whole number to that number, and the calculator does the same: 80.01 steps per mm on the default motor gives 39.995, which it shows as 40.

The extruder is different

An extruder has no belt or screw to count, so its value comes from a test extrusion. Klipper’s guide uses measure and trim there and tells you not to use it on x, y or z. The E-steps calculator works out the extruder.

Asked often

How many steps per mm does a belt axis need?
It follows from the motor, the driver and the belt. A motor with 200 full steps a turn on a driver at 16 microsteps takes 3,200 steps a turn. A 2 mm belt on a pulley of 20 teeth moves the axis 40 mm a turn, so the axis needs 80 steps per mm.
What is the rotation_distance of a T8 lead screw?
Klipper’s documentation gives 8 mm. The screw has a pitch of 2 mm and four separate threads, and the rotation_distance of a lead screw is the pitch times the threads. A threaded rod has one thread, so an M6 rod is 1 and an M8 rod is 1.25.
How do I turn Marlin’s steps per mm into Klipper’s rotation_distance?
Divide the steps of one motor turn by the steps per mm. For a 1.8 degree motor on 16 microsteps that is 3,200 divided by your number, so 80 steps per mm is a rotation_distance of 40. Klipper rounds a result within .01 of a whole number to the whole number.
Should I use measure and trim on X, Y and Z?
No. Klipper’s documentation says that method is not accurate enough for those axes and will likely lead to a worse configuration. Work the axes out from the belts, the pulleys and the lead screw, and keep measure and trim for the extruder.
Where do I find the value my printer uses now?
In Marlin, M92 with no parameters reports the steps per unit of every axis, and M503 does on older versions. In Klipper, the rotation_distance is in the configuration section of the axis in printer.cfg.

Where the numbers come from

  1. Klipper documentation: Rotation distance (opens in a new tab), read on 2026-11-04.
  2. Marlin documentation: M92, Set Axis Steps-per-unit (opens in a new tab), read on 2026-11-04.

Cite this page: SpoolGuide. “Steps per mm calculator.” Last modified . https://spoolguide.com/steps-per-mm-calculator/.

Published .

SpoolGuide

SpoolGuide is an independent site and is not affiliated with any printer or filament maker.