Klipper Rotation Distance Calculator
Work out Klipper's rotation_distance from steps per mm, a belt and pulley, or a leadscrew, or correct your extruder's after a 100 mm test.
New: please check your results.
For guidance only. This is not a substitute for a qualified engineer, and important designs should be checked by one.
Was this calculator useful?
- rotation_distance
- 40 mm
- Same as Marlin steps per mm (16 microsteps, 200 steps)
- 80 steps/mm
- In printer.cfg
- rotation_distance: 40
What it does
Klipper doesn't use steps per millimetre like Marlin. Each axis has a rotation_distance instead: how far it moves for one full turn of its motor. Work it out from your old Marlin steps per mm, straight from the hardware (a belt and pulley or a leadscrew), or correct your extruder's after measuring how much filament it really feeds.
How to use it
- Work it out from
Moving from Marlin? Use your old steps per mm. Otherwise work it out from the hardware, or correct the extruder after measuring.
- Motor full steps per turn
Most printer steppers are 1.8° (200 steps). Klipper's full_steps_per_rotation.
- Microsteps
The microstepping your old steps per mm assumed: almost always 16 on Marlin printers.
- Steps per mm
From Marlin (M503, the M92 line): e.g. X80 Y80 Z400 E93 on an Ender 3.
- Belt pitch
The distance between belt teeth: 2 mm for GT2, the usual printer belt.
- Pulley teeth
Count the teeth on the motor's pulley: usually 16 or 20.
- Thread pitch
The distance between neighbouring threads: 2 mm on the common T8 leadscrew.
- Number of starts
How many separate threads wind round the screw (look at the end): 4 on a standard T8 leadscrew, giving 8 mm per turn.
- Current rotation_distance
The value in your printer.cfg [extruder] section.
- Filament you asked for
E.g. G1 E100 F60 with the nozzle hot (or the extruder disconnected from the hotend).
- Filament that went through
Measured with a mark on the filament: mark at 120 mm, extrude 100, measure what's left, and subtract.
Common uses
- Moving a printer from Marlin to Klipper.
- Setting up a new axis, pulley or leadscrew.
- Calibrating an extruder on Klipper.
- Calibrating e-steps on Marlin instead. Try the E-Steps Calculator
- Steps per mm for a CNC router, laser or any other stepper axis. Try the Stepper Motor Steps per mm Calculator
The formula
From steps per mm: rotation_distance = full steps per turn × microsteps ÷ steps per mmBelt: rotation_distance = belt pitch × pulley teethLeadscrew: rotation_distance = pitch × starts (the lead)Extruder: new = current × filament that went through ÷ filament asked forWhere:
- Full steps per turn
- 200 for a 1.8° motor, 400 for 0.9°
From Klipper's rotation distance documentation. Gears between the motor and the axis (geared extruders) also need gear_ratio set in Klipper; working from your old steps per mm already includes them.
Worked example
With 80 steps per mm on a 200 (1.8° motor, most common)-step motor at 16 microsteps:
- rotation_distance: 200 (1.8° motor, most common) × 16 ÷ 80 = 40 mm
Questions people ask
What is the rotation_distance for a GT2 belt with a 20-tooth pulley?
40 mm: 2 mm × 20 teeth. With a 16-tooth pulley it's 32 mm.
What about a T8 leadscrew?
Usually 8 mm: a 2 mm pitch with 4 starts. A single-start T8 (often sold as T8×2) is 2 mm.
Why did my extruder's value go down after the test?
If less filament went through than you asked for, each motor turn must move the filament less far than Klipper thought, so the rotation_distance gets smaller and the motor turns more.
Last checked 6 November 2026 · Last rev. 6 November 2026 · f279