Steps Per MM Calculator (Belts & Leadscrews)

Quick answer: Steps per millimetre is (motor steps per revolution × microsteps) divided by how far the axis travels in one revolution. A GT2 belt on a 20-tooth pulley travels 2 mm × 20 = 40 mm per revolution, so a 200-step motor at 16 microsteps gives 3,200 ÷ 40 = 80 steps/mm — and Klipper's rotation_distance for that axis is simply 40.
…

Runs entirely in your browser — your numbers never leave your device.

Worked example

200-step motor, 16 microsteps, GT2 belt, 20-tooth pulley: travel per revolution = 2 × 20 = 40 mm, so steps/mm = 3,200 ÷ 40 = 80.00 and Klipper rotation_distance = 40. An 8 mm-lead screw on the same motor: 3,200 ÷ 8 = 400 steps/mm, rotation_distance 8. If a commanded 100 mm move actually travels 99 mm, the corrected belt figure is 80 ÷ 0.99 = 80.81 steps/mm (rotation_distance 39.600).

How it works

Steps/mm is a machine constant, not a tuning knob: it comes entirely from the motor, the driver microstepping and the mechanics. Two traps catch beginners. First, a leadscrew's lead is not its pitch — a common 8 mm screw with 4 starts has a 2 mm pitch but an 8 mm lead, and it is the lead (distance travelled per revolution) that belongs in this calculator. Second, microsteps are set by the driver or board jumpers/firmware, and doubling them doubles steps/mm without changing how far anything moves — Klipper's rotation_distance ignores microsteps entirely for exactly that reason, which is why it is the more honest number.

Work in this order: set the nominal values from this page first, then verify with a real move — command 100 mm, measure the actual travel with calipers or a ruler against a marked point, and enter both numbers here so the corrected values include the measured ratio. Extruder movement is calibrated separately with the mark-and-extrude method in the e-steps calculator; size errors that remain after motion is exact are material shrinkage, handled by the shrinkage compensation calculator.

The formula: Belt: steps/mm = (steps/rev × microsteps) ÷ (belt pitch × pulley teeth); rotation_distance = pitch × teeth. Screw: steps/mm = (steps/rev × microsteps) ÷ screw lead; rotation_distance = lead. Measured correction: adjusted steps/mm = nominal × commanded ÷ measured; adjusted rotation_distance = nominal × measured ÷ commanded. Marlin output: M92 X/Y/Z<steps/mm>.

Questions people ask

What is the difference between steps/mm and rotation_distance?

They describe the same mechanics in opposite directions. Steps/mm counts motor steps per millimetre of travel (Marlin's M92); Klipper's rotation_distance is millimetres travelled per full motor revolution. One is 3,200 ÷ the other on a 200-step, 16-microstep setup.

Is screw pitch or screw lead the right number for Z?

Lead — the distance the nut travels in one full revolution. On a single-start screw pitch and lead are equal; on the common 4-start 8 mm screw the pitch is 2 mm but the lead is 8 mm, and using 2 mm would make Z move four times too far per step count.

My measured move is off — should I just change steps/mm?

Yes, once. Enter the commanded and actual distances here and use the corrected values. If the error changes between tests, the problem is mechanical — a loose pulley grub screw or slipping coupler — and no number will stabilise it.

Sources

Diagram of the steps per mm worked example: 80 steps per mm for the belt axis and 400 for the leadscrew
Diagram: the worked example on this page, drawn out.

A fully worked example, step by step

Work through the pre-filled setup above: a 200 steps/rev motor at 16 microsteps, driving a GT2 belt with a 2 mm pitch and 20-tooth pulley, then a leadscrew with an 8 mm lead. A 100 mm test move travels exactly 100 mm.

  1. Count the steps per revolution. 200 full steps × 16 microsteps = 3,200 steps for one full turn of the motor.
  2. Do the belt axis. One turn moves the belt by 2 mm pitch × 20 teeth = 40 mm, so steps per mm = 3,200 ÷ 40 = 80 steps/mm. For Klipper, the rotation_distance is that same 40.
  3. Do the screw axis. One turn moves the nut by the 8 mm lead, so steps per mm = 3,200 ÷ 8 = 400 steps/mm, and the rotation_distance is 8.
  4. Check against a real move. Commanded 100 mm, measured 100 mm, so the measured ratio is 100 ÷ 100 = 1.00 — no correction is needed.

That gives 80 steps/mm for the belt axis and 400 steps/mm for the screw axis, both confirmed by a test move that landed exactly on target.

Why the belt and screw numbers differ so much

Both axes use the same motor, but the belt moves 40 mm per turn while the screw moves only 8 mm, so the screw needs five times as many steps per millimeter. That is why screw-driven Z axes feel so precise. The most common input mistake is confusing a leadscrew's pitch with its lead: on a multi-start screw they differ, and using pitch gives a Z axis that moves the wrong distance. Always use the lead. The extruder has its own version of this calibration, covered in the e-steps calculator.

Rate this calculator & leave feedback

★ Reviews are moderated: comments appear publicly only after approval, so the page stays helpful and spam-free.