LayerCalc › Calibration

Lead Screw Steps per mm Calculator

Steps per mm (Marlin M92) and rotation_distance (Klipper) for a lead screw Z axis from motor, microstepping, screw pitch and number of starts.

Check the motor label or datasheet. Most printers use 1.8°.
The value set in firmware / driver configuration (microsteps in Klipper).
mm
Distance between neighboring thread crests. A common T8 screw has a 2 mm pitch.
A T8x8 screw has 4 starts (2 mm pitch, 8 mm lead). A T8x2 has 1 start.

Result

The formula

A lead screw moves the nut by its lead for every full turn. The lead is the screw pitch multiplied by the number of separate threads (starts):

lead = screw pitch × number of starts

steps per mm = (full steps per revolution × microstepping) ÷ lead

A 1.8° motor has 360 ÷ 1.8 = 200 full steps per revolution, a 0.9° motor has 400. For the common T8 screw (2 mm pitch, 4 starts, so 8 mm lead) with a 1.8° motor and 1/16 microstepping that is 200 × 16 ÷ 8 = 400 steps/mm.

Klipper does not use steps per mm. Its rotation_distance is the distance the axis moves per motor revolution, which for a lead screw is the pitch multiplied by the number of starts (2 × 4 = 8). Microstepping is set separately with microsteps, so changing it does not change rotation_distance.

How to use the result

  1. Find your motor angle (1.8° unless the motor says 0.9°).
  2. Enter the microstepping your firmware or driver actually uses.
  3. Enter pitch and starts. Screws are often named by diameter and lead, for example T8x8 means 8 mm diameter and 8 mm lead. Check the listing for the pitch and number of starts; do not assume it.
  4. Marlin: send the M92 line or set DEFAULT_AXIS_STEPS_PER_UNIT, then M500 to save. Klipper: set rotation_distance and microsteps in the stepper section and restart.
  5. Verify: command a Z move (for example 50 mm) and measure it, then scale the value by intended ÷ actual distance.

Things to watch

Frequently asked questions

How many steps per mm for a T8 lead screw?

For a T8x8 screw (2 mm pitch, 4 starts, 8 mm lead) with a 1.8° motor and 1/16 microstepping it is 400 steps/mm. A T8x2 (1 start, 2 mm lead) at the same settings is 1600 steps/mm.

What is the Klipper rotation_distance for a lead screw?

Screw pitch multiplied by the number of starts. For a T8x8 screw that is 2 × 4 = 8 mm.

What is the difference between pitch and lead?

Pitch is the distance between neighboring thread crests; lead is how far the nut travels in one full turn. They are equal for a single-start screw, and lead = pitch × starts otherwise.

Do I need to change steps per mm if I change microstepping?

In Marlin, yes: steps per mm scales with microstepping. In Klipper you only change the microsteps setting; rotation_distance stays the same.

Embed this calculator

Free to use on your blog, forum or website. Copy the code and paste it into your page's HTML.

Related

Calibration

Belt Steps per mm Calculator

Steps per mm (Marlin M92) and rotation_distance (Klipper) for belt-driven X/Y axes from motor, microstepping, belt pitch and pulley teeth.

Calibration

Magic Layer Height Calculator

Layer heights that are whole multiples of your Z motor full step, from motor angle and lead screw pitch and starts.

Calibration

E-Steps Calculator

Calibrate your extruder: new E-steps for Marlin or rotation_distance for Klipper, with the G-code to apply it.